@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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./repository-9815d8pv.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/google-vertex.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.provider.transform((evt) => {
|
|
26
26
|
for (const item of evt.list()) {
|
|
27
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
27
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
28
28
|
continue;
|
|
29
29
|
const project = resolveProject(item.provider.settings ?? {});
|
|
30
30
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -42,7 +42,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
42
42
|
});
|
|
43
43
|
yield* ctx.model.transform((models) => {
|
|
44
44
|
for (const item of models.provider.list()) {
|
|
45
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
45
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
46
46
|
continue;
|
|
47
47
|
const project = resolveProject(item.provider.settings ?? {});
|
|
48
48
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -59,7 +59,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
62
|
-
if (evt.model.providerID !==
|
|
62
|
+
if (evt.model.providerID !== ID13.googleVertex)
|
|
63
63
|
return;
|
|
64
64
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
65
65
|
}));
|
|
@@ -1,113 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-9815d8pv.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-b5f9cqb8.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
18
18
|
__export(exports_migrate, {
|
|
19
19
|
ConfigMigrateV1: () => exports_migrate,
|
|
20
|
-
commands: () => commands2,
|
|
21
|
-
migrate: () => migrate2,
|
|
22
20
|
migrateAgent: () => migrateAgent2,
|
|
21
|
+
migrateCommand: () => migrateCommand2,
|
|
23
22
|
migrateMcp: () => migrateMcp2,
|
|
24
23
|
migrateProvider: () => migrateProvider2,
|
|
24
|
+
modelSelection: () => modelSelection2,
|
|
25
25
|
normalizeAction: () => normalizeAction2,
|
|
26
26
|
providerID: () => providerID2
|
|
27
27
|
});
|
|
28
|
-
import { Info } from "@opencode/schema/config";
|
|
29
28
|
import { ConfigAgent } from "@opencode/schema/config/agent";
|
|
30
29
|
import { Schema } from "effect";
|
|
31
30
|
var decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
32
|
-
var decodeInfo = Schema.decodeUnknownSync(Schema.fromJsonString(Info), decodeOptions);
|
|
33
|
-
var encodeInfo = Schema.encodeSync(Info);
|
|
34
31
|
var decodeAgent = Schema.decodeUnknownSync(Schema.fromJsonString(ConfigAgent.Info), decodeOptions);
|
|
35
32
|
var encodeAgent = Schema.encodeSync(ConfigAgent.Info);
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
$schema: info.$schema,
|
|
39
|
-
shell: info.shell,
|
|
40
|
-
model: modelSelection(info.model),
|
|
41
|
-
default_agent: info.default_agent,
|
|
42
|
-
update: info.autoupdate === false ? "disable" : info.autoupdate === "notify" ? "notify" : info.autoupdate === true ? "auto" : undefined,
|
|
43
|
-
share: info.share ?? (info.autoshare ? "auto" : undefined),
|
|
44
|
-
enterprise: info.enterprise,
|
|
45
|
-
username: info.username,
|
|
46
|
-
permissions: permissions(info.permission, info.tools),
|
|
47
|
-
agents: agents(info),
|
|
48
|
-
snapshots: info.snapshot,
|
|
49
|
-
watcher: info.watcher,
|
|
50
|
-
formatter: info.formatter,
|
|
51
|
-
lsp: info.lsp,
|
|
52
|
-
media: info.attachment,
|
|
53
|
-
tool_output: info.tool_output,
|
|
54
|
-
mcp: mcp(info),
|
|
55
|
-
compaction: info.compaction && {
|
|
56
|
-
auto: info.compaction.auto,
|
|
57
|
-
prune: info.compaction.prune,
|
|
58
|
-
keep: {
|
|
59
|
-
tokens: info.compaction.preserve_recent_tokens
|
|
60
|
-
},
|
|
61
|
-
buffer: info.compaction.reserved
|
|
62
|
-
},
|
|
63
|
-
skills: info.skills && [...info.skills.paths ?? [], ...info.skills.urls ?? []],
|
|
64
|
-
commands: commands2(info.command),
|
|
65
|
-
instructions: info.instructions,
|
|
66
|
-
references: info.references ?? info.reference,
|
|
67
|
-
experimental: experimental(info),
|
|
68
|
-
plugins: info.plugin?.map((plugin) => typeof plugin === "string" ? plugin : { package: plugin[0], options: plugin[1] }),
|
|
69
|
-
providers: providers(info.provider)
|
|
70
|
-
})));
|
|
71
|
-
}
|
|
72
|
-
function experimental(info) {
|
|
73
|
-
const policies = [
|
|
74
|
-
...info.enabled_providers === undefined ? [] : [
|
|
75
|
-
{ action: "provider.use", resource: "*", effect: "deny" },
|
|
76
|
-
...info.enabled_providers.map((resource) => ({
|
|
77
|
-
action: "provider.use",
|
|
78
|
-
resource: providerID2(resource),
|
|
79
|
-
effect: "allow"
|
|
80
|
-
}))
|
|
81
|
-
],
|
|
82
|
-
...(info.disabled_providers ?? []).map((resource) => ({
|
|
83
|
-
action: "provider.use",
|
|
84
|
-
resource: providerID2(resource),
|
|
85
|
-
effect: "deny"
|
|
86
|
-
}))
|
|
87
|
-
];
|
|
88
|
-
if (info.experimental?.subagent_depth === undefined && !policies.length)
|
|
89
|
-
return;
|
|
90
|
-
return {
|
|
91
|
-
subagent_depth: info.experimental?.subagent_depth,
|
|
92
|
-
policies: policies.length ? policies : undefined
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function permissions(info, tools) {
|
|
96
|
-
const rules = Object.entries(tools ?? {}).map(([action, enabled]) => ({
|
|
97
|
-
action: normalizeAction2(action),
|
|
98
|
-
resource: "*",
|
|
99
|
-
effect: enabled ? "allow" : "deny"
|
|
100
|
-
}));
|
|
101
|
-
for (const [key, rule] of Object.entries(info ?? {})) {
|
|
33
|
+
function permissions(info) {
|
|
34
|
+
const rules = Object.entries(info ?? {}).flatMap(([key, rule]) => {
|
|
102
35
|
if (!rule)
|
|
103
|
-
|
|
36
|
+
return [];
|
|
104
37
|
const action = normalizeAction2(key);
|
|
105
|
-
if (typeof rule === "string")
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
rules.push(...Object.entries(rule).map(([resource, effect]) => ({ action, resource, effect })));
|
|
110
|
-
}
|
|
38
|
+
if (typeof rule === "string")
|
|
39
|
+
return [{ action, resource: "*", effect: rule }];
|
|
40
|
+
return Object.entries(rule).map(([resource, effect]) => ({ action, resource, effect }));
|
|
41
|
+
});
|
|
111
42
|
return rules.length ? rules : undefined;
|
|
112
43
|
}
|
|
113
44
|
function normalizeAction2(action) {
|
|
@@ -119,23 +50,6 @@ function normalizeAction2(action) {
|
|
|
119
50
|
return "shell";
|
|
120
51
|
return action;
|
|
121
52
|
}
|
|
122
|
-
function agents(info) {
|
|
123
|
-
const entries = [
|
|
124
|
-
...Object.entries(info.agent ?? {}),
|
|
125
|
-
...Object.entries(info.mode ?? {}).map(([name, agent]) => [name, { ...agent, mode: "primary" }])
|
|
126
|
-
];
|
|
127
|
-
const result = Object.fromEntries(entries.flatMap(([name, agent]) => agent ? [[name, migrateAgent2(agent)]] : []));
|
|
128
|
-
const small = modelSelection(info.small_model);
|
|
129
|
-
if (!small)
|
|
130
|
-
return entries.length ? result : undefined;
|
|
131
|
-
return {
|
|
132
|
-
...result,
|
|
133
|
-
title: {
|
|
134
|
-
model: small,
|
|
135
|
-
...result.title
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
53
|
function migrateAgent2(info) {
|
|
140
54
|
const body = {
|
|
141
55
|
...info.options,
|
|
@@ -143,7 +57,7 @@ function migrateAgent2(info) {
|
|
|
143
57
|
...info.top_p === undefined ? {} : { top_p: info.top_p }
|
|
144
58
|
};
|
|
145
59
|
return encodeAgent(decodeAgent(JSON.stringify({
|
|
146
|
-
model:
|
|
60
|
+
model: modelSelection2(info.model, info.variant),
|
|
147
61
|
request: Object.keys(body).length ? { body } : undefined,
|
|
148
62
|
system: info.prompt,
|
|
149
63
|
description: info.description,
|
|
@@ -155,21 +69,16 @@ function migrateAgent2(info) {
|
|
|
155
69
|
permissions: permissions(info.permission)
|
|
156
70
|
})));
|
|
157
71
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
agent: command.agent,
|
|
167
|
-
model: modelSelection(command.model, command.variant),
|
|
168
|
-
subagent: command.subtask
|
|
169
|
-
}
|
|
170
|
-
]));
|
|
72
|
+
function migrateCommand2(command) {
|
|
73
|
+
return {
|
|
74
|
+
template: command.template,
|
|
75
|
+
description: command.description,
|
|
76
|
+
agent: command.agent,
|
|
77
|
+
model: modelSelection2(command.model, command.variant),
|
|
78
|
+
subagent: command.subtask
|
|
79
|
+
};
|
|
171
80
|
}
|
|
172
|
-
function
|
|
81
|
+
function modelSelection2(input, variant) {
|
|
173
82
|
if (input === undefined || !/^[^/#]+\/[^#]+$/.test(input))
|
|
174
83
|
return;
|
|
175
84
|
const separator = input.indexOf("/");
|
|
@@ -179,13 +88,6 @@ function modelSelection(input, variant) {
|
|
|
179
88
|
...variant === undefined || variant.length === 0 || variant.includes("#") ? {} : { variant }
|
|
180
89
|
};
|
|
181
90
|
}
|
|
182
|
-
function mcp(info) {
|
|
183
|
-
const servers = Object.fromEntries(Object.entries(info.mcp ?? {}).flatMap(([name, server]) => ("type" in server) ? [[name, migrateMcp2(server)]] : []));
|
|
184
|
-
const timeout = info.experimental?.mcp_timeout;
|
|
185
|
-
if (!timeout && !Object.keys(servers).length)
|
|
186
|
-
return;
|
|
187
|
-
return { timeout: timeout === undefined ? undefined : { catalog: timeout, execution: timeout }, servers };
|
|
188
|
-
}
|
|
189
91
|
function migrateMcp2(info) {
|
|
190
92
|
const disabled = info.enabled === undefined ? undefined : !info.enabled;
|
|
191
93
|
if (info.type === "local")
|
|
@@ -212,16 +114,6 @@ function migrateMcp2(info) {
|
|
|
212
114
|
timeout: info.timeout === undefined ? undefined : { catalog: info.timeout, execution: info.timeout }
|
|
213
115
|
};
|
|
214
116
|
}
|
|
215
|
-
function providers(info) {
|
|
216
|
-
if (!info)
|
|
217
|
-
return;
|
|
218
|
-
return Object.fromEntries(Object.entries(info).flatMap(([name, provider]) => {
|
|
219
|
-
const id = providerID2(name);
|
|
220
|
-
if (id !== name && info[id])
|
|
221
|
-
return [];
|
|
222
|
-
return [[id, migrateProvider2(name, provider)]];
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
117
|
function migrateProvider2(sourceID, info) {
|
|
226
118
|
if (sourceID === "azure-cognitive-services")
|
|
227
119
|
return migrateAzureCognitiveServicesProvider(info);
|
|
@@ -325,4 +217,4 @@ function int(value) {
|
|
|
325
217
|
return Math.max(Number.MIN_SAFE_INTEGER, Math.min(Number.MAX_SAFE_INTEGER, Math.trunc(value)));
|
|
326
218
|
}
|
|
327
219
|
|
|
328
|
-
export {
|
|
220
|
+
export { normalizeAction2, migrateAgent2, migrateCommand2, modelSelection2, migrateMcp2, migrateProvider2, providerID2, exports_migrate };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLocalProviderPlugin2
|
|
3
|
+
} from "./repository-5ej07zgb.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/provider/vllm.ts
|
|
6
|
+
import { Effect, Schema } from "effect";
|
|
7
|
+
var providerID = "vllm";
|
|
8
|
+
var RemoteModel = Schema.Struct({
|
|
9
|
+
id: Schema.String,
|
|
10
|
+
owned_by: Schema.String,
|
|
11
|
+
max_model_len: Schema.NullOr(Schema.Int)
|
|
12
|
+
});
|
|
13
|
+
var Response = Schema.Struct({ data: Schema.Array(RemoteModel) });
|
|
14
|
+
var make10 = createLocalProviderPlugin2({
|
|
15
|
+
id: "opencode.provider.vllm",
|
|
16
|
+
providerID,
|
|
17
|
+
name: "vLLM",
|
|
18
|
+
origin: "http://127.0.0.1:8000",
|
|
19
|
+
discover: (client) => Effect.gen(function* () {
|
|
20
|
+
yield* client.get("/health");
|
|
21
|
+
const response = yield* client.getJson("/v1/models", Response);
|
|
22
|
+
return response.data.filter((model) => model.owned_by === providerID && model.id.length > 0).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
23
|
+
}),
|
|
24
|
+
model: (item) => ({
|
|
25
|
+
id: item.id,
|
|
26
|
+
context: item.max_model_len
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
var VLLMPlugin2 = make10();
|
|
30
|
+
|
|
31
|
+
export { make10, VLLMPlugin2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-b751st24.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-9e5bzkjp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load4
|
|
12
|
+
} from "./repository-yn96zvvk.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-drnf6xwf.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput4,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service57,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node59
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
52
52
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
53
53
|
var ListInput4 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service57 extends Context.Service()("@opencode/SessionStore") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
58
58
|
const { db } = yield* Service84;
|
|
59
|
-
return
|
|
59
|
+
return Service57.of({
|
|
60
60
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
61
61
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
62
62
|
return row ? fromRow2(row) : undefined;
|
|
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
98
98
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
99
99
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
100
100
|
}),
|
|
101
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
101
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
|
|
102
102
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
103
103
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
104
104
|
return row ? {
|
|
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node59 = makeGlobalNode({ service: Service57, layer, deps: [node88] });
|
|
129
129
|
|
|
130
|
-
export { ListInput4,
|
|
130
|
+
export { ListInput4, Service57, node59, exports_store };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service75
|
|
4
|
+
} from "./repository-9815d8pv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service68
|
|
7
|
+
} from "./repository-9s1pr29s.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/provider/configured.ts
|
|
10
10
|
import { Effect, Option } from "effect";
|
|
11
11
|
var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
|
|
12
|
-
const providers = yield*
|
|
12
|
+
const providers = yield* Service75;
|
|
13
13
|
const current = (yield* providers.get(id))?.settings;
|
|
14
|
-
const service = yield* Effect.serviceOption(
|
|
14
|
+
const service = yield* Effect.serviceOption(Service68);
|
|
15
15
|
const entries = Option.isSome(service) ? yield* service.value.entries() : [];
|
|
16
16
|
return foldSettings2(entries, id, current);
|
|
17
17
|
});
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service45
|
|
3
|
+
} from "./repository-y16p1w2y.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service49
|
|
6
|
+
} from "./repository-c8bydgjz.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-jqh9b0xq.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service67
|
|
15
|
+
} from "./repository-1gfgk62c.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./repository-89za3yyg.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service43
|
|
23
|
+
} from "./repository-yf33k1p3.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./repository-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service49;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service67;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service43;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service45;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-9yxvhatz.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./repository-0h1qn0y5.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-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: () => Event14,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service70,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node72,
|
|
26
|
+
resolve: () => resolve3
|
|
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 Service70 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event14 = {
|
|
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 resolve3 = 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(Service70, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service80;
|
|
81
81
|
const bus = yield* Service83;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service53, 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(Event14.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service70.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(Service53, 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(Event14.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(Service53, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event14.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 node72 = makeGlobalNode({ service: Service70, layer, deps: [httpClient, node84, node87] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service70, Event14, inspect2, resolve3, node72, exports_wellknown };
|