@opencode/core 0.0.0-beta-19275 → 0.0.0-beta-19283
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 +81 -81
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/catalog.js +83 -83
- package/dist/chunks/{worktree-34gk67xh.js → file-mutation-06e9b0r5.js} +4 -4
- package/dist/chunks/{worktree-zycny061.js → file-mutation-09bre2bs.js} +35 -35
- package/dist/chunks/{worktree-vp47j2z8.js → file-mutation-0atcf9qv.js} +22 -22
- package/dist/chunks/{worktree-eaj1djv9.js → file-mutation-0gdmqesm.js} +8 -8
- package/dist/chunks/{worktree-1dfhrqqs.js → file-mutation-0hpxrkyb.js} +5 -5
- package/dist/chunks/{worktree-6pbkbdfq.js → file-mutation-0kmn1fe5.js} +9 -9
- package/dist/chunks/{worktree-2qnjyx3m.js → file-mutation-0kmr7qxb.js} +26 -26
- package/dist/chunks/{worktree-cbmq2pzd.js → file-mutation-0p6seckt.js} +25 -25
- package/dist/chunks/{worktree-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{worktree-0q0f95c6.js → file-mutation-0q0f95c6.js} +1 -1
- package/dist/chunks/{worktree-j2c7enbf.js → file-mutation-0vyd0s5c.js} +9 -9
- package/dist/chunks/{worktree-esam66tc.js → file-mutation-186z8ksc.js} +10 -10
- package/dist/chunks/{worktree-mvfsc1pv.js → file-mutation-1bbkgx8g.js} +3 -3
- package/dist/chunks/{worktree-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{worktree-b29mbqx6.js → file-mutation-1q5awywt.js} +5 -5
- package/dist/chunks/{worktree-fvanntqq.js → file-mutation-1tq060df.js} +4 -4
- package/dist/chunks/{worktree-5xw7cgsj.js → file-mutation-1v9ym5jr.js} +20 -20
- package/dist/chunks/{worktree-amn7rrmc.js → file-mutation-1vnghje2.js} +15 -15
- package/dist/chunks/{worktree-56gdpj1q.js → file-mutation-1ygqh575.js} +9 -9
- package/dist/chunks/{worktree-egz44y69.js → file-mutation-1zgrek1b.js} +18 -18
- package/dist/chunks/{worktree-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{worktree-2a4f6v5q.js → file-mutation-2336b01z.js} +8 -8
- package/dist/chunks/{worktree-2402vzrj.js → file-mutation-2402vzrj.js} +1 -1
- package/dist/chunks/{worktree-z63w68vq.js → file-mutation-29x78va6.js} +6 -6
- package/dist/chunks/{worktree-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{worktree-t0fxg8b9.js → file-mutation-2qp6y8xf.js} +5 -5
- package/dist/chunks/{worktree-cyhn230w.js → file-mutation-2s407pyf.js} +10 -10
- package/dist/chunks/{worktree-r05k2dy1.js → file-mutation-2s50d4an.js} +8 -8
- package/dist/chunks/{worktree-m9hyszwm.js → file-mutation-2vcmvr51.js} +4 -4
- package/dist/chunks/{worktree-frwpyczr.js → file-mutation-2wyjv582.js} +4 -4
- package/dist/chunks/{worktree-hekpxy8z.js → file-mutation-2y04n8jz.js} +5 -5
- package/dist/chunks/{worktree-zf4nb4wp.js → file-mutation-38q3t4w4.js} +39 -39
- package/dist/chunks/{worktree-1jhga1v4.js → file-mutation-3a14va3x.js} +14 -14
- package/dist/chunks/{worktree-ead3g9p8.js → file-mutation-3cz8rj72.js} +5 -5
- package/dist/chunks/{worktree-e3fx731j.js → file-mutation-3ea0hr43.js} +28 -28
- package/dist/chunks/{worktree-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{worktree-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-xrd4famk.js → file-mutation-3hf7z3yq.js} +11 -11
- package/dist/chunks/{worktree-2hcp0bjx.js → file-mutation-3qm34taf.js} +9 -9
- package/dist/chunks/{worktree-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{worktree-dvh2p5hy.js → file-mutation-3sxqrh4h.js} +25 -25
- package/dist/chunks/{worktree-fvhg6c42.js → file-mutation-3tkzazqm.js} +17 -17
- package/dist/chunks/{worktree-zxgnc9zk.js → file-mutation-3trbxeqx.js} +1 -1
- package/dist/chunks/{worktree-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{worktree-4ph0a4gn.js → file-mutation-3x45ad37.js} +26 -26
- package/dist/chunks/{worktree-3qdzwhqx.js → file-mutation-3xq6eagg.js} +50 -50
- package/dist/chunks/{worktree-xwc0gsaj.js → file-mutation-40snepyt.js} +32 -32
- package/dist/chunks/{worktree-ezy2bptn.js → file-mutation-45hw2ke2.js} +6 -6
- package/dist/chunks/{worktree-16cax9zb.js → file-mutation-49w8mb30.js} +11 -11
- package/dist/chunks/{worktree-97y4vk9t.js → file-mutation-4fjbcyqb.js} +24 -24
- package/dist/chunks/{worktree-ftevhb49.js → file-mutation-4k8h272a.js} +9 -9
- package/dist/chunks/{worktree-wbkyxrgf.js → file-mutation-510m7gjw.js} +5 -5
- package/dist/chunks/file-mutation-53555yf5.js +247 -0
- package/dist/chunks/{worktree-ccrec4q8.js → file-mutation-55fsb9kg.js} +24 -24
- package/dist/chunks/{worktree-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{worktree-nsx3nvvw.js → file-mutation-5f3v4jqn.js} +13 -13
- package/dist/chunks/{worktree-pr7ch8ks.js → file-mutation-5qczcnpy.js} +23 -23
- package/dist/chunks/{worktree-fjttjfbj.js → file-mutation-5qzxerzy.js} +59 -59
- package/dist/chunks/{worktree-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{worktree-xmc8nah8.js → file-mutation-5vn17cm2.js} +16 -16
- package/dist/chunks/{worktree-kbmmzrfa.js → file-mutation-5xtgfte3.js} +8 -8
- package/dist/chunks/{worktree-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{worktree-mp9h7a8n.js → file-mutation-67ta7bkj.js} +30 -30
- package/dist/chunks/{worktree-0tg2xvbt.js → file-mutation-6hb1nw02.js} +33 -33
- package/dist/chunks/{worktree-1j00hnwg.js → file-mutation-6hvfbh91.js} +13 -13
- package/dist/chunks/{worktree-7003dbs4.js → file-mutation-6j4ag5pz.js} +36 -36
- package/dist/chunks/file-mutation-6kdq0pjd.js +4 -0
- package/dist/chunks/{worktree-6msgmcgs.js → file-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{worktree-w1k39n5e.js → file-mutation-6p3xbzsx.js} +4 -4
- package/dist/chunks/{worktree-249ffbnn.js → file-mutation-6x0tkb6y.js} +24 -24
- package/dist/chunks/{worktree-608jf46e.js → file-mutation-6ydb37tg.js} +284 -284
- package/dist/chunks/{worktree-71q4at8m.js → file-mutation-71q4at8m.js} +1 -1
- package/dist/chunks/{worktree-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{worktree-fm2qvscf.js → file-mutation-806j49yq.js} +4 -4
- package/dist/chunks/{worktree-0k40b2vq.js → file-mutation-80738sq9.js} +75 -75
- package/dist/chunks/{worktree-pjmw00w1.js → file-mutation-81swgkk7.js} +5 -5
- package/dist/chunks/{worktree-qn0ybd26.js → file-mutation-82mcaj86.js} +15 -15
- package/dist/chunks/{worktree-9qn3qky1.js → file-mutation-84tssp1s.js} +8 -8
- package/dist/chunks/{worktree-qr42g2ex.js → file-mutation-88adr1q9.js} +12 -12
- package/dist/chunks/{worktree-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{worktree-zjffjh2a.js → file-mutation-8d8kddd4.js} +18 -18
- package/dist/chunks/{worktree-0bc6jdbc.js → file-mutation-8hzg5heq.js} +10 -10
- package/dist/chunks/{worktree-jrra6jmc.js → file-mutation-8m0rbw91.js} +6 -6
- package/dist/chunks/{worktree-dj2t23y0.js → file-mutation-8p4f9s12.js} +2 -2
- package/dist/chunks/{worktree-s4cjsff2.js → file-mutation-8rndkrc9.js} +22 -22
- package/dist/chunks/{worktree-52fpbh6z.js → file-mutation-8s1fj8xg.js} +8 -8
- package/dist/chunks/{worktree-5xgydngh.js → file-mutation-8trxq8gn.js} +15 -15
- package/dist/chunks/{worktree-tzjcchbs.js → file-mutation-8vkd33e4.js} +164 -164
- package/dist/chunks/{worktree-sdm808jd.js → file-mutation-8x19mfpd.js} +13 -13
- package/dist/chunks/{worktree-z82wee6n.js → file-mutation-93qrahcj.js} +11 -11
- package/dist/chunks/{worktree-062zp4xz.js → file-mutation-994yq7gs.js} +17 -17
- package/dist/chunks/{worktree-e54b9byn.js → file-mutation-9ctpkay6.js} +24 -24
- package/dist/chunks/{worktree-13bmfrpk.js → file-mutation-9jq9dwvq.js} +17 -17
- package/dist/chunks/{worktree-h3njrwgg.js → file-mutation-9jwfms7w.js} +34 -34
- package/dist/chunks/{worktree-710w2ech.js → file-mutation-9k2v62xn.js} +1 -1
- package/dist/chunks/{worktree-0khbs0qs.js → file-mutation-9phvn7ns.js} +3 -3
- package/dist/chunks/{worktree-5c4hm403.js → file-mutation-a1bz86dw.js} +3 -3
- package/dist/chunks/{worktree-twy35tz0.js → file-mutation-a5gt7g2r.js} +9 -9
- package/dist/chunks/{worktree-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{worktree-dx2tycek.js → file-mutation-actbqwdw.js} +5 -5
- package/dist/chunks/{worktree-eynwqhf0.js → file-mutation-b28dsp24.js} +33 -33
- package/dist/chunks/{worktree-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{worktree-vq45zjjz.js → file-mutation-b6tpec7v.js} +27 -27
- package/dist/chunks/{worktree-qt1vhyrn.js → file-mutation-bb3j3psa.js} +9 -9
- package/dist/chunks/{worktree-kpf3cvbv.js → file-mutation-bcvv562x.js} +15 -15
- package/dist/chunks/{worktree-q3ac6zk1.js → file-mutation-beahn02f.js} +27 -27
- package/dist/chunks/{worktree-n679sgpe.js → file-mutation-bj38exev.js} +4 -4
- package/dist/chunks/{worktree-3bgy0jaw.js → file-mutation-bmgez2f1.js} +15 -15
- package/dist/chunks/{worktree-k8wahcmx.js → file-mutation-bve5mb3t.js} +9 -9
- package/dist/chunks/{worktree-2f04pwep.js → file-mutation-bwshncvd.js} +3 -3
- package/dist/chunks/{worktree-vrm5r67w.js → file-mutation-c1k9yc14.js} +16 -16
- package/dist/chunks/{worktree-nrs7ag5n.js → file-mutation-c1nn02ak.js} +43 -43
- package/dist/chunks/{worktree-z0kan0ff.js → file-mutation-c48kwzew.js} +6 -6
- package/dist/chunks/{worktree-76j77zm8.js → file-mutation-c4wn80s8.js} +19 -19
- package/dist/chunks/{worktree-rn1y5g26.js → file-mutation-c4xf5pcw.js} +20 -20
- package/dist/chunks/{worktree-sj6racd4.js → file-mutation-c5c317t5.js} +8 -8
- package/dist/chunks/{worktree-p72z5xx6.js → file-mutation-c95cvesc.js} +2 -2
- package/dist/chunks/{worktree-ca7w653e.js → file-mutation-ca7w653e.js} +1 -1
- package/dist/chunks/{worktree-7vcja736.js → file-mutation-cd746zc3.js} +27 -27
- package/dist/chunks/{worktree-m0jqrx5p.js → file-mutation-cfpkc3c9.js} +2 -2
- package/dist/chunks/{worktree-d3p6gjbn.js → file-mutation-d19y6w96.js} +32 -32
- package/dist/chunks/{worktree-dvgvg99t.js → file-mutation-d8dqhcx6.js} +22 -22
- package/dist/chunks/{worktree-4m55frd1.js → file-mutation-dakvsad3.js} +25 -25
- package/dist/chunks/{worktree-jwd18bs2.js → file-mutation-dbkk30e5.js} +26 -26
- package/dist/chunks/{worktree-9w3hzb16.js → file-mutation-drfdf3ak.js} +14 -14
- package/dist/chunks/{worktree-p9690q97.js → file-mutation-dwmg9hrb.js} +71 -71
- package/dist/chunks/{worktree-rp98wqty.js → file-mutation-e1r2x6f9.js} +36 -36
- package/dist/chunks/{worktree-a6ftqyym.js → file-mutation-e3pe5yny.js} +3 -3
- package/dist/chunks/{worktree-80aa9epv.js → file-mutation-e3qr8qh7.js} +8 -8
- package/dist/chunks/{worktree-w2jjwenf.js → file-mutation-es821efa.js} +10 -10
- package/dist/chunks/{worktree-ffx4mq6v.js → file-mutation-esdnemd6.js} +1 -1
- package/dist/chunks/{worktree-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{worktree-vvscj02x.js → file-mutation-f3bk3ss6.js} +9 -9
- package/dist/chunks/{worktree-madgwgkk.js → file-mutation-f58s2wyk.js} +11 -11
- package/dist/chunks/{worktree-hdnk95c8.js → file-mutation-f828m53h.js} +2 -2
- package/dist/chunks/{worktree-tm64n74p.js → file-mutation-fa129hwe.js} +29 -29
- package/dist/chunks/{worktree-qgn6gcr1.js → file-mutation-fcrkznn8.js} +5 -5
- package/dist/chunks/{worktree-km7f0hwj.js → file-mutation-feeq33m8.js} +20 -20
- package/dist/chunks/{worktree-6jnybvqn.js → file-mutation-fhs97t90.js} +9 -9
- package/dist/chunks/{worktree-fa0cr6zp.js → file-mutation-fq1h1v14.js} +3 -3
- package/dist/chunks/{worktree-aw84nbjy.js → file-mutation-ftnkmamc.js} +15 -15
- package/dist/chunks/{worktree-fxbjtjnd.js → file-mutation-fxbjtjnd.js} +1 -1
- package/dist/chunks/{worktree-rjbw5qw4.js → file-mutation-g2emr326.js} +27 -27
- package/dist/chunks/{worktree-255fqtq1.js → file-mutation-g6ww450v.js} +6 -6
- package/dist/chunks/{worktree-2t421ajn.js → file-mutation-gb3cfaes.js} +17 -17
- package/dist/chunks/{worktree-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{worktree-923hzxn9.js → file-mutation-gm1k8myf.js} +13 -13
- package/dist/chunks/{worktree-tvvzt9x6.js → file-mutation-gnbcfc85.js} +36 -36
- package/dist/chunks/{worktree-th5km1p3.js → file-mutation-gv6a8nnw.js} +5 -5
- package/dist/chunks/{worktree-gbzh5ddg.js → file-mutation-gyt4xc7p.js} +13 -13
- package/dist/chunks/{worktree-h03wrkyp.js → file-mutation-h03wrkyp.js} +2 -2
- package/dist/chunks/{worktree-t2pd0szj.js → file-mutation-h0gknw34.js} +30 -30
- package/dist/chunks/{worktree-w55j1d38.js → file-mutation-h1fkweye.js} +15 -15
- package/dist/chunks/{worktree-s7xtjryh.js → file-mutation-h2gyv3sg.js} +1 -1
- package/dist/chunks/{worktree-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{worktree-567g6dh9.js → file-mutation-h9sh19qw.js} +8 -8
- package/dist/chunks/{worktree-7hhzr64w.js → file-mutation-he7r1j7z.js} +16 -16
- package/dist/chunks/{worktree-kxzh2p20.js → file-mutation-hh8z4pbg.js} +11 -11
- package/dist/chunks/{worktree-k56d8zdx.js → file-mutation-hhc8hmsq.js} +58 -58
- package/dist/chunks/{worktree-nhy5jxhy.js → file-mutation-hjt4xg1x.js} +4 -4
- package/dist/chunks/{worktree-8mvsftc3.js → file-mutation-hnz0zg2g.js} +16 -16
- package/dist/chunks/{worktree-emzfq4f9.js → file-mutation-hxmjvm96.js} +44 -44
- package/dist/chunks/{worktree-18bdr5q6.js → file-mutation-hyt7xt3b.js} +32 -32
- package/dist/chunks/{worktree-1cgg357y.js → file-mutation-j2kgjx3g.js} +5 -5
- package/dist/chunks/{worktree-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/file-mutation-j71snt67.js +22 -0
- package/dist/chunks/{worktree-4zbdsexc.js → file-mutation-j7rdq0sg.js} +6 -6
- package/dist/chunks/{worktree-paphc93g.js → file-mutation-j935v87r.js} +2 -2
- package/dist/chunks/{worktree-d57x1pyx.js → file-mutation-jbpw8vb5.js} +7 -7
- package/dist/chunks/{worktree-120qrk2e.js → file-mutation-jps1ny4p.js} +46 -46
- package/dist/chunks/{worktree-4vfmzcq2.js → file-mutation-jw70sp16.js} +4 -4
- package/dist/chunks/{worktree-y71avatq.js → file-mutation-jwcy2c2z.js} +4 -4
- package/dist/chunks/{worktree-x1xcpfha.js → file-mutation-jxhw35st.js} +16 -16
- package/dist/chunks/{worktree-jgrg7y22.js → file-mutation-ka2e7rey.js} +22 -22
- package/dist/chunks/{worktree-adeb4z1j.js → file-mutation-kf6yd70a.js} +9 -9
- package/dist/chunks/{worktree-kg06axw8.js → file-mutation-kg06axw8.js} +1 -1
- package/dist/chunks/{worktree-jjc9qbmx.js → file-mutation-kj8eeftq.js} +18 -18
- package/dist/chunks/{worktree-rfnzy394.js → file-mutation-kjcr15p7.js} +1 -1
- package/dist/chunks/{worktree-rqsgeg7f.js → file-mutation-ks65mm2v.js} +21 -21
- package/dist/chunks/{worktree-11zk2b76.js → file-mutation-kx5d5bhr.js} +15 -15
- package/dist/chunks/{worktree-44gvr517.js → file-mutation-m0jtk5b3.js} +28 -28
- package/dist/chunks/{worktree-n1s6t8b2.js → file-mutation-m1yhe7vf.js} +9 -9
- package/dist/chunks/{worktree-yfjv9t1g.js → file-mutation-m3w486dh.js} +4 -4
- package/dist/chunks/{worktree-qwyrfpbr.js → file-mutation-m5shh40j.js} +2 -2
- package/dist/chunks/{worktree-85x45c9n.js → file-mutation-m9q90vtq.js} +9 -9
- package/dist/chunks/{worktree-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-410w4w39.js → file-mutation-mbfhs0cg.js} +32 -32
- package/dist/chunks/{worktree-zjhmce52.js → file-mutation-mgaz471z.js} +1 -1
- package/dist/chunks/{worktree-mkcjrzeh.js → file-mutation-mkcjrzeh.js} +1 -1
- package/dist/chunks/{worktree-p0cja4mf.js → file-mutation-mrw4weg4.js} +5 -5
- package/dist/chunks/{worktree-j0y65r11.js → file-mutation-mv0zd19e.js} +6 -6
- package/dist/chunks/{worktree-a8mtf1n7.js → file-mutation-n0hfs6vw.js} +24 -24
- package/dist/chunks/{worktree-mj1ykd8q.js → file-mutation-n763yaxc.js} +8 -8
- package/dist/chunks/{worktree-047x8f8f.js → file-mutation-n7gchs3r.js} +44 -44
- package/dist/chunks/{worktree-seak0fhn.js → file-mutation-nchh3q1h.js} +17 -17
- package/dist/chunks/{worktree-v5yv7hbv.js → file-mutation-nsfhb685.js} +29 -29
- package/dist/chunks/{worktree-c3w8vk9m.js → file-mutation-nvbnysz2.js} +12 -12
- package/dist/chunks/{worktree-say7pt71.js → file-mutation-nw1kez4j.js} +39 -39
- package/dist/chunks/{worktree-6pxb6e41.js → file-mutation-p4rfye9r.js} +16 -16
- package/dist/chunks/{worktree-wad31dta.js → file-mutation-p5c89f54.js} +6 -6
- package/dist/chunks/{worktree-sw2yvvap.js → file-mutation-pgg8zxmg.js} +18 -18
- package/dist/chunks/{worktree-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{worktree-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-a4r18kjz.js → file-mutation-pq4st5kv.js} +2 -2
- package/dist/chunks/{worktree-ecj1wrg9.js → file-mutation-pqeratpj.js} +11 -11
- package/dist/chunks/{worktree-5k6pxcn0.js → file-mutation-pqhj6ddm.js} +43 -43
- package/dist/chunks/{worktree-g0he3e83.js → file-mutation-prg0vcqa.js} +30 -30
- package/dist/chunks/{worktree-nze8c8vz.js → file-mutation-ptrg1k2p.js} +11 -11
- package/dist/chunks/{worktree-pcpv7kp0.js → file-mutation-pvfgf3c8.js} +22 -22
- package/dist/chunks/{worktree-tjsj89dc.js → file-mutation-py90b8jm.js} +9 -9
- package/dist/chunks/{worktree-wg42tg3h.js → file-mutation-q1a91n7k.js} +6 -6
- package/dist/chunks/{worktree-q18k77y0.js → file-mutation-q7eqe2cf.js} +28 -28
- package/dist/chunks/file-mutation-qdyb70sk.js +18 -0
- package/dist/chunks/{worktree-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{worktree-jvt1mp6m.js → file-mutation-qwqr3n23.js} +7 -7
- package/dist/chunks/{worktree-t3vqhd9s.js → file-mutation-qz2vwnt8.js} +7 -7
- package/dist/chunks/{worktree-m63snmdm.js → file-mutation-r365bz61.js} +19 -19
- package/dist/chunks/{worktree-146a62k1.js → file-mutation-rcwb6wwf.js} +48 -48
- package/dist/chunks/{worktree-m6vfy410.js → file-mutation-rk2ahbr8.js} +21 -21
- package/dist/chunks/{worktree-8qnjnss5.js → file-mutation-rqg3gf8y.js} +10 -10
- package/dist/chunks/{worktree-a9ab9jmj.js → file-mutation-rs226bz6.js} +5 -5
- package/dist/chunks/{worktree-26tj7vag.js → file-mutation-rsqw0z3c.js} +6 -6
- package/dist/chunks/{worktree-cnd7bjr1.js → file-mutation-rt3pmekg.js} +35 -35
- package/dist/chunks/{worktree-k65ezx0v.js → file-mutation-rt6kd21k.js} +15 -15
- package/dist/chunks/{worktree-7c3npc5w.js → file-mutation-rvv37x7m.js} +49 -49
- package/dist/chunks/{worktree-hcaepy0h.js → file-mutation-ryfyd5fe.js} +7 -7
- package/dist/chunks/{worktree-5g57spxg.js → file-mutation-s2dewncd.js} +18 -18
- package/dist/chunks/{worktree-yrznvahk.js → file-mutation-s4enseaf.js} +2 -2
- package/dist/chunks/{worktree-8t34d1ka.js → file-mutation-s5zy3det.js} +11 -11
- package/dist/chunks/{worktree-f41x9hg9.js → file-mutation-s9abe6v6.js} +21 -21
- package/dist/chunks/{worktree-vece14gy.js → file-mutation-sd8x8c65.js} +21 -21
- package/dist/chunks/{worktree-c5gn303e.js → file-mutation-shh6fz4q.js} +4 -4
- package/dist/chunks/{worktree-mfxgaa47.js → file-mutation-t171jc14.js} +10 -10
- package/dist/chunks/{worktree-nqyaavw9.js → file-mutation-t4pq13ck.js} +10 -10
- package/dist/chunks/{worktree-g190xswt.js → file-mutation-t51qk8jz.js} +21 -21
- package/dist/chunks/{worktree-6rrtkcjf.js → file-mutation-t599r0en.js} +11 -11
- package/dist/chunks/{worktree-dmvhv66c.js → file-mutation-t8ksxzma.js} +23 -23
- package/dist/chunks/{worktree-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{worktree-tcezcvh9.js → file-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{worktree-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{worktree-wpdyyhk3.js → file-mutation-tjxznqzk.js} +11 -11
- package/dist/chunks/{worktree-5ycqwtsz.js → file-mutation-ttr98dqn.js} +28 -28
- package/dist/chunks/{worktree-tvtrv512.js → file-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{worktree-j5j8hrgx.js → file-mutation-tw7brqvw.js} +23 -23
- package/dist/chunks/{worktree-y5h7afh3.js → file-mutation-tz7np2q7.js} +17 -17
- package/dist/chunks/{worktree-8qk9tw02.js → file-mutation-vabb23s0.js} +1 -1
- package/dist/chunks/{worktree-r98e92ep.js → file-mutation-ve4pfa0n.js} +4 -4
- package/dist/chunks/{worktree-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{worktree-d6hfhc31.js → file-mutation-vhqk6wt7.js} +11 -11
- package/dist/chunks/{worktree-gnx4ytbv.js → file-mutation-vkxpz7g2.js} +4 -4
- package/dist/chunks/{worktree-skcgd3vv.js → file-mutation-vwntjgrk.js} +13 -13
- package/dist/chunks/{worktree-asseqh46.js → file-mutation-vxg24fff.js} +7 -7
- package/dist/chunks/{worktree-t9e6e84n.js → file-mutation-vypqtakx.js} +1 -1
- package/dist/chunks/{worktree-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{worktree-vkez6a4k.js → file-mutation-vzm76b3t.js} +6 -6
- package/dist/chunks/{worktree-k7d0894y.js → file-mutation-w21xwbmq.js} +9 -9
- package/dist/chunks/{worktree-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-neswnnnm.js → file-mutation-wdnn29qe.js} +6 -6
- package/dist/chunks/{worktree-f8jtvgnz.js → file-mutation-whqd4cg2.js} +14 -14
- package/dist/chunks/{worktree-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{worktree-x43y2vfs.js → file-mutation-x43y2vfs.js} +2 -2
- package/dist/chunks/{worktree-rxv654xr.js → file-mutation-xryrtgfh.js} +4 -4
- package/dist/chunks/{worktree-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{worktree-1e9w7pgh.js → file-mutation-y2vrj84a.js} +9 -9
- package/dist/chunks/{worktree-b1x7x3xx.js → file-mutation-y62rmnsx.js} +11 -11
- package/dist/chunks/{worktree-edbbhmy9.js → file-mutation-y6xnddjk.js} +4 -4
- package/dist/chunks/{worktree-7rtqyxd7.js → file-mutation-y9dm3m96.js} +5 -5
- package/dist/chunks/{worktree-2y34zzjz.js → file-mutation-ym15bmrz.js} +7 -7
- package/dist/chunks/{worktree-yp2x3t23.js → file-mutation-yp2x3t23.js} +1 -1
- package/dist/chunks/{worktree-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{worktree-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{worktree-hed2586q.js → file-mutation-z7k8rsga.js} +16 -16
- package/dist/chunks/{worktree-r82b328h.js → file-mutation-ze2evx92.js} +44 -44
- package/dist/chunks/{worktree-kvezfmw3.js → file-mutation-zedst77g.js} +35 -35
- package/dist/chunks/{worktree-zeh9ct20.js → file-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{worktree-nkn58an9.js → file-mutation-zhsgacjb.js} +8 -8
- package/dist/chunks/{worktree-10fngwpd.js → file-mutation-zqgpk263.js} +24 -24
- package/dist/chunks/{worktree-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{worktree-nzwzy72p.js → file-mutation-zt5c7qyf.js} +9 -9
- package/dist/chunks/{worktree-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +134 -134
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +115 -115
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +70 -70
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -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 +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -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 +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +89 -89
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +90 -90
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +84 -84
- package/dist/generate.js +89 -89
- package/dist/git.js +5 -5
- 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 -352
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -84
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +130 -130
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +349 -349
- package/dist/location.js +78 -78
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +6 -6
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- 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 +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +97 -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/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -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 +80 -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 +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- 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 +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +77 -77
- package/dist/provider.js +7 -7
- 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 +94 -94
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +125 -125
- package/dist/session/context.js +145 -145
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +213 -213
- package/dist/session/execution.js +120 -120
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +111 -111
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +1 -1
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +82 -82
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +121 -121
- 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 +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +83 -83
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +207 -207
- 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 +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +100 -100
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +88 -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 +119 -119
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +96 -96
- package/dist/tool/plugin/read.js +115 -115
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +106 -106
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +103 -103
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- 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 +7 -7
- 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 +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/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 +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +341 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +91 -91
- package/package.json +8 -8
- package/dist/chunks/worktree-0mesazry.js +0 -4
- package/dist/chunks/worktree-1x11rq2a.js +0 -18
- package/dist/chunks/worktree-3q1qkym4.js +0 -247
- package/dist/chunks/worktree-5jbb3qyd.js +0 -22
- /package/dist/chunks/{worktree-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-922hggd3.js → file-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a1tpkmh4.js → file-mutation-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{worktree-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{worktree-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-hrnqkpcd.js → file-mutation-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-twg0f83k.js → file-mutation-twg0f83k.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-2a5m3afh.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service75
|
|
9
|
+
} from "./file-mutation-93qrahcj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service70
|
|
12
|
+
} from "./file-mutation-5qczcnpy.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service41
|
|
15
|
+
} from "./file-mutation-whqd4cg2.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-mutation-wdnn29qe.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service52
|
|
24
|
+
} from "./file-mutation-hhc8hmsq.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service51
|
|
27
|
+
} from "./file-mutation-9jq9dwvq.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input8,
|
|
37
|
+
Output: () => Output7,
|
|
38
|
+
Plugin: () => Plugin39,
|
|
39
|
+
name: () => name8,
|
|
40
|
+
toModelContent: () => toModelContent4
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name8 = "glob";
|
|
46
|
+
var Input8 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input7 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output7 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent4 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin39 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service70;
|
|
70
|
+
const ripgrep = yield* Service41;
|
|
71
|
+
const location = yield* Service75;
|
|
72
|
+
const access = yield* Service51;
|
|
73
|
+
const permission = yield* Service52;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name8,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input8,
|
|
79
|
+
output: Output7,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name8,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin8 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent4(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name8, Input8, Output7, toModelContent4, Plugin39, exports_glob };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service78,
|
|
3
|
+
node82
|
|
4
|
+
} from "./file-mutation-c1k9yc14.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Service75,
|
|
7
7
|
node79
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-93qrahcj.js";
|
|
9
9
|
import {
|
|
10
10
|
reconcile2,
|
|
11
11
|
create3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-kg06axw8.js";
|
|
13
13
|
import {
|
|
14
14
|
PATCH_CONTEXT_LINES2,
|
|
15
15
|
MAX_TOTAL_PATCH_BYTES2,
|
|
16
16
|
emptyPatch2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-tazgh4e4.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/vcs.ts
|
|
23
23
|
var exports_vcs = {};
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info8,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service43,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node46
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info8, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,12 +45,12 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service43 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service75;
|
|
53
|
+
const bus = yield* Service78;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
56
56
|
const vcs = location.vcs;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info8));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
115
115
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
116
116
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return Service43.of({
|
|
119
119
|
transform: state.transform,
|
|
120
120
|
reload: state.reload,
|
|
121
121
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -161,10 +161,10 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
165
|
-
service:
|
|
164
|
+
var node46 = makeLocationNode({
|
|
165
|
+
service: Service43,
|
|
166
166
|
layer,
|
|
167
|
-
deps: [FSUtil.node, node79,
|
|
167
|
+
deps: [FSUtil.node, node79, node82]
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
export { Base2, BranchList2, FileStatus2,
|
|
170
|
+
export { Base2, BranchList2, FileStatus2, Info8, Mode2, DiffError2, Service43, node46, exports_vcs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key3,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
|
|
|
18
18
|
diffByKey: () => diffByKey2,
|
|
19
19
|
empty: () => empty3,
|
|
20
20
|
hash: () => hash2,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make18,
|
|
22
22
|
read: () => read3,
|
|
23
23
|
removed: () => removed2,
|
|
24
24
|
renderInitial: () => renderInitial2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key3 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,21 +36,21 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key3
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
var empty3 = [];
|
|
53
|
-
function
|
|
53
|
+
function make18(source) {
|
|
54
54
|
const decode = Schema.decodeUnknownOption(source.codec);
|
|
55
55
|
const encode = Schema.encodeSync(source.codec);
|
|
56
56
|
const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make18, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
10
10
|
__export(exports_message_updater, {
|
|
11
11
|
SessionMessageUpdater: () => exports_message_updater,
|
|
12
|
-
update: () =>
|
|
12
|
+
update: () => update3
|
|
13
13
|
});
|
|
14
14
|
import { castDraft, produce } from "immer";
|
|
15
15
|
import { DateTime, Effect, Match, pipe, Schema } from "effect";
|
|
@@ -21,7 +21,7 @@ var projectTerminalSnapshot = (draft, event) => {
|
|
|
21
21
|
files: event.data.files ? Array.from(event.data.files) : undefined
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function update3(adapter, event) {
|
|
25
25
|
const created = DateTime.makeUnsafe(event.created);
|
|
26
26
|
const latestTool = (assistant, id) => assistant.content.findLast((item) => item.type === "tool" && item.id === id);
|
|
27
27
|
const latestText = (assistant) => assistant.content.findLast((item) => item.type === "text");
|
|
@@ -385,4 +385,4 @@ function update2(adapter, event) {
|
|
|
385
385
|
return project(event);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
export {
|
|
388
|
+
export { update3, exports_message_updater };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-84tssp1s.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service65
|
|
8
|
+
} from "./file-mutation-ze2evx92.js";
|
|
9
9
|
import {
|
|
10
10
|
observe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-qsdy395h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/config/plugin/provider.ts
|
|
17
17
|
var exports_provider = {};
|
|
18
18
|
__export(exports_provider, {
|
|
19
19
|
ConfigProviderPlugin: () => exports_provider,
|
|
20
|
-
Plugin: () =>
|
|
20
|
+
Plugin: () => Plugin26
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Effect } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin26 = define({
|
|
26
26
|
id: "opencode.config.provider",
|
|
27
27
|
effect: Effect.fn(function* (ctx) {
|
|
28
|
-
const config = yield*
|
|
28
|
+
const config = yield* Service65;
|
|
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)) {
|
|
@@ -155,4 +155,4 @@ function configuredProviders(entries) {
|
|
|
155
155
|
return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export {
|
|
158
|
+
export { Plugin26, exports_provider };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service78,
|
|
3
|
+
node82
|
|
4
|
+
} from "./file-mutation-c1k9yc14.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./file-mutation-f58s2wyk.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-kg06axw8.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/websearch.ts
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
20
|
+
Event: () => Event6,
|
|
21
|
+
ID: () => ID3,
|
|
22
22
|
Input: () => Input14,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
@@ -28,29 +28,29 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service38,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node41
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
36
36
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
37
37
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
38
38
|
import { HttpClientError } from "effect/unstable/http";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
import { Event as
|
|
41
|
-
var
|
|
40
|
+
import { Event as Event6 } from "@opencode/schema/websearch";
|
|
41
|
+
var ID3 = WebSearch.ID;
|
|
42
42
|
var Provider2 = WebSearch.Provider;
|
|
43
43
|
var Input14 = WebSearch.Input;
|
|
44
44
|
var Result2 = WebSearch.Result;
|
|
45
45
|
var Response2 = WebSearch.Response;
|
|
46
46
|
var ProviderKey2 = "websearch:provider";
|
|
47
|
-
var Selection2 = Schema.Union([
|
|
47
|
+
var Selection2 = Schema.Union([ID3, Schema.Literal("random"), Schema.Literal(false)]);
|
|
48
48
|
|
|
49
49
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
53
|
-
providerID:
|
|
53
|
+
providerID: ID3
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
61
|
-
providerID:
|
|
61
|
+
providerID: ID3,
|
|
62
62
|
cause: Schema.Defect()
|
|
63
63
|
}) {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class Service38 extends Context.Service()("@opencode/WebSearch") {
|
|
67
67
|
}
|
|
68
|
-
var layer = Layer.effect(
|
|
69
|
-
const bus = yield*
|
|
70
|
-
const kv = yield*
|
|
68
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
69
|
+
const bus = yield* Service78;
|
|
70
|
+
const kv = yield* Service79;
|
|
71
71
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
72
72
|
const cooldowns = new Map;
|
|
73
73
|
const preferred = new Map;
|
|
@@ -124,7 +124,7 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
124
124
|
}
|
|
125
125
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
127
|
+
return Service38.of({
|
|
128
128
|
transform: state.transform,
|
|
129
129
|
reload: state.reload,
|
|
130
130
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -184,10 +184,10 @@ function cooldownMillis(value, now) {
|
|
|
184
184
|
const date = Date.parse(value);
|
|
185
185
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
service:
|
|
187
|
+
var node41 = makeLocationNode({
|
|
188
|
+
service: Service38,
|
|
189
189
|
layer,
|
|
190
|
-
deps: [
|
|
190
|
+
deps: [node82, node83]
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { ID3, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service38, node41, exports_websearch3, Event6 };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service52
|
|
3
|
+
} from "./file-mutation-hhc8hmsq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID5,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service45
|
|
10
|
+
} from "./file-mutation-ttr98dqn.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
Input: () =>
|
|
16
|
+
var exports_skill3 = {};
|
|
17
|
+
__export(exports_skill3, {
|
|
18
|
+
Input: () => Input3,
|
|
19
19
|
Output: () => Output3,
|
|
20
|
-
Plugin: () =>
|
|
21
|
-
SkillTool: () =>
|
|
22
|
-
description: () =>
|
|
23
|
-
name: () =>
|
|
20
|
+
Plugin: () => Plugin34,
|
|
21
|
+
SkillTool: () => exports_skill3,
|
|
22
|
+
description: () => description2,
|
|
23
|
+
name: () => name3,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai";
|
|
27
27
|
import { Effect, Schema } from "effect";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
id:
|
|
29
|
+
var name3 = "skill";
|
|
30
|
+
var Input3 = Schema.Struct({
|
|
31
|
+
id: ID5.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
33
|
var Output3 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
35
35
|
directory: Schema.String,
|
|
36
36
|
output: Schema.String
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var description2 = [
|
|
39
39
|
"Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
|
|
40
40
|
"",
|
|
41
41
|
"The skill ID must match an available skill or a skill explicitly referenced by the user."
|
|
@@ -43,17 +43,17 @@ var description3 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin34 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service45;
|
|
51
|
+
const permission = yield* Service52;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
|
-
name:
|
|
53
|
+
name: name3,
|
|
54
54
|
options: { codemode: false },
|
|
55
|
-
description:
|
|
56
|
-
input:
|
|
55
|
+
description: description2,
|
|
56
|
+
input: Input3,
|
|
57
57
|
output: Output3,
|
|
58
58
|
execute: (input, context) => Effect.gen(function* () {
|
|
59
59
|
const skill = yield* skills.get(input.id);
|
|
@@ -61,7 +61,7 @@ var Plugin6 = {
|
|
|
61
61
|
return yield* unableToLoad(input.id);
|
|
62
62
|
return yield* Effect.gen(function* () {
|
|
63
63
|
yield* permission.assert({
|
|
64
|
-
action:
|
|
64
|
+
action: name3,
|
|
65
65
|
resources: [skill.id],
|
|
66
66
|
save: [skill.id],
|
|
67
67
|
sessionID: context.sessionID,
|
|
@@ -79,4 +79,4 @@ var Plugin6 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { name3, Input3, Output3, description2, toModelOutput2, Plugin34, exports_skill3 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-3hf7z3yq.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-1ygqh575.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin8,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin8 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin36 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint5, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin36 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin8, exports_firecrawl };
|