@opencode/core 0.0.0-dev-20806 → 0.0.0-dev-20807
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 +84 -84
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +7 -7
- package/dist/bus.js +70 -70
- package/dist/chunks/{location-lifecycle-z6379rrx.js → form-00rv01cy.js} +3 -3
- package/dist/chunks/{location-lifecycle-n1e733pt.js → form-0e3se835.js} +9 -9
- package/dist/chunks/{location-lifecycle-q0xm7vwc.js → form-0j77ygfz.js} +6 -6
- package/dist/chunks/form-0k5fr05e.js +26 -0
- package/dist/chunks/{location-lifecycle-7n72tp4h.js → form-0m4y979k.js} +4 -4
- package/dist/chunks/{location-lifecycle-28sbwtwg.js → form-0mfehv6g.js} +10 -10
- package/dist/chunks/{location-lifecycle-r39mgnjv.js → form-0p0qkxk2.js} +30 -30
- package/dist/chunks/{location-lifecycle-0paq2nw3.js → form-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-lifecycle-qf29a4yj.js → form-0v4jh5wh.js} +26 -26
- package/dist/chunks/{location-lifecycle-r5dp6wge.js → form-0v7n9ydc.js} +9 -9
- package/dist/chunks/{location-lifecycle-0vbcp93d.js → form-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-lifecycle-wnd97rm8.js → form-0zjqdwpn.js} +25 -25
- package/dist/chunks/{location-lifecycle-ntjv7s1m.js → form-18nxemwk.js} +3 -3
- package/dist/chunks/{location-lifecycle-05pgskzd.js → form-1bewkv54.js} +18 -18
- package/dist/chunks/{location-lifecycle-p77ec4pm.js → form-1d6vvqtz.js} +24 -24
- package/dist/chunks/{location-lifecycle-84h8c373.js → form-1dvck2a7.js} +2 -2
- package/dist/chunks/{location-lifecycle-e8vwfchq.js → form-1z18ck0n.js} +9 -9
- package/dist/chunks/{location-lifecycle-4ts7tf6z.js → form-2ccvkpx1.js} +2 -2
- package/dist/chunks/{location-lifecycle-q17z9dx8.js → form-2hg7qvzt.js} +5 -5
- package/dist/chunks/{location-lifecycle-ztjz61gh.js → form-2kgbfk35.js} +5 -5
- package/dist/chunks/{location-lifecycle-0ntvdsg8.js → form-2m8jawch.js} +4 -4
- package/dist/chunks/{location-lifecycle-970wqp6j.js → form-2tz229t4.js} +5 -5
- package/dist/chunks/{location-lifecycle-2vvh33eb.js → form-2vvh33eb.js} +2 -2
- package/dist/chunks/{location-lifecycle-xwaapbcw.js → form-2wyf4erf.js} +20 -20
- package/dist/chunks/{location-lifecycle-x6741p5x.js → form-346kzjtb.js} +4 -4
- package/dist/chunks/{location-lifecycle-mk5vzntt.js → form-34cd5hh2.js} +40 -40
- package/dist/chunks/{location-lifecycle-fgtd082p.js → form-37yqfbeb.js} +28 -28
- package/dist/chunks/{location-lifecycle-3fmt7znb.js → form-3dr95xgy.js} +60 -60
- package/dist/chunks/{location-lifecycle-3fc6dm20.js → form-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → form-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hwn7j4h.js → form-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-lifecycle-2zcp66xy.js → form-3nw81xsb.js} +32 -32
- package/dist/chunks/{location-lifecycle-3smtnn6g.js → form-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-lifecycle-zjhy6y3h.js → form-3thkjdtf.js} +21 -21
- package/dist/chunks/{location-lifecycle-3tvqynh2.js → form-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-lifecycle-3zsf4n22.js → form-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-lifecycle-dshybgh0.js → form-429sx3jw.js} +15 -15
- package/dist/chunks/{location-lifecycle-z3w7gkpk.js → form-452whvem.js} +18 -18
- package/dist/chunks/{location-lifecycle-av3carq6.js → form-4dh5ta86.js} +4 -4
- package/dist/chunks/{location-lifecycle-fykfh85q.js → form-4jk4fvfv.js} +32 -32
- package/dist/chunks/{location-lifecycle-cc0pwjz5.js → form-4zz8q1dy.js} +68 -68
- package/dist/chunks/{location-lifecycle-54ma36ye.js → form-54ma36ye.js} +1 -1
- package/dist/chunks/{location-lifecycle-whem3n1c.js → form-56x8a31a.js} +5 -5
- package/dist/chunks/{location-lifecycle-ez3n2czz.js → form-5asn6ncy.js} +26 -26
- package/dist/chunks/{location-lifecycle-gw7cjrad.js → form-5dkn69vz.js} +4 -4
- package/dist/chunks/{location-lifecycle-y54x7rf9.js → form-5dyt76wc.js} +14 -14
- package/dist/chunks/{location-lifecycle-mv3hx7wz.js → form-5fec3t3w.js} +9 -9
- package/dist/chunks/{location-lifecycle-5m9w47nd.js → form-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-lifecycle-qcbftmw3.js → form-5me3ew8t.js} +33 -33
- package/dist/chunks/{location-lifecycle-728sb2n0.js → form-5prq62k1.js} +24 -24
- package/dist/chunks/{location-lifecycle-63db42yp.js → form-5pyjqqve.js} +2 -2
- package/dist/chunks/{location-lifecycle-5xtgfte3.js → form-5yzzbxa7.js} +8 -8
- package/dist/chunks/{location-lifecycle-8fbjyakg.js → form-62j05kx1.js} +23 -23
- package/dist/chunks/{location-lifecycle-h137t1tm.js → form-6a4apkvg.js} +4 -4
- package/dist/chunks/{location-lifecycle-sbpte7ah.js → form-6ar05cbm.js} +20 -20
- package/dist/chunks/{location-lifecycle-fn8ks8sk.js → form-6hjtb7g9.js} +4 -4
- package/dist/chunks/{location-lifecycle-73mdynaf.js → form-6qcetts1.js} +12 -12
- package/dist/chunks/{location-lifecycle-wbnahgca.js → form-6qmwbcde.js} +14 -14
- package/dist/chunks/{location-lifecycle-6xb47vfp.js → form-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-lifecycle-czvw4m05.js → form-6xnkjpvb.js} +11 -11
- package/dist/chunks/{location-lifecycle-f75zav2x.js → form-71az546q.js} +2 -2
- package/dist/chunks/{location-lifecycle-2eegacq4.js → form-73kdj4zj.js} +8 -8
- package/dist/chunks/{location-lifecycle-58hq3knj.js → form-76bfnege.js} +16 -16
- package/dist/chunks/{location-lifecycle-7x1rct0n.js → form-76ns3xxg.js} +6 -6
- package/dist/chunks/{location-lifecycle-tx4y1ez1.js → form-776eqtx9.js} +14 -14
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → form-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-qgn6gcr1.js → form-7dqw4kz8.js} +5 -5
- package/dist/chunks/{location-lifecycle-jws6fkes.js → form-7fkffz83.js} +6 -6
- package/dist/chunks/{location-lifecycle-rrg348nn.js → form-7g0z4cv8.js} +8 -8
- package/dist/chunks/{location-lifecycle-w0nwb4bd.js → form-7hhqs9ev.js} +11 -11
- package/dist/chunks/{location-lifecycle-q8r22k9v.js → form-7rwqf82v.js} +8 -8
- package/dist/chunks/{location-lifecycle-bvygydr0.js → form-7sfm1t78.js} +46 -46
- package/dist/chunks/{location-lifecycle-xh8062qc.js → form-7td7z3fp.js} +15 -15
- package/dist/chunks/{location-lifecycle-q9yaa1j3.js → form-7y3ej9my.js} +13 -13
- package/dist/chunks/{location-lifecycle-72sxpf59.js → form-82v73sw7.js} +3 -3
- package/dist/chunks/{location-lifecycle-w1eejvng.js → form-84txncab.js} +5 -5
- package/dist/chunks/{location-lifecycle-vya2br83.js → form-8g79a0vq.js} +8 -8
- package/dist/chunks/{location-lifecycle-8m6m0r52.js → form-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-lifecycle-tthyfpcc.js → form-8nx8bvz8.js} +16 -16
- package/dist/chunks/{location-lifecycle-hb66tvvt.js → form-8y2wjat6.js} +34 -34
- package/dist/chunks/{location-lifecycle-dpev6apn.js → form-907xmcwg.js} +30 -30
- package/dist/chunks/{location-lifecycle-vm49ar1m.js → form-90m8vajs.js} +178 -178
- package/dist/chunks/{location-lifecycle-ts17hsqe.js → form-9bfc4y5b.js} +32 -32
- package/dist/chunks/{location-lifecycle-qvee2413.js → form-9bwjtz2n.js} +32 -32
- package/dist/chunks/{location-lifecycle-q4mwdy11.js → form-9dr7s7bj.js} +13 -13
- package/dist/chunks/{location-lifecycle-kb9j3d72.js → form-9e5bzkjp.js} +3 -3
- package/dist/chunks/{location-lifecycle-24tete3f.js → form-9tv2jn71.js} +46 -46
- package/dist/chunks/{location-lifecycle-4eve0svh.js → form-a924ge7t.js} +32 -32
- package/dist/chunks/{location-lifecycle-2xm3p96n.js → form-aabqwq3c.js} +15 -15
- package/dist/chunks/{location-lifecycle-dq5qb3f8.js → form-abywgaa9.js} +20 -20
- package/dist/chunks/{location-lifecycle-204gxy34.js → form-ap1f89ae.js} +16 -16
- package/dist/chunks/{location-lifecycle-ra4gh194.js → form-awme6kvv.js} +30 -30
- package/dist/chunks/{location-lifecycle-6th8kdq1.js → form-azfhg348.js} +49 -49
- package/dist/chunks/{location-lifecycle-drw66kyn.js → form-azyewnfm.js} +2 -2
- package/dist/chunks/{location-lifecycle-c9rcqwb5.js → form-b3cwmgw3.js} +9 -9
- package/dist/chunks/{location-lifecycle-zyk1yjk8.js → form-b3f8fkhc.js} +5 -5
- package/dist/chunks/{location-lifecycle-6fc5fpn8.js → form-b49r4qmh.js} +6 -6
- package/dist/chunks/{location-lifecycle-jj8j6kw2.js → form-b4gj2w69.js} +18 -18
- package/dist/chunks/{location-lifecycle-baevpaj5.js → form-b6sscvmf.js} +51 -51
- package/dist/chunks/{location-lifecycle-38dyq0cw.js → form-b8q3avcz.js} +27 -27
- package/dist/chunks/{location-lifecycle-ywt8jp22.js → form-bjx1sjef.js} +9 -9
- package/dist/chunks/{location-lifecycle-34c0wdet.js → form-bpk5m3dg.js} +32 -32
- package/dist/chunks/{location-lifecycle-v2q4wbta.js → form-bw8hs0dd.js} +3 -3
- package/dist/chunks/{location-lifecycle-tmadjkjx.js → form-by968z8v.js} +9 -9
- package/dist/chunks/{location-lifecycle-5dbh8v4y.js → form-byxz4q2b.js} +6 -6
- package/dist/chunks/{location-lifecycle-ncg1811x.js → form-bz3n6346.js} +3 -3
- package/dist/chunks/{location-lifecycle-qt2jh699.js → form-c0swgjqp.js} +19 -19
- package/dist/chunks/{location-lifecycle-rx0sdv06.js → form-ck9627yz.js} +22 -22
- package/dist/chunks/{location-lifecycle-52r27r3y.js → form-cm3zn5gm.js} +36 -36
- package/dist/chunks/{location-lifecycle-emzwemy2.js → form-cps6211c.js} +7 -7
- package/dist/chunks/{location-lifecycle-mnq1hty6.js → form-d1sgd2rz.js} +32 -32
- package/dist/chunks/{location-lifecycle-ft3hqk2c.js → form-d4he2qe1.js} +9 -9
- package/dist/chunks/{location-lifecycle-nd4tfyg0.js → form-d7x0sh0y.js} +9 -9
- package/dist/chunks/{location-lifecycle-mcaxn7jw.js → form-dd3626pv.js} +17 -17
- package/dist/chunks/{location-lifecycle-gffqj91w.js → form-dda0p7y7.js} +9 -9
- package/dist/chunks/{location-lifecycle-br1t7y1q.js → form-dgbm9y3x.js} +18 -18
- package/dist/chunks/{location-lifecycle-gdek2aqx.js → form-djg17hnq.js} +1 -1
- package/dist/chunks/{location-lifecycle-7e8cyqab.js → form-dnfex989.js} +22 -22
- package/dist/chunks/{location-lifecycle-dpkg50ah.js → form-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-lifecycle-rxes2kd3.js → form-dta6ba7f.js} +15 -15
- package/dist/chunks/{location-lifecycle-a2pw2g3y.js → form-dz82ykz5.js} +29 -29
- package/dist/chunks/{location-lifecycle-j9p6vyxb.js → form-e2293ryn.js} +18 -18
- package/dist/chunks/{location-lifecycle-5z1cva2g.js → form-e2c4hctk.js} +13 -13
- package/dist/chunks/{location-lifecycle-5qd3pb7m.js → form-e3qxr5gk.js} +2 -2
- package/dist/chunks/form-e4aj21xj.js +513 -0
- package/dist/chunks/{location-lifecycle-6mjrghw9.js → form-ed0hxk4d.js} +24 -24
- package/dist/chunks/{location-lifecycle-eej6y6fw.js → form-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-lifecycle-ef5x83kb.js → form-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-lifecycle-2c7vrg4p.js → form-end0mr5f.js} +11 -11
- package/dist/chunks/{location-lifecycle-jrs0eswh.js → form-enrvf7r1.js} +23 -23
- package/dist/chunks/{location-lifecycle-a8zjhymg.js → form-eq1ww8dg.js} +4 -4
- package/dist/chunks/{location-lifecycle-f2n192rq.js → form-f2n192rq.js} +1 -1
- package/dist/chunks/{location-lifecycle-jyvkym62.js → form-fa87y3b2.js} +15 -15
- package/dist/chunks/{location-lifecycle-52vd1vrk.js → form-ff52ws4f.js} +21 -21
- package/dist/chunks/{location-lifecycle-4r1h5y3t.js → form-fgzgh5km.js} +30 -30
- package/dist/chunks/{location-lifecycle-ta4gdrp4.js → form-fh4ge1rm.js} +10 -10
- package/dist/chunks/{location-lifecycle-mkxbd7ag.js → form-fqk6jatp.js} +21 -21
- package/dist/chunks/{location-lifecycle-khmqacep.js → form-fxaymqdw.js} +4 -4
- package/dist/chunks/{location-lifecycle-qtm129c6.js → form-g0nr56tp.js} +15 -15
- package/dist/chunks/{location-lifecycle-kspgfatx.js → form-g32fphz4.js} +11 -11
- package/dist/chunks/{location-lifecycle-gd4qta3r.js → form-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-lifecycle-rs2vby53.js → form-gdqc804d.js} +8 -8
- package/dist/chunks/{location-lifecycle-jbs8hkge.js → form-gdwygsj8.js} +5 -5
- package/dist/chunks/{location-lifecycle-z6vc72fy.js → form-gfxj4jwb.js} +11 -11
- package/dist/chunks/{location-lifecycle-gk8qb678.js → form-gk8qb678.js} +1 -1
- package/dist/chunks/{location-lifecycle-65z6vshz.js → form-gkbbrz3n.js} +9 -9
- package/dist/chunks/{location-lifecycle-y27q8fpd.js → form-gpc7sdbq.js} +11 -11
- package/dist/chunks/{location-lifecycle-7ah18n8m.js → form-gs3xh0nm.js} +29 -29
- package/dist/chunks/{location-lifecycle-6tvzbcgz.js → form-gyqy5ynx.js} +12 -12
- package/dist/chunks/{location-lifecycle-3cegwx68.js → form-h2b79v29.js} +2 -2
- package/dist/chunks/{location-lifecycle-h6vf3j39.js → form-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-lifecycle-h7s7r6s9.js → form-h7s7r6s9.js} +2 -2
- package/dist/chunks/{location-lifecycle-y5rf7nzv.js → form-h9pnpq88.js} +4 -4
- package/dist/chunks/form-hbgvnztq.js +253 -0
- package/dist/chunks/{location-lifecycle-hm9706ak.js → form-hes7g59n.js} +31 -31
- package/dist/chunks/{location-lifecycle-hgz4x7wa.js → form-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-lifecycle-1t0smfc2.js → form-hhyv66vq.js} +5 -5
- package/dist/chunks/{location-lifecycle-vapvv5jn.js → form-hnecbn5a.js} +10 -10
- package/dist/chunks/{location-lifecycle-aw4axk0j.js → form-hpvvz0t7.js} +11 -11
- package/dist/chunks/{location-lifecycle-28dbn1rd.js → form-hqs8cgch.js} +5 -5
- package/dist/chunks/{location-lifecycle-cfb0x8fw.js → form-hr579x6a.js} +86 -86
- package/dist/chunks/{location-lifecycle-5zt1sg8e.js → form-hsvj78er.js} +54 -54
- package/dist/chunks/{location-lifecycle-j56e64zr.js → form-j56e64zr.js} +1 -1
- package/dist/chunks/{location-lifecycle-2myva995.js → form-j5w2yx54.js} +6 -6
- package/dist/chunks/{location-lifecycle-zf3t7jts.js → form-j7qrg605.js} +11 -11
- package/dist/chunks/{location-lifecycle-6qn3eqbv.js → form-j8pqw26r.js} +6 -6
- package/dist/chunks/{location-lifecycle-k6ht319t.js → form-jb9trc97.js} +19 -19
- package/dist/chunks/{location-lifecycle-cyf6zbv4.js → form-jbyejpvw.js} +15 -15
- package/dist/chunks/{location-lifecycle-7zt5x37y.js → form-jhdf29st.js} +1 -1
- package/dist/chunks/{location-lifecycle-ybg0vk9q.js → form-jvhddpw9.js} +3 -3
- package/dist/chunks/{location-lifecycle-xqvh8cyz.js → form-kffe7xqh.js} +18 -18
- package/dist/chunks/{location-lifecycle-wzdsgtqx.js → form-kgsn71zb.js} +89 -89
- package/dist/chunks/{location-lifecycle-vgt9wjat.js → form-kkpxd18v.js} +42 -42
- package/dist/chunks/{location-lifecycle-zvepxsaq.js → form-m21a3qzg.js} +37 -37
- package/dist/chunks/{location-lifecycle-m3fdjcah.js → form-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-lifecycle-cxmh4q5b.js → form-m70sbz6t.js} +4 -4
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → form-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-q3mz62de.js → form-mcmsq1ma.js} +15 -15
- package/dist/chunks/{location-lifecycle-4cj4m838.js → form-mx0szq0w.js} +13 -13
- package/dist/chunks/{location-lifecycle-0r015vqz.js → form-n6tn6hrh.js} +32 -32
- package/dist/chunks/{location-lifecycle-nzd6vn8m.js → form-naa1sva5.js} +46 -46
- package/dist/chunks/{location-lifecycle-r49y4ggg.js → form-nc8ynfdm.js} +10 -10
- package/dist/chunks/{location-lifecycle-ta4z4kqm.js → form-nceb7tg2.js} +20 -20
- package/dist/chunks/{location-lifecycle-racqape9.js → form-nqa8btv9.js} +18 -18
- package/dist/chunks/{location-lifecycle-wfsh46a4.js → form-nreerqaq.js} +20 -20
- package/dist/chunks/{location-lifecycle-pw2w1cay.js → form-nswh99f5.js} +3 -3
- package/dist/chunks/{location-lifecycle-jkdevf2b.js → form-nz5a17rr.js} +43 -43
- package/dist/chunks/{location-lifecycle-e20nvahg.js → form-p6mefd3v.js} +20 -20
- package/dist/chunks/{location-lifecycle-8663xt68.js → form-pcz7nyx7.js} +24 -24
- package/dist/chunks/{location-lifecycle-9tq0xg7p.js → form-pe0qafpd.js} +9 -9
- package/dist/chunks/{location-lifecycle-jewzahs7.js → form-ph842b28.js} +4 -4
- package/dist/chunks/{location-lifecycle-phz3h32g.js → form-phz3h32g.js} +1 -1
- package/dist/chunks/{location-lifecycle-pjvnvgmy.js → form-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-lifecycle-pknna89w.js → form-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-n88mnmzv.js → form-ps9w4rmp.js} +5 -5
- package/dist/chunks/{location-lifecycle-c6fmn8wk.js → form-q0vhpe4t.js} +33 -33
- package/dist/chunks/{location-lifecycle-3d4ymmg4.js → form-q7cwvqv2.js} +11 -11
- package/dist/chunks/{location-lifecycle-k76krqzs.js → form-qa3qhgw8.js} +4 -4
- package/dist/chunks/{location-lifecycle-catjr96x.js → form-qabyx9xz.js} +6 -6
- package/dist/chunks/{location-lifecycle-mt61c86x.js → form-qehvaept.js} +20 -20
- package/dist/chunks/{location-lifecycle-se51mkp6.js → form-qhzmnskm.js} +13 -13
- package/dist/chunks/{location-lifecycle-649whvfn.js → form-qjr91pwy.js} +13 -13
- package/dist/chunks/{location-lifecycle-qnc92qwc.js → form-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-lifecycle-gj71zhbs.js → form-qne3fa44.js} +5 -5
- package/dist/chunks/{location-lifecycle-g50v604x.js → form-qpg4nhh5.js} +11 -11
- package/dist/chunks/{location-lifecycle-qqeeq2t9.js → form-qqeeq2t9.js} +1 -1
- package/dist/chunks/{location-lifecycle-x4xev0pa.js → form-qrvrewsy.js} +10 -10
- package/dist/chunks/{location-lifecycle-qsdy395h.js → form-qsdy395h.js} +1 -1
- package/dist/chunks/{location-lifecycle-5y386vat.js → form-qxk5mzbz.js} +14 -14
- package/dist/chunks/{location-lifecycle-xh57mx9e.js → form-qzrp65ar.js} +17 -17
- package/dist/chunks/{location-lifecycle-5rzwp8tz.js → form-r2z489rp.js} +3 -3
- package/dist/chunks/{location-lifecycle-jz0442he.js → form-r939q9f2.js} +23 -23
- package/dist/chunks/{location-lifecycle-j58c5xyq.js → form-r9w3djhf.js} +9 -9
- package/dist/chunks/{location-lifecycle-66y13w5e.js → form-rc0w2xfj.js} +14 -14
- package/dist/chunks/{location-lifecycle-3a2tvshw.js → form-rd2n1npt.js} +27 -27
- package/dist/chunks/{location-lifecycle-wv0rwt0n.js → form-rdm3yed2.js} +39 -39
- package/dist/chunks/{location-lifecycle-rdw6cm16.js → form-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-lifecycle-d7ww3xqa.js → form-re6xefaf.js} +14 -14
- package/dist/chunks/{location-lifecycle-nczxqmbc.js → form-repwdqvh.js} +10 -10
- package/dist/chunks/{location-lifecycle-xte6kcyc.js → form-rwvz118r.js} +18 -18
- package/dist/chunks/{location-lifecycle-qc13nv8d.js → form-s5nkw20k.js} +25 -25
- package/dist/chunks/{location-lifecycle-46wg8v1y.js → form-sa0etwzp.js} +34 -34
- package/dist/chunks/{location-lifecycle-pm7mfnvc.js → form-sfvmd51z.js} +32 -32
- package/dist/chunks/{location-lifecycle-d93whzxd.js → form-skwpzzw0.js} +10 -10
- package/dist/chunks/{location-lifecycle-zd5177c5.js → form-sr73km76.js} +19 -19
- package/dist/chunks/{location-lifecycle-60x674wm.js → form-sr781ga4.js} +16 -16
- package/dist/chunks/{location-lifecycle-nc8mrn0c.js → form-t0ewadmb.js} +27 -27
- package/dist/chunks/{location-lifecycle-02nrjc1r.js → form-t550f9t1.js} +8 -8
- package/dist/chunks/{location-lifecycle-tazgh4e4.js → form-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-lifecycle-89znhe33.js → form-tcezcvh9.js} +4 -4
- package/dist/chunks/{location-lifecycle-tdstcens.js → form-tdstcens.js} +1 -1
- package/dist/chunks/{location-lifecycle-97t4ar9r.js → form-te7n14t2.js} +13 -13
- package/dist/chunks/{location-lifecycle-vrrq7v3g.js → form-tk14y25j.js} +5 -5
- package/dist/chunks/{location-lifecycle-7cn6hban.js → form-tk22tqem.js} +7 -7
- package/dist/chunks/{location-lifecycle-bajdcy3s.js → form-twhwxvpf.js} +5 -5
- package/dist/chunks/{location-lifecycle-ysjryspn.js → form-tx40bvt8.js} +4 -4
- package/dist/chunks/{location-lifecycle-188e5gmh.js → form-tydzfyyg.js} +28 -28
- package/dist/chunks/{location-lifecycle-tyytaxap.js → form-tyytaxap.js} +1 -1
- package/dist/chunks/{location-lifecycle-tmamyrcv.js → form-tz1x93sf.js} +5 -5
- package/dist/chunks/{location-lifecycle-v0es1rhs.js → form-v0es1rhs.js} +2 -2
- package/dist/chunks/{location-lifecycle-n6n3gpt4.js → form-v2926xj5.js} +4 -4
- package/dist/chunks/{location-lifecycle-v7p4zvkq.js → form-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-lifecycle-9rrnqe3f.js → form-vbvznpsc.js} +13 -13
- package/dist/chunks/{location-lifecycle-veqvce7d.js → form-veqvce7d.js} +1 -1
- package/dist/chunks/{location-lifecycle-3y3gwpwa.js → form-vp0gkghg.js} +11 -11
- package/dist/chunks/{location-lifecycle-sp6kk48v.js → form-vrdveqzq.js} +45 -45
- package/dist/chunks/{location-lifecycle-bywta2qc.js → form-vreqx49f.js} +26 -26
- package/dist/chunks/{location-lifecycle-0cg871e2.js → form-vrzt526f.js} +5 -5
- package/dist/chunks/{location-lifecycle-wt09af1m.js → form-vvtt3r92.js} +15 -15
- package/dist/chunks/{location-lifecycle-fypwfj2h.js → form-vwzv7zsf.js} +8 -8
- package/dist/chunks/{location-lifecycle-ss358qx3.js → form-vx3jgdek.js} +3 -3
- package/dist/chunks/{location-lifecycle-ytvhpjjh.js → form-vxywbpnc.js} +11 -11
- package/dist/chunks/{location-lifecycle-xs85nqyr.js → form-vzjdnfs3.js} +1 -1
- package/dist/chunks/{location-lifecycle-vzs5sf6e.js → form-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-lifecycle-js8269pr.js → form-w36wqzqr.js} +11 -11
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → form-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-wd87259q.js → form-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-3xbma361.js → form-wf4634q4.js} +11 -11
- package/dist/chunks/{location-lifecycle-n0fgdapb.js → form-wq47jxww.js} +4 -4
- package/dist/chunks/{location-lifecycle-kve97cj3.js → form-wrj7k67z.js} +15 -15
- package/dist/chunks/{location-lifecycle-bmbr1qe9.js → form-x3gx8603.js} +8 -8
- package/dist/chunks/{location-lifecycle-gqtdsdt7.js → form-x661k3y3.js} +4 -4
- package/dist/chunks/{location-lifecycle-n0bdd1ta.js → form-xsbkytk1.js} +7 -7
- package/dist/chunks/{location-lifecycle-26q3ce80.js → form-xsqdc333.js} +28 -28
- package/dist/chunks/{location-lifecycle-y1fvbwt7.js → form-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-lifecycle-hv6vc6rn.js → form-y78tw1r3.js} +7 -7
- package/dist/chunks/{location-lifecycle-1b14bx28.js → form-yd332jx1.js} +24 -24
- package/dist/chunks/{location-lifecycle-ntg2j34t.js → form-ydgy0jv4.js} +8 -8
- package/dist/chunks/{location-lifecycle-htx223fd.js → form-ykmg72ng.js} +35 -35
- package/dist/chunks/{location-lifecycle-1bmjn0qh.js → form-ynmknp8q.js} +11 -11
- package/dist/chunks/{location-lifecycle-dq53jhb3.js → form-ywwzatvd.js} +14 -14
- package/dist/chunks/{location-lifecycle-xr0gz6fs.js → form-yxr65j3v.js} +19 -19
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → form-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-zb153t9f.js → form-z4v10rbr.js} +11 -11
- package/dist/chunks/{location-lifecycle-58aztvgj.js → form-za1wwd1x.js} +13 -13
- package/dist/chunks/{location-lifecycle-nj0txakw.js → form-zpk4cdpr.js} +21 -21
- package/dist/chunks/{location-lifecycle-bn65hgva.js → form-zqzfpn6k.js} +25 -25
- package/dist/chunks/{location-lifecycle-zr2ceqn5.js → form-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-lifecycle-zxq2ej10.js → form-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- 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 +119 -119
- package/dist/config/plugin/command.js +208 -208
- 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 +118 -118
- 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 +126 -126
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +138 -138
- 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 +122 -122
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -86
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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 +367 -367
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- 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 +94 -94
- 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 +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 +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +105 -105
- package/dist/form.js +87 -87
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +106 -106
- 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 +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 +358 -358
- 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 +74 -74
- 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 +355 -355
- package/dist/location.js +86 -86
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +110 -110
- package/dist/mcp/instructions.js +130 -130
- 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 +103 -103
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -91
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +77 -77
- package/dist/plugin/command.js +103 -103
- 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 +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +4 -4
- 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 +1 -1
- 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 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +126 -126
- package/dist/plugin/provider/local.js +123 -123
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +126 -126
- package/dist/plugin/provider/openai.js +96 -96
- 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 +126 -126
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +77 -77
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +217 -217
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +102 -102
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +90 -90
- package/dist/reference.js +92 -92
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +3 -3
- 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 +7 -7
- 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 +15 -15
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +2 -2
- 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 +1 -1
- 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 +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- 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 +211 -211
- 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 +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +115 -115
- 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 +127 -127
- 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 +123 -123
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +110 -110
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +126 -126
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +209 -209
- package/dist/tool/plugin/webfetch.js +113 -113
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- 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 +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 +93 -93
- 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 +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 +80 -80
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +83 -83
- 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/location-lifecycle-1x5ztp1j.js +0 -253
- package/dist/chunks/location-lifecycle-8gkr3zdc.js +0 -513
- package/dist/chunks/location-lifecycle-ant6xbdj.js +0 -26
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → form-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → form-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → form-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → form-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1kg9ymc8.js → form-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → form-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → form-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2axfhc9x.js → form-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2bv980vf.js → form-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → form-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-34c7v6d4.js → form-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → form-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → form-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3t0ybcrp.js → form-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → form-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → form-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → form-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → form-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → form-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → form-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → form-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → form-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → form-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → form-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → form-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → form-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → form-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-84wd9syh.js → form-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → form-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → form-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8wj87zfr.js → form-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → form-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → form-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → form-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → form-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → form-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → form-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → form-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → form-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → form-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bw78ga2c.js → form-bw78ga2c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → form-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → form-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → form-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → form-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → form-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → form-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → form-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → form-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → form-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → form-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → form-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → form-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → form-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → form-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → form-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → form-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → form-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → form-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → form-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → form-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → form-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → form-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → form-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → form-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → form-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → form-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → form-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jze0r7bz.js → form-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → form-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → form-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → form-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → form-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → form-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → form-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-pyv0edze.js → form-pyv0edze.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → form-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → form-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → form-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → form-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → form-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → form-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → form-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → form-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → form-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → form-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ve7vex1e.js → form-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → form-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → form-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → form-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → form-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → form-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → form-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → form-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → form-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → form-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → form-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → form-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → form-z9919s4g.js} +0 -0
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./form-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./form-6qmwbcde.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service16,
|
|
12
|
+
node18
|
|
13
|
+
} from "./form-9bfc4y5b.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./form-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
@@ -24,20 +24,20 @@ __export(exports_filesystem, {
|
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event2,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput2,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError2,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service15,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node17
|
|
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 NotFoundError2 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -82,7 +82,7 @@ var Content2 = Schema.Struct({
|
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput2 = 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 Event2 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service15 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
|
-
const location = yield*
|
|
115
|
-
const search = yield*
|
|
114
|
+
const location = yield* Service80;
|
|
115
|
+
const search = yield* Service16;
|
|
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(Service47, 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 NotFoundError2({ 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 NotFoundError2({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ 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 NotFoundError2({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service15.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 NotFoundError2({ 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 NotFoundError2({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError2({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node17 = makeLocationNode({
|
|
175
|
+
service: Service15,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node,
|
|
177
|
+
deps: [FSUtil.node, node84, node18]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError2, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event2, Service15, node17, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./form-6a4apkvg.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./form-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./form-abywgaa9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./form-6qmwbcde.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./form-rdw6cm16.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./form-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info13,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service59,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node62
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info13, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,11 +54,11 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service59 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
61
|
+
const location = yield* Service80;
|
|
62
62
|
const bus = yield* Service83;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info13));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service59.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node62 = makeLocationNode({
|
|
191
|
+
service: Service59,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node84, node87]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info13, Mode2, DiffError2, InitializeError2, Service59, node62, exports_vcs };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./form-6a4apkvg.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./form-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service80,
|
|
12
|
+
node84
|
|
13
|
+
} from "./form-6qmwbcde.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./form-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service45,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node48
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service45 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service83;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service80;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service80, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service45.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node48 = makeLocationNode({ service: Service45, layer, deps: [node87, node84] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service45, node48, exports_rpc, define2 };
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./form-6a4apkvg.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service73,
|
|
8
|
+
node76
|
|
9
|
+
} from "./form-fh4ge1rm.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./form-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event16,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service72,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node75,
|
|
26
26
|
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service72 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event16 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -79,9 +79,9 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
84
|
+
const kv = yield* Service73;
|
|
85
85
|
const bus = yield* Service83;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service72.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node75 = makeGlobalNode({ service: Service72, layer, deps: [httpClient, node76, node87] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service72, Event16, inspect2, resolve4, node75, exports_wellknown };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-ywwzatvd.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make4 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make9 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make4();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make4, OllamaPlugin2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-x661k3y3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./form-6a4apkvg.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./form-907xmcwg.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./form-0p0qkxk2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID12,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service74
|
|
20
|
+
} from "./form-n6tn6hrh.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID10
|
|
23
|
+
} from "./form-a924ge7t.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./form-z4v10rbr.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./form-vwzv7zsf.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID8
|
|
33
|
+
} from "./form-pcz7nyx7.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./form-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID13.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -163,7 +163,7 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
166
|
+
const providers = yield* Service74;
|
|
167
167
|
const bus = yield* Service83;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
@@ -180,7 +180,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID12.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
185
|
try: () => load3(url, {
|
|
186
186
|
...provider?.headers,
|
|
@@ -202,7 +202,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID12.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
@@ -222,17 +222,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
yield* ctx.model.transform((models) => {
|
|
225
|
-
if (models.get(
|
|
226
|
-
models.update(
|
|
225
|
+
if (models.get(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"))) {
|
|
226
|
+
models.update(ID12.githubCopilot, ID10.make("gpt-5-chat-latest"), (model) => {
|
|
227
227
|
model.enabled = false;
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
232
|
-
yield* bus.subscribe(
|
|
232
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
233
233
|
yield* refresh().pipe(Effect.forkScoped);
|
|
234
234
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
235
|
-
if (evt.model.providerID !==
|
|
235
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
236
236
|
return;
|
|
237
237
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
238
238
|
return;
|
|
@@ -241,7 +241,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
241
241
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
242
242
|
}));
|
|
243
243
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
247
247
|
return;
|
|
@@ -251,13 +251,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
251
251
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
252
252
|
if (interaction !== "conversation-agent")
|
|
253
253
|
evt.headers["x-initiator"] = "agent";
|
|
254
|
-
}), { providerID:
|
|
254
|
+
}), { providerID: ID12.githubCopilot });
|
|
255
255
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
256
|
-
if (evt.model.providerID !==
|
|
256
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
257
257
|
return;
|
|
258
258
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
259
259
|
return;
|
|
260
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
260
|
+
const agent = yield* ctx.agent.get({ agentID: ID8.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
261
261
|
return;
|
|
262
262
|
}));
|
|
263
263
|
if (agent?.data.model)
|
|
@@ -268,9 +268,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
268
268
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
|
-
}), { providerID:
|
|
271
|
+
}), { providerID: ID12.githubCopilot });
|
|
272
272
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
273
|
-
if (evt.model.providerID !==
|
|
273
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
274
274
|
return;
|
|
275
275
|
const token = evt.request.headers.get("x-api-key");
|
|
276
276
|
if (!token)
|
|
@@ -278,9 +278,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
278
278
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
279
279
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
280
280
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
281
|
-
}), { providerID:
|
|
281
|
+
}), { providerID: ID12.githubCopilot });
|
|
282
282
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
283
|
-
if (evt.model.providerID !==
|
|
283
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
284
284
|
return;
|
|
285
285
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
286
286
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|