@opencode/core 2.0.22 → 2.0.24
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{instruction-discovery-4rr4p9ms.js → repository-00e0wh3q.js} +24 -24
- package/dist/chunks/{instruction-discovery-772hnq51.js → repository-012g15cx.js} +13 -13
- package/dist/chunks/{instruction-discovery-qyc0y5ej.js → repository-042aawn8.js} +16 -16
- package/dist/chunks/{instruction-discovery-67mhc6gs.js → repository-05t95569.js} +19 -19
- package/dist/chunks/{instruction-discovery-s4r1cmp3.js → repository-067895h7.js} +20 -20
- package/dist/chunks/{instruction-discovery-rqkavtkg.js → repository-0f0pgr2e.js} +3 -3
- package/dist/chunks/{instruction-discovery-gd7r64mz.js → repository-0g25qkkf.js} +11 -11
- package/dist/chunks/{instruction-discovery-na0cega3.js → repository-0h1qn0y5.js} +10 -10
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → repository-0j77ygfz.js} +6 -6
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → repository-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-5mxct2xg.js → repository-0qpq6ar5.js} +13 -13
- package/dist/chunks/{instruction-discovery-s225zym4.js → repository-0qqvk1tp.js} +17 -17
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → repository-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-1vnjqps3.js → repository-16558gs3.js} +46 -46
- package/dist/chunks/{instruction-discovery-rhraev7y.js → repository-1acjjqhc.js} +4 -4
- package/dist/chunks/{instruction-discovery-73tb2d7t.js → repository-1bbkgx8g.js} +3 -3
- package/dist/chunks/{instruction-discovery-r4akt23v.js → repository-1cw3fj19.js} +3 -3
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → repository-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-1dvck2a7.js → repository-1dvck2a7.js} +2 -2
- package/dist/chunks/{instruction-discovery-fqtvmpfq.js → repository-1gfgk62c.js} +8 -8
- package/dist/chunks/{instruction-discovery-qs2rp835.js → repository-1vvm3xv7.js} +11 -11
- package/dist/chunks/{instruction-discovery-wbx60fzd.js → repository-1wb0x8n3.js} +5 -5
- package/dist/chunks/{instruction-discovery-g259vpc3.js → repository-23294nz8.js} +26 -26
- package/dist/chunks/{instruction-discovery-wszd5dmy.js → repository-2455wr4j.js} +17 -16
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → repository-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → repository-2ccvkpx1.js} +2 -2
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → repository-2k8khapm.js} +5 -5
- package/dist/chunks/{instruction-discovery-vn72gsba.js → repository-2m8jawch.js} +4 -4
- package/dist/chunks/{instruction-discovery-mqw81mrh.js → repository-2t9hnq90.js} +10 -10
- package/dist/chunks/{instruction-discovery-96c14hr5.js → repository-2texf5vf.js} +22 -22
- package/dist/chunks/{instruction-discovery-a56fhhr2.js → repository-2tyga0yy.js} +28 -60
- package/dist/chunks/{instruction-discovery-a5jrrkeg.js → repository-2wredcz9.js} +20 -20
- package/dist/chunks/{instruction-discovery-01wcheh0.js → repository-32xj3ztx.js} +62 -83
- package/dist/chunks/{instruction-discovery-wxyynt4w.js → repository-3556dn8t.js} +1 -1
- package/dist/chunks/repository-3b3navdj.js +253 -0
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → repository-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → repository-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → repository-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-sk3qaz4a.js → repository-3t0ybcrp.js} +58 -20
- package/dist/chunks/{instruction-discovery-4tgz421y.js → repository-3t7hfzt0.js} +30 -19
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → repository-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-cyk1kg6z.js → repository-3vy5pcbx.js} +33 -33
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → repository-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-qxmvdacm.js → repository-4344f0hm.js} +34 -34
- package/dist/chunks/repository-45085rbj.js +26 -0
- package/dist/chunks/repository-46tr0mr7.js +126 -0
- package/dist/chunks/{instruction-discovery-rz6t0wqc.js → repository-47phkfqm.js} +47 -47
- package/dist/chunks/{instruction-discovery-0yrmzdme.js → repository-4azg6a58.js} +16 -11
- package/dist/chunks/{instruction-discovery-3z218dsj.js → repository-4c5k237e.js} +39 -44
- package/dist/chunks/{instruction-discovery-k6hcwg2z.js → repository-4cw36es0.js} +9 -9
- package/dist/chunks/{instruction-discovery-axmmtzpw.js → repository-4ege8dpt.js} +19 -19
- package/dist/chunks/{instruction-discovery-bh3q4eyg.js → repository-4y69v0zr.js} +13 -13
- package/dist/chunks/{instruction-discovery-gw7cjrad.js → repository-4z58m4b4.js} +4 -4
- package/dist/chunks/{instruction-discovery-hzktwm2m.js → repository-4z7pkycv.js} +19 -19
- package/dist/chunks/{instruction-discovery-54ma36ye.js → repository-54ma36ye.js} +1 -1
- package/dist/chunks/{instruction-discovery-hjxrfacw.js → repository-56a9smke.js} +13 -13
- package/dist/chunks/{instruction-discovery-33w4ejhs.js → repository-56gdpj1q.js} +6 -6
- package/dist/chunks/{instruction-discovery-aszn3zwx.js → repository-56gyfky0.js} +5 -5
- package/dist/chunks/{instruction-discovery-w2h15q85.js → repository-57myy5jh.js} +5 -5
- package/dist/chunks/{instruction-discovery-5daktx2q.js → repository-5daktx2q.js} +1 -1
- package/dist/chunks/repository-5ej07zgb.js +143 -0
- package/dist/chunks/{instruction-discovery-vk0h33mx.js → repository-5k54pn5m.js} +10 -10
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → repository-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-93pbq578.js → repository-5ng375bv.js} +28 -28
- package/dist/chunks/{instruction-discovery-cr59q9qa.js → repository-5pptr25h.js} +40 -25
- package/dist/chunks/{instruction-discovery-a90g57x6.js → repository-5r637m3f.js} +57 -57
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → repository-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-vc32h82s.js → repository-5t80mpw4.js} +18 -18
- package/dist/chunks/{instruction-discovery-nrjg26ec.js → repository-5w6ne2rj.js} +11 -11
- package/dist/chunks/{instruction-discovery-d4k4eg4n.js → repository-68ga000j.js} +47 -47
- package/dist/chunks/{instruction-discovery-62s7jehk.js → repository-6b1pjwt3.js} +5 -5
- package/dist/chunks/{instruction-discovery-hjbc5kem.js → repository-6q2bdcd1.js} +4 -1
- package/dist/chunks/{instruction-discovery-an4n7p46.js → repository-6r4hjhnf.js} +20 -21
- package/dist/chunks/{instruction-discovery-6644et9y.js → repository-6x4qebe7.js} +33 -33
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → repository-6xb47vfp.js} +4 -2
- package/dist/chunks/{instruction-discovery-71az546q.js → repository-71az546q.js} +2 -2
- package/dist/chunks/{instruction-discovery-hjryqbzv.js → repository-77apbbcp.js} +45 -45
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → repository-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-87bs7bte.js → repository-7c08hygz.js} +11 -11
- package/dist/chunks/{instruction-discovery-xmh85kzb.js → repository-7d05dvcz.js} +11 -11
- package/dist/chunks/{instruction-discovery-fxvwdnb4.js → repository-7wnc14t4.js} +44 -21
- package/dist/chunks/{instruction-discovery-ysyp8d4a.js → repository-7z6z4pna.js} +21 -21
- package/dist/chunks/{instruction-discovery-84txncab.js → repository-84txncab.js} +1 -1
- package/dist/chunks/{instruction-discovery-kn7rctz9.js → repository-89za3yyg.js} +9 -9
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → repository-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-yppg54y4.js → repository-8hjmwb77.js} +13 -13
- package/dist/chunks/{instruction-discovery-fah0stq9.js → repository-8kys6q5k.js} +9 -9
- package/dist/chunks/{instruction-discovery-m0r31qfn.js → repository-8tsdq50x.js} +4 -4
- package/dist/chunks/{instruction-discovery-hehaxqkv.js → repository-96ctqc5x.js} +4 -4
- package/dist/chunks/{instruction-discovery-5sv8fqdt.js → repository-9815d8pv.js} +45 -35
- package/dist/chunks/{instruction-discovery-9e5bzkjp.js → repository-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instruction-discovery-h53acpwd.js → repository-9mhtj97w.js} +16 -16
- package/dist/chunks/{instruction-discovery-fajwdt4h.js → repository-9mxexfbd.js} +14 -14
- package/dist/chunks/{instruction-discovery-s48x4bgh.js → repository-9s1pr29s.js} +41 -41
- package/dist/chunks/{instruction-discovery-th1qq6gc.js → repository-9yaf30yb.js} +35 -35
- package/dist/chunks/{instruction-discovery-mjv4tm51.js → repository-9yxvhatz.js} +4 -4
- package/dist/chunks/{instruction-discovery-79wzcjsa.js → repository-a199weyn.js} +6 -6
- package/dist/chunks/{instruction-discovery-6hh8tjw2.js → repository-a2ew8a62.js} +4 -4
- package/dist/chunks/{instruction-discovery-arxkpe44.js → repository-a6rczh0a.js} +60 -40
- package/dist/chunks/{instruction-discovery-1ajc00mn.js → repository-a7cd87s2.js} +58 -58
- package/dist/chunks/{instruction-discovery-aaet6srn.js → repository-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-068serwz.js → repository-addxnjmp.js} +4 -4
- package/dist/chunks/{instruction-discovery-zk4rm6sg.js → repository-ajh7mqgq.js} +20 -20
- package/dist/chunks/{instruction-discovery-fqzyqcjh.js → repository-aqryd466.js} +24 -24
- package/dist/chunks/{instruction-discovery-xjbrwz9c.js → repository-b20bdvd4.js} +12 -12
- package/dist/chunks/{instruction-discovery-80t7gq44.js → repository-b3cm3psy.js} +10 -7
- package/dist/chunks/{instruction-discovery-17z9v3bw.js → repository-b5f9cqb8.js} +33 -29
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → repository-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-ksgw4q3t.js → repository-b751st24.js} +3 -3
- package/dist/chunks/{instruction-discovery-c8g8cdht.js → repository-bzadqhw2.js} +4 -4
- package/dist/chunks/{instruction-discovery-qj8eh1ht.js → repository-c20khjev.js} +21 -21
- package/dist/chunks/{instruction-discovery-eqkxs06z.js → repository-c8bydgjz.js} +6 -6
- package/dist/chunks/{instruction-discovery-7e0zw79e.js → repository-cb3fgacg.js} +29 -29
- package/dist/chunks/{instruction-discovery-j4q93wg3.js → repository-ce3pkz8w.js} +5 -5
- package/dist/chunks/{instruction-discovery-b4twkq7r.js → repository-cfsekr6v.js} +6 -6
- package/dist/chunks/{instruction-discovery-caxch348.js → repository-chyvjp63.js} +12 -12
- package/dist/chunks/{instruction-discovery-r01t9b5y.js → repository-cjwramev.js} +4 -4
- package/dist/chunks/{instruction-discovery-ntngab6e.js → repository-cs63tcvs.js} +20 -10
- package/dist/chunks/{instruction-discovery-cwa6csj7.js → repository-d4he2qe1.js} +9 -9
- package/dist/chunks/{instruction-discovery-hn87b5yq.js → repository-dbp4m4ge.js} +33 -33
- package/dist/chunks/{instruction-discovery-fnwnhbfk.js → repository-dfcrteyq.js} +13 -13
- package/dist/chunks/{instruction-discovery-txp0vmzz.js → repository-dp8mmgq4.js} +15 -15
- package/dist/chunks/{instruction-discovery-dpkg50ah.js → repository-dpkg50ah.js} +1 -1
- package/dist/chunks/{instruction-discovery-53eqz1v2.js → repository-drnf6xwf.js} +2 -2
- package/dist/chunks/{instruction-discovery-yydx669n.js → repository-dt6m3qwv.js} +18 -18
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → repository-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-xw25vat5.js → repository-ecwx0042.js} +13 -13
- package/dist/chunks/{instruction-discovery-yphk03p8.js → repository-ef2cw19s.js} +9 -9
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → repository-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-ckf8nxjz.js → repository-embw8kgh.js} +4 -4
- package/dist/chunks/{instruction-discovery-38p5t189.js → repository-eqh5fpv6.js} +11 -11
- package/dist/chunks/{instruction-discovery-dn5164wf.js → repository-erq8vxjr.js} +3 -3
- package/dist/chunks/{instruction-discovery-ywxndyv1.js → repository-espax8zg.js} +4 -4
- package/dist/chunks/{instruction-discovery-75p81wsx.js → repository-etdaqrbr.js} +30 -30
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → repository-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-70f73jf1.js → repository-f6sbv01c.js} +47 -46
- package/dist/chunks/{instruction-discovery-6ehccv3h.js → repository-f8tnf7f1.js} +20 -25
- package/dist/chunks/{instruction-discovery-wvmj1et3.js → repository-f8xdbq78.js} +9 -9
- package/dist/chunks/{instruction-discovery-x8pk0y4v.js → repository-fj3b7143.js} +42 -42
- package/dist/chunks/{instruction-discovery-eq8x7ha8.js → repository-fy3w4x98.js} +31 -39
- package/dist/chunks/{instruction-discovery-h3rm5wyc.js → repository-fy698pgn.js} +13 -13
- package/dist/chunks/{instruction-discovery-yzzqahvy.js → repository-g34b934z.js} +22 -22
- package/dist/chunks/repository-g4nj3be3.js +507 -0
- package/dist/chunks/repository-g50bcqhp.js +43 -0
- package/dist/chunks/{instruction-discovery-g5w8qwbj.js → repository-g5w8qwbj.js} +1 -1
- package/dist/chunks/{instruction-discovery-nwb3b15q.js → repository-g69c5a8v.js} +14 -18
- package/dist/chunks/{instruction-discovery-gqawmzqm.js → repository-gc135ar8.js} +8 -8
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → repository-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-76jv6ta8.js → repository-gkcjs2dn.js} +13 -13
- package/dist/chunks/{instruction-discovery-r57kss4c.js → repository-gpng080p.js} +32 -32
- package/dist/chunks/{instruction-discovery-qgr4tws1.js → repository-gry8sgkd.js} +15 -15
- package/dist/chunks/{instruction-discovery-ved7ma53.js → repository-gy4662d6.js} +9 -9
- package/dist/chunks/{instruction-discovery-b0t1fydp.js → repository-h16n41p4.js} +20 -20
- package/dist/chunks/{instruction-discovery-h2b79v29.js → repository-h2b79v29.js} +2 -2
- package/dist/chunks/{instruction-discovery-x74ax8b2.js → repository-h2yw0gk4.js} +20 -20
- package/dist/chunks/{instruction-discovery-3bss0zm1.js → repository-h4jx6m0r.js} +14 -14
- package/dist/chunks/{instruction-discovery-nxq54803.js → repository-h4p4pa57.js} +11 -11
- package/dist/chunks/{instruction-discovery-nnxtdpka.js → repository-h6c2yg5r.js} +8 -8
- package/dist/chunks/{instruction-discovery-qtkea077.js → repository-h6qw898r.js} +11 -11
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → repository-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-7fx6jza6.js → repository-h6yzxz9r.js} +17 -17
- package/dist/chunks/{instruction-discovery-chamsvbn.js → repository-hdjgtqrb.js} +33 -33
- package/dist/chunks/{instruction-discovery-6wqmdryt.js → repository-hkgfm0m5.js} +24 -24
- package/dist/chunks/{instruction-discovery-vpw3bjrj.js → repository-hp7m3mgg.js} +28 -28
- package/dist/chunks/{instruction-discovery-7je2rhvj.js → repository-hw3ewgqj.js} +11 -11
- package/dist/chunks/{instruction-discovery-vj991bdt.js → repository-j2htzqze.js} +2 -2
- package/dist/chunks/{instruction-discovery-098a7yv1.js → repository-j3pg2mx4.js} +3 -3
- package/dist/chunks/{instruction-discovery-j56e64zr.js → repository-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-y56ehv6b.js → repository-j58c5xyq.js} +9 -9
- package/dist/chunks/{instruction-discovery-kgxgq8c4.js → repository-jnevnthy.js} +25 -25
- package/dist/chunks/{instruction-discovery-jqh9b0xq.js → repository-jqh9b0xq.js} +1 -1
- package/dist/chunks/{instruction-discovery-exnynncn.js → repository-k02x6tcx.js} +30 -30
- package/dist/chunks/{instruction-discovery-7fvn2yaq.js → repository-k37ga4vh.js} +13 -9
- package/dist/chunks/{instruction-discovery-srq8z0b0.js → repository-k70p9jzb.js} +9 -9
- package/dist/chunks/{instruction-discovery-b0xx1bw1.js → repository-kfj4fg87.js} +5 -5
- package/dist/chunks/{instruction-discovery-ccwzr35z.js → repository-kxam66j6.js} +13 -13
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → repository-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-b65pgdb7.js → repository-m44fkk4m.js} +18 -11
- package/dist/chunks/{instruction-discovery-4gksvbnk.js → repository-m993mvxq.js} +177 -177
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → repository-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-768hztz0.js → repository-mfct962c.js} +28 -28
- package/dist/chunks/{instruction-discovery-qg6jkzae.js → repository-mfmqp3ds.js} +43 -43
- package/dist/chunks/{instruction-discovery-rttzrg3r.js → repository-mjqndqed.js} +12 -12
- package/dist/chunks/{instruction-discovery-jpcc9kth.js → repository-mn0942hp.js} +24 -24
- package/dist/chunks/{instruction-discovery-s0ptdndk.js → repository-mpd66srn.js} +1 -1
- package/dist/chunks/{instruction-discovery-hz0q9sdq.js → repository-mxr1v1s0.js} +8 -8
- package/dist/chunks/{instruction-discovery-93hpb89x.js → repository-my4zabxr.js} +3 -3
- package/dist/chunks/{instruction-discovery-c9qfs3nh.js → repository-nszdq9jy.js} +78 -78
- package/dist/chunks/{instruction-discovery-wwsveqr1.js → repository-ntaqe8vs.js} +21 -21
- package/dist/chunks/{instruction-discovery-gt8knnyb.js → repository-ntbz9wjc.js} +8 -8
- package/dist/chunks/{instruction-discovery-dv1qgsyq.js → repository-p42hj8p8.js} +8 -8
- package/dist/chunks/{instruction-discovery-5ch8te7e.js → repository-p5ev1zz5.js} +9 -9
- package/dist/chunks/{instruction-discovery-fwq9htr3.js → repository-pe71rtbx.js} +11 -11
- package/dist/chunks/{instruction-discovery-w9p1c293.js → repository-pg4zag0e.js} +24 -24
- package/dist/chunks/{instruction-discovery-6a5ag3jq.js → repository-pgze7171.js} +5 -5
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → repository-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-1q5zb881.js → repository-pk7hbv6p.js} +24 -132
- package/dist/chunks/{instruction-discovery-pknna89w.js → repository-pknna89w.js} +1 -1
- package/dist/chunks/repository-prjw6x41.js +31 -0
- package/dist/chunks/{instruction-discovery-2daza0p7.js → repository-q0cdrezg.js} +14 -14
- package/dist/chunks/{instruction-discovery-qdyk8phn.js → repository-q6vgfyay.js} +6 -6
- package/dist/chunks/{instruction-discovery-36cgxzxf.js → repository-q76xcmv9.js} +16 -16
- package/dist/chunks/{instruction-discovery-4d8yn3gb.js → repository-q7jxq9y7.js} +20 -20
- package/dist/chunks/{instruction-discovery-2yez9773.js → repository-q7ngdz78.js} +24 -24
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → repository-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-n8vdnqrc.js → repository-qne3fa44.js} +5 -5
- package/dist/chunks/{instruction-discovery-qsdy395h.js → repository-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-cc4mqy7q.js → repository-qv02qg64.js} +12 -6
- package/dist/chunks/{instruction-discovery-k3c624dm.js → repository-qxjc9qry.js} +4 -4
- package/dist/chunks/{instruction-discovery-vm2gnf4v.js → repository-qy0n8417.js} +26 -26
- package/dist/chunks/{instruction-discovery-m58kmhef.js → repository-r3c58j5g.js} +6 -9
- package/dist/chunks/{instruction-discovery-e3bkmxas.js → repository-rb8xm6cm.js} +11 -11
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → repository-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-21201d4m.js → repository-rjfypheq.js} +27 -27
- package/dist/chunks/{instruction-discovery-bc819vt5.js → repository-rjsk0n41.js} +11 -11
- package/dist/chunks/{instruction-discovery-8faykdbn.js → repository-rk3ekeb4.js} +5 -5
- package/dist/chunks/{instruction-discovery-jw34hpx6.js → repository-rm4s95e7.js} +79 -79
- package/dist/chunks/{instruction-discovery-0n82x6dt.js → repository-rn938jk3.js} +39 -39
- package/dist/chunks/{instruction-discovery-geswxttb.js → repository-rpp7c75e.js} +48 -48
- package/dist/chunks/{instruction-discovery-4a973s6x.js → repository-s4075y1x.js} +5 -5
- package/dist/chunks/{instruction-discovery-42h9518d.js → repository-s8qvywtq.js} +14 -14
- package/dist/chunks/{instruction-discovery-jvy07h1s.js → repository-s8v3amej.js} +1 -1
- package/dist/chunks/{instruction-discovery-7ws0qf92.js → repository-s9nwmxxs.js} +29 -29
- package/dist/chunks/{instruction-discovery-h9zw7x04.js → repository-srhj5f56.js} +11 -11
- package/dist/chunks/{instruction-discovery-034ce5nj.js → repository-t5483b9c.js} +4 -4
- package/dist/chunks/{instruction-discovery-9t7a50xb.js → repository-t550f9t1.js} +4 -4
- package/dist/chunks/{instruction-discovery-3gc4y8jw.js → repository-t7wcnk30.js} +9 -9
- package/dist/chunks/{instruction-discovery-fagw50gs.js → repository-t7y8x8j8.js} +16 -16
- package/dist/chunks/{instruction-discovery-kgr5617j.js → repository-t8n7ymvq.js} +66 -46
- package/dist/chunks/{instruction-discovery-b1f75b2t.js → repository-tarna68p.js} +9 -9
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → repository-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-8sesv03m.js → repository-tbs2jyb2.js} +7 -7
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → repository-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-c5c0bz0t.js → repository-tdpndm1c.js} +5 -5
- package/dist/chunks/{instruction-discovery-tdstcens.js → repository-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-ab44fxfx.js → repository-tg6e69q8.js} +5 -5
- package/dist/chunks/{instruction-discovery-pzxge5ds.js → repository-tgah08rb.js} +30 -30
- package/dist/chunks/{instruction-discovery-9prspse7.js → repository-tk5m56y0.js} +13 -13
- package/dist/chunks/{instruction-discovery-7wtms9gt.js → repository-tzy9a5tv.js} +30 -30
- package/dist/chunks/{instruction-discovery-adrzke39.js → repository-v0es1rhs.js} +9 -9
- package/dist/chunks/{instruction-discovery-p5pxx3ht.js → repository-ve1j3q85.js} +15 -15
- package/dist/chunks/{instruction-discovery-veqvce7d.js → repository-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-b2nc1zae.js → repository-vngdzw63.js} +19 -19
- package/dist/chunks/{instruction-discovery-0xcdhwc5.js → repository-vqkmcgyv.js} +3 -3
- package/dist/chunks/{instruction-discovery-5mmejq10.js → repository-vt8dt6j6.js} +30 -30
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → repository-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → repository-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-609c7rjf.js → repository-w5ystqj3.js} +5 -5
- package/dist/chunks/{instruction-discovery-x5k8pkz3.js → repository-w6gqnbcy.js} +3 -3
- package/dist/chunks/{instruction-discovery-g6pt2ykv.js → repository-w7a2abxy.js} +17 -17
- package/dist/chunks/{instruction-discovery-kjcere04.js → repository-wb70vhte.js} +11 -11
- package/dist/chunks/{instruction-discovery-wd87259q.js → repository-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-3j0eccra.js → repository-wnfszx78.js} +10 -10
- package/dist/chunks/{instruction-discovery-9vjnmhkc.js → repository-wnh11861.js} +15 -15
- package/dist/chunks/{instruction-discovery-fxt23bak.js → repository-x4k83k5f.js} +11 -11
- package/dist/chunks/{instruction-discovery-8r9kvmb6.js → repository-xhv84ab7.js} +25 -25
- package/dist/chunks/{instruction-discovery-xkntkrq7.js → repository-xkntkrq7.js} +2 -2
- package/dist/chunks/{instruction-discovery-br0fskr5.js → repository-xmy45d6e.js} +20 -20
- package/dist/chunks/{instruction-discovery-e709npfq.js → repository-xpwv3d90.js} +22 -22
- package/dist/chunks/{instruction-discovery-qnet8f1y.js → repository-xvvw76kz.js} +7 -7
- package/dist/chunks/{instruction-discovery-d737nyfv.js → repository-y16p1w2y.js} +9 -9
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → repository-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-gv15az23.js → repository-y1w7bwtd.js} +22 -22
- package/dist/chunks/{instruction-discovery-4g11qfmx.js → repository-y6brtjeh.js} +46 -41
- package/dist/chunks/repository-y6mhs71q.js +72 -0
- package/dist/chunks/{instruction-discovery-90gx0j5y.js → repository-ydszhw6d.js} +27 -27
- package/dist/chunks/{instruction-discovery-gb65a7a1.js → repository-yf33k1p3.js} +24 -24
- package/dist/chunks/{instruction-discovery-g2b38xbr.js → repository-yfe405ny.js} +13 -13
- package/dist/chunks/{instruction-discovery-e2jmw6zx.js → repository-yn96zvvk.js} +11 -11
- package/dist/chunks/{instruction-discovery-t9r88hzk.js → repository-yprc5htm.js} +24 -24
- package/dist/chunks/{instruction-discovery-386stjsv.js → repository-yqt58wae.js} +9 -9
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → repository-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-7pw8dncw.js → repository-z6b5w8cf.js} +4 -4
- package/dist/chunks/{instruction-discovery-3bc8czyk.js → repository-zd30eb5w.js} +5 -5
- package/dist/chunks/{instruction-discovery-y9e73xa5.js → repository-zhwzkc0c.js} +12 -12
- package/dist/chunks/{instruction-discovery-z468zaec.js → repository-zk46kswf.js} +15 -15
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → repository-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-7j2qha59.js → repository-zvjhkatg.js} +8 -8
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → repository-zxq2ej10.js} +1 -1
- package/dist/chunks/{instruction-discovery-qygbw77c.js → repository-zyk1yjk8.js} +5 -5
- 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 +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -106
- package/dist/config/plugin/agent.js +118 -125
- package/dist/config/plugin/command.js +207 -215
- package/dist/config/plugin/compaction.js +154 -161
- package/dist/config/plugin/compatibility.js +134 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -124
- package/dist/config/plugin/image.js +116 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -123
- package/dist/config/plugin/mcp.js +125 -132
- package/dist/config/plugin/policy.js +117 -124
- package/dist/config/plugin/provider.js +116 -123
- package/dist/config/plugin/reference.js +118 -125
- package/dist/config/plugin/shell.js +116 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -144
- package/dist/config/plugin/snapshot.js +116 -123
- package/dist/config/plugin/source.js +119 -126
- package/dist/config/plugin/tool-output.js +117 -125
- package/dist/config/plugin/websearch.js +115 -122
- package/dist/config/plugin/worktree.js +118 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -372
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- 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 +70 -70
- package/dist/file-access.js +100 -100
- package/dist/file-mutation.js +94 -94
- 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 +218 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- 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 +91 -91
- 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 +354 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +74 -75
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -360
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +105 -101
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +92 -87
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +101 -99
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +3 -1
- package/dist/persistent-pty/binary.node.js +2 -0
- package/dist/persistent-pty/binary.workerd.js +2 -0
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +89 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -122
- package/dist/plugin/provider/local.js +118 -0
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -122
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -122
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +134 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -121
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +216 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +85 -85
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +82 -82
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- 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 +212 -220
- package/dist/session/execution.js +127 -128
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +125 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -93
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +222 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -170
- package/dist/session/shell.js +130 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -211
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +114 -112
- package/dist/session/transfer.js +210 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -217
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1561 -1030
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -216
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -220
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -6
- package/dist/tool.js +14 -14
- package/dist/types/aisdk-native.d.ts +1 -0
- package/dist/types/instance/service.d.ts +2 -2
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/job.d.ts +1 -1
- package/dist/types/location-service-map.d.ts +3 -3
- package/dist/types/mcp/oauth.d.ts +1 -10
- package/dist/types/model.d.ts +1 -0
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -0
- package/dist/types/persistent-pty/binary.node.d.ts +1 -0
- package/dist/types/persistent-pty/binary.workerd.d.ts +1 -0
- package/dist/types/persistent-pty/daemon.d.ts +4 -4
- package/dist/types/persistent-pty/index.d.ts +3 -0
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -5
- package/dist/types/plugin/provider/local.d.ts +29 -0
- package/dist/types/plugin/provider/ollama.d.ts +2 -5
- package/dist/types/plugin/provider/vllm.d.ts +2 -5
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +4 -1
- package/dist/types/session/diff.d.ts +2 -2
- package/dist/types/session/generate.d.ts +3 -2
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/session/revert.d.ts +2 -3
- package/dist/types/session/runner/index.d.ts +2 -1
- package/dist/types/session/session.d.ts +5 -5
- package/dist/types/session/shell.d.ts +1 -1
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +2 -0
- package/dist/types/session/transfer.d.ts +2 -3
- package/dist/types/session.d.ts +5 -4
- package/dist/types/shell/scan.d.ts +2 -1
- package/dist/types/tool-output.d.ts +1 -0
- package/dist/types/v1/config/migrate.d.ts +15 -319
- package/dist/types/vcs.d.ts +6 -0
- package/dist/types/worktree.d.ts +2 -1
- 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 +96 -96
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -89
- package/dist/websearch.js +78 -78
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +11 -13
- package/dist/chunks/instruction-discovery-21r38tys.js +0 -14
- package/dist/chunks/instruction-discovery-24x7sj2v.js +0 -137
- package/dist/chunks/instruction-discovery-669tq793.js +0 -15
- package/dist/chunks/instruction-discovery-bbx3sj05.js +0 -173
- package/dist/chunks/instruction-discovery-bscb95cy.js +0 -21
- package/dist/chunks/instruction-discovery-c49890bn.js +0 -194
- package/dist/chunks/instruction-discovery-fp86hj50.js +0 -145
- package/dist/chunks/instruction-discovery-j15mfg1p.js +0 -84
- package/dist/chunks/instruction-discovery-jzzgdak2.js +0 -34
- package/dist/chunks/instruction-discovery-mazbtkaa.js +0 -29
- package/dist/chunks/instruction-discovery-mp9mcqyr.js +0 -252
- package/dist/chunks/instruction-discovery-mvh4jj0m.js +0 -26
- package/dist/chunks/instruction-discovery-p813dxyq.js +0 -134
- package/dist/chunks/instruction-discovery-tvtrv512.js +0 -51
- package/dist/chunks/instruction-discovery-vncycja5.js +0 -21
- package/dist/chunks/instruction-discovery-wb3qhx4w.js +0 -507
- package/dist/chunks/instruction-discovery-yrhqyw5v.js +0 -15
- package/dist/filesystem/ignore.js +0 -58
- package/dist/id/id.js +0 -14
- package/dist/plugin/provider/gateway.js +0 -7
- package/dist/plugin/provider/venice.js +0 -7
- package/dist/types/filesystem/ignore.d.ts +0 -2
- package/dist/types/id/id.d.ts +0 -19
- package/dist/types/plugin/provider/gateway.d.ts +0 -1
- package/dist/types/plugin/provider/venice.d.ts +0 -1
- package/dist/types/v1/config/attachment.d.ts +0 -18
- package/dist/types/v1/config/config.d.ts +0 -1243
- package/dist/types/v1/config/formatter.d.ts +0 -15
- package/dist/types/v1/config/layout.d.ts +0 -4
- package/dist/types/v1/config/lsp.d.ts +0 -38
- package/dist/types/v1/config/server.d.ts +0 -10
- package/dist/types/v1/config/skills.d.ts +0 -7
- package/dist/v1/config/attachment.js +0 -11
- package/dist/v1/config/config.js +0 -23
- package/dist/v1/config/formatter.js +0 -10
- package/dist/v1/config/layout.js +0 -8
- package/dist/v1/config/lsp.js +0 -16
- package/dist/v1/config/server.js +0 -9
- package/dist/v1/config/skills.js +0 -8
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → repository-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → repository-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → repository-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → repository-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → repository-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → repository-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → repository-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → repository-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → repository-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → repository-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → repository-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → repository-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → repository-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → repository-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → repository-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → repository-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → repository-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → repository-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → repository-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → repository-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → repository-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → repository-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → repository-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → repository-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → repository-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → repository-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → repository-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → repository-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → repository-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → repository-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → repository-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → repository-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → repository-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → repository-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → repository-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → repository-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → repository-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → repository-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → repository-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → repository-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → repository-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → repository-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → repository-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → repository-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → repository-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → repository-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → repository-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → repository-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → repository-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → repository-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → repository-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → repository-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → repository-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → repository-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → repository-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → repository-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → repository-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → repository-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → repository-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → repository-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → repository-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → repository-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → repository-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → repository-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → repository-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → repository-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → repository-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → repository-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → repository-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → repository-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → repository-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → repository-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → repository-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → repository-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → repository-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → repository-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → repository-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → repository-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → repository-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → repository-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → repository-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → repository-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → repository-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → repository-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → repository-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → repository-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → repository-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → repository-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → repository-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → repository-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → repository-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → repository-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → repository-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → repository-z9919s4g.js} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-9yxvhatz.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-84txncab.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service60,
|
|
17
|
+
node62
|
|
18
|
+
} from "./repository-2wredcz9.js";
|
|
19
19
|
import {
|
|
20
20
|
create3
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./repository-rdw6cm16.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./repository-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/reference.ts
|
|
27
27
|
var exports_reference2 = {};
|
|
28
28
|
__export(exports_reference2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event7,
|
|
30
30
|
GitSource: () => GitSource2,
|
|
31
|
-
Info: () =>
|
|
31
|
+
Info: () => Info7,
|
|
32
32
|
LocalSource: () => LocalSource2,
|
|
33
33
|
Reference: () => exports_reference2,
|
|
34
|
-
Service: () =>
|
|
35
|
-
Source: () =>
|
|
36
|
-
node: () =>
|
|
34
|
+
Service: () => Service42,
|
|
35
|
+
Source: () => Source3,
|
|
36
|
+
node: () => node45
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
40
40
|
import { Reference } from "@opencode/schema/reference";
|
|
41
41
|
import { Global } from "@opencode/util/global";
|
|
42
|
-
import { Event as
|
|
42
|
+
import { Event as Event7 } from "@opencode/schema/reference";
|
|
43
43
|
var LocalSource2 = Reference.LocalSource;
|
|
44
44
|
var GitSource2 = Reference.GitSource;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var Source3 = Reference.Source;
|
|
46
|
+
var Info7 = Reference.Info;
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service42 extends Context.Service()("@opencode/Reference") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
52
|
const bus = yield* Service83;
|
|
53
|
-
const cache = yield*
|
|
53
|
+
const cache = yield* Service60;
|
|
54
54
|
const scope = yield* Scope.Scope;
|
|
55
55
|
const list = () => Array.from(state.get().sources).flatMap(([name, source]) => {
|
|
56
56
|
const info = {
|
|
@@ -60,7 +60,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
60
60
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
61
61
|
};
|
|
62
62
|
if (source.type === "local")
|
|
63
|
-
return [
|
|
63
|
+
return [Info7.make({ ...info, path: source.path })];
|
|
64
64
|
const repository = parse4(source.repository);
|
|
65
65
|
if (!repository || !isRemote2(repository))
|
|
66
66
|
return [];
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return [
|
|
75
|
-
|
|
75
|
+
Info7.make({
|
|
76
76
|
...info,
|
|
77
77
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
78
78
|
})
|
|
@@ -104,7 +104,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
107
|
-
return
|
|
107
|
+
return Service42.of({
|
|
108
108
|
transform: state.transform,
|
|
109
109
|
reload: state.reload,
|
|
110
110
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -112,10 +112,10 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var
|
|
116
|
-
service:
|
|
115
|
+
var node45 = makeLocationNode({
|
|
116
|
+
service: Service42,
|
|
117
117
|
layer,
|
|
118
|
-
deps: [Global.node, node87,
|
|
118
|
+
deps: [Global.node, node87, node62]
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
export { LocalSource2, GitSource2,
|
|
121
|
+
export { LocalSource2, GitSource2, Source3, Info7, Service42, node45, exports_reference2, Event7 };
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service69
|
|
3
|
+
} from "./repository-aqryd466.js";
|
|
4
4
|
import {
|
|
5
5
|
unavailable3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-t550f9t1.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-z5v4ffb3.js";
|
|
10
10
|
import {
|
|
11
11
|
File2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service61
|
|
13
|
+
} from "./repository-yprc5htm.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service78
|
|
16
|
+
} from "./repository-w7a2abxy.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./repository-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin26
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
+
import { sameDirectory } from "@opencode/util/path";
|
|
30
31
|
import { dirname, join } from "path";
|
|
31
32
|
import { Effect, PubSub, Semaphore, Stream } from "effect";
|
|
32
|
-
var
|
|
33
|
+
var Plugin26 = define({
|
|
33
34
|
id: "opencode.config.instruction",
|
|
34
35
|
effect: Effect.fn(function* () {
|
|
35
|
-
const discovery = yield*
|
|
36
|
+
const discovery = yield* Service61;
|
|
36
37
|
if (!discovery.project && !discovery.global)
|
|
37
38
|
return;
|
|
38
39
|
yield* Effect.gen(function* () {
|
|
39
40
|
const fs = yield* FSUtil.Service;
|
|
40
41
|
const global = yield* Global.Service;
|
|
41
|
-
const location = yield*
|
|
42
|
-
const watcher = yield*
|
|
42
|
+
const location = yield* Service78;
|
|
43
|
+
const watcher = yield* Service69;
|
|
43
44
|
const changes = yield* PubSub.sliding(1);
|
|
44
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
45
46
|
const start = yield* fs.resolve(location.directory);
|
|
@@ -109,9 +110,9 @@ var Plugin32 = define({
|
|
|
109
110
|
})
|
|
110
111
|
});
|
|
111
112
|
function ancestorDirectories(start, stop) {
|
|
112
|
-
if (start
|
|
113
|
+
if (sameDirectory(start, stop))
|
|
113
114
|
return [start];
|
|
114
115
|
return [start, ...ancestorDirectories(dirname(start), stop)];
|
|
115
116
|
}
|
|
116
117
|
|
|
117
|
-
export {
|
|
118
|
+
export { Plugin26, exports_instruction };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InvalidError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-0j77ygfz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/config/variable.ts
|
|
9
9
|
var exports_variable = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options8,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options8 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options8, Spec2, exports_plugin3 };
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-t550f9t1.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-9e5bzkjp.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-9yxvhatz.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service11,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer7,
|
|
17
|
+
node: () => node13
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service11 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var layer7 = Layer.effect(Service11, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service83;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service11.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node13 = makeGlobalNode({ service: Service11, layer: layer7, deps: [node87] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service11, layer7, node13, exports_sdk };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-b751st24.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
Service83,
|
|
10
10
|
node87
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-9yxvhatz.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./repository-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./repository-my4zabxr.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./repository-9e5bzkjp.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./repository-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/session/inbox.ts
|
|
30
30
|
var exports_inbox = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info9,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service48,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +45,12 @@ __export(exports_inbox, {
|
|
|
45
45
|
UserPayload: () => UserPayload2,
|
|
46
46
|
find: () => find2,
|
|
47
47
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
49
|
-
list: () =>
|
|
48
|
+
layer: () => layer17,
|
|
49
|
+
list: () => list3,
|
|
50
50
|
make: () => make18,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node50,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info9,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,7 +151,7 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service48 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
156
|
var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
157
|
const database = yield* Service84;
|
|
@@ -173,7 +173,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info9.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -193,7 +193,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
193
193
|
}
|
|
194
194
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
195
195
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
196
|
-
const pending = (yield*
|
|
196
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
197
197
|
if (pending)
|
|
198
198
|
return pending;
|
|
199
199
|
return yield* admit({
|
|
@@ -218,7 +218,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
218
218
|
delivery: "queue"
|
|
219
219
|
})));
|
|
220
220
|
return {
|
|
221
|
-
list: (sessionID) =>
|
|
221
|
+
list: (sessionID) => list3(db, sessionID),
|
|
222
222
|
reconcile,
|
|
223
223
|
admit,
|
|
224
224
|
admitCompaction,
|
|
@@ -227,8 +227,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var layer17 = Layer.effect(Service48, make18());
|
|
231
|
+
var node50 = makeGlobalNode({ service: Service48, layer: layer17, deps: [node88, node87] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -266,7 +266,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
266
266
|
from: input.delivery === "steer" ? "queue" : "steer",
|
|
267
267
|
to: input.delivery
|
|
268
268
|
}));
|
|
269
|
-
var
|
|
269
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
270
270
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
271
271
|
return rows.map(fromRow);
|
|
272
272
|
});
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info9, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service48, make18, layer17, node50, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-5w6ne2rj.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-9yxvhatz.js";
|
|
7
7
|
import {
|
|
8
|
-
ID18,
|
|
9
8
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service77
|
|
11
|
+
} from "./repository-5ng375bv.js";
|
|
13
12
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./instruction-discovery-068serwz.js";
|
|
16
|
-
import {
|
|
17
|
-
ID16,
|
|
13
|
+
ID14,
|
|
18
14
|
MethodID2
|
|
19
|
-
} from "./
|
|
15
|
+
} from "./repository-mfct962c.js";
|
|
20
16
|
import {
|
|
21
|
-
|
|
17
|
+
ID13,
|
|
22
18
|
mergeOverlay2
|
|
23
|
-
} from "./
|
|
19
|
+
} from "./repository-9815d8pv.js";
|
|
24
20
|
import {
|
|
25
|
-
|
|
21
|
+
ID12,
|
|
26
22
|
VariantID2,
|
|
27
23
|
Info21
|
|
28
|
-
} from "./
|
|
24
|
+
} from "./repository-b5f9cqb8.js";
|
|
29
25
|
import {
|
|
30
26
|
success2,
|
|
31
27
|
error2
|
|
32
|
-
} from "./
|
|
28
|
+
} from "./repository-pjvnvgmy.js";
|
|
33
29
|
|
|
34
30
|
// src/plugin/provider/chatgpt.ts
|
|
35
31
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
36
|
-
import { Deferred,
|
|
32
|
+
import { Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
37
33
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
38
34
|
var registrationClientID = "dynamic_agent_client";
|
|
39
35
|
var agentName = "OpenCode";
|
|
@@ -41,8 +37,8 @@ var issuer = "https://auth.openai.com";
|
|
|
41
37
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
38
|
var resource = "https://api.openai.com/v1";
|
|
43
39
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
-
var providerID =
|
|
45
|
-
var integrationID =
|
|
40
|
+
var providerID = ID13.openai;
|
|
41
|
+
var integrationID = ID14.make("openai");
|
|
46
42
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
43
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
44
|
var fallbackModels = new Set([
|
|
@@ -55,7 +51,13 @@ var fallbackModels = new Set([
|
|
|
55
51
|
"gpt-5.6-terra",
|
|
56
52
|
"gpt-5.6-terra-fast",
|
|
57
53
|
"gpt-6-astra",
|
|
58
|
-
"gpt-6-astra-fast"
|
|
54
|
+
"gpt-6-astra-fast",
|
|
55
|
+
"gpt-6-luna",
|
|
56
|
+
"gpt-6-luna-fast",
|
|
57
|
+
"gpt-6-sol",
|
|
58
|
+
"gpt-6-sol-fast",
|
|
59
|
+
"gpt-6.1-sol",
|
|
60
|
+
"gpt-6.1-sol-fast"
|
|
59
61
|
]);
|
|
60
62
|
var nonRetryableSharingCodes = [
|
|
61
63
|
"subscription_sharing_usage_limit_exceeded",
|
|
@@ -172,29 +174,22 @@ var ChatGPTPlugin2 = define({
|
|
|
172
174
|
id: "opencode.provider.chatgpt",
|
|
173
175
|
effect: Effect.fn(function* (ctx) {
|
|
174
176
|
const bus = yield* Service83;
|
|
175
|
-
const credentials = yield*
|
|
177
|
+
const credentials = yield* Service77;
|
|
176
178
|
const loading = Semaphore.makeUnsafe(1);
|
|
177
179
|
let chatgpt;
|
|
178
|
-
let available;
|
|
179
180
|
let source;
|
|
180
181
|
const load = Effect.fn("ChatGPTPlugin.load")(function* () {
|
|
181
|
-
const previous = key2(source);
|
|
182
182
|
const connection = yield* ctx.integration.connection.active(integrationID);
|
|
183
183
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
184
184
|
return;
|
|
185
185
|
})) : undefined;
|
|
186
186
|
chatgpt = credential?.type === "oauth" && credential.methodID === methodID ? credential : undefined;
|
|
187
187
|
source = chatgpt ? connection : undefined;
|
|
188
|
-
if (previous !== key2(source)) {
|
|
189
|
-
const metadata = Option.getOrUndefined(decodeMetadata(chatgpt?.metadata));
|
|
190
|
-
const stored = metadata ? yield* ctx.storage.get(modelCacheKey(metadata.clientID)) : undefined;
|
|
191
|
-
available = Option.getOrUndefined(decodeCachedModels(stored));
|
|
192
|
-
}
|
|
193
188
|
});
|
|
194
189
|
yield* ctx.integration.transform((editor) => {
|
|
195
190
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
191
|
});
|
|
197
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
192
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
198
193
|
const value = entry.value;
|
|
199
194
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
195
|
return Effect.void;
|
|
@@ -235,7 +230,7 @@ var ChatGPTPlugin2 = define({
|
|
|
235
230
|
return;
|
|
236
231
|
providers.add({
|
|
237
232
|
info: updated.provider,
|
|
238
|
-
models:
|
|
233
|
+
models: Array.from(item.models.values()).filter((model) => fallbackModels.has(model.id)),
|
|
239
234
|
sourceConnection: source
|
|
240
235
|
});
|
|
241
236
|
});
|
|
@@ -249,39 +244,12 @@ var ChatGPTPlugin2 = define({
|
|
|
249
244
|
draft.enabled = false;
|
|
250
245
|
return;
|
|
251
246
|
}
|
|
252
|
-
if (available && !available.some((remote) => remote.slug === (draft.modelID ?? draft.id))) {
|
|
253
|
-
draft.enabled = false;
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
247
|
draft.cost = [];
|
|
257
248
|
});
|
|
258
249
|
}
|
|
259
250
|
});
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
const credential = connection?.type === "credential" ? (yield* credentials.get(ID18.make(connection.id)))?.value : undefined;
|
|
263
|
-
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
|
-
return;
|
|
265
|
-
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
266
|
-
if (!metadata)
|
|
267
|
-
return;
|
|
268
|
-
const models = yield* fetchModels2(credential.access, ctx.app).pipe(Effect.timeout(15000), Effect.catch(() => Effect.logWarning("failed to refresh ChatGPT models").pipe(Effect.as(undefined))));
|
|
269
|
-
if (!models)
|
|
270
|
-
return;
|
|
271
|
-
yield* loading.withPermit(Effect.gen(function* () {
|
|
272
|
-
if (key2(connection) !== key2(source) || key2(connection) !== key2(yield* ctx.integration.connection.active(integrationID)))
|
|
273
|
-
return;
|
|
274
|
-
if (JSON.stringify(models) === JSON.stringify(available))
|
|
275
|
-
return;
|
|
276
|
-
yield* ctx.storage.set(modelCacheKey(metadata.clientID), models);
|
|
277
|
-
available = models;
|
|
278
|
-
yield* ctx.provider.reload();
|
|
279
|
-
}));
|
|
280
|
-
});
|
|
281
|
-
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
-
yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
|
-
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
|
-
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
251
|
+
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
252
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
285
253
|
})
|
|
286
254
|
});
|
|
287
255
|
function headers(app) {
|
|
@@ -338,7 +306,7 @@ function deriveModels2(remote, existing) {
|
|
|
338
306
|
const found = byID.get(model.modelID);
|
|
339
307
|
return found ? [deriveModel(found, model)] : [];
|
|
340
308
|
}),
|
|
341
|
-
...remote.filter((model) => !known.has(
|
|
309
|
+
...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info21.default(ID13.openai, ID12.make(model.slug))))
|
|
342
310
|
];
|
|
343
311
|
}
|
|
344
312
|
function deriveModel(remote, previous) {
|