@opencode/core 0.0.0-beta-19422 → 0.0.0-beta-19500
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 +78 -77
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +74 -73
- package/dist/catalog.js +84 -83
- package/dist/chunks/{pty-qajrhsjs.js → model-resolver-021ffpa0.js} +15 -15
- package/dist/chunks/{pty-eaj1djv9.js → model-resolver-02nrjc1r.js} +4 -4
- package/dist/chunks/{pty-710w2ech.js → model-resolver-0334ef0p.js} +1 -1
- package/dist/chunks/{pty-gs60z27v.js → model-resolver-03s1nxke.js} +11 -11
- package/dist/chunks/{pty-0zs7y9px.js → model-resolver-079cv0ze.js} +25 -25
- package/dist/chunks/{pty-qvmkbn54.js → model-resolver-07cx4w7f.js} +4 -4
- package/dist/chunks/{pty-98hm5tys.js → model-resolver-0g6mfyfr.js} +44 -44
- package/dist/chunks/{pty-kvnd5f0t.js → model-resolver-0hf448nj.js} +8 -8
- package/dist/chunks/{pty-v29tykb6.js → model-resolver-0jwvfzzp.js} +24 -22
- package/dist/chunks/{pty-0mak23yj.js → model-resolver-0k7hqrra.js} +24 -24
- package/dist/chunks/{pty-e6shh598.js → model-resolver-0mywzg06.js} +25 -25
- package/dist/chunks/{pty-0paq2nw3.js → model-resolver-0paq2nw3.js} +1 -1
- package/dist/chunks/{pty-sw07yjb5.js → model-resolver-0pm1m3w8.js} +10 -10
- package/dist/chunks/{pty-0q0f95c6.js → model-resolver-0q0f95c6.js} +1 -1
- package/dist/chunks/{pty-yn742g3f.js → model-resolver-0sp60s5d.js} +20 -20
- package/dist/chunks/{pty-jdnfkhzv.js → model-resolver-0vvagabw.js} +22 -22
- package/dist/chunks/{pty-p5270nfw.js → model-resolver-0wbgnjtz.js} +5 -5
- package/dist/chunks/{pty-z7by1xyg.js → model-resolver-0wmmprtc.js} +36 -36
- package/dist/chunks/{pty-dc76j9wz.js → model-resolver-121k57vw.js} +8 -8
- package/dist/chunks/{pty-1acjjqhc.js → model-resolver-1acjjqhc.js} +1 -1
- package/dist/chunks/{pty-1dazxqgg.js → model-resolver-1dazxqgg.js} +2 -2
- package/dist/chunks/{pty-yme990fg.js → model-resolver-1gqabzhy.js} +18 -18
- package/dist/chunks/{pty-w1k39n5e.js → model-resolver-1hc11dc4.js} +4 -4
- package/dist/chunks/{pty-9qn3qky1.js → model-resolver-1ptmpf20.js} +12 -7
- package/dist/chunks/{pty-1ygqh575.js → model-resolver-1ygqh575.js} +2 -2
- package/dist/chunks/{pty-9qzqnsj5.js → model-resolver-1zkr721w.js} +13 -13
- package/dist/chunks/{pty-21r38tys.js → model-resolver-21r38tys.js} +1 -1
- package/dist/chunks/{pty-bdqrk2vk.js → model-resolver-23sxaqwc.js} +6 -6
- package/dist/chunks/{pty-2402vzrj.js → model-resolver-2402vzrj.js} +1 -1
- package/dist/chunks/{pty-qvdq40c0.js → model-resolver-24e6cc3r.js} +12 -9
- package/dist/chunks/{pty-cq2rc4ba.js → model-resolver-26jcn8kh.js} +12 -12
- package/dist/chunks/{pty-c3grgfa4.js → model-resolver-27596drg.js} +28 -28
- package/dist/chunks/{pty-2a5m3afh.js → model-resolver-2a5m3afh.js} +1 -1
- package/dist/chunks/{pty-ayp837g2.js → model-resolver-2cshb6bs.js} +23 -23
- package/dist/chunks/{pty-7dqw4kz8.js → model-resolver-2k8khapm.js} +5 -5
- package/dist/chunks/{pty-t7pp6j4t.js → model-resolver-2verbhpp.js} +25 -25
- package/dist/chunks/{pty-tn0aqsam.js → model-resolver-37s12vcn.js} +5 -5
- package/dist/chunks/{pty-0dydqtd7.js → model-resolver-3gjfrb28.js} +19 -19
- package/dist/chunks/{pty-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
- package/dist/chunks/{pty-1cept2jt.js → model-resolver-3hgg98pr.js} +35 -35
- package/dist/chunks/{pty-bkj6dszq.js → model-resolver-3kafhsr8.js} +22 -22
- package/dist/chunks/{pty-b0anzbtp.js → model-resolver-3nxeqbj3.js} +13 -13
- package/dist/chunks/{pty-rfnzy394.js → model-resolver-3q1jyqhd.js} +1 -1
- package/dist/chunks/{pty-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
- package/dist/chunks/{pty-yhp80jsc.js → model-resolver-3tq8bdpm.js} +13 -13
- package/dist/chunks/{pty-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
- package/dist/chunks/{pty-520ygn4x.js → model-resolver-4bfepadc.js} +4 -4
- package/dist/chunks/{pty-seak0fhn.js → model-resolver-4grgn5v0.js} +18 -18
- package/dist/chunks/{pty-40t0jw83.js → model-resolver-4kmhmgeg.js} +156 -153
- package/dist/chunks/{pty-1eyaby9q.js → model-resolver-4y66k410.js} +4 -2
- package/dist/chunks/{pty-s5xwk3mk.js → model-resolver-532bqssk.js} +11 -11
- package/dist/chunks/{pty-jfpr744w.js → model-resolver-581kfnqp.js} +15 -15
- package/dist/chunks/{pty-5daktx2q.js → model-resolver-5daktx2q.js} +1 -1
- package/dist/chunks/{pty-5t3nmthw.js → model-resolver-5t3nmthw.js} +2 -2
- package/dist/chunks/{pty-t97t2t7r.js → model-resolver-5v1cn1j1.js} +15 -15
- package/dist/chunks/{pty-tnznc2wb.js → model-resolver-5v85fpgj.js} +22 -22
- package/dist/chunks/{pty-kh47ysn5.js → model-resolver-64at0fy0.js} +8 -8
- package/dist/chunks/{pty-669tq793.js → model-resolver-669tq793.js} +1 -1
- package/dist/chunks/{pty-8n66hw90.js → model-resolver-6fvs6bkh.js} +39 -39
- package/dist/chunks/{pty-qads99dt.js → model-resolver-6hzp91we.js} +10 -10
- package/dist/chunks/{pty-fnaehh3j.js → model-resolver-6jcw83n3.js} +51 -47
- package/dist/chunks/{pty-gj9xpvv3.js → model-resolver-6kyz0a76.js} +28 -9
- package/dist/chunks/{pty-6msgmcgs.js → model-resolver-6msgmcgs.js} +1 -1
- package/dist/chunks/{pty-stse86ng.js → model-resolver-6wxzvafn.js} +11 -11
- package/dist/chunks/{pty-sfwr2w0j.js → model-resolver-6xt4p4wv.js} +9 -9
- package/dist/chunks/{pty-wfjxtpcj.js → model-resolver-70xr52zc.js} +33 -33
- package/dist/chunks/{pty-71q4at8m.js → model-resolver-71q4at8m.js} +1 -1
- package/dist/chunks/{pty-qppnhhc2.js → model-resolver-74w3tna1.js} +18 -18
- package/dist/chunks/{pty-4kwjx591.js → model-resolver-75evgfh8.js} +15 -15
- package/dist/chunks/{pty-1yd1r7d9.js → model-resolver-774n8a20.js} +9 -9
- package/dist/chunks/{pty-1hptgsqz.js → model-resolver-789bpvq4.js} +8 -8
- package/dist/chunks/{pty-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
- package/dist/chunks/{pty-4x28bm1w.js → model-resolver-7cwz0yjz.js} +17 -17
- package/dist/chunks/{pty-0sw24r53.js → model-resolver-7fys8geh.js} +16 -16
- package/dist/chunks/{pty-3ythc6yv.js → model-resolver-7z7az0f5.js} +4 -4
- package/dist/chunks/{pty-p5czsp41.js → model-resolver-818pfwc9.js} +8 -8
- package/dist/chunks/{pty-jct9c584.js → model-resolver-87mnny1s.js} +16 -16
- package/dist/chunks/{pty-v84jj1d3.js → model-resolver-87qnmf38.js} +25 -25
- package/dist/chunks/{pty-wcvnc3wq.js → model-resolver-8abbabsk.js} +22 -22
- package/dist/chunks/{pty-8d7r5vzw.js → model-resolver-8d7r5vzw.js} +1 -1
- package/dist/chunks/{pty-3yjn18yr.js → model-resolver-8p2zvf0d.js} +65 -38
- package/dist/chunks/{pty-dj2t23y0.js → model-resolver-8p4f9s12.js} +2 -2
- package/dist/chunks/{pty-f40p4esb.js → model-resolver-8p8b376s.js} +27 -27
- package/dist/chunks/{pty-jwjk5r35.js → model-resolver-8y92rm17.js} +6 -6
- package/dist/chunks/{pty-89av3hdm.js → model-resolver-8yrnm0fa.js} +12 -12
- package/dist/chunks/{pty-z3pg8v1h.js → model-resolver-942176fc.js} +8 -8
- package/dist/chunks/{pty-4vfmzcq2.js → model-resolver-98a0b00a.js} +4 -4
- package/dist/chunks/{pty-a9ab9jmj.js → model-resolver-98kgw1j6.js} +5 -30
- package/dist/chunks/{pty-ffx4mq6v.js → model-resolver-9rzqjwaz.js} +1 -1
- package/dist/chunks/{pty-0s7p0jdy.js → model-resolver-9stj6zpb.js} +32 -32
- package/dist/chunks/{pty-v4gcmn1h.js → model-resolver-9y7khav7.js} +15 -15
- package/dist/chunks/{pty-5c4hm403.js → model-resolver-a1bz86dw.js} +3 -3
- package/dist/chunks/{pty-6kpj1tx7.js → model-resolver-a2cfvfg1.js} +16 -16
- package/dist/chunks/{pty-7xwree33.js → model-resolver-a4vx34cq.js} +11 -11
- package/dist/chunks/{pty-aaet6srn.js → model-resolver-aaet6srn.js} +2 -2
- package/dist/chunks/{pty-ks2km4ey.js → model-resolver-aczsg4vg.js} +45 -33
- package/dist/chunks/{pty-gad8dwyr.js → model-resolver-am89cgs6.js} +19 -13
- package/dist/chunks/{pty-jwqvw401.js → model-resolver-atny4vj3.js} +11 -11
- package/dist/chunks/{pty-whr1jkby.js → model-resolver-aztjpt51.js} +18 -18
- package/dist/chunks/{pty-wagd5xb7.js → model-resolver-b22gj5xn.js} +29 -29
- package/dist/chunks/{pty-b6gygkdw.js → model-resolver-b6gygkdw.js} +2 -2
- package/dist/chunks/{pty-gbaa2wnh.js → model-resolver-b77arecc.js} +28 -28
- package/dist/chunks/{pty-evwc8rkj.js → model-resolver-bcbgj7m0.js} +18 -18
- package/dist/chunks/{pty-1vccm05t.js → model-resolver-bq4vzaks.js} +46 -46
- package/dist/chunks/{pty-esam66tc.js → model-resolver-cbg8bv93.js} +10 -10
- package/dist/chunks/{pty-m0jqrx5p.js → model-resolver-cfpkc3c9.js} +2 -2
- package/dist/chunks/{pty-118zhgj2.js → model-resolver-ck6gmqc6.js} +43 -43
- package/dist/chunks/{pty-8adgct9d.js → model-resolver-csz41kxq.js} +5 -5
- package/dist/chunks/{pty-ckrdk9yx.js → model-resolver-csz4k5km.js} +18 -18
- package/dist/chunks/{pty-ead3g9p8.js → model-resolver-d2aac7k2.js} +5 -5
- package/dist/chunks/{pty-ntqw7r1f.js → model-resolver-d2fv866c.js} +13 -13
- package/dist/chunks/{pty-yjq2qjwg.js → model-resolver-d880b0y6.js} +26 -26
- package/dist/chunks/{pty-wbck336m.js → model-resolver-djmbsxn3.js} +6 -6
- package/dist/chunks/{pty-0a1gtahz.js → model-resolver-djqd3v5p.js} +90 -40
- package/dist/chunks/{pty-0gvt7rgj.js → model-resolver-dkck3j8g.js} +8 -8
- package/dist/chunks/{pty-09ms4exh.js → model-resolver-dktryzc1.js} +26 -26
- package/dist/chunks/{pty-y71avatq.js → model-resolver-dpkg50ah.js} +4 -4
- package/dist/chunks/{pty-s7xtjryh.js → model-resolver-dqyg47hv.js} +1 -1
- package/dist/chunks/{pty-srpeewqc.js → model-resolver-drknmmyh.js} +9 -9
- package/dist/chunks/{pty-dv1qgsyq.js → model-resolver-dv1qgsyq.js} +1 -1
- package/dist/chunks/{pty-9b10rcng.js → model-resolver-e6fygs6z.js} +25 -25
- package/dist/chunks/{pty-nhy5jxhy.js → model-resolver-e82z9tr0.js} +7 -7
- package/dist/chunks/{pty-3ez202fs.js → model-resolver-e86807kd.js} +90 -87
- package/dist/chunks/{pty-25xantg0.js → model-resolver-epzffrx8.js} +23 -23
- package/dist/chunks/{pty-10a65abh.js → model-resolver-erhkyex8.js} +4 -4
- package/dist/chunks/{pty-etq0c3wd.js → model-resolver-etq0c3wd.js} +1 -1
- package/dist/chunks/{pty-ek89c1t4.js → model-resolver-ewbqqj16.js} +15 -15
- package/dist/chunks/{pty-hdnk95c8.js → model-resolver-f828m53h.js} +2 -2
- package/dist/chunks/{pty-1hvj6sc5.js → model-resolver-f8xc4yre.js} +25 -25
- package/dist/chunks/{pty-pqk2nt5r.js → model-resolver-f8zs2stk.js} +5 -5
- package/dist/chunks/model-resolver-fbf46f8y.js +462 -0
- package/dist/chunks/{pty-6f93rc7r.js → model-resolver-fdc0z0c3.js} +2 -2
- package/dist/chunks/{pty-pjdb2e90.js → model-resolver-fvf9sjjr.js} +40 -40
- package/dist/chunks/{pty-fxbjtjnd.js → model-resolver-fxbjtjnd.js} +1 -1
- package/dist/chunks/{pty-2tfmgkzg.js → model-resolver-fxqygnfa.js} +4 -4
- package/dist/chunks/{pty-8hmgw1ak.js → model-resolver-g190xswt.js} +4 -4
- package/dist/chunks/{pty-xay24vqs.js → model-resolver-g53r2hff.js} +40 -40
- package/dist/chunks/{pty-p0cja4mf.js → model-resolver-g5rnekq0.js} +5 -5
- package/dist/chunks/{pty-g5pz3fvh.js → model-resolver-g6fkknnq.js} +24 -24
- package/dist/chunks/{pty-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
- package/dist/chunks/{pty-3fc6dm20.js → model-resolver-gdvy8fx6.js} +4 -4
- package/dist/chunks/{pty-q94b1st6.js → model-resolver-ggj3dvvh.js} +12 -12
- package/dist/chunks/{pty-kbm5dhv8.js → model-resolver-ghej9zy6.js} +17 -17
- package/dist/chunks/{pty-pvmn2x7n.js → model-resolver-gkv3re89.js} +8 -8
- package/dist/chunks/{pty-gv6a8nnw.js → model-resolver-gv6a8nnw.js} +2 -2
- package/dist/chunks/{pty-3806s53b.js → model-resolver-gw82nkc3.js} +32 -40
- package/dist/chunks/{pty-s8s1e1cz.js → model-resolver-gwfcx2m0.js} +21 -49
- package/dist/chunks/{pty-5wtnxghh.js → model-resolver-gwnxf6ch.js} +6 -6
- package/dist/chunks/{pty-h03wrkyp.js → model-resolver-h03wrkyp.js} +2 -2
- package/dist/chunks/{pty-8xttkpaf.js → model-resolver-h2fnsspk.js} +11 -11
- package/dist/chunks/{pty-5bdfnctw.js → model-resolver-h3k867zz.js} +5 -5
- package/dist/chunks/{pty-69az8s64.js → model-resolver-h4q9s1ny.js} +17 -17
- package/dist/chunks/{pty-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
- package/dist/chunks/{pty-fhs97t90.js → model-resolver-h7ygw6q4.js} +9 -9
- package/dist/chunks/model-resolver-hjw1g3kj.js +247 -0
- package/dist/chunks/{pty-4g19d5n9.js → model-resolver-htk69tte.js} +7 -7
- package/dist/chunks/{pty-kpg3dnpr.js → model-resolver-htx7jtvk.js} +22 -22
- package/dist/chunks/{pty-md7n9knh.js → model-resolver-hwap2x7x.js} +24 -24
- package/dist/chunks/{pty-e1vr1ezn.js → model-resolver-hwxt52gm.js} +5 -5
- package/dist/chunks/{pty-z0wxwbgt.js → model-resolver-hya8ywrc.js} +70 -70
- package/dist/chunks/{pty-71amxv98.js → model-resolver-j12k6d1r.js} +25 -25
- package/dist/chunks/model-resolver-j2k1bkn8.js +22 -0
- package/dist/chunks/{pty-j56e64zr.js → model-resolver-j56e64zr.js} +1 -1
- package/dist/chunks/{pty-2f04pwep.js → model-resolver-j7wq2tw5.js} +3 -3
- package/dist/chunks/{pty-4p6varyr.js → model-resolver-jbe1bvhn.js} +28 -28
- package/dist/chunks/{pty-1syfdjz1.js → model-resolver-jwazx1ed.js} +36 -36
- package/dist/chunks/{pty-vnnhbf40.js → model-resolver-k6556a45.js} +6 -6
- package/dist/chunks/{pty-f8pbz4jd.js → model-resolver-k6h76ggr.js} +25 -25
- package/dist/chunks/{pty-ry3m58dy.js → model-resolver-kbn8346a.js} +11 -11
- package/dist/chunks/{pty-kg06axw8.js → model-resolver-kg06axw8.js} +1 -1
- package/dist/chunks/{pty-jypjtz10.js → model-resolver-kk8h1mek.js} +8 -8
- package/dist/chunks/{pty-1p5bxmfk.js → model-resolver-kvffe9p6.js} +14 -14
- package/dist/chunks/{pty-jjcsnrt3.js → model-resolver-kx6yd4vg.js} +35 -35
- package/dist/chunks/{pty-fvanntqq.js → model-resolver-kxpygcw9.js} +6 -6
- package/dist/chunks/{pty-1pqaee8n.js → model-resolver-m4hypjkm.js} +11 -11
- package/dist/chunks/{pty-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
- package/dist/chunks/{pty-bmn9pzgf.js → model-resolver-mb5a7wwz.js} +5 -5
- package/dist/chunks/{pty-74b9qssb.js → model-resolver-me88hgte.js} +23 -23
- package/dist/chunks/{pty-dda9r64d.js → model-resolver-mg5mchpt.js} +26 -26
- package/dist/chunks/{pty-c4rpq3bt.js → model-resolver-mhdwrqr0.js} +3 -3
- package/dist/chunks/{pty-1bbkgx8g.js → model-resolver-mhkvc446.js} +3 -3
- package/dist/chunks/{pty-t3kscp9x.js → model-resolver-mrsqtdpn.js} +30 -30
- package/dist/chunks/{pty-f37g46dm.js → model-resolver-mwnd972w.js} +33 -33
- package/dist/chunks/{pty-80kf8gxa.js → model-resolver-mz60zy6e.js} +27 -28
- package/dist/chunks/{pty-4bx7125q.js → model-resolver-mz65vdgf.js} +18 -18
- package/dist/chunks/{pty-0996nyz8.js → model-resolver-n37c4crj.js} +2 -2
- package/dist/chunks/{pty-nttnax9e.js → model-resolver-nv6fkpt4.js} +17 -17
- package/dist/chunks/{pty-36mqef8b.js → model-resolver-p52p41ww.js} +11 -11
- package/dist/chunks/{pty-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
- package/dist/chunks/{pty-pknna89w.js → model-resolver-pknna89w.js} +1 -1
- package/dist/chunks/{pty-3re90bff.js → model-resolver-pm4pe4yk.js} +29 -29
- package/dist/chunks/{pty-47rhjnbj.js → model-resolver-pqg5898n.js} +12 -12
- package/dist/chunks/{pty-y09ge0g8.js → model-resolver-prp52c5q.js} +11 -11
- package/dist/chunks/{pty-zt549x9j.js → model-resolver-psjem9sa.js} +11 -11
- package/dist/chunks/{pty-0q0rgwg5.js → model-resolver-pvvs7m8f.js} +13 -13
- package/dist/chunks/{pty-s198arwq.js → model-resolver-q87s0xy8.js} +45 -45
- package/dist/chunks/{pty-qbmqvd4g.js → model-resolver-q91t8a1k.js} +19 -19
- package/dist/chunks/{pty-k5wm7z2v.js → model-resolver-qa6ytjmd.js} +13 -13
- package/dist/chunks/model-resolver-qapv375x.js +4 -0
- package/dist/chunks/{pty-t9e6e84n.js → model-resolver-qdcfe15v.js} +1 -1
- package/dist/chunks/model-resolver-qdyb70sk.js +18 -0
- package/dist/chunks/{pty-d1khqved.js → model-resolver-qn4ba14w.js} +5 -5
- package/dist/chunks/{pty-egz44y69.js → model-resolver-qn8ypmg1.js} +18 -18
- package/dist/chunks/{pty-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
- package/dist/chunks/{pty-wqkncbjv.js → model-resolver-qwkytnft.js} +3 -3
- package/dist/chunks/{pty-edbbhmy9.js → model-resolver-qyxt0tsw.js} +4 -4
- package/dist/chunks/{pty-24p38q2n.js → model-resolver-r532bney.js} +4 -4
- package/dist/chunks/{pty-3t5j4r89.js → model-resolver-r9ghxtsk.js} +6 -6
- package/dist/chunks/{pty-x43y2vfs.js → model-resolver-r9mregkx.js} +3 -3
- package/dist/chunks/{pty-x0vzmp4x.js → model-resolver-rav9e4bf.js} +5 -5
- package/dist/chunks/{pty-7axzvjgy.js → model-resolver-rctyp4y4.js} +24 -24
- package/dist/chunks/{pty-vyy6b7xa.js → model-resolver-rd8pgjwx.js} +20 -20
- package/dist/chunks/{pty-twcs6fsf.js → model-resolver-rj9a996t.js} +9 -9
- package/dist/chunks/{pty-0cgfpp4r.js → model-resolver-rq6dswfj.js} +7 -7
- package/dist/chunks/{pty-81swgkk7.js → model-resolver-rsym84ch.js} +7 -7
- package/dist/chunks/{pty-xhcbj5xc.js → model-resolver-rtkh6q4b.js} +11 -11
- package/dist/chunks/{pty-806j49yq.js → model-resolver-ryr25ayn.js} +4 -4
- package/dist/chunks/{pty-4hs31730.js → model-resolver-s1vvg2cq.js} +7 -7
- package/dist/chunks/{pty-8n7wwas9.js → model-resolver-s2whfhf8.js} +29 -29
- package/dist/chunks/{pty-46x4mgr1.js → model-resolver-s534qmrw.js} +4 -4
- package/dist/chunks/{pty-mkar22rr.js → model-resolver-s5wnyv46.js} +30 -30
- package/dist/chunks/{pty-5xtr5t3c.js → model-resolver-s72x8wcp.js} +21 -21
- package/dist/chunks/{pty-gswf14xw.js → model-resolver-sdcezsxk.js} +20 -20
- package/dist/chunks/{pty-1j4evvde.js → model-resolver-shqnjwtb.js} +20 -20
- package/dist/chunks/{pty-697x4nhd.js → model-resolver-sph8ksss.js} +9 -9
- package/dist/chunks/{pty-cff1m34y.js → model-resolver-spr8pf2r.js} +9 -9
- package/dist/chunks/{pty-pbc3mjh9.js → model-resolver-t6gatd88.js} +50 -50
- package/dist/chunks/{pty-dhmh7aw6.js → model-resolver-t7n9q6bq.js} +4 -4
- package/dist/chunks/{pty-21rtx38p.js → model-resolver-t82489yp.js} +37 -37
- package/dist/chunks/{pty-zd1mjem4.js → model-resolver-t9e5d74p.js} +6 -6
- package/dist/chunks/{pty-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
- package/dist/chunks/{pty-tcezcvh9.js → model-resolver-tcezcvh9.js} +1 -1
- package/dist/chunks/{pty-tdstcens.js → model-resolver-tdstcens.js} +1 -1
- package/dist/chunks/{pty-esy06pf9.js → model-resolver-tp3xxvx5.js} +43 -43
- package/dist/chunks/{pty-zdxpjn9v.js → model-resolver-trk3y68z.js} +55 -55
- package/dist/chunks/{pty-tvtrv512.js → model-resolver-tvtrv512.js} +1 -1
- package/dist/chunks/{pty-a5gt7g2r.js → model-resolver-twy35tz0.js} +9 -9
- package/dist/chunks/{pty-veqvce7d.js → model-resolver-veqvce7d.js} +1 -1
- package/dist/chunks/{pty-7j3yyt51.js → model-resolver-vhj1rs6k.js} +25 -22
- package/dist/chunks/{pty-r98e92ep.js → model-resolver-vncycja5.js} +4 -4
- package/dist/chunks/{pty-kh3ehkc0.js → model-resolver-vnv2t9ht.js} +4 -4
- package/dist/chunks/{pty-0bps82y7.js → model-resolver-vvccsdf3.js} +6 -6
- package/dist/chunks/{pty-2vgzs72b.js → model-resolver-vxp3kcg3.js} +5 -5
- package/dist/chunks/{pty-rj7dx2h5.js → model-resolver-vy514hgv.js} +9 -9
- package/dist/chunks/{pty-vzcthcp8.js → model-resolver-vzcthcp8.js} +1 -1
- package/dist/chunks/{pty-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
- package/dist/chunks/{pty-wd87259q.js → model-resolver-wd87259q.js} +1 -1
- package/dist/chunks/{pty-jtpgvawt.js → model-resolver-wf4bebac.js} +16 -16
- package/dist/chunks/{pty-fmkfbeq2.js → model-resolver-wgf958fy.js} +30 -30
- package/dist/chunks/{pty-ka7qgscn.js → model-resolver-wj9n5p3k.js} +5 -5
- package/dist/chunks/model-resolver-wrjeysgp.js +170 -0
- package/dist/chunks/{pty-wp4jr60n.js → model-resolver-wwmx33bt.js} +3 -3
- package/dist/chunks/{pty-0egdkte1.js → model-resolver-x1avke2d.js} +87 -85
- package/dist/chunks/{pty-x1ezjp6w.js → model-resolver-x1ezjp6w.js} +1 -1
- package/dist/chunks/{pty-fa0cr6zp.js → model-resolver-x6geafsy.js} +3 -3
- package/dist/chunks/{pty-wk58jv74.js → model-resolver-x940zq77.js} +10 -10
- package/dist/chunks/{pty-zxgnc9zk.js → model-resolver-xdk7tsve.js} +1 -1
- package/dist/chunks/{pty-p72z5xx6.js → model-resolver-xg9t41r3.js} +3 -2
- package/dist/chunks/{pty-0jqc4bxs.js → model-resolver-xs8g0vg3.js} +6 -6
- package/dist/chunks/{pty-c2wghy26.js → model-resolver-xtzwr8pq.js} +9 -8
- package/dist/chunks/{pty-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
- package/dist/chunks/{pty-8c67r9ne.js → model-resolver-y3fea29m.js} +13 -13
- package/dist/chunks/model-resolver-y8f7s663.js +13 -0
- package/dist/chunks/{pty-ydpc6wdy.js → model-resolver-y94qkjj7.js} +10 -10
- package/dist/chunks/{pty-k0nnq3t9.js → model-resolver-ydgy0jv4.js} +6 -6
- package/dist/chunks/{pty-hhcdszkw.js → model-resolver-yjv2keaj.js} +39 -32
- package/dist/chunks/{pty-yrhqyw5v.js → model-resolver-yrhqyw5v.js} +1 -1
- package/dist/chunks/{pty-yrznvahk.js → model-resolver-yrznvahk.js} +2 -2
- package/dist/chunks/{pty-z0bkrqjs.js → model-resolver-z0bkrqjs.js} +1 -1
- package/dist/chunks/{pty-sfvqjyek.js → model-resolver-z2b5d6zb.js} +6 -6
- package/dist/chunks/{pty-mzz8vzet.js → model-resolver-z2kz5700.js} +17 -17
- package/dist/chunks/{pty-gc1qnngx.js → model-resolver-z2qr9twd.js} +1 -1
- package/dist/chunks/{pty-z63w68vq.js → model-resolver-z63w68vq.js} +2 -2
- package/dist/chunks/{pty-qhgcdxv6.js → model-resolver-z7dhx1kn.js} +24 -24
- package/dist/chunks/{pty-5en82wpx.js → model-resolver-zceb237h.js} +6 -6
- package/dist/chunks/{pty-zeh9ct20.js → model-resolver-zeh9ct20.js} +2 -2
- package/dist/chunks/{pty-g0eh8qf4.js → model-resolver-zf0svfz5.js} +16 -16
- package/dist/chunks/{pty-f9adwtm7.js → model-resolver-zpkbxaqd.js} +7 -5
- package/dist/chunks/{pty-zr2ceqn5.js → model-resolver-zr2ceqn5.js} +1 -1
- package/dist/chunks/{pty-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +80 -79
- package/dist/config/discovery.js +78 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +114 -113
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +156 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -117
- package/dist/config/plugin/image.js +116 -115
- package/dist/config/plugin/instruction.js +86 -85
- package/dist/config/plugin/location-watcher.js +116 -115
- package/dist/config/plugin/mcp.js +125 -124
- package/dist/config/plugin/policy.js +115 -114
- package/dist/config/plugin/provider.js +112 -111
- package/dist/config/plugin/reference.js +118 -117
- package/dist/config/plugin/shell.js +117 -116
- package/dist/config/plugin/skill-file.js +98 -97
- package/dist/config/plugin/skill.js +135 -134
- package/dist/config/plugin/snapshot.js +116 -115
- package/dist/config/plugin/source.js +118 -117
- package/dist/config/plugin/tool-output.js +118 -117
- package/dist/config/plugin/websearch.js +114 -113
- package/dist/config/plugin/worktree.js +119 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -81
- package/dist/database/database.js +69 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +6 -0
- package/dist/database/migration.gen.js +48 -47
- package/dist/database/migration.js +50 -49
- 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 +79 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +359 -360
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +89 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +91 -90
- 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 +73 -72
- package/dist/file-access.js +100 -99
- package/dist/file-mutation.js +90 -89
- 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 +217 -216
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +96 -95
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +99 -98
- package/dist/form.js +79 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +83 -82
- package/dist/generate.js +92 -91
- package/dist/git.js +7 -7
- 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 +7 -7
- 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 +352 -353
- package/dist/instruction-discovery.js +84 -83
- package/dist/instructions/builtins.js +83 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +83 -82
- package/dist/job.js +78 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -71
- package/dist/location-activity.js +130 -129
- package/dist/location-mutation.js +100 -99
- package/dist/location-service-map.js +80 -79
- package/dist/location-services.js +349 -350
- package/dist/location.js +83 -82
- package/dist/mcp/client.js +87 -86
- package/dist/mcp/index.js +100 -99
- package/dist/mcp/instructions.js +121 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +86 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +91 -84
- package/dist/model.js +6 -6
- package/dist/models-dev.js +87 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +101 -100
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -73
- package/dist/plugin/agent.js +98 -97
- package/dist/plugin/command.js +95 -94
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +214 -213
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +323 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -2
- package/dist/plugin/plan.js +98 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +119 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +115 -114
- package/dist/plugin/provider/digitalocean.js +80 -79
- 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 +81 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +77 -76
- package/dist/plugin/provider/lmstudio.js +118 -117
- package/dist/plugin/provider/modal.js +80 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +118 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +79 -78
- package/dist/plugin/provider/opencode.js +80 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -76
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +118 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +116 -115
- package/dist/plugin/provider/xai.js +78 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +157 -158
- package/dist/plugin/sdk.js +69 -68
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -131
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +338 -339
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +83 -82
- package/dist/plugin/vcs/hg.js +83 -82
- package/dist/plugin/warming.js +113 -112
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +219 -218
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -83
- package/dist/provider.js +7 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -94
- package/dist/reference/instructions.js +83 -82
- package/dist/reference.js +87 -86
- package/dist/repository-cache.js +77 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -93
- package/dist/rpc.js +82 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -72
- package/dist/session/compaction.js +128 -127
- package/dist/session/context.js +146 -145
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -219
- package/dist/session/execution.js +123 -122
- package/dist/session/generate.js +147 -146
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +85 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +76 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +114 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +127 -126
- package/dist/session/projector.js +85 -84
- package/dist/session/prompt.js +101 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +86 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +91 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -110
- package/dist/session/runner/step.js +122 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +168 -167
- package/dist/session/shell.js +132 -131
- package/dist/session/skill.js +99 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -73
- package/dist/session/store.js +86 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +152 -151
- package/dist/session/to-session-error.js +108 -107
- package/dist/session/transfer.js +221 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +134 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +103 -102
- package/dist/skill.js +108 -107
- package/dist/snapshot.js +89 -88
- 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 +122 -121
- package/dist/tool/plugin/edit.js +114 -113
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -120
- package/dist/tool/plugin/grep.js +121 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +114 -113
- package/dist/tool/plugin/question.js +99 -98
- package/dist/tool/plugin/read.js +120 -119
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +107 -106
- package/dist/tool/plugin/subagent.js +207 -206
- package/dist/tool/plugin/webfetch.js +106 -105
- package/dist/tool/plugin/websearch.js +106 -105
- package/dist/tool/plugin/write.js +118 -117
- package/dist/tool/read-filesystem.js +97 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +15 -15
- package/dist/types/aisdk-native.d.ts +4 -2
- package/dist/types/database/migration/20260910120000_clear_v1_session_permission.d.ts +3 -0
- package/dist/types/model-resolver.d.ts +50 -3
- package/dist/types/plugin/optimize.d.ts +2 -1
- package/dist/types/provider.d.ts +1 -0
- package/dist/types/session/model-request.d.ts +3 -3
- package/dist/types/session/runner/model.d.ts +4 -0
- package/dist/types/session/schema.d.ts +9 -0
- package/dist/types/session/session.d.ts +4 -0
- package/dist/types/session/sql.d.ts +3 -3
- package/dist/types/session/transfer.d.ts +9 -0
- package/dist/types/session.d.ts +6 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +4 -4
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -85
- package/dist/websearch.js +81 -80
- package/dist/wellknown/plugin.js +75 -74
- package/dist/wellknown.js +78 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +339 -340
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +92 -91
- package/package.json +8 -8
- package/dist/chunks/pty-074gn8c1.js +0 -343
- package/dist/chunks/pty-8qk9tw02.js +0 -35
- package/dist/chunks/pty-f4wpvzrh.js +0 -247
- package/dist/chunks/pty-fy0kqqt2.js +0 -22
- package/dist/chunks/pty-h47he10w.js +0 -4
- package/dist/chunks/pty-mkcjrzeh.js +0 -15
- package/dist/chunks/pty-q509s3k3.js +0 -18
- package/dist/chunks/pty-xz4tz1py.js +0 -462
- package/dist/plugin/provider/anthropic.js +0 -7
- package/dist/plugin/provider/mistral.js +0 -7
- package/dist/types/plugin/provider/anthropic.d.ts +0 -1
- package/dist/types/plugin/provider/mistral.d.ts +0 -1
- /package/dist/chunks/{pty-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{pty-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
- /package/dist/chunks/{pty-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
- /package/dist/chunks/{pty-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
- /package/dist/chunks/{pty-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{pty-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
- /package/dist/chunks/{pty-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
- /package/dist/chunks/{pty-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{pty-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
- /package/dist/chunks/{pty-3asan66x.js → model-resolver-3asan66x.js} +0 -0
- /package/dist/chunks/{pty-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
- /package/dist/chunks/{pty-3w5fmr99.js → model-resolver-3w5fmr99.js} +0 -0
- /package/dist/chunks/{pty-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
- /package/dist/chunks/{pty-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
- /package/dist/chunks/{pty-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
- /package/dist/chunks/{pty-4vcrnpx2.js → model-resolver-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{pty-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
- /package/dist/chunks/{pty-53557ph1.js → model-resolver-53557ph1.js} +0 -0
- /package/dist/chunks/{pty-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
- /package/dist/chunks/{pty-6prwharc.js → model-resolver-6prwharc.js} +0 -0
- /package/dist/chunks/{pty-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
- /package/dist/chunks/{pty-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
- /package/dist/chunks/{pty-822emrt2.js → model-resolver-822emrt2.js} +0 -0
- /package/dist/chunks/{pty-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
- /package/dist/chunks/{pty-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
- /package/dist/chunks/{pty-922hggd3.js → model-resolver-922hggd3.js} +0 -0
- /package/dist/chunks/{pty-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
- /package/dist/chunks/{pty-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-a6k6eb26.js → model-resolver-a6k6eb26.js} +0 -0
- /package/dist/chunks/{pty-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
- /package/dist/chunks/{pty-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
- /package/dist/chunks/{pty-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{pty-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
- /package/dist/chunks/{pty-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{pty-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{pty-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
- /package/dist/chunks/{pty-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{pty-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
- /package/dist/chunks/{pty-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{pty-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
- /package/dist/chunks/{pty-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
- /package/dist/chunks/{pty-df08tz66.js → model-resolver-df08tz66.js} +0 -0
- /package/dist/chunks/{pty-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
- /package/dist/chunks/{pty-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
- /package/dist/chunks/{pty-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
- /package/dist/chunks/{pty-ec1grn59.js → model-resolver-ec1grn59.js} +0 -0
- /package/dist/chunks/{pty-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
- /package/dist/chunks/{pty-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
- /package/dist/chunks/{pty-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
- /package/dist/chunks/{pty-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{pty-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
- /package/dist/chunks/{pty-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
- /package/dist/chunks/{pty-fxgpk5d8.js → model-resolver-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{pty-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
- /package/dist/chunks/{pty-g86h250q.js → model-resolver-g86h250q.js} +0 -0
- /package/dist/chunks/{pty-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
- /package/dist/chunks/{pty-gftt206x.js → model-resolver-gftt206x.js} +0 -0
- /package/dist/chunks/{pty-hjbc5kem.js → model-resolver-hjbc5kem.js} +0 -0
- /package/dist/chunks/{pty-hk9envan.js → model-resolver-hk9envan.js} +0 -0
- /package/dist/chunks/{pty-hrnqkpcd.js → model-resolver-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{pty-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
- /package/dist/chunks/{pty-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{pty-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{pty-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{pty-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{pty-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
- /package/dist/chunks/{pty-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
- /package/dist/chunks/{pty-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
- /package/dist/chunks/{pty-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
- /package/dist/chunks/{pty-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
- /package/dist/chunks/{pty-paphc93g.js → model-resolver-paphc93g.js} +0 -0
- /package/dist/chunks/{pty-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
- /package/dist/chunks/{pty-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
- /package/dist/chunks/{pty-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
- /package/dist/chunks/{pty-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
- /package/dist/chunks/{pty-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
- /package/dist/chunks/{pty-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
- /package/dist/chunks/{pty-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{pty-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{pty-sk3qaz4a.js → model-resolver-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{pty-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
- /package/dist/chunks/{pty-twg0f83k.js → model-resolver-twg0f83k.js} +0 -0
- /package/dist/chunks/{pty-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
- /package/dist/chunks/{pty-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
- /package/dist/chunks/{pty-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
- /package/dist/chunks/{pty-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
- /package/dist/chunks/{pty-x61499pn.js → model-resolver-x61499pn.js} +0 -0
- /package/dist/chunks/{pty-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
- /package/dist/chunks/{pty-y8cydn3q.js → model-resolver-y8cydn3q.js} +0 -0
- /package/dist/chunks/{pty-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{pty-ym463w8f.js → model-resolver-ym463w8f.js} +0 -0
- /package/dist/chunks/{pty-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./model-resolver-atny4vj3.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./model-resolver-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-resolver-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
18
18
|
__export(exports_bus, {
|
|
19
19
|
Bus: () => exports_bus,
|
|
20
20
|
InvalidDurableEventError: () => InvalidDurableEventError2,
|
|
21
|
-
Service: () =>
|
|
22
|
-
configured: () =>
|
|
21
|
+
Service: () => Service77,
|
|
22
|
+
configured: () => configured11,
|
|
23
23
|
durable: () => durable2,
|
|
24
24
|
ephemeral: () => ephemeral2,
|
|
25
25
|
isSynced: () => isSynced2,
|
|
26
26
|
latestSequence: () => latestSequence2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node81,
|
|
28
28
|
reserveSequence: () => reserveSequence2,
|
|
29
29
|
versionedType: () => versionedType2
|
|
30
30
|
});
|
|
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
|
|
|
76
76
|
var isSynced2 = (item) => item.type === "log.synced";
|
|
77
77
|
var isDefinition = (input) => !Array.isArray(input);
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service77 extends Context.Service()("@opencode/Bus") {
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function configured11(options) {
|
|
82
82
|
return makeGlobalNode({
|
|
83
|
-
service:
|
|
84
|
-
deps: [
|
|
85
|
-
layer: Layer.effect(
|
|
83
|
+
service: Service77,
|
|
84
|
+
deps: [node84],
|
|
85
|
+
layer: Layer.effect(Service77, Effect.gen(function* () {
|
|
86
86
|
const { Location } = yield* Effect.promise(() => import("../location.js"));
|
|
87
87
|
const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
|
|
88
88
|
const pubsub = {
|
|
@@ -93,7 +93,7 @@ function configured12(options) {
|
|
|
93
93
|
const projectors = new Map;
|
|
94
94
|
const listeners = new Array;
|
|
95
95
|
const durableLocks = makeUnsafe2();
|
|
96
|
-
const { db } = yield*
|
|
96
|
+
const { db } = yield* Service79;
|
|
97
97
|
const logReadPageSize = options?.logReadPageSize ?? 512;
|
|
98
98
|
const persist = options?.persist ?? false;
|
|
99
99
|
const sessions = new Map;
|
|
@@ -525,7 +525,7 @@ function configured12(options) {
|
|
|
525
525
|
list.push((event) => projector(event));
|
|
526
526
|
projectors.set(key, list);
|
|
527
527
|
});
|
|
528
|
-
return
|
|
528
|
+
return Service77.of({
|
|
529
529
|
publish,
|
|
530
530
|
publishAll,
|
|
531
531
|
subscribe,
|
|
@@ -539,6 +539,6 @@ function configured12(options) {
|
|
|
539
539
|
}))
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var node81 = configured11();
|
|
543
543
|
|
|
544
|
-
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2,
|
|
544
|
+
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service77, configured11, node81, exports_bus };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/mcp.ts
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info18,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info18 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info18, exports_mcp5 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./model-resolver-atny4vj3.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service66,
|
|
17
|
+
node: () => node70
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service66 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
25
|
-
const db = (yield*
|
|
26
|
-
return
|
|
24
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
25
|
+
const db = (yield* Service79).db;
|
|
26
|
+
return Service66.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node70 = makeGlobalNode({ service: Service66, layer, deps: [node84] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service66, node70, exports_kv };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelativePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service74,
|
|
6
|
+
node78
|
|
7
|
+
} from "./model-resolver-7fys8geh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service37,
|
|
10
|
+
node41
|
|
11
|
+
} from "./model-resolver-1gqabzhy.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-resolver-tcezcvh9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/filesystem/search.ts
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
24
|
Options: () => Options4,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service36,
|
|
26
26
|
configured: () => configured4,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer16,
|
|
29
|
+
node: () => node40,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ var Options4 = Schema.Struct({
|
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service36 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service36, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service74;
|
|
63
|
+
const ripgrep = yield* Service37;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service36.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service36, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service74;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service36.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service36.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,8 +174,8 @@ var fffLayer2 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer16 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service74;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
@@ -183,8 +183,8 @@ var layer14 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
185
|
function configured4(options) {
|
|
186
|
-
return makeLocationNode({ service:
|
|
186
|
+
return makeLocationNode({ service: Service36, layer: layer16(options), deps: [node78, node41] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node40 = configured4();
|
|
189
189
|
|
|
190
|
-
export { Options4,
|
|
190
|
+
export { Options4, Service36, ripgrepLayer2, fffLayer2, layer16, configured4, node40, exports_search };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-resolver-1ptmpf20.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service53
|
|
8
|
+
} from "./model-resolver-bq4vzaks.js";
|
|
9
9
|
import {
|
|
10
10
|
observe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-resolver-qsdy395h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/config/plugin/provider.ts
|
|
17
17
|
var exports_provider = {};
|
|
@@ -25,7 +25,7 @@ import { Effect } from "effect";
|
|
|
25
25
|
var Plugin32 = define({
|
|
26
26
|
id: "opencode.config.provider",
|
|
27
27
|
effect: Effect.fn(function* (ctx) {
|
|
28
|
-
const config = yield*
|
|
28
|
+
const config = yield* Service53;
|
|
29
29
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
30
30
|
yield* ctx.integration.transform((integrations) => {
|
|
31
31
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID10,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
|
+
nativeSettings2,
|
|
6
7
|
mergeOverlay2,
|
|
7
8
|
mergeHeaders2
|
|
8
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-1ptmpf20.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service60,
|
|
12
|
+
node63
|
|
13
|
+
} from "./model-resolver-psjem9sa.js";
|
|
13
14
|
import {
|
|
14
15
|
map2
|
|
15
|
-
} from "./
|
|
16
|
+
} from "./model-resolver-wrjeysgp.js";
|
|
16
17
|
import {
|
|
17
|
-
|
|
18
|
+
ID9,
|
|
18
19
|
VariantID2,
|
|
19
20
|
Ref3
|
|
20
|
-
} from "./
|
|
21
|
+
} from "./model-resolver-cbg8bv93.js";
|
|
21
22
|
import {
|
|
22
23
|
ID6,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service62,
|
|
25
|
+
node65
|
|
26
|
+
} from "./model-resolver-f8xc4yre.js";
|
|
26
27
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service61,
|
|
29
|
+
node64
|
|
30
|
+
} from "./model-resolver-dktryzc1.js";
|
|
30
31
|
import {
|
|
31
32
|
__export
|
|
32
|
-
} from "./
|
|
33
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
33
34
|
|
|
34
35
|
// src/model-resolver.ts
|
|
35
36
|
var exports_model_resolver = {};
|
|
36
37
|
__export(exports_model_resolver, {
|
|
38
|
+
InitializationPhase: () => InitializationPhase2,
|
|
39
|
+
ModelConfigurationError: () => ModelConfigurationError3,
|
|
40
|
+
ModelInitializationError: () => ModelInitializationError3,
|
|
37
41
|
ModelResolver: () => exports_model_resolver,
|
|
38
|
-
Service: () =>
|
|
42
|
+
Service: () => Service59,
|
|
39
43
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
40
44
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
41
45
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
@@ -43,18 +47,18 @@ __export(exports_model_resolver, {
|
|
|
43
47
|
fromCatalogModel: () => fromCatalogModel2,
|
|
44
48
|
hasPackage: () => hasPackage2,
|
|
45
49
|
layer: () => layer22,
|
|
46
|
-
node: () =>
|
|
50
|
+
node: () => node62,
|
|
47
51
|
resolveModel: () => resolveModel2,
|
|
48
52
|
withVariant: () => withVariant2
|
|
49
53
|
});
|
|
50
54
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
51
|
-
import { LanguageModel } from "@opencode/ai";
|
|
55
|
+
import { LanguageModel, ProviderConfigurationError } from "@opencode/ai";
|
|
52
56
|
import { Auth } from "@opencode/ai/route";
|
|
53
57
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
54
58
|
import { Npm } from "@opencode/util/npm";
|
|
55
59
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
56
|
-
providerID:
|
|
57
|
-
modelID:
|
|
60
|
+
providerID: ID10,
|
|
61
|
+
modelID: ID9,
|
|
58
62
|
variant: VariantID2
|
|
59
63
|
}) {
|
|
60
64
|
get message() {
|
|
@@ -63,18 +67,42 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
66
|
-
providerID:
|
|
67
|
-
modelID:
|
|
70
|
+
providerID: ID10,
|
|
71
|
+
modelID: ID9,
|
|
68
72
|
package: Schema.String
|
|
69
73
|
}) {
|
|
70
74
|
get message() {
|
|
71
75
|
return `Unsupported package for ${this.providerID}/${this.modelID}: ${this.package}`;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
78
|
+
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
79
|
+
|
|
80
|
+
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
81
|
+
providerID: ID10,
|
|
82
|
+
modelID: ID9,
|
|
83
|
+
package: Schema.String,
|
|
84
|
+
detail: Schema.String
|
|
85
|
+
}) {
|
|
86
|
+
get message() {
|
|
87
|
+
return `Cannot initialize ${this.providerID}/${this.modelID}: ${this.detail}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
92
|
+
providerID: ID10,
|
|
93
|
+
modelID: ID9,
|
|
94
|
+
package: Schema.String,
|
|
95
|
+
phase: InitializationPhase2,
|
|
96
|
+
detail: Schema.String
|
|
97
|
+
}) {
|
|
98
|
+
get message() {
|
|
99
|
+
return `Cannot initialize ${this.providerID}/${this.modelID}: ${this.detail}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
74
102
|
|
|
75
103
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
76
|
-
providerID:
|
|
77
|
-
modelID:
|
|
104
|
+
providerID: ID10,
|
|
105
|
+
modelID: ID9,
|
|
78
106
|
variables: Schema.Array(Schema.String)
|
|
79
107
|
}) {
|
|
80
108
|
get message() {
|
|
@@ -83,8 +111,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
83
111
|
}
|
|
84
112
|
|
|
85
113
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
86
|
-
providerID:
|
|
87
|
-
modelID:
|
|
114
|
+
providerID: ID10,
|
|
115
|
+
modelID: ID9,
|
|
88
116
|
route: Schema.String
|
|
89
117
|
}) {
|
|
90
118
|
get message() {
|
|
@@ -92,7 +120,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
92
120
|
}
|
|
93
121
|
}
|
|
94
122
|
|
|
95
|
-
class
|
|
123
|
+
class Service59 extends Context.Service()("@opencode/ModelResolver") {
|
|
96
124
|
}
|
|
97
125
|
var withVariant2 = (model, variantID) => {
|
|
98
126
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -136,13 +164,13 @@ var resolveCatalogModel = Effect.fn("ModelResolver.resolveCatalogModel")(functio
|
|
|
136
164
|
...credential?.metadata,
|
|
137
165
|
...configuration
|
|
138
166
|
}) ?? {});
|
|
139
|
-
return yield* loadAISDK({ ...resolved, settings }).pipe(Effect.mapError(() =>
|
|
167
|
+
return yield* loadAISDK({ ...resolved, settings }).pipe(Effect.mapError((error) => initialization(resolved, "init", error.cause)));
|
|
140
168
|
}
|
|
141
169
|
if (!native)
|
|
142
170
|
return yield* unsupported(resolved);
|
|
143
171
|
const specifier = native;
|
|
144
|
-
const mapped = yield* prepareProviderSettings(resolved, mapping?.settings ?? configured);
|
|
145
|
-
const module = yield* (dependencies?.loadPackage ?? loadPackage2)(specifier).pipe(Effect.mapError(() =>
|
|
172
|
+
const mapped = yield* prepareProviderSettings(resolved, nativeSettings2(mapping?.settings ?? configured));
|
|
173
|
+
const module = yield* (dependencies?.loadPackage ?? loadPackage2)(specifier).pipe(Effect.mapError((error) => initialization(resolved, "load", error.cause)));
|
|
146
174
|
const settings = {
|
|
147
175
|
...credential ? Struct.omit(mapped, ["accessToken", "apiKey", "authToken"]) : mapped,
|
|
148
176
|
...resolved.canonical === undefined ? {} : { provider: resolved.canonical },
|
|
@@ -158,7 +186,12 @@ var resolveCatalogModel = Effect.fn("ModelResolver.resolveCatalogModel")(functio
|
|
|
158
186
|
compatibility: resolved.compatibility ? Object.assign({}, runtime.compatibility, resolved.compatibility) : runtime.compatibility
|
|
159
187
|
});
|
|
160
188
|
},
|
|
161
|
-
catch: () =>
|
|
189
|
+
catch: (cause) => cause instanceof ProviderConfigurationError ? new ModelConfigurationError3({
|
|
190
|
+
providerID: resolved.providerID,
|
|
191
|
+
modelID: resolved.id,
|
|
192
|
+
package: resolved.package ?? "unknown",
|
|
193
|
+
detail: cause.message
|
|
194
|
+
}) : initialization(resolved, "construct", cause)
|
|
162
195
|
});
|
|
163
196
|
});
|
|
164
197
|
function prepareRuntimeModel(model, credential) {
|
|
@@ -216,13 +249,30 @@ var unsupported = (model) => new UnsupportedPackageError3({
|
|
|
216
249
|
modelID: model.id,
|
|
217
250
|
package: model.package ?? "unknown"
|
|
218
251
|
});
|
|
252
|
+
var initialization = (model, phase, cause) => new ModelInitializationError3({
|
|
253
|
+
providerID: model.providerID,
|
|
254
|
+
modelID: model.id,
|
|
255
|
+
package: model.package ?? "unknown",
|
|
256
|
+
phase,
|
|
257
|
+
detail: causeMessage(cause) ?? `${phase} failed for ${model.package ?? "unknown"}`
|
|
258
|
+
});
|
|
259
|
+
var causeMessage = (cause) => {
|
|
260
|
+
if (typeof cause === "string")
|
|
261
|
+
return cause.trim() || undefined;
|
|
262
|
+
if (!(cause instanceof globalThis.Error))
|
|
263
|
+
return;
|
|
264
|
+
const message = cause.message.trim();
|
|
265
|
+
if (message)
|
|
266
|
+
return message;
|
|
267
|
+
return causeMessage(cause.cause);
|
|
268
|
+
};
|
|
219
269
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
220
270
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
221
|
-
var layer22 = Layer.effect(
|
|
222
|
-
const catalog = yield*
|
|
223
|
-
const integrations = yield*
|
|
271
|
+
var layer22 = Layer.effect(Service59, Effect.gen(function* () {
|
|
272
|
+
const catalog = yield* Service61;
|
|
273
|
+
const integrations = yield* Service62;
|
|
224
274
|
const npm = yield* Npm.Service;
|
|
225
|
-
const aisdk = yield*
|
|
275
|
+
const aisdk = yield* Service60;
|
|
226
276
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
227
277
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
228
278
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID6.make(selected.providerID));
|
|
@@ -247,7 +297,7 @@ var layer22 = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
247
297
|
websocket: selected.websocket ?? false
|
|
248
298
|
};
|
|
249
299
|
});
|
|
250
|
-
return
|
|
300
|
+
return Service59.of({
|
|
251
301
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
252
302
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
253
303
|
if (!selected)
|
|
@@ -264,10 +314,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
264
314
|
const name = packageName2(packageName);
|
|
265
315
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
266
316
|
}
|
|
267
|
-
var
|
|
268
|
-
service:
|
|
317
|
+
var node62 = makeLocationNode({
|
|
318
|
+
service: Service59,
|
|
269
319
|
layer: layer22,
|
|
270
|
-
deps: [
|
|
320
|
+
deps: [node64, node65, Npm.node, node63]
|
|
271
321
|
});
|
|
272
322
|
|
|
273
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
323
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service59, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node62, exports_model_resolver };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-03s1nxke.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin2,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint2 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin2 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin7 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin7 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint2, Plugin2, exports_tavily };
|