@opencode/core 2.0.22 → 2.0.23
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-wwsveqr1.js → generate-01s90evy.js} +21 -21
- package/dist/chunks/{instruction-discovery-g2b38xbr.js → generate-01vz176c.js} +17 -17
- package/dist/chunks/{instruction-discovery-s0ptdndk.js → generate-02hj8zpc.js} +1 -1
- package/dist/chunks/{instruction-discovery-fagw50gs.js → generate-067vzkwc.js} +16 -16
- package/dist/chunks/{instruction-discovery-4gksvbnk.js → generate-06wny47j.js} +187 -187
- package/dist/chunks/{instruction-discovery-qdyk8phn.js → generate-0at0q6bk.js} +6 -6
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → generate-0j77ygfz.js} +6 -6
- package/dist/chunks/{instruction-discovery-ab44fxfx.js → generate-0n25afzx.js} +5 -5
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → generate-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-7ws0qf92.js → generate-0q2zy8rk.js} +34 -34
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → generate-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-8sesv03m.js → generate-0z57cqh9.js} +7 -7
- package/dist/chunks/{instruction-discovery-7fx6jza6.js → generate-14qr745v.js} +15 -15
- package/dist/chunks/{instruction-discovery-4tgz421y.js → generate-14vr5qa8.js} +28 -17
- package/dist/chunks/{instruction-discovery-gt8knnyb.js → generate-1ader487.js} +11 -11
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → generate-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-1dvck2a7.js → generate-1dvck2a7.js} +2 -2
- package/dist/chunks/{instruction-discovery-h9zw7x04.js → generate-1fs3aa3n.js} +11 -11
- package/dist/chunks/{instruction-discovery-bbx3sj05.js → generate-1vsafbzv.js} +10 -10
- package/dist/chunks/{instruction-discovery-33w4ejhs.js → generate-1ygqh575.js} +6 -6
- package/dist/chunks/{instruction-discovery-kn7rctz9.js → generate-1z18ck0n.js} +9 -9
- package/dist/chunks/{instruction-discovery-3gc4y8jw.js → generate-21tjqxxf.js} +20 -20
- package/dist/chunks/{instruction-discovery-zk4rm6sg.js → generate-29x9jy0f.js} +34 -34
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → generate-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → generate-2ccvkpx1.js} +2 -2
- package/dist/chunks/{instruction-discovery-geswxttb.js → generate-2pcsyv91.js} +48 -48
- package/dist/chunks/{instruction-discovery-p813dxyq.js → generate-330q9b0x.js} +31 -35
- package/dist/chunks/{instruction-discovery-chamsvbn.js → generate-34bnvpfh.js} +33 -33
- package/dist/chunks/{instruction-discovery-br0fskr5.js → generate-34manr0f.js} +23 -23
- package/dist/chunks/{instruction-discovery-vj991bdt.js → generate-39k0hmda.js} +2 -2
- package/dist/chunks/{instruction-discovery-rz6t0wqc.js → generate-3dgfh0cr.js} +46 -46
- package/dist/chunks/{instruction-discovery-5sv8fqdt.js → generate-3edgjjmd.js} +40 -33
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-5ch8te7e.js → generate-3j10s7ay.js} +9 -9
- package/dist/chunks/{instruction-discovery-caxch348.js → generate-3q48ekr2.js} +16 -16
- package/dist/chunks/{instruction-discovery-87bs7bte.js → generate-3rd28rcz.js} +11 -11
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-sk3qaz4a.js → generate-3t0ybcrp.js} +58 -20
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-01wcheh0.js → generate-3x5f6s31.js} +62 -83
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-3bss0zm1.js → generate-435eggbz.js} +20 -20
- package/dist/chunks/{instruction-discovery-m58kmhef.js → generate-4eax54pa.js} +6 -9
- package/dist/chunks/{instruction-discovery-th1qq6gc.js → generate-4kfhygng.js} +37 -37
- package/dist/chunks/{instruction-discovery-gv15az23.js → generate-4ntq7m4z.js} +17 -17
- package/dist/chunks/{instruction-discovery-772hnq51.js → generate-529vcnym.js} +11 -11
- package/dist/chunks/{instruction-discovery-54ma36ye.js → generate-54ma36ye.js} +1 -1
- package/dist/chunks/{instruction-discovery-g5w8qwbj.js → generate-57b9ws8p.js} +7 -7
- package/dist/chunks/{instruction-discovery-5daktx2q.js → generate-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-xjbrwz9c.js → generate-5kp03ppx.js} +12 -12
- package/dist/chunks/{instruction-discovery-53eqz1v2.js → generate-5pyjqqve.js} +2 -2
- package/dist/chunks/{instruction-discovery-b2nc1zae.js → generate-5swqfww9.js} +28 -28
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → generate-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-nnxtdpka.js → generate-5txw87z1.js} +8 -8
- package/dist/chunks/{instruction-discovery-axmmtzpw.js → generate-5tznt6k3.js} +19 -19
- package/dist/chunks/{instruction-discovery-6wqmdryt.js → generate-5v5aasd4.js} +24 -24
- package/dist/chunks/{instruction-discovery-1q5zb881.js → generate-5yzz6hd1.js} +24 -132
- package/dist/chunks/{instruction-discovery-j4q93wg3.js → generate-61fzh3cq.js} +8 -8
- package/dist/chunks/{instruction-discovery-669tq793.js → generate-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-kgxgq8c4.js → generate-6cjqe6sy.js} +24 -24
- package/dist/chunks/{instruction-discovery-qj8eh1ht.js → generate-6m42r3np.js} +21 -21
- package/dist/chunks/{instruction-discovery-exnynncn.js → generate-6nv25w3f.js} +33 -33
- package/dist/chunks/{instruction-discovery-ved7ma53.js → generate-6p2526mp.js} +11 -11
- package/dist/chunks/{instruction-discovery-g259vpc3.js → generate-6ywhdf6k.js} +26 -26
- package/dist/chunks/{instruction-discovery-ksgw4q3t.js → generate-6zp854ra.js} +3 -3
- package/dist/chunks/{instruction-discovery-71az546q.js → generate-71az546q.js} +2 -2
- package/dist/chunks/{instruction-discovery-73tb2d7t.js → generate-73tb2d7t.js} +1 -1
- package/dist/chunks/{instruction-discovery-wbx60fzd.js → generate-782xyd0k.js} +5 -5
- package/dist/chunks/{instruction-discovery-cr59q9qa.js → generate-7bftgs18.js} +4 -4
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → generate-7dqw4kz8.js} +1 -1
- package/dist/chunks/{instruction-discovery-nxq54803.js → generate-7keeseff.js} +11 -11
- package/dist/chunks/{instruction-discovery-90gx0j5y.js → generate-7naq09xc.js} +27 -27
- package/dist/chunks/{instruction-discovery-7j2qha59.js → generate-7s2tn799.js} +8 -8
- package/dist/chunks/{instruction-discovery-8r9kvmb6.js → generate-7xf5yptx.js} +26 -26
- package/dist/chunks/{instruction-discovery-24x7sj2v.js → generate-81f48a1k.js} +10 -10
- package/dist/chunks/{instruction-discovery-jvy07h1s.js → generate-823qfcak.js} +1 -1
- package/dist/chunks/{instruction-discovery-fah0stq9.js → generate-82czg0r8.js} +9 -9
- package/dist/chunks/{instruction-discovery-84txncab.js → generate-84txncab.js} +1 -1
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → generate-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-fwq9htr3.js → generate-8f9gr54c.js} +11 -11
- package/dist/chunks/{instruction-discovery-a90g57x6.js → generate-8mnpn7jw.js} +57 -57
- package/dist/chunks/{instruction-discovery-21201d4m.js → generate-8zvk0rgz.js} +25 -25
- package/dist/chunks/{instruction-discovery-17z9v3bw.js → generate-94jj38jg.js} +27 -27
- package/dist/chunks/{instruction-discovery-9e5bzkjp.js → generate-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instruction-discovery-fqzyqcjh.js → generate-9pvxkkw3.js} +20 -20
- package/dist/chunks/{instruction-discovery-jpcc9kth.js → generate-9pwf6adz.js} +30 -30
- package/dist/chunks/{instruction-discovery-cc4mqy7q.js → generate-9sy6gwjh.js} +12 -6
- package/dist/chunks/{instruction-discovery-aaet6srn.js → generate-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-068serwz.js → generate-addxnjmp.js} +4 -4
- package/dist/chunks/{instruction-discovery-y9e73xa5.js → generate-aer73x3z.js} +18 -18
- package/dist/chunks/{instruction-discovery-4d8yn3gb.js → generate-afv7vh30.js} +20 -20
- package/dist/chunks/{instruction-discovery-yzzqahvy.js → generate-ajmxk7z2.js} +22 -22
- package/dist/chunks/{instruction-discovery-fajwdt4h.js → generate-an75rhmh.js} +18 -18
- package/dist/chunks/{instruction-discovery-aszn3zwx.js → generate-aqdbyk8h.js} +5 -5
- package/dist/chunks/{instruction-discovery-mqw81mrh.js → generate-arb3wnqs.js} +2 -2
- package/dist/chunks/{instruction-discovery-b0t1fydp.js → generate-atz6g77g.js} +23 -23
- package/dist/chunks/{instruction-discovery-6hh8tjw2.js → generate-b27vhd2z.js} +4 -4
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → generate-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-3j0eccra.js → generate-b9rmm35c.js} +10 -10
- package/dist/chunks/{instruction-discovery-xw25vat5.js → generate-bepbq8jj.js} +15 -15
- package/dist/chunks/{instruction-discovery-609c7rjf.js → generate-bh5cssh3.js} +8 -8
- package/dist/chunks/{instruction-discovery-gb65a7a1.js → generate-bkrwt1n9.js} +20 -20
- package/dist/chunks/{instruction-discovery-fp86hj50.js → generate-bp27thah.js} +10 -10
- package/dist/chunks/{instruction-discovery-cyk1kg6z.js → generate-bq4mvesw.js} +33 -33
- package/dist/chunks/{instruction-discovery-y56ehv6b.js → generate-bydnjh3t.js} +9 -9
- package/dist/chunks/{instruction-discovery-x74ax8b2.js → generate-bzqyrf6j.js} +25 -25
- package/dist/chunks/{instruction-discovery-eqkxs06z.js → generate-cdm0dq9n.js} +6 -6
- package/dist/chunks/{instruction-discovery-r4akt23v.js → generate-cj02erkw.js} +3 -3
- package/dist/chunks/{instruction-discovery-dv1qgsyq.js → generate-cmwkp3r5.js} +8 -8
- package/dist/chunks/{instruction-discovery-7pw8dncw.js → generate-d2eqb18p.js} +4 -4
- package/dist/chunks/{instruction-discovery-75p81wsx.js → generate-dfc208d8.js} +32 -32
- package/dist/chunks/{instruction-discovery-dpkg50ah.js → generate-dpkg50ah.js} +1 -1
- package/dist/chunks/{instruction-discovery-k6hcwg2z.js → generate-dwxaxj0c.js} +9 -9
- package/dist/chunks/{instruction-discovery-c9qfs3nh.js → generate-e0ne0z26.js} +90 -90
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → generate-e3qxr5gk.js} +2 -2
- package/dist/chunks/generate-ee09rdq3.js +507 -0
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-ntngab6e.js → generate-ejbv3g31.js} +20 -10
- package/dist/chunks/{instruction-discovery-wvmj1et3.js → generate-ejg73w2g.js} +9 -9
- package/dist/chunks/{instruction-discovery-3z218dsj.js → generate-eqfn0pk5.js} +41 -46
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → generate-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-hn87b5yq.js → generate-evhyysd2.js} +35 -35
- package/dist/chunks/{instruction-discovery-yydx669n.js → generate-exjwxjfq.js} +15 -15
- package/dist/chunks/{instruction-discovery-4rr4p9ms.js → generate-f5k9xycy.js} +24 -24
- package/dist/chunks/{instruction-discovery-t9r88hzk.js → generate-fep41vc5.js} +24 -24
- package/dist/chunks/{instruction-discovery-38p5t189.js → generate-ffxkc1dx.js} +11 -11
- package/dist/chunks/{instruction-discovery-034ce5nj.js → generate-fjh44twp.js} +4 -4
- package/dist/chunks/{instruction-discovery-2daza0p7.js → generate-g2xfdbz5.js} +16 -16
- package/dist/chunks/{instruction-discovery-eq8x7ha8.js → generate-g9c3k2sz.js} +30 -38
- package/dist/chunks/{instruction-discovery-fxt23bak.js → generate-gcxxm8yg.js} +11 -11
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-pzxge5ds.js → generate-gej6rn0s.js} +30 -30
- package/dist/chunks/{instruction-discovery-srq8z0b0.js → generate-gh5z95q3.js} +9 -9
- package/dist/chunks/{instruction-discovery-nwb3b15q.js → generate-gjv38h0k.js} +20 -24
- package/dist/chunks/{instruction-discovery-nrjg26ec.js → generate-gk28ph79.js} +11 -11
- package/dist/chunks/{instruction-discovery-arxkpe44.js → generate-gknnw9w7.js} +60 -40
- package/dist/chunks/{instruction-discovery-6a5ag3jq.js → generate-gra2jmjd.js} +5 -5
- package/dist/chunks/{instruction-discovery-x5k8pkz3.js → generate-gtvea8z9.js} +3 -3
- package/dist/chunks/{instruction-discovery-dn5164wf.js → generate-gya1c0vy.js} +3 -3
- package/dist/chunks/{instruction-discovery-h2b79v29.js → generate-h2b79v29.js} +2 -2
- package/dist/chunks/{instruction-discovery-ywxndyv1.js → generate-h6310vsd.js} +4 -4
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-1vnjqps3.js → generate-h7aewrw9.js} +56 -56
- package/dist/chunks/{instruction-discovery-gd7r64mz.js → generate-h9jzhyk0.js} +11 -11
- package/dist/chunks/{instruction-discovery-gw7cjrad.js → generate-h9wp8z5w.js} +4 -4
- package/dist/chunks/{instruction-discovery-3bc8czyk.js → generate-hbyhqfhs.js} +5 -5
- package/dist/chunks/{instruction-discovery-70f73jf1.js → generate-hn4yapt1.js} +45 -45
- package/dist/chunks/{instruction-discovery-96c14hr5.js → generate-hrs38e71.js} +24 -24
- package/dist/chunks/{instruction-discovery-0n82x6dt.js → generate-hyxvh71r.js} +46 -46
- package/dist/chunks/{instruction-discovery-j56e64zr.js → generate-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-7wtms9gt.js → generate-j7vp94m4.js} +33 -33
- package/dist/chunks/{instruction-discovery-vc32h82s.js → generate-jb9mn43j.js} +22 -22
- package/dist/chunks/{instruction-discovery-na0cega3.js → generate-jjw1xd6n.js} +10 -10
- package/dist/chunks/{instruction-discovery-6644et9y.js → generate-jmdp6qyf.js} +35 -35
- package/dist/chunks/{instruction-discovery-098a7yv1.js → generate-jpep6vf5.js} +3 -3
- package/dist/chunks/{instruction-discovery-0yrmzdme.js → generate-jrw39j1g.js} +16 -11
- package/dist/chunks/{instruction-discovery-hz0q9sdq.js → generate-k1qrnqst.js} +8 -8
- package/dist/chunks/{instruction-discovery-hjxrfacw.js → generate-k5tx4xwh.js} +18 -18
- package/dist/chunks/{instruction-discovery-hehaxqkv.js → generate-kb6gw2zp.js} +4 -4
- package/dist/chunks/{instruction-discovery-c8g8cdht.js → generate-kkndcpqr.js} +4 -4
- package/dist/chunks/{instruction-discovery-b0xx1bw1.js → generate-kygz6673.js} +5 -5
- package/dist/chunks/{instruction-discovery-42h9518d.js → generate-m26jacn4.js} +11 -11
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → generate-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-36cgxzxf.js → generate-m4b4ezfy.js} +16 -16
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-rttzrg3r.js → generate-mjqndqed.js} +12 -12
- package/dist/chunks/{instruction-discovery-7je2rhvj.js → generate-mmy17vwk.js} +11 -11
- package/dist/chunks/{instruction-discovery-h53acpwd.js → generate-mt68kget.js} +24 -24
- package/dist/chunks/generate-mzmyqq3a.js +253 -0
- package/dist/chunks/{instruction-discovery-bh3q4eyg.js → generate-n5gzjg8d.js} +13 -13
- package/dist/chunks/{instruction-discovery-kjcere04.js → generate-n7fmmpds.js} +11 -11
- package/dist/chunks/{instruction-discovery-rqkavtkg.js → generate-n92tnbgp.js} +3 -3
- package/dist/chunks/{instruction-discovery-x8pk0y4v.js → generate-ntev6yqw.js} +42 -42
- package/dist/chunks/{instruction-discovery-s225zym4.js → generate-ntmn2n27.js} +17 -17
- package/dist/chunks/{instruction-discovery-wszd5dmy.js → generate-nwgjszw0.js} +15 -15
- package/dist/chunks/{instruction-discovery-s4r1cmp3.js → generate-nyhzf7s9.js} +17 -17
- package/dist/chunks/{instruction-discovery-yphk03p8.js → generate-nz1ptcx7.js} +20 -20
- package/dist/chunks/{instruction-discovery-kgr5617j.js → generate-p5cm9qbj.js} +15 -6
- package/dist/chunks/{instruction-discovery-e2jmw6zx.js → generate-pd0d3v86.js} +11 -11
- package/dist/chunks/{instruction-discovery-9prspse7.js → generate-peckcdzj.js} +13 -13
- package/dist/chunks/{instruction-discovery-xmh85kzb.js → generate-pfh2gawv.js} +11 -11
- package/dist/chunks/generate-phz3h32g.js +18 -0
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-p5pxx3ht.js → generate-ppcxd43r.js} +15 -15
- package/dist/chunks/{instruction-discovery-b65pgdb7.js → generate-pvkpwa2b.js} +16 -9
- package/dist/chunks/{instruction-discovery-79wzcjsa.js → generate-pxhak851.js} +6 -6
- package/dist/chunks/{instruction-discovery-8faykdbn.js → generate-q0808tka.js} +5 -5
- package/dist/chunks/{instruction-discovery-bc819vt5.js → generate-q0jhbe3n.js} +11 -11
- package/dist/chunks/{instruction-discovery-d737nyfv.js → generate-q0raz0xt.js} +9 -9
- package/dist/chunks/{instruction-discovery-r01t9b5y.js → generate-q3ersh05.js} +6 -6
- package/dist/chunks/{instruction-discovery-ccwzr35z.js → generate-qb7y9a6p.js} +13 -13
- package/dist/chunks/{instruction-discovery-qnet8f1y.js → generate-qbyggmx7.js} +7 -7
- package/dist/chunks/{instruction-discovery-qs2rp835.js → generate-qgatrawj.js} +11 -11
- package/dist/chunks/{instruction-discovery-cwa6csj7.js → generate-qmqgtz8f.js} +9 -9
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → generate-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-txp0vmzz.js → generate-qq54afgs.js} +15 -15
- package/dist/chunks/{instruction-discovery-4a973s6x.js → generate-qs9jyzer.js} +5 -5
- package/dist/chunks/{instruction-discovery-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-fqtvmpfq.js → generate-qwjmgwmn.js} +8 -8
- package/dist/chunks/{instruction-discovery-k3c624dm.js → generate-qxjc9qry.js} +4 -4
- package/dist/chunks/{instruction-discovery-768hztz0.js → generate-r7pm0y1x.js} +28 -28
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-z468zaec.js → generate-rh2b0agp.js} +17 -17
- package/dist/chunks/{instruction-discovery-67mhc6gs.js → generate-rpztatg6.js} +21 -21
- package/dist/chunks/{instruction-discovery-qgr4tws1.js → generate-rv4s02rg.js} +15 -15
- package/dist/chunks/{instruction-discovery-vk0h33mx.js → generate-s3pcx2b8.js} +10 -10
- package/dist/chunks/{instruction-discovery-9t7a50xb.js → generate-s8d7rejh.js} +4 -4
- package/dist/chunks/{instruction-discovery-qygbw77c.js → generate-scgrse2b.js} +5 -5
- package/dist/chunks/{instruction-discovery-yppg54y4.js → generate-sgpy7nbp.js} +16 -16
- package/dist/chunks/{instruction-discovery-93pbq578.js → generate-spja3q52.js} +28 -28
- package/dist/chunks/{instruction-discovery-qg6jkzae.js → generate-stnmwbvn.js} +45 -45
- package/dist/chunks/{instruction-discovery-c5c0bz0t.js → generate-t0sqncza.js} +5 -5
- package/dist/chunks/{instruction-discovery-ckf8nxjz.js → generate-t2az9yje.js} +4 -4
- package/dist/chunks/{instruction-discovery-s48x4bgh.js → generate-t3cgces8.js} +39 -39
- package/dist/chunks/{instruction-discovery-r57kss4c.js → generate-t55xhmjx.js} +36 -36
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-vpw3bjrj.js → generate-tbp0qxg2.js} +25 -25
- package/dist/chunks/generate-tc5sgnzb.js +26 -0
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → generate-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-5mxct2xg.js → generate-te8w5cgp.js} +10 -10
- package/dist/chunks/{instruction-discovery-386stjsv.js → generate-thtzhryg.js} +13 -13
- package/dist/chunks/{instruction-discovery-6ehccv3h.js → generate-trc3n3qb.js} +12 -12
- package/dist/chunks/{instruction-discovery-adrzke39.js → generate-v0es1rhs.js} +9 -9
- package/dist/chunks/{instruction-discovery-qyc0y5ej.js → generate-v1rqtb9w.js} +23 -23
- package/dist/chunks/{instruction-discovery-80t7gq44.js → generate-v1v20ddn.js} +4 -4
- package/dist/chunks/{instruction-discovery-m0r31qfn.js → generate-vbfgae2j.js} +4 -4
- package/dist/chunks/{instruction-discovery-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-w9p1c293.js → generate-vnh00gv4.js} +22 -22
- package/dist/chunks/{instruction-discovery-h3rm5wyc.js → generate-vswtd384.js} +20 -20
- package/dist/chunks/{instruction-discovery-93hpb89x.js → generate-vx3jgdek.js} +3 -3
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → generate-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → generate-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-gqawmzqm.js → generate-w1ad28wa.js} +8 -8
- package/dist/chunks/{instruction-discovery-w2h15q85.js → generate-w2h15q85.js} +2 -2
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-7e0zw79e.js → generate-w8vdqaq3.js} +27 -27
- package/dist/chunks/{instruction-discovery-b4twkq7r.js → generate-w92k2e0p.js} +4 -4
- package/dist/chunks/{instruction-discovery-4g11qfmx.js → generate-wc2m80g2.js} +34 -34
- package/dist/chunks/{instruction-discovery-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-fxvwdnb4.js → generate-wdshzat6.js} +44 -21
- package/dist/chunks/{instruction-discovery-jw34hpx6.js → generate-wg7dvnk1.js} +86 -86
- package/dist/chunks/{instruction-discovery-fnwnhbfk.js → generate-wj2bx7an.js} +13 -13
- package/dist/chunks/{instruction-discovery-9vjnmhkc.js → generate-wrp5ry2f.js} +15 -15
- package/dist/chunks/{instruction-discovery-2yez9773.js → generate-x0y04rr6.js} +18 -18
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → generate-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-e709npfq.js → generate-x4csn5yb.js} +17 -17
- package/dist/chunks/{instruction-discovery-7fvn2yaq.js → generate-xer3snnb.js} +8 -8
- package/dist/chunks/{instruction-discovery-vm2gnf4v.js → generate-xf4rrgwy.js} +24 -24
- package/dist/chunks/{instruction-discovery-an4n7p46.js → generate-xgaq9ax1.js} +20 -21
- package/dist/chunks/{instruction-discovery-xkntkrq7.js → generate-xkntkrq7.js} +2 -2
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-a56fhhr2.js → generate-y5pnfqkr.js} +21 -21
- package/dist/chunks/{instruction-discovery-qxmvdacm.js → generate-y8zbdhhn.js} +36 -36
- package/dist/chunks/{instruction-discovery-d4k4eg4n.js → generate-yfxkm5w6.js} +49 -49
- package/dist/chunks/{instruction-discovery-g6pt2ykv.js → generate-yhecr6n4.js} +17 -17
- package/dist/chunks/{instruction-discovery-rhraev7y.js → generate-yp2x3t23.js} +4 -4
- package/dist/chunks/{instruction-discovery-qtkea077.js → generate-ywacswhv.js} +11 -11
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-62s7jehk.js → generate-z15fp2pm.js} +5 -5
- package/dist/chunks/{instruction-discovery-b1f75b2t.js → generate-z32f8zps.js} +9 -9
- package/dist/chunks/{instruction-discovery-76jv6ta8.js → generate-z3507kbh.js} +15 -15
- package/dist/chunks/{instruction-discovery-0xcdhwc5.js → generate-z3ra53tp.js} +3 -3
- package/dist/chunks/{instruction-discovery-ysyp8d4a.js → generate-z872cvkj.js} +21 -21
- package/dist/chunks/{instruction-discovery-mjv4tm51.js → generate-z8hrkqzq.js} +4 -4
- package/dist/chunks/{instruction-discovery-e3bkmxas.js → generate-ze7rj9cq.js} +14 -14
- package/dist/chunks/{instruction-discovery-vn72gsba.js → generate-zfs8ae4p.js} +4 -4
- package/dist/chunks/{instruction-discovery-n8vdnqrc.js → generate-zmr78fwr.js} +5 -5
- package/dist/chunks/{instruction-discovery-wxyynt4w.js → generate-znsx74x0.js} +1 -1
- package/dist/chunks/{instruction-discovery-hjryqbzv.js → generate-zp2fsh7c.js} +45 -45
- package/dist/chunks/{instruction-discovery-hzktwm2m.js → generate-zpzjyv2k.js} +19 -19
- package/dist/chunks/{instruction-discovery-5mmejq10.js → generate-zq24ypn2.js} +32 -32
- package/dist/chunks/{instruction-discovery-1ajc00mn.js → generate-zqkxpfgh.js} +68 -68
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-a5jrrkeg.js → generate-zwhxpsnh.js} +20 -20
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +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 +116 -123
- package/dist/config/plugin/command.js +205 -213
- 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 +123 -130
- 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 +118 -125
- 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 +117 -124
- package/dist/config/plugin/tool-output.js +117 -125
- package/dist/config/plugin/websearch.js +117 -124
- 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 +117 -124
- 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 +93 -93
- 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 +104 -104
- 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 +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +104 -104
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- 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 +78 -79
- 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 +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +105 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +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 +91 -89
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- 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 +2 -2
- 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/gateway.js +2 -2
- 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 +115 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -122
- package/dist/plugin/provider/openai.js +93 -93
- 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 +115 -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 +70 -70
- package/dist/plugin/service.js +3 -3
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -230
- 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 +99 -99
- package/dist/reference/instructions.js +89 -89
- 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 +97 -97
- package/dist/rpc.js +86 -86
- 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 +214 -222
- package/dist/session/execution.js +127 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- 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 +129 -130
- package/dist/session/projector.js +86 -86
- 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 +224 -232
- 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 +164 -172
- 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 +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -211
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- 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 +213 -221
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- 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 +126 -126
- 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 +123 -123
- package/dist/tool/plugin/shell.js +210 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -220
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +108 -108
- 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 +9 -8
- package/dist/tool.js +12 -12
- 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/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/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/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 +2 -2
- package/dist/v1/config/migrate.js +96 -96
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +10 -11
- package/dist/chunks/instruction-discovery-21r38tys.js +0 -14
- package/dist/chunks/instruction-discovery-bscb95cy.js +0 -21
- package/dist/chunks/instruction-discovery-c49890bn.js +0 -194
- package/dist/chunks/instruction-discovery-j15mfg1p.js +0 -84
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +0 -18
- 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-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/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/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 → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → generate-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → generate-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → generate-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → generate-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → generate-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service82,
|
|
9
|
+
node86
|
|
10
|
+
} from "./generate-mjqndqed.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service80,
|
|
13
|
+
node84
|
|
14
|
+
} from "./generate-yhecr6n4.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./generate-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./generate-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error2,
|
|
26
|
+
ID: () => ID4,
|
|
27
|
+
Service: () => Service36,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node39,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID4 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error2 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service36 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service80;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID4.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service36.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node39 = makeLocationNode({
|
|
144
|
+
service: Service36,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service36, Service36.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service43, Service43.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error2({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID4, Error2, Service36, node39, noopLayer3, exports_snapshot2 };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service57
|
|
3
|
+
} from "./generate-8mnpn7jw.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./generate-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input6,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin40,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description4,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name6
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name6 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input6 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input7 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input6.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin40 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service57;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name6,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description4,
|
|
104
|
+
input: Input6,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin7 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name6,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name6, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input6, Plugin40, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-0z57cqh9.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-z8hrkqzq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./generate-yhecr6n4.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service66,
|
|
11
|
+
node69
|
|
12
|
+
} from "./generate-5v5aasd4.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service68,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
node71
|
|
20
|
+
} from "./generate-jb9mn43j.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service71,
|
|
23
|
+
node75
|
|
24
|
+
} from "./generate-qwjmgwmn.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
26
|
+
Service62,
|
|
27
|
+
node65
|
|
28
|
+
} from "./generate-7s2tn799.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./generate-vx3jgdek.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
34
|
+
Service63,
|
|
35
|
+
node66
|
|
36
|
+
} from "./generate-t3cgces8.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./generate-z3507kbh.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./generate-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/shell.ts
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError9,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
|
-
Service: () =>
|
|
51
|
+
Service: () => Service61,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node64
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -63,7 +63,7 @@ import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
|
63
63
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
import { Global } from "@opencode/util/global";
|
|
66
|
-
class
|
|
66
|
+
class NotFoundError9 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
67
67
|
id: Shell.ID
|
|
68
68
|
}) {
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ var EXITED_LIMIT = 25;
|
|
|
71
71
|
var RETENTION2 = Duration.days(7);
|
|
72
72
|
var DIRECTORY2 = "shell";
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service61 extends Context.Service()("@opencode/Shell") {
|
|
75
75
|
}
|
|
76
76
|
var cleanup2 = Effect.fn("Shell.cleanup")(function* () {
|
|
77
77
|
const fs = yield* FSUtil.Service;
|
|
@@ -87,15 +87,15 @@ var cleanupNode = makeGlobalNode({
|
|
|
87
87
|
layer: cleanupLayer,
|
|
88
88
|
deps: [FSUtil.node, Global.node]
|
|
89
89
|
});
|
|
90
|
-
var layer = () => Layer.effect(
|
|
90
|
+
var layer = () => Layer.effect(Service61, Effect.gen(function* () {
|
|
91
91
|
const bus = yield* Service83;
|
|
92
|
-
const location = yield*
|
|
92
|
+
const location = yield* Service80;
|
|
93
93
|
const global = yield* Global.Service;
|
|
94
|
-
const shell = yield*
|
|
95
|
-
const environment = yield*
|
|
96
|
-
const hooks = yield*
|
|
97
|
-
const environments = yield*
|
|
98
|
-
const config = yield*
|
|
94
|
+
const shell = yield* Service68;
|
|
95
|
+
const environment = yield* Service66;
|
|
96
|
+
const hooks = yield* Service71;
|
|
97
|
+
const environments = yield* Service62;
|
|
98
|
+
const config = yield* Service63;
|
|
99
99
|
const context = yield* Effect.context();
|
|
100
100
|
const runFork = Effect.runForkWith(context);
|
|
101
101
|
const commands = new Map;
|
|
@@ -116,7 +116,7 @@ var layer = () => Layer.effect(Service44, Effect.gen(function* () {
|
|
|
116
116
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
117
117
|
const command = commands.get(id);
|
|
118
118
|
if (!command)
|
|
119
|
-
return yield* new
|
|
119
|
+
return yield* new NotFoundError9({ id });
|
|
120
120
|
return command;
|
|
121
121
|
});
|
|
122
122
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -129,7 +129,7 @@ var layer = () => Layer.effect(Service44, Effect.gen(function* () {
|
|
|
129
129
|
commands.delete(id);
|
|
130
130
|
if (command.timeoutFiber)
|
|
131
131
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
132
|
-
yield* Deferred.fail(command.done, new
|
|
132
|
+
yield* Deferred.fail(command.done, new NotFoundError9({ id }));
|
|
133
133
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
134
134
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
135
135
|
});
|
|
@@ -323,22 +323,22 @@ var layer = () => Layer.effect(Service44, Effect.gen(function* () {
|
|
|
323
323
|
const command = yield* Deferred.await(ready);
|
|
324
324
|
return command.info;
|
|
325
325
|
});
|
|
326
|
-
return
|
|
326
|
+
return Service61.of({ create, list, get, wait, result, timeout, output, remove });
|
|
327
327
|
}));
|
|
328
|
-
var
|
|
329
|
-
service:
|
|
328
|
+
var node64 = makeLocationNode({
|
|
329
|
+
service: Service61,
|
|
330
330
|
layer: layer(),
|
|
331
331
|
deps: [
|
|
332
332
|
node87,
|
|
333
|
-
|
|
333
|
+
node84,
|
|
334
334
|
Global.node,
|
|
335
|
-
node49,
|
|
336
335
|
node71,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
336
|
+
node69,
|
|
337
|
+
node75,
|
|
338
|
+
node65,
|
|
339
|
+
node66,
|
|
340
340
|
cleanupNode
|
|
341
341
|
]
|
|
342
342
|
});
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { NotFoundError9, RETENTION2, DIRECTORY2, Service61, cleanup2, node64, exports_shell4 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-z8hrkqzq.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
12
|
-
import {
|
|
13
|
-
ID16,
|
|
14
|
-
Service80,
|
|
15
|
-
node84,
|
|
16
|
-
Event19
|
|
17
|
-
} from "./instruction-discovery-768hztz0.js";
|
|
11
|
+
} from "./generate-addxnjmp.js";
|
|
18
12
|
import {
|
|
13
|
+
ID14,
|
|
19
14
|
Service77,
|
|
20
|
-
node81
|
|
21
|
-
|
|
15
|
+
node81,
|
|
16
|
+
Event18
|
|
17
|
+
} from "./generate-r7pm0y1x.js";
|
|
18
|
+
import {
|
|
19
|
+
Service80,
|
|
20
|
+
node84
|
|
21
|
+
} from "./generate-yhecr6n4.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./generate-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -38,13 +38,13 @@ __export(exports_provider3, {
|
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
40
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
41
|
-
Event: () =>
|
|
42
|
-
ID: () =>
|
|
43
|
-
Info: () =>
|
|
41
|
+
Event: () => Event17,
|
|
42
|
+
ID: () => ID13,
|
|
43
|
+
Info: () => Info22,
|
|
44
44
|
LoadError: () => LoadError3,
|
|
45
45
|
Provider: () => exports_provider3,
|
|
46
|
-
Request: () =>
|
|
47
|
-
Service: () =>
|
|
46
|
+
Request: () => Request3,
|
|
47
|
+
Service: () => Service76,
|
|
48
48
|
Settings: () => Settings2,
|
|
49
49
|
Transport: () => Transport2,
|
|
50
50
|
aisdk: () => aisdk2,
|
|
@@ -54,7 +54,7 @@ __export(exports_provider3, {
|
|
|
54
54
|
mergeOverlay: () => mergeOverlay2,
|
|
55
55
|
modelSettings: () => modelSettings2,
|
|
56
56
|
nativeSettings: () => nativeSettings2,
|
|
57
|
-
node: () =>
|
|
57
|
+
node: () => node80,
|
|
58
58
|
packageName: () => packageName2,
|
|
59
59
|
timeout: () => timeout2,
|
|
60
60
|
timeouts: () => timeouts2
|
|
@@ -68,8 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
68
68
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
69
69
|
import { Credential } from "@opencode/schema/credential";
|
|
70
70
|
import { freeze } from "immer";
|
|
71
|
-
import { Event as
|
|
72
|
-
var
|
|
71
|
+
import { Event as Event17 } from "@opencode/schema/provider";
|
|
72
|
+
var ID13 = Provider.ID;
|
|
73
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
74
74
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
75
75
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -111,11 +111,14 @@ var builtins = new Map([
|
|
|
111
111
|
["@opencode/ai/providers/cerebras", () => import("@opencode/ai/providers/cerebras")],
|
|
112
112
|
["@opencode/ai/providers/cloudflare-ai-gateway", () => import("@opencode/ai/providers/cloudflare-ai-gateway")],
|
|
113
113
|
["@opencode/ai/providers/cloudflare-workers-ai", () => import("@opencode/ai/providers/cloudflare-workers-ai")],
|
|
114
|
+
["@opencode/ai/providers/cohere", () => import("@opencode/ai/providers/cohere")],
|
|
115
|
+
["@opencode/ai/providers/cohere/chat", () => import("@opencode/ai/providers/cohere/chat")],
|
|
114
116
|
["@opencode/ai/providers/deepinfra", () => import("@opencode/ai/providers/deepinfra")],
|
|
115
117
|
["@opencode/ai/providers/deepseek", () => import("@opencode/ai/providers/deepseek")],
|
|
116
118
|
["@opencode/ai/providers/digitalocean", () => import("@opencode/ai/providers/digitalocean")],
|
|
117
119
|
["@opencode/ai/providers/fireworks", () => import("@opencode/ai/providers/fireworks")],
|
|
118
120
|
["@opencode/ai/providers/google", () => import("@opencode/ai/providers/google")],
|
|
121
|
+
["@opencode/ai/providers/google/interactions", () => import("@opencode/ai/providers/google/interactions")],
|
|
119
122
|
["@opencode/ai/providers/google-vertex", () => import("@opencode/ai/providers/google-vertex")],
|
|
120
123
|
["@opencode/ai/providers/google-vertex/gemini", () => import("@opencode/ai/providers/google-vertex/gemini")],
|
|
121
124
|
["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
|
|
@@ -138,6 +141,7 @@ var builtins = new Map([
|
|
|
138
141
|
["@opencode/ai/providers/openai-compatible", () => import("@opencode/ai/providers/openai-compatible")],
|
|
139
142
|
["@opencode/ai/providers/openrouter", () => import("@opencode/ai/providers/openrouter")],
|
|
140
143
|
["@opencode/ai/providers/togetherai", () => import("@opencode/ai/providers/togetherai")],
|
|
144
|
+
["@opencode/ai/providers/venice", () => import("@opencode/ai/providers/venice")],
|
|
141
145
|
["@opencode/ai/providers/xai", () => import("@opencode/ai/providers/xai")],
|
|
142
146
|
["@opencode/ai/providers/zai/chat", () => import("@opencode/ai/providers/zai/chat")],
|
|
143
147
|
["@opencode/ai/providers/zai-coding-plan/chat", () => import("@opencode/ai/providers/zai-coding-plan/chat")],
|
|
@@ -223,13 +227,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
223
227
|
return result;
|
|
224
228
|
}, new Map).values());
|
|
225
229
|
}
|
|
226
|
-
var
|
|
230
|
+
var Request3 = Provider.Request;
|
|
227
231
|
var Compaction3 = Provider.Compaction;
|
|
228
232
|
var Transport2 = Provider.Transport;
|
|
229
233
|
var Settings2 = Provider.Settings;
|
|
230
|
-
var
|
|
234
|
+
var Info22 = Provider.Info;
|
|
231
235
|
|
|
232
|
-
class
|
|
236
|
+
class Service76 extends Context.Service()("@opencode/Provider") {
|
|
233
237
|
}
|
|
234
238
|
var definitions = new WeakMap;
|
|
235
239
|
function index(providerID, models) {
|
|
@@ -242,10 +246,10 @@ function index(providerID, models) {
|
|
|
242
246
|
definitions.set(models, indexes);
|
|
243
247
|
return result;
|
|
244
248
|
}
|
|
245
|
-
var layer = Layer.effect(
|
|
249
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
246
250
|
const bus = yield* Service83;
|
|
247
|
-
const integrations = yield*
|
|
248
|
-
const location = yield*
|
|
251
|
+
const integrations = yield* Service77;
|
|
252
|
+
const location = yield* Service80;
|
|
249
253
|
const state = create3({
|
|
250
254
|
name: "provider",
|
|
251
255
|
initial: () => new Map,
|
|
@@ -256,7 +260,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
256
260
|
const current = records.get(id);
|
|
257
261
|
if (current)
|
|
258
262
|
return current;
|
|
259
|
-
const added = { provider:
|
|
263
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
260
264
|
records.set(id, added);
|
|
261
265
|
maps.add(added.models);
|
|
262
266
|
return added;
|
|
@@ -337,7 +341,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
337
341
|
const available = Array.from(records.values()).filter((record) => {
|
|
338
342
|
if (record.provider.activation === "disabled")
|
|
339
343
|
return false;
|
|
340
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
344
|
+
const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
|
|
341
345
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
342
346
|
return false;
|
|
343
347
|
if (record.provider.activation === "enabled")
|
|
@@ -363,8 +367,8 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
363
367
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
364
368
|
});
|
|
365
369
|
});
|
|
366
|
-
yield* bus.subscribe([
|
|
367
|
-
return
|
|
370
|
+
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
371
|
+
return Service76.of({
|
|
368
372
|
transform: state.transform,
|
|
369
373
|
reload: state.reload,
|
|
370
374
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -373,7 +377,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
373
377
|
snapshot
|
|
374
378
|
});
|
|
375
379
|
}));
|
|
376
|
-
var
|
|
380
|
+
var node80 = makeLocationNode({ service: Service76, layer, deps: [node87, node81, node84] });
|
|
377
381
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
378
382
|
const module = yield* Effect.tryPromise({
|
|
379
383
|
try: () => {
|
|
@@ -431,6 +435,7 @@ var PACKAGES = {
|
|
|
431
435
|
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
432
436
|
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
433
437
|
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
438
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
434
439
|
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
435
440
|
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
436
441
|
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
@@ -442,7 +447,8 @@ var PACKAGES = {
|
|
|
442
447
|
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
443
448
|
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
444
449
|
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
445
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
450
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
451
|
+
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
446
452
|
};
|
|
447
453
|
var protocols = (name) => ({
|
|
448
454
|
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
@@ -463,6 +469,7 @@ var HOSTS = {
|
|
|
463
469
|
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
464
470
|
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
465
471
|
},
|
|
472
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
466
473
|
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
467
474
|
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
468
475
|
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
@@ -643,4 +650,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
643
650
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
644
651
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
645
652
|
|
|
646
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
653
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service76, node80, exports_provider3, Event17 };
|