@opencode/core 0.0.0-dev-19742 → 0.0.0-dev-19743
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{location-services-5tjjgn68.js → aisdk-006sasan.js} +3 -3
- package/dist/chunks/{location-services-zfhdmptt.js → aisdk-05h6ed1q.js} +6 -6
- package/dist/chunks/{location-services-5c0f1prt.js → aisdk-06dxphr1.js} +4 -4
- package/dist/chunks/{location-services-f4v42jqx.js → aisdk-0he4gxhe.js} +27 -27
- package/dist/chunks/{location-services-7n86tvyp.js → aisdk-0kg00bba.js} +9 -9
- package/dist/chunks/aisdk-0mesazry.js +4 -0
- package/dist/chunks/{location-services-0paq2nw3.js → aisdk-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-services-3kyvxja7.js → aisdk-0pb9s1xb.js} +5 -5
- package/dist/chunks/{location-services-0q0f95c6.js → aisdk-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-services-cwx4x0dd.js → aisdk-0xz4qxxd.js} +65 -65
- package/dist/chunks/{location-services-z2012gvx.js → aisdk-0y50sgw1.js} +37 -37
- package/dist/chunks/{location-services-ygk3awzv.js → aisdk-0z8h461j.js} +26 -26
- package/dist/chunks/{location-services-x2aynqqh.js → aisdk-11dqjexa.js} +9 -9
- package/dist/chunks/{location-services-ch35dqjr.js → aisdk-16xr51w1.js} +24 -24
- package/dist/chunks/{location-services-6vnzct9r.js → aisdk-1780my4h.js} +157 -157
- package/dist/chunks/{location-services-x4nj4b9x.js → aisdk-17h4crvz.js} +15 -15
- package/dist/chunks/{location-services-mvfsc1pv.js → aisdk-1bbkgx8g.js} +3 -3
- package/dist/chunks/{location-services-1dazxqgg.js → aisdk-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-services-7hawy35n.js → aisdk-1e8n84a9.js} +13 -13
- package/dist/chunks/{location-services-pajqd7p6.js → aisdk-1ee9xjts.js} +24 -24
- package/dist/chunks/{location-services-g1ep8q13.js → aisdk-1fnxvgxr.js} +15 -15
- package/dist/chunks/{location-services-34rkz0x9.js → aisdk-1g7epwpd.js} +4 -4
- package/dist/chunks/{location-services-d2xc2jwh.js → aisdk-1gk0kxhs.js} +47 -47
- package/dist/chunks/{location-services-qr6drbwe.js → aisdk-1jmksr7g.js} +32 -32
- package/dist/chunks/{location-services-wm2hqhc4.js → aisdk-1xwb3a65.js} +9 -9
- package/dist/chunks/{location-services-6dvc98m6.js → aisdk-1y56khtd.js} +1 -1
- package/dist/chunks/{location-services-mfqp6xfm.js → aisdk-1ygqh575.js} +6 -6
- package/dist/chunks/{location-services-21r38tys.js → aisdk-21r38tys.js} +1 -1
- package/dist/chunks/{location-services-cvet6nsk.js → aisdk-2401b0fc.js} +6 -6
- package/dist/chunks/{location-services-2402vzrj.js → aisdk-2402vzrj.js} +1 -1
- package/dist/chunks/{location-services-rhafb4aa.js → aisdk-24dd53tp.js} +9 -9
- package/dist/chunks/{location-services-pf6cgfs2.js → aisdk-28ngf8yp.js} +36 -36
- package/dist/chunks/{location-services-2a5m3afh.js → aisdk-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-services-7p3xftwe.js → aisdk-2ehxpneg.js} +12 -12
- package/dist/chunks/{location-services-qs2g0y6d.js → aisdk-2gs12enf.js} +11 -11
- package/dist/chunks/{location-services-qgn6gcr1.js → aisdk-2k8khapm.js} +5 -5
- package/dist/chunks/{location-services-7t8e8ps1.js → aisdk-2t9fkgxh.js} +11 -11
- package/dist/chunks/{location-services-pqwh9zsn.js → aisdk-2xn2vpwj.js} +18 -18
- package/dist/chunks/{location-services-09gbft45.js → aisdk-33xsejrf.js} +4 -4
- package/dist/chunks/{location-services-cys4dgee.js → aisdk-39mz3sjb.js} +32 -32
- package/dist/chunks/{location-services-3fc6dm20.js → aisdk-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-services-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-services-1e1y4qmt.js → aisdk-3q4efp1a.js} +14 -14
- package/dist/chunks/{location-services-3smtnn6g.js → aisdk-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-services-3tvqynh2.js → aisdk-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-services-fkjmw100.js → aisdk-44ke2mar.js} +6 -6
- package/dist/chunks/{location-services-rbfpryyb.js → aisdk-4ag8df43.js} +6 -6
- package/dist/chunks/{location-services-v8v96swe.js → aisdk-4cd5pmbq.js} +13 -13
- package/dist/chunks/{location-services-h6r3nrb9.js → aisdk-4dgbcxzg.js} +4 -4
- package/dist/chunks/{location-services-gtenmb26.js → aisdk-4f0cc54b.js} +22 -22
- package/dist/chunks/{location-services-7gc9k1mh.js → aisdk-4jm4hxny.js} +12 -12
- package/dist/chunks/{location-services-07z7m3r0.js → aisdk-4p8rm3hf.js} +3 -3
- package/dist/chunks/{location-services-kazmqbag.js → aisdk-4spq00r0.js} +25 -25
- package/dist/chunks/{location-services-7jgg7q0m.js → aisdk-4wk90cvq.js} +8 -8
- package/dist/chunks/{location-services-37mxhb92.js → aisdk-4zznhz4t.js} +22 -22
- package/dist/chunks/{location-services-2rh66w0b.js → aisdk-561btxre.js} +20 -20
- package/dist/chunks/{location-services-j9v00nmq.js → aisdk-569x6e4f.js} +33 -33
- package/dist/chunks/aisdk-59ejvp71.js +252 -0
- package/dist/chunks/{location-services-5daktx2q.js → aisdk-5daktx2q.js} +1 -1
- package/dist/chunks/{location-services-sr3a5bp1.js → aisdk-5mxfeeh1.js} +13 -13
- package/dist/chunks/{location-services-5t3nmthw.js → aisdk-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-services-acsb2ab5.js → aisdk-5tpnda8e.js} +16 -16
- package/dist/chunks/{location-services-e0x352hd.js → aisdk-62z5zcwv.js} +32 -32
- package/dist/chunks/{location-services-669tq793.js → aisdk-669tq793.js} +1 -1
- package/dist/chunks/{location-services-nx1mz71v.js → aisdk-6fey8c0p.js} +41 -41
- package/dist/chunks/{location-services-s338r0jz.js → aisdk-6h9dznn3.js} +7 -7
- package/dist/chunks/{location-services-6msgmcgs.js → aisdk-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-services-yh9mwy9w.js → aisdk-6skqymyq.js} +27 -27
- package/dist/chunks/{location-services-hfdr1yjj.js → aisdk-6tt5evqq.js} +4 -4
- package/dist/chunks/{location-services-w8xr7nv8.js → aisdk-6vq97qmv.js} +5 -5
- package/dist/chunks/{location-services-c4vtem9y.js → aisdk-71fkwm4x.js} +18 -18
- package/dist/chunks/{location-services-k77hftfd.js → aisdk-72p6bnp4.js} +24 -24
- package/dist/chunks/{location-services-hs11hgz1.js → aisdk-7534kgpw.js} +43 -43
- package/dist/chunks/{location-services-3q180tsg.js → aisdk-7atgh4d8.js} +22 -22
- package/dist/chunks/{location-services-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-services-jwm07f16.js → aisdk-7fyhb82m.js} +5 -5
- package/dist/chunks/{location-services-20t16kv5.js → aisdk-7kwn4p60.js} +46 -46
- package/dist/chunks/{location-services-zf3513pr.js → aisdk-7pt56w61.js} +15 -15
- package/dist/chunks/{location-services-fhtz75pq.js → aisdk-7qc9w1c0.js} +34 -34
- package/dist/chunks/{location-services-6xcmfak7.js → aisdk-7xe0qrds.js} +15 -15
- package/dist/chunks/{location-services-959x3j7n.js → aisdk-88geax4g.js} +9 -9
- package/dist/chunks/{location-services-8d7r5vzw.js → aisdk-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-services-j5tpcpx5.js → aisdk-8ecsra3h.js} +5 -5
- package/dist/chunks/{location-services-xe99ny0v.js → aisdk-8mj7tn8y.js} +15 -15
- package/dist/chunks/{location-services-8p4f9s12.js → aisdk-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-services-eq4zd08d.js → aisdk-8v79jha7.js} +20 -20
- package/dist/chunks/{location-services-rvz4r40v.js → aisdk-8wb5afcq.js} +10 -10
- package/dist/chunks/{location-services-rfe8f7qr.js → aisdk-90er3e6e.js} +37 -37
- package/dist/chunks/{location-services-pt81pzmj.js → aisdk-91f5q3nk.js} +24 -24
- package/dist/chunks/{location-services-8078vm6x.js → aisdk-932pzk7w.js} +1 -1
- package/dist/chunks/{location-services-dahfv0b8.js → aisdk-98bqs6v1.js} +21 -21
- package/dist/chunks/{location-services-ydta7ff5.js → aisdk-9b2v8ddb.js} +28 -28
- package/dist/chunks/{location-services-g0e3ejhr.js → aisdk-9b3szmgb.js} +18 -18
- package/dist/chunks/{location-services-p37cw4rj.js → aisdk-9hn6k4tm.js} +8 -8
- package/dist/chunks/{location-services-bsgcsy6n.js → aisdk-9vjsf365.js} +9 -9
- package/dist/chunks/{location-services-a1bz86dw.js → aisdk-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-services-aaet6srn.js → aisdk-aaet6srn.js} +2 -2
- package/dist/chunks/{location-services-6anwy9fs.js → aisdk-ab9238g2.js} +6 -6
- package/dist/chunks/{location-services-yskaqpbc.js → aisdk-ac1jafr8.js} +25 -25
- package/dist/chunks/{location-services-sa2qr51e.js → aisdk-akpx6pzc.js} +8 -8
- package/dist/chunks/{location-services-a58nmf2f.js → aisdk-appk7fzw.js} +11 -11
- package/dist/chunks/{location-services-qjxfe6zh.js → aisdk-assbnj7g.js} +6 -6
- package/dist/chunks/{location-services-1rpsx04s.js → aisdk-ay48axk9.js} +32 -32
- package/dist/chunks/{location-services-8habrbe1.js → aisdk-b4p40z3j.js} +28 -28
- package/dist/chunks/{location-services-b6gygkdw.js → aisdk-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-services-gbay818y.js → aisdk-bchsbmg9.js} +6 -6
- package/dist/chunks/{location-services-xa8mwyge.js → aisdk-bfw5e3j5.js} +2 -2
- package/dist/chunks/{location-services-7fm0yp7k.js → aisdk-bh3xzmfh.js} +32 -32
- package/dist/chunks/{location-services-zhq6vg7a.js → aisdk-bz85s9hh.js} +1 -1
- package/dist/chunks/{location-services-m4jqfbnh.js → aisdk-c3ts0g06.js} +20 -20
- package/dist/chunks/{location-services-ja6ed9xr.js → aisdk-cave902z.js} +21 -21
- package/dist/chunks/{location-services-6we4q7zk.js → aisdk-cd1v3yav.js} +4 -4
- package/dist/chunks/{location-services-cfpkc3c9.js → aisdk-cfpkc3c9.js} +2 -2
- package/dist/chunks/aisdk-cmv7hf2c.js +65 -0
- package/dist/chunks/{location-services-3tzfttan.js → aisdk-cn4vms6y.js} +37 -37
- package/dist/chunks/{location-services-aamtrqep.js → aisdk-cntxze1n.js} +7 -7
- package/dist/chunks/{location-services-6vk32evd.js → aisdk-cvr7hmec.js} +19 -19
- package/dist/chunks/{location-services-1jryqany.js → aisdk-cy1rc5fj.js} +20 -20
- package/dist/chunks/{location-services-w1xzzgns.js → aisdk-d7x3031z.js} +11 -11
- package/dist/chunks/{location-services-hrkwn6h0.js → aisdk-dh3m1xt2.js} +10 -10
- package/dist/chunks/{location-services-y71avatq.js → aisdk-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-services-xq5zbssz.js → aisdk-dwnm4n7z.js} +88 -88
- package/dist/chunks/{location-services-2ykh22ph.js → aisdk-e6n9wc5j.js} +13 -13
- package/dist/chunks/{location-services-s0hza5ac.js → aisdk-ec87kc5z.js} +4 -4
- package/dist/chunks/{location-services-ef5x83kb.js → aisdk-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-services-5ajfnc04.js → aisdk-ep1wqbx0.js} +22 -22
- package/dist/chunks/{location-services-6semq976.js → aisdk-epdr6g6w.js} +14 -14
- package/dist/chunks/{location-services-etq0c3wd.js → aisdk-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-services-tz2bjj40.js → aisdk-evbgk2k8.js} +5 -5
- package/dist/chunks/{location-services-kzh82faq.js → aisdk-ezb9z1pv.js} +30 -30
- package/dist/chunks/{location-services-gpf1akt4.js → aisdk-f1mg6cbx.js} +8 -8
- package/dist/chunks/{location-services-zee1rnkq.js → aisdk-f73rjn58.js} +4 -4
- package/dist/chunks/{location-services-dz3n6ket.js → aisdk-f7qdh6j2.js} +35 -35
- package/dist/chunks/{location-services-f828m53h.js → aisdk-f828m53h.js} +2 -2
- package/dist/chunks/{location-services-drfpxjgx.js → aisdk-fa7xg5a5.js} +13 -13
- package/dist/chunks/{location-services-j85ebrbn.js → aisdk-fsegns3d.js} +55 -55
- package/dist/chunks/{location-services-ced3yeaf.js → aisdk-ft62j1mr.js} +11 -11
- package/dist/chunks/{location-services-j41a475f.js → aisdk-fv5cfh7k.js} +11 -11
- package/dist/chunks/{location-services-fxbjtjnd.js → aisdk-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-services-pnaxc6j9.js → aisdk-g1sxm558.js} +8 -8
- package/dist/chunks/{location-services-zs51yffv.js → aisdk-g5vndnxm.js} +3 -3
- package/dist/chunks/{location-services-hy61wner.js → aisdk-gb0hjbwp.js} +11 -11
- package/dist/chunks/{location-services-87x3xb46.js → aisdk-gcs9tca4.js} +5 -5
- package/dist/chunks/{location-services-gd4qta3r.js → aisdk-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-services-r2m716tb.js → aisdk-gjwgx2c5.js} +9 -9
- package/dist/chunks/{location-services-8v3c42p4.js → aisdk-gp0dzfj9.js} +7 -7
- package/dist/chunks/{location-services-3f7778ma.js → aisdk-gsk1e5b7.js} +25 -25
- package/dist/chunks/{location-services-88pk7gn3.js → aisdk-gv63wtv4.js} +11 -11
- package/dist/chunks/{location-services-gv6a8nnw.js → aisdk-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-services-5ag325a7.js → aisdk-gxpaa7h4.js} +20 -20
- package/dist/chunks/{location-services-wcrvbbfg.js → aisdk-gy551h6f.js} +11 -11
- package/dist/chunks/{location-services-h03wrkyp.js → aisdk-h03wrkyp.js} +2 -2
- package/dist/chunks/{location-services-h6vf3j39.js → aisdk-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-services-16nqpafv.js → aisdk-hdtnfasj.js} +20 -20
- package/dist/chunks/{location-services-hafv7pha.js → aisdk-hf0zbf8h.js} +10 -10
- package/dist/chunks/{location-services-repb58am.js → aisdk-htjw9qza.js} +4 -4
- package/dist/chunks/{location-services-ftafywpx.js → aisdk-hzzkw0mw.js} +13 -13
- package/dist/chunks/{location-services-kzrz6mk7.js → aisdk-j1qnbarn.js} +11 -11
- package/dist/chunks/{location-services-j56e64zr.js → aisdk-j56e64zr.js} +1 -1
- package/dist/chunks/{location-services-tksejaeh.js → aisdk-j75tdgem.js} +3 -3
- package/dist/chunks/{location-services-36gktzve.js → aisdk-j92qhbm3.js} +2 -2
- package/dist/chunks/{location-services-k3gnzxs0.js → aisdk-jppvw2tx.js} +5 -5
- package/dist/chunks/{location-services-magykp64.js → aisdk-jw80jp6b.js} +4 -4
- package/dist/chunks/{location-services-1qdj8r61.js → aisdk-k06phyrf.js} +4 -4
- package/dist/chunks/{location-services-k3c624dm.js → aisdk-k3c624dm.js} +3 -3
- package/dist/chunks/{location-services-hxx1ax7w.js → aisdk-k3tjvz7j.js} +49 -49
- package/dist/chunks/{location-services-9jjhp2ka.js → aisdk-kaqkvdz7.js} +20 -20
- package/dist/chunks/{location-services-kr67dsen.js → aisdk-kgbp45q5.js} +9 -9
- package/dist/chunks/{location-services-69j91c1q.js → aisdk-kh9sx4kg.js} +8 -8
- package/dist/chunks/{location-services-nng2ktcm.js → aisdk-ky3seynh.js} +2 -2
- package/dist/chunks/{location-services-m3fdjcah.js → aisdk-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-services-qvn2gqcg.js → aisdk-m86w560s.js} +33 -33
- package/dist/chunks/{location-services-amax4ght.js → aisdk-m9nx8vh3.js} +11 -11
- package/dist/chunks/{location-services-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-services-98p7gzxk.js → aisdk-mbw66wwe.js} +6 -6
- package/dist/chunks/{location-services-t5ey53gg.js → aisdk-mdczzxs1.js} +18 -18
- package/dist/chunks/{location-services-vs02wkx2.js → aisdk-mfasrae1.js} +1 -1
- package/dist/chunks/{location-services-2a535hsk.js → aisdk-mft52ta0.js} +30 -30
- package/dist/chunks/aisdk-mg71nkrs.js +26 -0
- package/dist/chunks/{location-services-34hvhtp7.js → aisdk-mp8evstp.js} +14 -14
- package/dist/chunks/aisdk-mw3w0x0k.js +478 -0
- package/dist/chunks/{location-services-k9avtbwf.js → aisdk-mwz6j41z.js} +6 -6
- package/dist/chunks/{location-services-s9gcex8s.js → aisdk-mzdc1wr1.js} +9 -9
- package/dist/chunks/{location-services-h0s6deas.js → aisdk-n2q4qe72.js} +39 -39
- package/dist/chunks/{location-services-9txp4hbw.js → aisdk-n37fzfbd.js} +8 -8
- package/dist/chunks/aisdk-n95b3jav.js +18 -0
- package/dist/chunks/{location-services-dmg16yjh.js → aisdk-na0fnjnh.js} +6 -6
- package/dist/chunks/{location-services-tpsrfwtg.js → aisdk-narpgyzg.js} +17 -17
- package/dist/chunks/{location-services-ax228mh5.js → aisdk-nkgkam60.js} +24 -24
- package/dist/chunks/{location-services-3axme2ba.js → aisdk-np6my297.js} +12 -12
- package/dist/chunks/{location-services-mvex88qa.js → aisdk-npytfamt.js} +11 -11
- package/dist/chunks/{location-services-aygy83kf.js → aisdk-nv2dp8ps.js} +4 -4
- package/dist/chunks/{location-services-7crnfscb.js → aisdk-nvbzy6sc.js} +17 -17
- package/dist/chunks/{location-services-ddc1b1w5.js → aisdk-p0a6103n.js} +24 -24
- package/dist/chunks/{location-services-cj45y46z.js → aisdk-p1cp9498.js} +38 -38
- package/dist/chunks/{location-services-9twmqstx.js → aisdk-p69x3qq6.js} +9 -9
- package/dist/chunks/{location-services-pjvnvgmy.js → aisdk-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-services-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{location-services-b1vd0026.js → aisdk-pt74dzj7.js} +20 -20
- package/dist/chunks/{location-services-sa45wwhj.js → aisdk-pva9fj43.js} +15 -15
- package/dist/chunks/{location-services-132n0e07.js → aisdk-q084w11f.js} +90 -90
- package/dist/chunks/{location-services-439dx3w9.js → aisdk-q5rhn9x0.js} +9 -9
- package/dist/chunks/{location-services-5znk54qx.js → aisdk-q6tyma5m.js} +33 -33
- package/dist/chunks/{location-services-0z1gmn2q.js → aisdk-qdyw34ax.js} +6 -6
- package/dist/chunks/{location-services-6wx8xhdj.js → aisdk-qh5jrqfz.js} +13 -13
- package/dist/chunks/{location-services-var4818b.js → aisdk-qhdc024g.js} +1 -1
- package/dist/chunks/{location-services-w7qw9xwr.js → aisdk-qnb0rh6n.js} +8 -8
- package/dist/chunks/{location-services-qsdy395h.js → aisdk-qsdy395h.js} +1 -1
- package/dist/chunks/{location-services-bphss62d.js → aisdk-rd3pnmmg.js} +43 -43
- package/dist/chunks/{location-services-rdw6cm16.js → aisdk-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-services-3xjrp8vt.js → aisdk-reqtqwwe.js} +21 -21
- package/dist/chunks/{location-services-7knahq77.js → aisdk-rgwpr805.js} +12 -12
- package/dist/chunks/{location-services-r8xr0va3.js → aisdk-rhraev7y.js} +4 -4
- package/dist/chunks/{location-services-s8d7rejh.js → aisdk-s8d7rejh.js} +1 -1
- package/dist/chunks/{location-services-hkfg6fzm.js → aisdk-s8zy8myc.js} +5 -5
- package/dist/chunks/{location-services-pb1eahw5.js → aisdk-sbnsh8k5.js} +8 -8
- package/dist/chunks/{location-services-c6m1n2c7.js → aisdk-sdg3hsn6.js} +36 -36
- package/dist/chunks/{location-services-5yy5v8xs.js → aisdk-sgvrcx4h.js} +8 -8
- package/dist/chunks/{location-services-szjrhb9a.js → aisdk-sm18gw9h.js} +1 -1
- package/dist/chunks/{location-services-w8m4edh1.js → aisdk-stdq9vyg.js} +4 -4
- package/dist/chunks/{location-services-j5m0tr6e.js → aisdk-t01wyw4m.js} +4 -4
- package/dist/chunks/{location-services-1yv162eq.js → aisdk-t9d84gp7.js} +4 -4
- package/dist/chunks/{location-services-tazgh4e4.js → aisdk-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-services-1sg8k3x6.js → aisdk-tbjpesg0.js} +12 -12
- package/dist/chunks/{location-services-89znhe33.js → aisdk-tcezcvh9.js} +4 -4
- package/dist/chunks/{location-services-tdstcens.js → aisdk-tdstcens.js} +1 -1
- package/dist/chunks/{location-services-v6gb7zv2.js → aisdk-tegs1ycp.js} +6 -6
- package/dist/chunks/{location-services-33294r0b.js → aisdk-tfxws9nx.js} +8 -8
- package/dist/chunks/{location-services-6jqerq4j.js → aisdk-tjt6v5nx.js} +20 -20
- package/dist/chunks/{location-services-y022vn7y.js → aisdk-tsqdc71q.js} +18 -18
- package/dist/chunks/{location-services-tvtrv512.js → aisdk-tvtrv512.js} +1 -1
- package/dist/chunks/{location-services-6t298p2h.js → aisdk-twghag3f.js} +12 -12
- package/dist/chunks/{location-services-93c99t7r.js → aisdk-v1qmp7wq.js} +20 -20
- package/dist/chunks/{location-services-es36zed6.js → aisdk-vbfentrr.js} +14 -14
- package/dist/chunks/{location-services-80scg3y3.js → aisdk-vbfgae2j.js} +4 -4
- package/dist/chunks/{location-services-sx1n432n.js → aisdk-ve4pfa0n.js} +4 -4
- package/dist/chunks/{location-services-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{location-services-nzdggpth.js → aisdk-vgspftqv.js} +13 -13
- package/dist/chunks/{location-services-4xhhjths.js → aisdk-vkt5fbj2.js} +8 -8
- package/dist/chunks/{location-services-xfsrjhjb.js → aisdk-vqff8b3j.js} +2 -2
- package/dist/chunks/{location-services-m9wy7qrr.js → aisdk-vyqn3nqs.js} +6 -6
- package/dist/chunks/{location-services-y911dxk0.js → aisdk-vz88fkwm.js} +17 -17
- package/dist/chunks/{location-services-vzcthcp8.js → aisdk-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-services-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-services-e6hmchc5.js → aisdk-wbkyxrgf.js} +5 -5
- package/dist/chunks/{location-services-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{location-services-vf88r308.js → aisdk-wh0jc7gn.js} +13 -13
- package/dist/chunks/{location-services-cg0397kv.js → aisdk-wmxxk3sc.js} +3 -3
- package/dist/chunks/{location-services-qd6rj703.js → aisdk-wv8we0v5.js} +5 -5
- package/dist/chunks/{location-services-5wse32sw.js → aisdk-wxs3we96.js} +18 -18
- package/dist/chunks/{location-services-x1ezjp6w.js → aisdk-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-services-ag0w7sb1.js → aisdk-x74gt3qg.js} +18 -18
- package/dist/chunks/{location-services-vh668qnd.js → aisdk-x7d2t585.js} +14 -14
- package/dist/chunks/{location-services-xxyg89kp.js → aisdk-xawtgtg3.js} +32 -32
- package/dist/chunks/{location-services-drwq78ky.js → aisdk-xfkkasph.js} +4 -4
- package/dist/chunks/{location-services-8srm5xw3.js → aisdk-xgcxmpe2.js} +46 -46
- package/dist/chunks/{location-services-z9szqmxk.js → aisdk-xwdm2w21.js} +27 -27
- package/dist/chunks/{location-services-g23y2d6e.js → aisdk-xwfvenya.js} +10 -10
- package/dist/chunks/{location-services-7w99qc9d.js → aisdk-xxynqx5z.js} +2 -2
- package/dist/chunks/{location-services-be2hac41.js → aisdk-y16p1w2y.js} +9 -9
- package/dist/chunks/{location-services-y1fvbwt7.js → aisdk-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-services-hha0j8te.js → aisdk-y59dcsea.js} +8 -8
- package/dist/chunks/{location-services-f63sy675.js → aisdk-y702y932.js} +22 -22
- package/dist/chunks/{location-services-9eyr8qgw.js → aisdk-ybwbcp2b.js} +9 -9
- package/dist/chunks/{location-services-69q04mfm.js → aisdk-yg36tpc9.js} +27 -27
- package/dist/chunks/{location-services-bdfxp8y4.js → aisdk-ym6cgwqt.js} +1 -1
- package/dist/chunks/{location-services-3f06dy19.js → aisdk-yrh7p4rc.js} +11 -11
- package/dist/chunks/{location-services-yrhqyw5v.js → aisdk-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-services-yrznvahk.js → aisdk-yrznvahk.js} +2 -2
- package/dist/chunks/{location-services-z3w6djs0.js → aisdk-yvk2sn0g.js} +15 -15
- package/dist/chunks/{location-services-m2ytg560.js → aisdk-ywqr9nfr.js} +6 -6
- package/dist/chunks/{location-services-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-services-z63w68vq.js → aisdk-z63w68vq.js} +2 -2
- package/dist/chunks/{location-services-w71gma7k.js → aisdk-z8crshbf.js} +22 -22
- package/dist/chunks/{location-services-w48yskvc.js → aisdk-zbg2y0tv.js} +12 -12
- package/dist/chunks/{location-services-zeh9ct20.js → aisdk-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-services-824w6ej1.js → aisdk-zhxcwtke.js} +8 -8
- package/dist/chunks/{location-services-py1xq93p.js → aisdk-zm1yjvg6.js} +10 -10
- package/dist/chunks/{location-services-zr2ceqn5.js → aisdk-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-services-zxq2ej10.js → aisdk-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-services-nd78smks.js → aisdk-zz4a1676.js} +17 -17
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +82 -82
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- 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 +92 -92
- 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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +107 -107
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +102 -102
- 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 +90 -90
- 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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +357 -357
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +354 -354
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +106 -106
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +328 -328
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +13 -13
- 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 +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +11 -11
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +90 -90
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +79 -79
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +75 -75
- 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 +88 -88
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/location-services-57p3bxwn.js +0 -26
- package/dist/chunks/location-services-6qfj1prg.js +0 -478
- package/dist/chunks/location-services-exny8ayn.js +0 -65
- package/dist/chunks/location-services-gbadjzag.js +0 -4
- package/dist/chunks/location-services-ndg9br84.js +0 -252
- package/dist/chunks/location-services-pf31ssb9.js +0 -18
- /package/dist/chunks/{location-services-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-services-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-services-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-services-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-services-1kg9ymc8.js → aisdk-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-services-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-services-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-services-2axfhc9x.js → aisdk-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-services-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-services-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-services-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{location-services-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-services-3w5fmr99.js → aisdk-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-services-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-services-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-services-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-services-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-services-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-services-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{location-services-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-services-5qd3pb7m.js → aisdk-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-services-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{location-services-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-services-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-services-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{location-services-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-services-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-services-922hggd3.js → aisdk-922hggd3.js} +0 -0
- /package/dist/chunks/{location-services-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-services-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-services-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-services-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-services-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-services-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-services-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-services-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-services-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-services-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-services-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-services-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-services-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-services-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-services-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-services-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{location-services-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-services-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-services-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-services-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-services-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-services-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-services-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-services-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-services-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-services-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-services-fxgpk5d8.js → aisdk-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-services-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-services-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{location-services-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-services-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{location-services-hjbc5kem.js → aisdk-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-services-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{location-services-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-services-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-services-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-services-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-services-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-services-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-services-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-services-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-services-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-services-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-services-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-services-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-services-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-services-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-services-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-services-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-services-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-services-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-services-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-services-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-services-sk3qaz4a.js → aisdk-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-services-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-services-twg0f83k.js → aisdk-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-services-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-services-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-services-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-services-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-services-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-services-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{location-services-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-services-y8cydn3q.js → aisdk-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-services-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-services-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-services-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-services-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_opencode, {
|
|
|
8
8
|
ModelsInput: () => ModelsInput2,
|
|
9
9
|
MoveInput: () => MoveInput2,
|
|
10
10
|
OpenCodeTools: () => exports_opencode,
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin41,
|
|
12
12
|
RenameInput: () => RenameInput2
|
|
13
13
|
});
|
|
14
14
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -64,7 +64,7 @@ var ModelsOutput = Schema.Struct({
|
|
|
64
64
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
65
65
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
66
66
|
});
|
|
67
|
-
var
|
|
67
|
+
var Plugin41 = {
|
|
68
68
|
id: "opencode.tools",
|
|
69
69
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
70
70
|
const hook = (event) => Effect.sync(() => {
|
|
@@ -161,4 +161,4 @@ var Plugin45 = {
|
|
|
161
161
|
})
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export { RenameInput2, MoveInput2, ModelsInput2,
|
|
164
|
+
export { RenameInput2, MoveInput2, ModelsInput2, Plugin41, exports_opencode };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-stdq9vyg.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Event17
|
|
7
|
+
} from "./aisdk-9b2v8ddb.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-0he4gxhe.js";
|
|
12
12
|
import {
|
|
13
13
|
ID13,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-b4p40z3j.js";
|
|
17
17
|
import {
|
|
18
18
|
ID4,
|
|
19
|
-
|
|
19
|
+
Input13,
|
|
20
20
|
Response2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-2xn2vpwj.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
54
54
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
55
55
|
function oauth(http) {
|
|
56
56
|
return {
|
|
57
|
-
integrationID:
|
|
57
|
+
integrationID: ID14.make("opencode"),
|
|
58
58
|
method: {
|
|
59
59
|
id: methodID,
|
|
60
60
|
type: "oauth",
|
|
@@ -134,7 +134,7 @@ var OpencodePlugin2 = define({
|
|
|
134
134
|
providers.update(providerID, (provider) => {
|
|
135
135
|
if (source && source.provider !== provider)
|
|
136
136
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
137
|
-
provider.integrationID =
|
|
137
|
+
provider.integrationID = ID14.make("opencode");
|
|
138
138
|
if (item.canonical !== undefined)
|
|
139
139
|
provider.canonical = item.canonical;
|
|
140
140
|
if (item.name !== undefined)
|
|
@@ -250,7 +250,7 @@ var OpencodePlugin2 = define({
|
|
|
250
250
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
251
251
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
252
252
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
253
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
253
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
254
254
|
query: input.query,
|
|
255
255
|
providerID: descriptor.providerID
|
|
256
256
|
}));
|
|
@@ -271,7 +271,7 @@ var OpencodePlugin2 = define({
|
|
|
271
271
|
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
272
272
|
});
|
|
273
273
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
274
|
-
yield* bus.subscribe(
|
|
274
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
275
275
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
276
276
|
})
|
|
277
277
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/protected.ts
|
|
6
6
|
var exports_protected = {};
|
|
7
7
|
__export(exports_protected, {
|
|
8
8
|
Protected: () => exports_protected,
|
|
9
9
|
isHome: () => isHome2,
|
|
10
|
-
names: () =>
|
|
10
|
+
names: () => names3,
|
|
11
11
|
paths: () => paths2
|
|
12
12
|
});
|
|
13
13
|
import os from "os";
|
|
@@ -41,7 +41,7 @@ var DARWIN_LIBRARY = [
|
|
|
41
41
|
];
|
|
42
42
|
var DARWIN_ROOT = ["/.DocumentRevisions-V100", "/.Spotlight-V100", "/.Trashes", "/.fseventsd"];
|
|
43
43
|
var WIN32_HOME = ["AppData", "Downloads", "Desktop", "Documents", "Pictures", "Music", "Videos", "OneDrive"];
|
|
44
|
-
function
|
|
44
|
+
function names3() {
|
|
45
45
|
if (process.platform === "darwin")
|
|
46
46
|
return new Set(DARWIN_HOME);
|
|
47
47
|
if (process.platform === "win32")
|
|
@@ -60,4 +60,4 @@ function paths2() {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export { isHome2,
|
|
63
|
+
export { isHome2, names3, paths2, exports_protected };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service60,
|
|
10
|
+
node: () => node64
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service60 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node64 = LayerNode.unbound(Service60, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service60, node64, exports_service2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID12,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-gsk1e5b7.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service50
|
|
7
|
+
} from "./aisdk-7kwn4p60.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-mbw66wwe.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/lmstudio.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -31,12 +31,12 @@ var RemoteModel = Schema.Struct({
|
|
|
31
31
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
32
32
|
var discovery = new Map;
|
|
33
33
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
34
|
-
function
|
|
34
|
+
function make6(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
35
35
|
return define({
|
|
36
36
|
id: "opencode.provider.lmstudio",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
38
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service50;
|
|
40
40
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
41
41
|
const loaded = { models: [], hash: "[]" };
|
|
42
42
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -125,7 +125,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var LMStudioPlugin2 =
|
|
128
|
+
var LMStudioPlugin2 = make6();
|
|
129
129
|
function configured(entries, origin) {
|
|
130
130
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
131
131
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -142,4 +142,4 @@ function configured(entries, origin) {
|
|
|
142
142
|
return { baseURL, apiKey, endpoint: url.toString() };
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export {
|
|
145
|
+
export { make6, LMStudioPlugin2 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-4p8rm3hf.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-stdq9vyg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service60
|
|
9
|
+
} from "./aisdk-tegs1ycp.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-922hggd3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID5,
|
|
15
|
+
Service42
|
|
16
|
+
} from "./aisdk-62z5zcwv.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionMessage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./aisdk-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./aisdk-mwz6j41z.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./aisdk-a1bz86dw.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/session/revert.ts
|
|
34
34
|
var exports_revert = {};
|
|
@@ -42,12 +42,12 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
45
|
+
const instances = yield* Service60;
|
|
46
46
|
const database = yield* Service83;
|
|
47
47
|
const bus = yield* Service82;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service42;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
77
|
+
const instances = yield* Service60;
|
|
78
78
|
const bus = yield* Service82;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service42;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID5.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service54,
|
|
8
|
+
node58
|
|
9
|
+
} from "./aisdk-1ee9xjts.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-8d7r5vzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
19
19
|
__export(exports_ripgrep, {
|
|
20
|
-
Error: () =>
|
|
20
|
+
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service25,
|
|
24
|
+
node: () => node28
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
|
|
|
46
46
|
});
|
|
47
47
|
var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Error2 extends Schema.TaggedError()("Ripgrep.Error", {
|
|
50
50
|
message: Schema.String,
|
|
51
51
|
cause: Schema.optional(Schema.Defect())
|
|
52
52
|
}) {
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service25 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
|
-
var failure = (message, cause) => new
|
|
63
|
+
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service54;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
90
90
|
return code === 1 ? [] : rows;
|
|
91
91
|
}));
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
|
-
return abortable.pipe(Effect.mapError((cause) => cause instanceof
|
|
93
|
+
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service25.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node28 = makeLocationNode({ service: Service25, layer, deps: [node58, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { Error2, InvalidPatternError2, Service25, node28, exports_ripgrep };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_TOTAL_PATCH_BYTES2,
|
|
10
10
|
emptyPatch2,
|
|
11
11
|
chunksByFile2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-tazgh4e4.js";
|
|
13
13
|
import {
|
|
14
14
|
gitExecutable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-ef5x83kb.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/git.ts
|
|
21
21
|
var exports_git3 = {};
|
|
@@ -23,11 +23,11 @@ __export(exports_git3, {
|
|
|
23
23
|
Git: () => exports_git3,
|
|
24
24
|
OperationError: () => OperationError3,
|
|
25
25
|
Repository: () => Repository2,
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service77,
|
|
27
27
|
TreeID: () => TreeID2,
|
|
28
28
|
Worktree: () => Worktree2,
|
|
29
29
|
WorktreeError: () => WorktreeError2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node81
|
|
31
31
|
});
|
|
32
32
|
import path from "path";
|
|
33
33
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -93,9 +93,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service77 extends Context.Service()("@opencode/Git") {
|
|
97
97
|
}
|
|
98
|
-
var layer = Layer.effect(
|
|
98
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
100
|
const proc = yield* AppProcess.Service;
|
|
101
101
|
const locks = makeUnsafe2();
|
|
@@ -419,7 +419,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
419
419
|
kind: index === 0 ? "main" : "linked"
|
|
420
420
|
}));
|
|
421
421
|
});
|
|
422
|
-
return
|
|
422
|
+
return Service77.of({
|
|
423
423
|
repo: { discover, clone, create },
|
|
424
424
|
remote: { get: remote },
|
|
425
425
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -435,7 +435,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}));
|
|
438
|
-
var
|
|
438
|
+
var node81 = makeGlobalNode({ service: Service77, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
439
439
|
function run(cwd, proc, args) {
|
|
440
440
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
441
441
|
}
|
|
@@ -463,4 +463,4 @@ function resolvePath(cwd, value) {
|
|
|
463
463
|
return path.resolve(cwd, normalized);
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
466
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service77, node81, exports_git3 };
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service82,
|
|
4
4
|
node86
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-stdq9vyg.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./aisdk-hf0zbf8h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-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: () => Event20,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service79,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node83,
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -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 Service79 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event20 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -56,7 +56,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
56
56
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
57
57
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var resolve4 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
60
60
|
const manifest = yield* inspect2(input.origin);
|
|
61
61
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
62
62
|
});
|
|
@@ -75,9 +75,9 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service80;
|
|
81
81
|
const bus = yield* Service82;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event20.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service79.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event20.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event20.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node83 = makeGlobalNode({ service: Service79, layer, deps: [httpClient, node84, node86] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service79, Event20, inspect2, resolve4, node83, exports_wellknown };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-4dgbcxzg.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-stdq9vyg.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./aisdk-9b2v8ddb.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-0he4gxhe.js";
|
|
15
15
|
import {
|
|
16
16
|
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service70
|
|
20
|
+
} from "./aisdk-b4p40z3j.js";
|
|
21
21
|
import {
|
|
22
22
|
ID12
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-gsk1e5b7.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./aisdk-ywqr9nfr.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-fv5cfh7k.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/github-copilot.ts
|
|
33
33
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
59
59
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
60
60
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
61
61
|
var oauth = (app) => ({
|
|
62
|
-
integrationID:
|
|
62
|
+
integrationID: ID14.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -157,7 +157,7 @@ var oauth = (app) => ({
|
|
|
157
157
|
var GithubCopilotPlugin2 = define({
|
|
158
158
|
id: "opencode.provider.github.copilot",
|
|
159
159
|
effect: Effect.fn(function* (ctx) {
|
|
160
|
-
const providers = yield*
|
|
160
|
+
const providers = yield* Service70;
|
|
161
161
|
const bus = yield* Service82;
|
|
162
162
|
const loading = Semaphore.makeUnsafe(1);
|
|
163
163
|
const loaded = {};
|
|
@@ -221,7 +221,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
224
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
225
225
|
yield* refresh().pipe(Effect.forkScoped);
|
|
226
226
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
227
227
|
if (evt.model.providerID !== ID13.githubCopilot)
|