@opencode/core 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +5 -5
- package/dist/bus.js +68 -68
- package/dist/chunks/{websearch-yvb78gxr.js → model-resolver-03tc8n66.js} +13 -13
- package/dist/chunks/{websearch-0paq2nw3.js → model-resolver-0paq2nw3.js} +1 -1
- package/dist/chunks/{websearch-0q0f95c6.js → model-resolver-0q0f95c6.js} +1 -1
- package/dist/chunks/{websearch-2a9mph1a.js → model-resolver-0qj8bs54.js} +37 -37
- package/dist/chunks/{websearch-vpf0b8my.js → model-resolver-0rwy62px.js} +16 -16
- package/dist/chunks/{websearch-pcja8x98.js → model-resolver-0tc3z27w.js} +24 -24
- package/dist/chunks/{websearch-e32j4sgx.js → model-resolver-0vhxqftd.js} +4 -4
- package/dist/chunks/{websearch-n6hdevwk.js → model-resolver-0x74s4t4.js} +26 -26
- package/dist/chunks/{websearch-qt0nm0tq.js → model-resolver-174jbkxj.js} +11 -11
- package/dist/chunks/{websearch-1dazxqgg.js → model-resolver-1dazxqgg.js} +2 -2
- package/dist/chunks/{websearch-e80fa34w.js → model-resolver-1jqe3dpm.js} +7 -7
- package/dist/chunks/{websearch-g9xsnvx2.js → model-resolver-1k2f24wg.js} +9 -9
- package/dist/chunks/{websearch-pfxxjzb6.js → model-resolver-1mz6qk5q.js} +29 -29
- package/dist/chunks/{websearch-kxpygcw9.js → model-resolver-1s3p39g4.js} +6 -6
- package/dist/chunks/{websearch-ktgyenpv.js → model-resolver-1vpcg86p.js} +13 -13
- package/dist/chunks/{websearch-21r38tys.js → model-resolver-21r38tys.js} +1 -1
- package/dist/chunks/{websearch-btmdjt4s.js → model-resolver-23ve48d7.js} +34 -34
- package/dist/chunks/{websearch-2402vzrj.js → model-resolver-2402vzrj.js} +1 -1
- package/dist/chunks/{websearch-pnv527nz.js → model-resolver-24dd53tp.js} +9 -9
- package/dist/chunks/{websearch-2a5m3afh.js → model-resolver-2a5m3afh.js} +1 -1
- package/dist/chunks/{websearch-57ez7d0k.js → model-resolver-2fgn2we9.js} +9 -9
- package/dist/chunks/{websearch-h2tmbha1.js → model-resolver-2k6pk5vr.js} +4 -4
- package/dist/chunks/{websearch-nbeebzc0.js → model-resolver-2ky1fxdg.js} +8 -8
- package/dist/chunks/{websearch-8b4gqq2a.js → model-resolver-2wkarfxb.js} +17 -17
- package/dist/chunks/{websearch-ytpnnqhk.js → model-resolver-38xyry6s.js} +32 -32
- package/dist/chunks/{websearch-3fc6dm20.js → model-resolver-3fc6dm20.js} +1 -1
- package/dist/chunks/{websearch-byhgpva7.js → model-resolver-3fm5zfbn.js} +20 -20
- package/dist/chunks/{websearch-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-4zr9c183.js → model-resolver-3r3a85bw.js} +14 -14
- package/dist/chunks/{websearch-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
- package/dist/chunks/{websearch-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
- package/dist/chunks/{websearch-h6r3nrb9.js → model-resolver-44h5tttr.js} +4 -4
- package/dist/chunks/{websearch-44ke2mar.js → model-resolver-44ke2mar.js} +2 -2
- package/dist/chunks/{websearch-m6f3t844.js → model-resolver-4arb9zza.js} +8 -8
- package/dist/chunks/{websearch-7br4y16f.js → model-resolver-4b6qd0e2.js} +3 -3
- package/dist/chunks/{websearch-7ge6n5j8.js → model-resolver-4fbyhaeh.js} +4 -4
- package/dist/chunks/{websearch-yweepa2j.js → model-resolver-4hndnerf.js} +3 -3
- package/dist/chunks/{websearch-8fmf3tg1.js → model-resolver-4j9e7cf8.js} +15 -15
- package/dist/chunks/{websearch-bz85s9hh.js → model-resolver-4jc5c4h4.js} +1 -1
- package/dist/chunks/{websearch-ca6w0az7.js → model-resolver-4k3f784t.js} +6 -6
- package/dist/chunks/{websearch-721ynsaq.js → model-resolver-4perdbh7.js} +20 -20
- package/dist/chunks/{websearch-qpnen36s.js → model-resolver-4skav2s8.js} +44 -44
- package/dist/chunks/{websearch-bwc02zqa.js → model-resolver-4wv1b6rs.js} +4 -4
- package/dist/chunks/{websearch-ednp5hmx.js → model-resolver-4xhhjths.js} +8 -8
- package/dist/chunks/{websearch-rfx28j1a.js → model-resolver-4z2468ba.js} +11 -11
- package/dist/chunks/{websearch-rr5a4r7f.js → model-resolver-500tb9th.js} +30 -30
- package/dist/chunks/{websearch-4t9cqsny.js → model-resolver-54t47avc.js} +9 -9
- package/dist/chunks/{websearch-x53p46j9.js → model-resolver-58jf3t5q.js} +50 -50
- package/dist/chunks/{websearch-j89a0wbm.js → model-resolver-5a56x6pe.js} +3 -3
- package/dist/chunks/{websearch-5daktx2q.js → model-resolver-5daktx2q.js} +1 -1
- package/dist/chunks/{websearch-qsxf26yz.js → model-resolver-5qkxfyep.js} +6 -6
- package/dist/chunks/{websearch-5t3nmthw.js → model-resolver-5t3nmthw.js} +2 -2
- package/dist/chunks/{websearch-fj8fr7dj.js → model-resolver-5t68c6r6.js} +15 -15
- package/dist/chunks/{websearch-40bnz2ss.js → model-resolver-6219dr34.js} +4 -4
- package/dist/chunks/{websearch-669tq793.js → model-resolver-669tq793.js} +1 -1
- package/dist/chunks/{websearch-4zaanewj.js → model-resolver-6a9wqxav.js} +21 -21
- package/dist/chunks/{websearch-yna87b4j.js → model-resolver-6jd6xyvr.js} +23 -23
- package/dist/chunks/{websearch-wy092wnb.js → model-resolver-6mc00j80.js} +16 -16
- package/dist/chunks/{websearch-6msgmcgs.js → model-resolver-6msgmcgs.js} +1 -1
- package/dist/chunks/{websearch-pn0hqhy4.js → model-resolver-6trryszd.js} +24 -24
- package/dist/chunks/{websearch-69srdcjj.js → model-resolver-6wjgjjys.js} +22 -22
- package/dist/chunks/{websearch-cwjws732.js → model-resolver-6z91g84v.js} +52 -52
- package/dist/chunks/{websearch-cb3acs6r.js → model-resolver-7073r8ra.js} +43 -43
- package/dist/chunks/{websearch-jkkc4s57.js → model-resolver-76h15cea.js} +17 -17
- package/dist/chunks/{websearch-d4he2qe1.js → model-resolver-79qaa2kf.js} +9 -9
- package/dist/chunks/{websearch-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-4766b92f.js → model-resolver-7bn4xdzk.js} +179 -179
- package/dist/chunks/{websearch-jqp60asj.js → model-resolver-7edpsxsq.js} +22 -22
- package/dist/chunks/{websearch-bzgbr59y.js → model-resolver-7entrr9d.js} +30 -30
- package/dist/chunks/{websearch-zv4w339z.js → model-resolver-7kpff7kp.js} +10 -10
- package/dist/chunks/model-resolver-7q5q6wvp.js +252 -0
- package/dist/chunks/{websearch-ep6z9mt6.js → model-resolver-818pfwc9.js} +8 -8
- package/dist/chunks/{websearch-zd30eb5w.js → model-resolver-84zcxbc9.js} +5 -5
- package/dist/chunks/{websearch-8d7r5vzw.js → model-resolver-8d7r5vzw.js} +1 -1
- package/dist/chunks/{websearch-8p4f9s12.js → model-resolver-8p4f9s12.js} +2 -2
- package/dist/chunks/{websearch-wawr6n1a.js → model-resolver-8pccpkv9.js} +12 -12
- package/dist/chunks/{websearch-cgfbfj64.js → model-resolver-9a7hdk7d.js} +6 -6
- package/dist/chunks/{websearch-5qcvsacd.js → model-resolver-9bpdh39b.js} +27 -27
- package/dist/chunks/{websearch-v21173bj.js → model-resolver-9erfw3e9.js} +10 -10
- package/dist/chunks/{websearch-q6sn8kt1.js → model-resolver-9f502qc3.js} +19 -19
- package/dist/chunks/{websearch-45vzqjcc.js → model-resolver-9mxycm4n.js} +7 -7
- package/dist/chunks/{websearch-qe1nqkem.js → model-resolver-9n0wq1sz.js} +10 -10
- package/dist/chunks/{websearch-9sh4wc5j.js → model-resolver-9sh4wc5j.js} +1 -1
- package/dist/chunks/{websearch-1cq2a0y1.js → model-resolver-9vn92ra1.js} +7 -7
- package/dist/chunks/{websearch-a1bz86dw.js → model-resolver-a1bz86dw.js} +3 -3
- package/dist/chunks/{websearch-2gxn7j3s.js → model-resolver-a6gv4brf.js} +26 -26
- package/dist/chunks/{websearch-kasvs68z.js → model-resolver-a7k9f908.js} +15 -15
- package/dist/chunks/{websearch-aaet6srn.js → model-resolver-aaet6srn.js} +2 -2
- package/dist/chunks/{websearch-a8ne3yaj.js → model-resolver-aqe8m42w.js} +24 -24
- package/dist/chunks/{websearch-1fgcm8sa.js → model-resolver-atazjj4k.js} +3 -3
- package/dist/chunks/{websearch-b6gygkdw.js → model-resolver-b6gygkdw.js} +2 -2
- package/dist/chunks/{websearch-d1tczq4r.js → model-resolver-b7hq92ze.js} +5 -5
- package/dist/chunks/{websearch-zv31vsf2.js → model-resolver-begh0jjd.js} +17 -17
- package/dist/chunks/{websearch-pjx48m1m.js → model-resolver-bgpjdstn.js} +1 -1
- package/dist/chunks/{websearch-cq37gk0t.js → model-resolver-bha4atvq.js} +4 -4
- package/dist/chunks/{websearch-azkeppvt.js → model-resolver-bjgp5qsh.js} +8 -8
- package/dist/chunks/{websearch-00fvbtb6.js → model-resolver-bk0hfdtk.js} +54 -54
- package/dist/chunks/{websearch-9yk0xwpf.js → model-resolver-bktrs35w.js} +30 -30
- package/dist/chunks/{websearch-wjre5m3f.js → model-resolver-bp7re7fs.js} +16 -16
- package/dist/chunks/{websearch-vwqydq6z.js → model-resolver-bwk58cjx.js} +12 -12
- package/dist/chunks/{websearch-b0dgvpy7.js → model-resolver-bzgcn0jp.js} +9 -9
- package/dist/chunks/{websearch-dq0v80fr.js → model-resolver-c488s98d.js} +12 -12
- package/dist/chunks/{websearch-63x4799j.js → model-resolver-c9fwgwbn.js} +22 -22
- package/dist/chunks/{websearch-a5chm12h.js → model-resolver-cb3fxghj.js} +3 -3
- package/dist/chunks/{websearch-egcqtb3v.js → model-resolver-cb5jyev7.js} +19 -19
- package/dist/chunks/{websearch-wnhwta9h.js → model-resolver-cdfabfzn.js} +41 -41
- package/dist/chunks/{websearch-cfpkc3c9.js → model-resolver-cfpkc3c9.js} +2 -2
- package/dist/chunks/{websearch-rtbmhys6.js → model-resolver-cggswk6d.js} +16 -16
- package/dist/chunks/{websearch-xmbbp4st.js → model-resolver-ckd8zaaf.js} +24 -24
- package/dist/chunks/{websearch-b1kzaezp.js → model-resolver-cynj0k86.js} +3 -3
- package/dist/chunks/{websearch-67m7nkze.js → model-resolver-cz7kh7dr.js} +31 -31
- package/dist/chunks/{websearch-28dp60he.js → model-resolver-d14vprx8.js} +10 -10
- package/dist/chunks/{websearch-vtt0yr3x.js → model-resolver-d5fw341f.js} +11 -11
- package/dist/chunks/{websearch-2vqs3qr0.js → model-resolver-dm8zbqys.js} +11 -11
- package/dist/chunks/{websearch-q0y9rkgz.js → model-resolver-dngkxtp1.js} +3 -3
- package/dist/chunks/{websearch-6vq97qmv.js → model-resolver-dtqg9ce1.js} +5 -5
- package/dist/chunks/{websearch-3nhk3fk8.js → model-resolver-e4s55qb8.js} +12 -12
- package/dist/chunks/{websearch-rhjbct0v.js → model-resolver-eaj1djv9.js} +8 -8
- package/dist/chunks/{websearch-q7heda50.js → model-resolver-ed6vg7gg.js} +24 -24
- package/dist/chunks/{websearch-ef5x83kb.js → model-resolver-ef5x83kb.js} +1 -1
- package/dist/chunks/{websearch-94jc9gk0.js → model-resolver-eg6f78tx.js} +9 -9
- package/dist/chunks/{websearch-erw5rpbs.js → model-resolver-erw5rpbs.js} +2 -2
- package/dist/chunks/{websearch-etq0c3wd.js → model-resolver-etq0c3wd.js} +1 -1
- package/dist/chunks/{websearch-af0ngryb.js → model-resolver-ez8b3w29.js} +13 -13
- package/dist/chunks/{websearch-728qhrqd.js → model-resolver-f2f4fq37.js} +12 -12
- package/dist/chunks/{websearch-kne8f3cn.js → model-resolver-f73rjn58.js} +4 -4
- package/dist/chunks/{websearch-f828m53h.js → model-resolver-f828m53h.js} +2 -2
- package/dist/chunks/{websearch-geps4ccc.js → model-resolver-fb5x04t9.js} +4 -4
- package/dist/chunks/{websearch-f0kvdsjk.js → model-resolver-fbfs1p3d.js} +29 -29
- package/dist/chunks/{websearch-0jwsre1p.js → model-resolver-fcrkznn8.js} +5 -5
- package/dist/chunks/{websearch-qa3qhgw8.js → model-resolver-fdv30zvt.js} +5 -5
- package/dist/chunks/{websearch-cydhczrf.js → model-resolver-feqg3r3v.js} +23 -23
- package/dist/chunks/{websearch-wgmfr2f3.js → model-resolver-fj98xnxf.js} +23 -23
- package/dist/chunks/{websearch-ff0htmxq.js → model-resolver-fpq9acqp.js} +6 -6
- package/dist/chunks/{websearch-fxbjtjnd.js → model-resolver-fxbjtjnd.js} +1 -1
- package/dist/chunks/{websearch-9m8xvtm7.js → model-resolver-fyrmx6v5.js} +20 -20
- package/dist/chunks/{websearch-cmwkp3r5.js → model-resolver-g0445xdp.js} +4 -4
- package/dist/chunks/{websearch-ysmd2bxa.js → model-resolver-g0jvtwam.js} +30 -30
- package/dist/chunks/{websearch-d5py0aaa.js → model-resolver-g0kbvjej.js} +25 -25
- package/dist/chunks/{websearch-magykp64.js → model-resolver-g190xswt.js} +4 -4
- package/dist/chunks/{websearch-vwhy2xj8.js → model-resolver-g36s099n.js} +11 -11
- package/dist/chunks/{websearch-mec04ymj.js → model-resolver-g83zqadm.js} +1 -1
- package/dist/chunks/{websearch-257v7a1q.js → model-resolver-gatkcwyt.js} +11 -11
- package/dist/chunks/{websearch-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
- package/dist/chunks/{websearch-xgg4rgr8.js → model-resolver-gf10bg2q.js} +11 -11
- package/dist/chunks/{websearch-2z26cvtf.js → model-resolver-gg914723.js} +20 -20
- package/dist/chunks/{websearch-8setgw8w.js → model-resolver-ggdjqpaj.js} +12 -12
- package/dist/chunks/{websearch-7nhrbb6w.js → model-resolver-gmjjhz4f.js} +6 -6
- package/dist/chunks/{websearch-8ffd997c.js → model-resolver-gnemeed9.js} +30 -30
- package/dist/chunks/{websearch-f51x5vyb.js → model-resolver-gqx1px1s.js} +43 -43
- package/dist/chunks/{websearch-gv6a8nnw.js → model-resolver-gv6a8nnw.js} +2 -2
- package/dist/chunks/{websearch-xnzqxyx5.js → model-resolver-gxa9nk0m.js} +30 -30
- package/dist/chunks/{websearch-9je2ywm6.js → model-resolver-gyxcggba.js} +44 -44
- package/dist/chunks/{websearch-cqaxg9fr.js → model-resolver-h01nhy7h.js} +4 -4
- package/dist/chunks/{websearch-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
- package/dist/chunks/{websearch-q8s08p64.js → model-resolver-h8h70yyk.js} +5 -5
- package/dist/chunks/{websearch-bacyadyn.js → model-resolver-h90v2x9d.js} +4 -4
- package/dist/chunks/{websearch-yccezfcq.js → model-resolver-hhh4a54a.js} +22 -22
- package/dist/chunks/{websearch-g0kh82bp.js → model-resolver-hj6m6sww.js} +32 -32
- package/dist/chunks/{websearch-cefp19fp.js → model-resolver-hk8smxzn.js} +85 -85
- package/dist/chunks/{websearch-tw7ncza7.js → model-resolver-hnkzxtsm.js} +22 -22
- package/dist/chunks/{websearch-jsekz2vh.js → model-resolver-hw06r73w.js} +3 -3
- package/dist/chunks/{websearch-2jfqhj3w.js → model-resolver-hz1azbq1.js} +3 -3
- package/dist/chunks/{websearch-r5x6zcsm.js → model-resolver-j028xdjb.js} +3 -3
- package/dist/chunks/{websearch-j56e64zr.js → model-resolver-j56e64zr.js} +1 -1
- package/dist/chunks/{websearch-9kmbd9mt.js → model-resolver-jca4demv.js} +2 -2
- package/dist/chunks/{websearch-wd7kjd8z.js → model-resolver-jx9zk2j8.js} +22 -22
- package/dist/chunks/{websearch-ja57wr1y.js → model-resolver-k0t2epba.js} +11 -11
- package/dist/chunks/{websearch-k3c624dm.js → model-resolver-k3c624dm.js} +3 -3
- package/dist/chunks/{websearch-2r5dq4tz.js → model-resolver-k64bnwpa.js} +6 -6
- package/dist/chunks/{websearch-q7pad7f3.js → model-resolver-kckn9zrm.js} +18 -18
- package/dist/chunks/{websearch-sn0z3ax3.js → model-resolver-kstfjgce.js} +23 -23
- package/dist/chunks/{websearch-m3fdjcah.js → model-resolver-m3fdjcah.js} +1 -1
- package/dist/chunks/{websearch-vq95j9ek.js → model-resolver-m7t37vek.js} +2 -2
- package/dist/chunks/{websearch-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-63zxpw7x.js → model-resolver-mdjvh782.js} +11 -11
- package/dist/chunks/{websearch-fz4tcata.js → model-resolver-mdm19ygt.js} +17 -17
- package/dist/chunks/{websearch-56gdpj1q.js → model-resolver-mfqp6xfm.js} +6 -6
- package/dist/chunks/{websearch-s01nxg3k.js → model-resolver-mty6m7w9.js} +22 -22
- package/dist/chunks/{websearch-b8tt4s7v.js → model-resolver-mv0cq2z8.js} +8 -8
- package/dist/chunks/{websearch-70sqfhcp.js → model-resolver-my074bcz.js} +47 -47
- package/dist/chunks/{websearch-gas0hv4z.js → model-resolver-njgrmpnq.js} +16 -16
- package/dist/chunks/{websearch-0k3mr0xx.js → model-resolver-nqpj164e.js} +13 -13
- package/dist/chunks/{websearch-ykb9earz.js → model-resolver-nx8b8w69.js} +5 -5
- package/dist/chunks/{websearch-dp0abknt.js → model-resolver-nz1y9rs9.js} +25 -25
- package/dist/chunks/{websearch-j9ee68hg.js → model-resolver-nz2zjb46.js} +23 -23
- package/dist/chunks/{websearch-zvyfprkc.js → model-resolver-p13zq1q5.js} +20 -20
- package/dist/chunks/{websearch-tf2e20t4.js → model-resolver-pdwdsh5k.js} +11 -11
- package/dist/chunks/{websearch-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
- package/dist/chunks/{websearch-nj9fmwgy.js → model-resolver-pk8w8bk6.js} +6 -6
- package/dist/chunks/{websearch-pknna89w.js → model-resolver-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-bct739vz.js → model-resolver-pmr4s4kc.js} +4 -4
- package/dist/chunks/{websearch-3hkye8av.js → model-resolver-pmt63s4b.js} +17 -17
- package/dist/chunks/{websearch-8heej3bj.js → model-resolver-pnc3prtr.js} +27 -27
- package/dist/chunks/{websearch-df79gpwv.js → model-resolver-ppvh1dqe.js} +11 -11
- package/dist/chunks/{websearch-48e3sgyw.js → model-resolver-pqfrnb1v.js} +10 -10
- package/dist/chunks/{websearch-479a8j7t.js → model-resolver-pqvm91z0.js} +38 -38
- package/dist/chunks/{websearch-6wb18vcm.js → model-resolver-q2g7hqn9.js} +90 -90
- package/dist/chunks/{websearch-mf9m2v67.js → model-resolver-q3t37ft6.js} +3 -3
- package/dist/chunks/{websearch-xxtc5hj7.js → model-resolver-qa42b0qm.js} +26 -26
- package/dist/chunks/{websearch-j533r9mj.js → model-resolver-qh2rvgcy.js} +32 -32
- package/dist/chunks/model-resolver-qpq35ba3.js +26 -0
- package/dist/chunks/{websearch-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
- package/dist/chunks/{websearch-sm965ndy.js → model-resolver-qvb3nf84.js} +8 -8
- package/dist/chunks/{websearch-s2q5f0ep.js → model-resolver-qyb91t3f.js} +6 -6
- package/dist/chunks/{websearch-81zbrjdd.js → model-resolver-qyyztgt2.js} +5 -5
- package/dist/chunks/{websearch-1acjjqhc.js → model-resolver-r8xr0va3.js} +4 -4
- package/dist/chunks/{websearch-rdw6cm16.js → model-resolver-rdw6cm16.js} +1 -1
- package/dist/chunks/{websearch-y5beve1t.js → model-resolver-rweywjj1.js} +19 -19
- package/dist/chunks/model-resolver-rz4nxkah.js +503 -0
- package/dist/chunks/{websearch-bjn91642.js → model-resolver-s0hza5ac.js} +4 -4
- package/dist/chunks/{websearch-h18rmnek.js → model-resolver-s4waqpsd.js} +15 -15
- package/dist/chunks/{websearch-5s4efm0s.js → model-resolver-s96k9d5p.js} +41 -41
- package/dist/chunks/{websearch-ncqqrhc3.js → model-resolver-sd9tm8pe.js} +19 -19
- package/dist/chunks/{websearch-b4jr5bvf.js → model-resolver-sfn11g7f.js} +66 -66
- package/dist/chunks/{websearch-m7y66avd.js → model-resolver-sk1h1qsj.js} +5 -5
- package/dist/chunks/{websearch-df2mqfaw.js → model-resolver-spf3as2g.js} +8 -8
- package/dist/chunks/{websearch-fsz9a353.js → model-resolver-t3q6jrjx.js} +15 -15
- package/dist/chunks/{websearch-8d0p2m37.js → model-resolver-t44e5ekz.js} +5 -5
- package/dist/chunks/{websearch-gq69k564.js → model-resolver-t6794rbq.js} +29 -29
- package/dist/chunks/{websearch-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
- package/dist/chunks/{websearch-m3nc835m.js → model-resolver-tbjske3a.js} +15 -15
- package/dist/chunks/{websearch-p28j5sbe.js → model-resolver-tbz0fdvh.js} +5 -5
- package/dist/chunks/{websearch-89znhe33.js → model-resolver-tcezcvh9.js} +4 -4
- package/dist/chunks/{websearch-tdstcens.js → model-resolver-tdstcens.js} +1 -1
- package/dist/chunks/{websearch-e9wter2c.js → model-resolver-tg3zms68.js} +30 -30
- package/dist/chunks/{websearch-tehwna3t.js → model-resolver-thj49w3f.js} +7 -7
- package/dist/chunks/{websearch-4c8j5v6g.js → model-resolver-tk3x1716.js} +15 -15
- package/dist/chunks/{websearch-q85t7zb8.js → model-resolver-tpagyfdb.js} +11 -11
- package/dist/chunks/{websearch-tvtrv512.js → model-resolver-tvtrv512.js} +1 -1
- package/dist/chunks/{websearch-9y0w708y.js → model-resolver-tx9w5tca.js} +8 -8
- package/dist/chunks/{websearch-x8wrq3yr.js → model-resolver-txjphrd9.js} +8 -8
- package/dist/chunks/{websearch-dj9sq318.js → model-resolver-tz2bjj40.js} +5 -5
- package/dist/chunks/{websearch-dk7w7hgz.js → model-resolver-v1n7f3bv.js} +46 -46
- package/dist/chunks/{websearch-9ckvqgv0.js → model-resolver-vdz29p4n.js} +34 -34
- package/dist/chunks/{websearch-veqvce7d.js → model-resolver-veqvce7d.js} +1 -1
- package/dist/chunks/{websearch-zzfy15vp.js → model-resolver-vj84vw6v.js} +18 -18
- package/dist/chunks/{websearch-8mqqtss7.js → model-resolver-vm3q9gwz.js} +9 -9
- package/dist/chunks/{websearch-pqs23sba.js → model-resolver-vqpavwsp.js} +10 -10
- package/dist/chunks/{websearch-rzq9nr28.js → model-resolver-vtr3qy6y.js} +9 -9
- package/dist/chunks/{websearch-ntyqt0ve.js → model-resolver-vvge8z52.js} +5 -5
- package/dist/chunks/{websearch-vzcthcp8.js → model-resolver-vzcthcp8.js} +1 -1
- package/dist/chunks/{websearch-06dxphr1.js → model-resolver-w1k39n5e.js} +4 -4
- package/dist/chunks/{websearch-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-1mv4feyx.js → model-resolver-wa5fn18k.js} +11 -11
- package/dist/chunks/{websearch-wd87259q.js → model-resolver-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-ksz5wrf2.js → model-resolver-whxapjwv.js} +9 -9
- package/dist/chunks/{websearch-qg2t1cnz.js → model-resolver-wwxnzhtj.js} +20 -20
- package/dist/chunks/{websearch-x1ezjp6w.js → model-resolver-x1ezjp6w.js} +1 -1
- package/dist/chunks/{websearch-rn169q41.js → model-resolver-x9hfrad7.js} +10 -10
- package/dist/chunks/{websearch-y35sf2j4.js → model-resolver-x9mtwtp0.js} +4 -4
- package/dist/chunks/{websearch-bgfhd05q.js → model-resolver-xbtb5td3.js} +7 -7
- package/dist/chunks/{websearch-40vg4f55.js → model-resolver-xct4z947.js} +36 -36
- package/dist/chunks/{websearch-xfkkasph.js → model-resolver-xfkkasph.js} +1 -1
- package/dist/chunks/{websearch-9y2cgwvf.js → model-resolver-xfv3pavf.js} +24 -24
- package/dist/chunks/{websearch-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
- package/dist/chunks/{websearch-y71avatq.js → model-resolver-y71avatq.js} +1 -1
- package/dist/chunks/{websearch-24cy06qr.js → model-resolver-ycjxgkmn.js} +35 -35
- package/dist/chunks/{websearch-apsct0ff.js → model-resolver-ycwdbjxs.js} +5 -5
- package/dist/chunks/{websearch-yfqwtwmb.js → model-resolver-yghd6nht.js} +13 -13
- package/dist/chunks/{websearch-gg7pg1rj.js → model-resolver-yjptyezs.js} +5 -5
- package/dist/chunks/{websearch-cs4aeaz8.js → model-resolver-yp71q2zj.js} +33 -33
- package/dist/chunks/{websearch-pm6ahx9a.js → model-resolver-yr3ev74z.js} +14 -14
- package/dist/chunks/{websearch-yrhqyw5v.js → model-resolver-yrhqyw5v.js} +1 -1
- package/dist/chunks/{websearch-yrznvahk.js → model-resolver-yrznvahk.js} +2 -2
- package/dist/chunks/{websearch-pecb0brz.js → model-resolver-yt0fqk68.js} +5 -5
- package/dist/chunks/{websearch-ceykt9br.js → model-resolver-ytfssxsq.js} +25 -25
- package/dist/chunks/{websearch-2nmgtr31.js → model-resolver-yx9ma9ke.js} +17 -17
- package/dist/chunks/{websearch-z0bkrqjs.js → model-resolver-z0bkrqjs.js} +1 -1
- package/dist/chunks/{websearch-pt7y7m15.js → model-resolver-z2pn9625.js} +4 -4
- package/dist/chunks/{websearch-b4qkjsn5.js → model-resolver-z4068eyq.js} +11 -11
- package/dist/chunks/{websearch-z63w68vq.js → model-resolver-z63w68vq.js} +2 -2
- package/dist/chunks/{websearch-ejdds51n.js → model-resolver-z9mxambq.js} +10 -10
- package/dist/chunks/{websearch-v454fm3m.js → model-resolver-zdewk29h.js} +10 -10
- package/dist/chunks/{websearch-zeh9ct20.js → model-resolver-zeh9ct20.js} +2 -2
- package/dist/chunks/{websearch-42wpavvt.js → model-resolver-zga4qn8p.js} +13 -13
- package/dist/chunks/{websearch-3qzrj5mf.js → model-resolver-zgyv5f7t.js} +11 -11
- package/dist/chunks/{websearch-zr2ceqn5.js → model-resolver-zr2ceqn5.js} +1 -1
- package/dist/chunks/{websearch-bqszwq89.js → model-resolver-zst1va42.js} +8 -8
- package/dist/chunks/{websearch-y54hr7f3.js → model-resolver-zvwz45r0.js} +9 -9
- package/dist/chunks/{websearch-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
- package/dist/chunks/{websearch-s0pmdbgf.js → model-resolver-zz841dsp.js} +15 -15
- package/dist/chunks/{websearch-4zs668pg.js → model-resolver-zz8q6pd3.js} +18 -18
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +107 -107
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +102 -102
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +90 -90
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +357 -357
- package/dist/location.js +86 -86
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +99 -99
- package/dist/models-dev.js +100 -100
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +76 -76
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +92 -92
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +105 -105
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- 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 +88 -88
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/websearch-3j8ehyx9.js +0 -503
- package/dist/chunks/websearch-hg4x7egy.js +0 -252
- package/dist/chunks/websearch-hqzbrwpc.js +0 -26
- /package/dist/chunks/{websearch-0mesazry.js → model-resolver-0mesazry.js} +0 -0
- /package/dist/chunks/{websearch-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{websearch-24dcb14g.js → model-resolver-24dcb14g.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → model-resolver-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3w5fmr99.js → model-resolver-3w5fmr99.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4vcrnpx2.js → model-resolver-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → model-resolver-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-5qd3pb7m.js → model-resolver-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → model-resolver-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → model-resolver-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-922hggd3.js → model-resolver-922hggd3.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → model-resolver-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → model-resolver-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → model-resolver-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-fxgpk5d8.js → model-resolver-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → model-resolver-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → model-resolver-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hjbc5kem.js → model-resolver-hjbc5kem.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → model-resolver-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jjkms2e6.js → model-resolver-jjkms2e6.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qg3g05ea.js → model-resolver-qg3g05ea.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-sk3qaz4a.js → model-resolver-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-twg0f83k.js → model-resolver-twg0f83k.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wc3fc9cn.js → model-resolver-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → model-resolver-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8cydn3q.js → model-resolver-y8cydn3q.js} +0 -0
- /package/dist/chunks/{websearch-y8f7s663.js → model-resolver-y8f7s663.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-ym463w8f.js → model-resolver-ym463w8f.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-9a7hdk7d.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-fb5x04t9.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./model-resolver-g0jvtwam.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-fbfs1p3d.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID9,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./model-resolver-38xyry6s.js";
|
|
24
24
|
|
|
25
25
|
// src/plugin/provider/openai.ts
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -44,7 +44,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
44
44
|
}));
|
|
45
45
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
46
46
|
var browser = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID10.make("openai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: browserMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ function addressInUse(error) {
|
|
|
117
117
|
return "code" in error && error.code === "EADDRINUSE";
|
|
118
118
|
}
|
|
119
119
|
var headless = (app) => ({
|
|
120
|
-
integrationID:
|
|
120
|
+
integrationID: ID10.make("openai"),
|
|
121
121
|
method: {
|
|
122
122
|
id: headlessMethodID,
|
|
123
123
|
type: "oauth",
|
|
@@ -178,7 +178,7 @@ var OpenAIPlugin2 = define({
|
|
|
178
178
|
});
|
|
179
179
|
yield* load();
|
|
180
180
|
yield* ctx.provider.transform((providers) => {
|
|
181
|
-
const item = providers.get(
|
|
181
|
+
const item = providers.get(ID9.openai);
|
|
182
182
|
if (!item)
|
|
183
183
|
return;
|
|
184
184
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -197,7 +197,7 @@ var OpenAIPlugin2 = define({
|
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
199
|
yield* ctx.model.transform((models) => {
|
|
200
|
-
for (const model of models.list(
|
|
200
|
+
for (const model of models.list(ID9.openai)) {
|
|
201
201
|
models.update(model.providerID, model.id, (draft) => {
|
|
202
202
|
if (!chatgpt)
|
|
203
203
|
return;
|
|
@@ -225,9 +225,9 @@ var OpenAIPlugin2 = define({
|
|
|
225
225
|
evt.baseURL = codexBaseURL;
|
|
226
226
|
evt.headers.originator = "opencode";
|
|
227
227
|
evt.headers["session-id"] = evt.sessionID;
|
|
228
|
-
}), { providerID:
|
|
228
|
+
}), { providerID: ID9.openai });
|
|
229
229
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
230
|
-
yield* bus.subscribe(
|
|
230
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
231
231
|
})
|
|
232
232
|
});
|
|
233
233
|
function headers(contentType, app) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-9a7hdk7d.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-mfqp6xfm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/tinyfish.ts
|
|
12
12
|
var exports_tinyfish = {};
|
|
13
13
|
__export(exports_tinyfish, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin25,
|
|
15
15
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
16
16
|
endpoint: () => endpoint6
|
|
17
17
|
});
|
|
@@ -33,7 +33,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
33
33
|
}))
|
|
34
34
|
}));
|
|
35
35
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
36
|
-
var
|
|
36
|
+
var Plugin25 = define({
|
|
37
37
|
id: "opencode.websearch.tinyfish",
|
|
38
38
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
39
39
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -73,4 +73,4 @@ var Plugin39 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export { endpoint6,
|
|
76
|
+
export { endpoint6, Plugin25, exports_tinyfish };
|
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./model-resolver-fb5x04t9.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service63,
|
|
8
|
+
node67
|
|
9
|
+
} from "./model-resolver-z9mxambq.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-resolver-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: () => Event11,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service48,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node52,
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service48 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event11 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -56,7 +56,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
56
56
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
57
57
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var resolve4 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
60
60
|
const manifest = yield* inspect2(input.origin);
|
|
61
61
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
62
62
|
});
|
|
@@ -75,9 +75,9 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service63;
|
|
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(Service41, 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(Event11.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service48.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(Service41, 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(Event11.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(Service41, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event11.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 node52 = makeGlobalNode({ service: Service48, layer, deps: [httpClient, node67, node87] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service48, Event11, inspect2, resolve4, node52, exports_wellknown };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service77
|
|
4
|
+
} from "./model-resolver-6a9wqxav.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service66
|
|
8
|
+
} from "./model-resolver-7entrr9d.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service46
|
|
12
|
+
} from "./model-resolver-v1n7f3bv.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-resolver-q3t37ft6.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service62
|
|
18
|
+
} from "./model-resolver-yx9ma9ke.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service74
|
|
22
|
+
} from "./model-resolver-6z91g84v.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service26
|
|
25
|
+
} from "./model-resolver-q2g7hqn9.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./model-resolver-x1ezjp6w.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
make10
|
|
31
|
+
} from "./model-resolver-zgyv5f7t.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input9,
|
|
40
|
+
Output: () => Output6,
|
|
41
|
+
Plugin: () => Plugin44,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description4,
|
|
44
|
+
name: () => name9
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name9 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input9 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input12 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output6 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description4 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description5 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin44 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service26;
|
|
93
|
+
const jobs = yield* Service62;
|
|
94
|
+
const agents = yield* Service77;
|
|
95
|
+
const config = yield* Service46;
|
|
96
|
+
const permission = yield* Service74;
|
|
97
|
+
const models = yield* Service66;
|
|
98
|
+
const subagents = yield* make10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin13 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name9,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description4,
|
|
121
|
+
input: Input9,
|
|
122
|
+
output: Output6,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin13 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name9,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin13 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID14.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,13 +218,13 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
const hook = (event) => Effect.gen(function* () {
|
|
221
|
-
const tool = event.tools[
|
|
221
|
+
const tool = event.tools[name9];
|
|
222
222
|
if (!tool)
|
|
223
223
|
return;
|
|
224
224
|
const selected = yield* agents.resolve(event.agent);
|
|
225
225
|
if (!selected)
|
|
226
226
|
return;
|
|
227
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
227
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name9, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
228
228
|
if (available.length === 0)
|
|
229
229
|
return;
|
|
230
230
|
tool.description = [
|
|
@@ -241,4 +241,4 @@ ${output.output}
|
|
|
241
241
|
})
|
|
242
242
|
};
|
|
243
243
|
|
|
244
|
-
export {
|
|
244
|
+
export { name9, Input9, Output6, description4, Plugin44, exports_subagent };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-resolver-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-38xyry6s.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-resolver-7entrr9d.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-mfqp6xfm.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin23,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin23 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin33 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint4);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint4, Plugin23, exports_exa };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID9,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./model-resolver-38xyry6s.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID8,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Info22
|
|
11
|
+
} from "./model-resolver-7entrr9d.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
17
|
var exports_models = {};
|
|
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID8.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
118
118
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
|
-
return
|
|
122
|
-
...
|
|
121
|
+
return Info22.make({
|
|
122
|
+
...Info22.default(ID9.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID8.make(remote.id),
|
|
125
|
+
providerID: ID9.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node49
|
|
5
|
+
} from "./model-resolver-9a7hdk7d.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-w1k39n5e.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service78,
|
|
12
|
+
node82
|
|
13
|
+
} from "./model-resolver-tx9w5tca.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./model-resolver-6z91g84v.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-resolver-ppvh1dqe.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Error5
|
|
22
|
+
} from "./model-resolver-g0kbvjej.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service34,
|
|
25
|
+
node37
|
|
26
|
+
} from "./model-resolver-mdjvh782.js";
|
|
27
27
|
import {
|
|
28
28
|
make15
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./model-resolver-xfkkasph.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./model-resolver-4jc5c4h4.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/session/model-request.ts
|
|
38
38
|
var exports_model_request = {};
|
|
39
39
|
__export(exports_model_request, {
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service33,
|
|
41
41
|
SessionModelRequest: () => exports_model_request,
|
|
42
42
|
baseTranscript: () => baseTranscript2,
|
|
43
43
|
boundImages: () => boundImages2,
|
|
44
|
-
layer: () =>
|
|
45
|
-
node: () =>
|
|
44
|
+
layer: () => layer12,
|
|
45
|
+
node: () => node36,
|
|
46
46
|
unsupportedParts: () => unsupportedParts2
|
|
47
47
|
});
|
|
48
48
|
import {
|
|
@@ -150,11 +150,11 @@ var boundImages2 = (messages) => {
|
|
|
150
150
|
}));
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
class
|
|
153
|
+
class Service33 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
const hooks = yield*
|
|
157
|
-
const transport = yield*
|
|
155
|
+
var layer12 = Layer.effect(Service33, Effect.gen(function* () {
|
|
156
|
+
const hooks = yield* Service78;
|
|
157
|
+
const transport = yield* Service34;
|
|
158
158
|
const app = yield* Metadata2;
|
|
159
159
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
160
160
|
const session = input.session;
|
|
@@ -162,7 +162,7 @@ var layer13 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
162
162
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
163
163
|
const tools = input.tools ?? {
|
|
164
164
|
definitions: [],
|
|
165
|
-
execute: () => new
|
|
165
|
+
execute: () => new Error5({ message: "Tools are not available for this request" })
|
|
166
166
|
};
|
|
167
167
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
168
168
|
const shaped = yield* shape({ sessionID: session.id, model: model.ref, system: input.system, messages: input.messages, options: {} }, Object.fromEntries(Array.from(given, ([d, t]) => [t.name, d])));
|
|
@@ -252,17 +252,17 @@ var layer13 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
252
252
|
};
|
|
253
253
|
});
|
|
254
254
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
255
|
-
return
|
|
255
|
+
return Service33.of({
|
|
256
256
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
257
257
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
258
258
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
259
259
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
service:
|
|
264
|
-
layer:
|
|
265
|
-
deps: [
|
|
262
|
+
var node36 = makeLocationNode({
|
|
263
|
+
service: Service33,
|
|
264
|
+
layer: layer12,
|
|
265
|
+
deps: [node82, node37, node49]
|
|
266
266
|
});
|
|
267
267
|
|
|
268
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
268
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service33, layer12, node36, exports_model_request };
|