@opencode/core 0.0.0-dev-21756 → 0.0.0-dev-21763
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/agent.js +62 -62
- package/dist/aisdk-native.js +63 -62
- package/dist/aisdk.js +69 -68
- package/dist/app.js +9 -9
- package/dist/bus.js +50 -50
- package/dist/chunks/{websearch-cv8jg5mf.js → websearch-028jhwed.js} +10 -10
- package/dist/chunks/{websearch-eraf7cqm.js → websearch-02bgezqx.js} +30 -30
- package/dist/chunks/{websearch-99v8e8rn.js → websearch-06vk0kzn.js} +4 -4
- package/dist/chunks/{websearch-pyg2ad4d.js → websearch-07kams43.js} +46 -46
- package/dist/chunks/{websearch-mvx17366.js → websearch-0ear39jp.js} +8 -8
- package/dist/chunks/{websearch-shvrd9z9.js → websearch-0sc0whcy.js} +28 -28
- package/dist/chunks/{websearch-601m2pka.js → websearch-0yhm11wk.js} +18 -18
- package/dist/chunks/{websearch-tez9md4y.js → websearch-16hqm74r.js} +2 -2
- package/dist/chunks/{websearch-cz1vwcws.js → websearch-1cjk9esd.js} +1 -1
- package/dist/chunks/{websearch-tgsxr5er.js → websearch-1jq5v97j.js} +19 -19
- package/dist/chunks/{websearch-77mes9hg.js → websearch-1qn5xget.js} +13 -13
- package/dist/chunks/{websearch-67gksmdf.js → websearch-1rbznk76.js} +29 -29
- package/dist/chunks/{websearch-p7vhpwh8.js → websearch-1yq9hg58.js} +4 -4
- package/dist/chunks/{websearch-ejgxm2nm.js → websearch-2a2xbt2q.js} +17 -17
- package/dist/chunks/{websearch-nq3mvejp.js → websearch-2e9c1ftj.js} +8 -8
- package/dist/chunks/{websearch-dhww0s6x.js → websearch-2fx6sc8m.js} +1 -1
- package/dist/chunks/{websearch-35myeakn.js → websearch-2kpf2tnx.js} +9 -9
- package/dist/chunks/{websearch-9hj5qrya.js → websearch-2sadzmpt.js} +19 -19
- package/dist/chunks/{websearch-ygqqsqxe.js → websearch-30asdcnx.js} +2 -2
- package/dist/chunks/{websearch-0hxcp4e6.js → websearch-32tek056.js} +3 -3
- package/dist/chunks/{websearch-pd0633z0.js → websearch-3tt1qka2.js} +22 -22
- package/dist/chunks/{websearch-4r4bnvcy.js → websearch-3ypzwevx.js} +2 -2
- package/dist/chunks/{websearch-mfwfc967.js → websearch-45k1q4jf.js} +5 -5
- package/dist/chunks/{websearch-pv4tdx85.js → websearch-48khph17.js} +8 -8
- package/dist/chunks/{websearch-hzrfc1p4.js → websearch-48kw51zw.js} +3 -3
- package/dist/chunks/{websearch-zpe8k49a.js → websearch-48yja14g.js} +11 -11
- package/dist/chunks/{websearch-4c9adx7x.js → websearch-4kaztr7e.js} +9 -9
- package/dist/chunks/{websearch-2bcte980.js → websearch-4p7eafa8.js} +5 -5
- package/dist/chunks/{websearch-4a126rg5.js → websearch-4sjm1mdd.js} +27 -27
- package/dist/chunks/{websearch-q5ksxkha.js → websearch-4x5ne6q5.js} +4 -4
- package/dist/chunks/{websearch-rxrz6b15.js → websearch-4ytg8f8f.js} +1 -1
- package/dist/chunks/{websearch-vnmgdpj6.js → websearch-50bs153s.js} +4 -4
- package/dist/chunks/{websearch-mmqtdvrn.js → websearch-50ya5pgh.js} +4 -4
- package/dist/chunks/{websearch-aamv54pf.js → websearch-52760bbp.js} +30 -30
- package/dist/chunks/{websearch-t2c8c6tj.js → websearch-538n6qw9.js} +21 -21
- package/dist/chunks/{websearch-c6r66q4n.js → websearch-57p715bj.js} +4 -4
- package/dist/chunks/{websearch-befe4cf3.js → websearch-5bfg49e7.js} +1 -1
- package/dist/chunks/{websearch-da9th9a0.js → websearch-5f5f6dw4.js} +14 -14
- package/dist/chunks/{websearch-m8gc8z80.js → websearch-5gwd981r.js} +18 -18
- package/dist/chunks/{websearch-v2aqy3r9.js → websearch-5kxxqds9.js} +9 -9
- package/dist/chunks/{websearch-3qn9w17a.js → websearch-5mb8ret5.js} +6 -6
- package/dist/chunks/{websearch-4jv1qxwj.js → websearch-5nqw6vw5.js} +5 -5
- package/dist/chunks/{websearch-vq142dc8.js → websearch-5v4yb9wj.js} +6 -6
- package/dist/chunks/{websearch-y4kbxhdq.js → websearch-5xfk6dbg.js} +1 -1
- package/dist/chunks/{websearch-g4fsskpn.js → websearch-610jhrvc.js} +22 -22
- package/dist/chunks/{websearch-e1g8z5n0.js → websearch-627jp256.js} +8 -8
- package/dist/chunks/{websearch-d1dxzg06.js → websearch-6a99w62x.js} +1 -1
- package/dist/chunks/{websearch-xrc3640n.js → websearch-6ejgy672.js} +7 -7
- package/dist/chunks/{websearch-c3b0e464.js → websearch-6revxm77.js} +17 -17
- package/dist/chunks/{websearch-qtmq7hg9.js → websearch-6tbrfh06.js} +29 -29
- package/dist/chunks/{websearch-afmnpta1.js → websearch-6y263vp8.js} +3 -3
- package/dist/chunks/{websearch-wfewkgqg.js → websearch-709aftea.js} +33 -33
- package/dist/chunks/{websearch-qfw0te7b.js → websearch-72gkwb92.js} +15 -15
- package/dist/chunks/{websearch-w8qtt4th.js → websearch-76cb1hcw.js} +3 -3
- package/dist/chunks/{websearch-xfbpcgb3.js → websearch-76t1xp06.js} +21 -21
- package/dist/chunks/{websearch-qhsybjre.js → websearch-783zccns.js} +10 -10
- package/dist/chunks/{websearch-gjw9pjem.js → websearch-78je3d3v.js} +11 -11
- package/dist/chunks/{websearch-fmnjzv27.js → websearch-79ykxmfx.js} +5 -5
- package/dist/chunks/{websearch-n7wnam13.js → websearch-7akzmw6y.js} +7 -7
- package/dist/chunks/{websearch-dkcjkp08.js → websearch-7deqkbqn.js} +6 -6
- package/dist/chunks/{websearch-2f6dwfym.js → websearch-8371ggt2.js} +19 -19
- package/dist/chunks/{websearch-pk0v2zct.js → websearch-87fjpdw3.js} +17 -17
- package/dist/chunks/{websearch-zzhs96fs.js → websearch-87s7n4ge.js} +10 -10
- package/dist/chunks/{websearch-j82mhg5v.js → websearch-888hgb07.js} +8 -8
- package/dist/chunks/{websearch-xazjtzbh.js → websearch-8dbt3gp8.js} +13 -13
- package/dist/chunks/{websearch-876de6v3.js → websearch-98t00bmz.js} +27 -27
- package/dist/chunks/{websearch-fvc4bqe2.js → websearch-9b28cy4d.js} +3 -3
- package/dist/chunks/{websearch-b87x680z.js → websearch-9cvvmdrm.js} +14 -14
- package/dist/chunks/{websearch-b65mwzbx.js → websearch-9d47xe23.js} +21 -21
- package/dist/chunks/{websearch-1v0n44x7.js → websearch-9fm2qjhc.js} +15 -15
- package/dist/chunks/{websearch-mjxc5aj5.js → websearch-9sh8p6nx.js} +46 -46
- package/dist/chunks/{websearch-6zrr0fnw.js → websearch-9v9xq6k7.js} +23 -23
- package/dist/chunks/{websearch-7vftsjfj.js → websearch-a42dnrht.js} +21 -21
- package/dist/chunks/{websearch-syvntbhr.js → websearch-a4fjeg88.js} +19 -19
- package/dist/chunks/{websearch-shnwrs1k.js → websearch-abdhesrb.js} +28 -28
- package/dist/chunks/{websearch-mptby4ra.js → websearch-af6r45an.js} +44 -44
- package/dist/chunks/{websearch-tnqzh63d.js → websearch-agqd6nxz.js} +16 -6
- package/dist/chunks/{websearch-y605yc6m.js → websearch-akv6whtz.js} +21 -21
- package/dist/chunks/{websearch-bjhzkqyk.js → websearch-ar2j3j0f.js} +3 -3
- package/dist/chunks/{websearch-53xcczwb.js → websearch-aw3srb6e.js} +9 -9
- package/dist/chunks/{websearch-74m3x80w.js → websearch-b2fr11m5.js} +6 -6
- package/dist/chunks/{websearch-pvn3retk.js → websearch-b4e1jcxa.js} +14 -14
- package/dist/chunks/{websearch-8rf240hq.js → websearch-b4nx6saa.js} +7 -7
- package/dist/chunks/{websearch-4snbakks.js → websearch-b7mcgwp3.js} +3 -3
- package/dist/chunks/{websearch-e14ep8c2.js → websearch-ba38v71t.js} +4 -4
- package/dist/chunks/{websearch-fq91yvwf.js → websearch-bcvfpan3.js} +16 -16
- package/dist/chunks/{websearch-35sav4w0.js → websearch-bd5kqybq.js} +8 -8
- package/dist/chunks/{websearch-6twykydk.js → websearch-bgm817xr.js} +7 -7
- package/dist/chunks/{websearch-neyf1ckr.js → websearch-bnarb0wx.js} +9 -9
- package/dist/chunks/{websearch-8emm9fy9.js → websearch-c1khejyh.js} +4 -4
- package/dist/chunks/{websearch-e4k6zsy1.js → websearch-ca6atg52.js} +53 -46
- package/dist/chunks/{websearch-ve5gzmd5.js → websearch-csqtxx7c.js} +4 -4
- package/dist/chunks/{websearch-ddj2qmc2.js → websearch-cvna5pvx.js} +3 -3
- package/dist/chunks/{websearch-3rgj9tjs.js → websearch-d0qd2q9y.js} +27 -27
- package/dist/chunks/{websearch-4x7cszc9.js → websearch-d1g76nqk.js} +17 -17
- package/dist/chunks/{websearch-61m88qqz.js → websearch-d2nhvyww.js} +23 -23
- package/dist/chunks/{websearch-adcxthm4.js → websearch-d86zx6ex.js} +25 -25
- package/dist/chunks/{websearch-53b428tw.js → websearch-dcw70mgd.js} +9 -9
- package/dist/chunks/{websearch-pc1v25hk.js → websearch-dh62xe4r.js} +2 -2
- package/dist/chunks/{websearch-dmk8nbcm.js → websearch-dncnpr57.js} +10 -10
- package/dist/chunks/{websearch-60ndzxv8.js → websearch-drcvb97p.js} +35 -35
- package/dist/chunks/{websearch-r5q4n18f.js → websearch-e43td24s.js} +7 -7
- package/dist/chunks/{websearch-vy9rjjkt.js → websearch-ebh17g7q.js} +15 -15
- package/dist/chunks/{websearch-6bqp8z2s.js → websearch-ecj92f6p.js} +19 -19
- package/dist/chunks/{websearch-xqqxjzgs.js → websearch-em430e81.js} +11 -11
- package/dist/chunks/{websearch-vz1a888q.js → websearch-ew9j7vn7.js} +180 -180
- package/dist/chunks/{websearch-sepw9312.js → websearch-exzfyd93.js} +5 -5
- package/dist/chunks/{websearch-qvswfh9d.js → websearch-ey051h0d.js} +23 -23
- package/dist/chunks/{websearch-sc8entjg.js → websearch-ez0ps4vh.js} +1 -1
- package/dist/chunks/{websearch-czcebxpq.js → websearch-f89qnyv0.js} +61 -61
- package/dist/chunks/{websearch-fv6att8a.js → websearch-fgr117q8.js} +12 -12
- package/dist/chunks/{websearch-gnk1ngs3.js → websearch-ft9kpk2e.js} +13 -13
- package/dist/chunks/{websearch-b6ft8j34.js → websearch-fy4awrc2.js} +6 -6
- package/dist/chunks/{websearch-6dbnd2pd.js → websearch-fyr07a1r.js} +20 -20
- package/dist/chunks/{websearch-5pr32gd7.js → websearch-g0cks53z.js} +44 -44
- package/dist/chunks/{websearch-ezdmt8g7.js → websearch-gcrsyfkm.js} +4 -4
- package/dist/chunks/{websearch-68k8pcn2.js → websearch-gg4606bf.js} +14 -14
- package/dist/chunks/{websearch-z7w4m9jf.js → websearch-gg9100yt.js} +46 -46
- package/dist/chunks/{websearch-mzw1ndaz.js → websearch-gk3b5har.js} +82 -82
- package/dist/chunks/{websearch-g6wnqzhb.js → websearch-gk8rb9qf.js} +9 -9
- package/dist/chunks/{websearch-kbjsyctr.js → websearch-gxjy29d9.js} +27 -27
- package/dist/chunks/{websearch-fz7prppb.js → websearch-h069xeqn.js} +13 -13
- package/dist/chunks/{websearch-nqaab5fx.js → websearch-h7ymgnqs.js} +4 -4
- package/dist/chunks/{websearch-hwyh2kpq.js → websearch-hdcc19jf.js} +9 -9
- package/dist/chunks/{websearch-2fkrhbg9.js → websearch-hf84ee0d.js} +22 -22
- package/dist/chunks/{websearch-n7hthk3p.js → websearch-hfcmmhta.js} +24 -24
- package/dist/chunks/{websearch-wkpxpnd1.js → websearch-htnwkh5a.js} +30 -30
- package/dist/chunks/{websearch-gyz3azbf.js → websearch-hyv9r77w.js} +13 -13
- package/dist/chunks/{websearch-ceeb7cqk.js → websearch-jgp1rfxc.js} +9 -9
- package/dist/chunks/{websearch-eb0nfaz4.js → websearch-jkxkafzy.js} +9 -9
- package/dist/chunks/{websearch-8t9b736e.js → websearch-k4g9p6fx.js} +16 -16
- package/dist/chunks/{websearch-bc0ymgk0.js → websearch-k61qs451.js} +41 -41
- package/dist/chunks/{websearch-q3bgpfy7.js → websearch-k8yzaem4.js} +1 -1
- package/dist/chunks/websearch-ka8y8jkb.js +111 -0
- package/dist/chunks/{websearch-vnntc3sm.js → websearch-kdw5wkbd.js} +29 -29
- package/dist/chunks/{websearch-sy9xwmw1.js → websearch-kfknhheq.js} +6 -6
- package/dist/chunks/{websearch-5fjdabgp.js → websearch-kp4881bv.js} +14 -14
- package/dist/chunks/{websearch-eqmd2tfz.js → websearch-m37sd98t.js} +6 -6
- package/dist/chunks/{websearch-3aw6bcdd.js → websearch-m5hjs3vf.js} +17 -17
- package/dist/chunks/{websearch-d0ctn9ee.js → websearch-mbk0t8q9.js} +16 -16
- package/dist/chunks/websearch-meywf6fv.js +257 -0
- package/dist/chunks/{websearch-3bp5jjvw.js → websearch-mqrfkf7g.js} +7 -7
- package/dist/chunks/{websearch-rv7ddw0n.js → websearch-mxpbzbap.js} +22 -22
- package/dist/chunks/{websearch-q3vt6pnc.js → websearch-n1jvtmv7.js} +22 -22
- package/dist/chunks/{websearch-zkgq49d1.js → websearch-n1pz9w08.js} +1 -1
- package/dist/chunks/{websearch-770pw0s1.js → websearch-nah043kf.js} +3 -3
- package/dist/chunks/{websearch-rjbe0a9e.js → websearch-nah9ekst.js} +10 -10
- package/dist/chunks/{websearch-pbjsg7m1.js → websearch-nfdkbbm6.js} +19 -19
- package/dist/chunks/{websearch-rwf9r3m0.js → websearch-nfx6rd1e.js} +30 -30
- package/dist/chunks/{websearch-y22e2amb.js → websearch-nkxanhw7.js} +13 -13
- package/dist/chunks/{websearch-zxxqm14y.js → websearch-nnfcn29r.js} +13 -13
- package/dist/chunks/{websearch-a6959n1g.js → websearch-nt00n9sh.js} +8 -8
- package/dist/chunks/{websearch-zsgey489.js → websearch-nzh3qh6x.js} +5 -5
- package/dist/chunks/{websearch-q6bn7qw5.js → websearch-p580ev26.js} +5 -5
- package/dist/chunks/{websearch-ztf6n3de.js → websearch-p76me67c.js} +3 -3
- package/dist/chunks/{websearch-hch4wa3n.js → websearch-p8rxrw5c.js} +7 -5
- package/dist/chunks/{websearch-kp0e8qdv.js → websearch-p9r4530m.js} +21 -21
- package/dist/chunks/{websearch-85sv36r4.js → websearch-ptavmxt8.js} +35 -35
- package/dist/chunks/{websearch-d7qtxm9r.js → websearch-pww3ccs0.js} +18 -18
- package/dist/chunks/{websearch-kndc5src.js → websearch-q3k4em5e.js} +3 -3
- package/dist/chunks/{websearch-0421tmwc.js → websearch-q46y00v4.js} +7 -7
- package/dist/chunks/{websearch-qyrktak0.js → websearch-q9w4eaj5.js} +28 -28
- package/dist/chunks/{websearch-t0h12fke.js → websearch-q9wrv6hp.js} +9 -9
- package/dist/chunks/{websearch-6rg7kjpy.js → websearch-qjj7qevc.js} +23 -23
- package/dist/chunks/{websearch-584q6htd.js → websearch-qtw36mps.js} +2 -2
- package/dist/chunks/{websearch-c9erfsw0.js → websearch-qvn0et0v.js} +41 -41
- package/dist/chunks/{websearch-3g41ey7s.js → websearch-rdx9gx2w.js} +9 -9
- package/dist/chunks/{websearch-090ayew8.js → websearch-rg36x40h.js} +12 -12
- package/dist/chunks/{websearch-b5yc11pg.js → websearch-rv8hmem0.js} +11 -11
- package/dist/chunks/{websearch-vs6d5gmb.js → websearch-rw6n77w3.js} +4 -4
- package/dist/chunks/{websearch-0ty15b8r.js → websearch-rwvztcr2.js} +11 -11
- package/dist/chunks/{websearch-0kajrgn5.js → websearch-ry63fkbp.js} +7 -7
- package/dist/chunks/{websearch-negnaxrt.js → websearch-s3jtn4b4.js} +15 -15
- package/dist/chunks/{websearch-0r7sceh0.js → websearch-s5zfzkdr.js} +13 -13
- package/dist/chunks/{websearch-vbymnfc5.js → websearch-sa1k6cm5.js} +12 -12
- package/dist/chunks/websearch-sa3fpqfw.js +46 -0
- package/dist/chunks/{websearch-bne87zw5.js → websearch-sb275byf.js} +23 -23
- package/dist/chunks/{websearch-54mwpwnj.js → websearch-seqv54nm.js} +3 -3
- package/dist/chunks/{websearch-nzcs0wzz.js → websearch-sgrv6mzf.js} +10 -10
- package/dist/chunks/{websearch-etj7xr5r.js → websearch-skj4q71p.js} +22 -22
- package/dist/chunks/{websearch-bxfrdttp.js → websearch-srcpqtfh.js} +27 -27
- package/dist/chunks/{websearch-d2887f8n.js → websearch-ssfehs1z.js} +3 -3
- package/dist/chunks/{websearch-tn5rj4h4.js → websearch-stgkv189.js} +17 -17
- package/dist/chunks/{websearch-efz7hhzt.js → websearch-sxbxv19s.js} +5 -5
- package/dist/chunks/{websearch-an558sqv.js → websearch-t211gxpv.js} +3 -3
- package/dist/chunks/{websearch-mt3ysty9.js → websearch-tasvem1v.js} +3 -3
- package/dist/chunks/{websearch-gecnmrws.js → websearch-teq1sh86.js} +8 -8
- package/dist/chunks/{websearch-sf4dycwn.js → websearch-tgycm7xg.js} +8 -8
- package/dist/chunks/{websearch-1yf62w26.js → websearch-tkjf59m0.js} +1 -1
- package/dist/chunks/{websearch-1v3m6w2k.js → websearch-twhcdnyf.js} +325 -325
- package/dist/chunks/{websearch-9yt3qsdq.js → websearch-v50mas5h.js} +26 -26
- package/dist/chunks/{websearch-vgr3c4a7.js → websearch-v6e01gce.js} +1 -1
- package/dist/chunks/{websearch-b868c8d8.js → websearch-vq4ea6e1.js} +28 -28
- package/dist/chunks/{websearch-26ye1a0h.js → websearch-vs81z90t.js} +41 -41
- package/dist/chunks/{websearch-6jm1rnt9.js → websearch-vweg9rhc.js} +79 -79
- package/dist/chunks/{websearch-0jst9dmz.js → websearch-vy8mxgjx.js} +23 -23
- package/dist/chunks/{websearch-39kss88q.js → websearch-vzmjdaw1.js} +7 -7
- package/dist/chunks/{websearch-2axrbrmc.js → websearch-vzvckjxq.js} +6 -6
- package/dist/chunks/{websearch-nbv85aqk.js → websearch-w1zzsny8.js} +13 -13
- package/dist/chunks/{websearch-bn7kdvhq.js → websearch-w610p6d9.js} +9 -9
- package/dist/chunks/{websearch-fznmdakp.js → websearch-w687dnns.js} +3 -3
- package/dist/chunks/{websearch-ezejdjmf.js → websearch-wdv0vama.js} +8 -8
- package/dist/chunks/{websearch-kb4gstwj.js → websearch-wg3wqxny.js} +3 -3
- package/dist/chunks/{websearch-rsdttbp5.js → websearch-wz7v9a4w.js} +17 -17
- package/dist/chunks/{websearch-ga92ybw9.js → websearch-x01kwc3d.js} +10 -10
- package/dist/chunks/{websearch-ahjrynj8.js → websearch-x32t5rjd.js} +13 -13
- package/dist/chunks/{websearch-dswfp19d.js → websearch-x7e5kpxn.js} +1 -1
- package/dist/chunks/{websearch-w9gfj7y9.js → websearch-xe844d6a.js} +18 -18
- package/dist/chunks/{websearch-tdpgt7wh.js → websearch-xfs8aec3.js} +23 -23
- package/dist/chunks/{websearch-4hjg18t3.js → websearch-xnh3x4zb.js} +1 -1
- package/dist/chunks/{websearch-4p8v6gf7.js → websearch-y24s7hc7.js} +2 -2
- package/dist/chunks/{websearch-jneg3k74.js → websearch-y2tacs4v.js} +7 -7
- package/dist/chunks/{websearch-yydqqga9.js → websearch-y4n6pw34.js} +3 -3
- package/dist/chunks/{websearch-7jz0dh2k.js → websearch-ycg9ewh9.js} +17 -17
- package/dist/chunks/{websearch-zzfxyc91.js → websearch-yfja0yt8.js} +24 -24
- package/dist/chunks/{websearch-hswty8r3.js → websearch-ys1mpr1q.js} +19 -19
- package/dist/chunks/{websearch-3z074cxn.js → websearch-ys71vevy.js} +4 -4
- package/dist/chunks/{websearch-yg7ytxzr.js → websearch-z5wdff31.js} +9 -9
- package/dist/chunks/{websearch-yhta6zhb.js → websearch-zn3s3q02.js} +14 -14
- package/dist/chunks/{websearch-5mmnsyp9.js → websearch-zrc037h4.js} +9 -9
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +64 -64
- package/dist/config/discovery.js +60 -59
- package/dist/config/normalize.js +70 -69
- package/dist/config/plugin/agent.js +81 -81
- package/dist/config/plugin/command.js +166 -166
- package/dist/config/plugin/compaction.js +115 -115
- package/dist/config/plugin/compatibility.js +97 -97
- package/dist/config/plugin/formatter.js +82 -82
- package/dist/config/plugin/image.js +81 -81
- package/dist/config/plugin/instruction.js +82 -82
- package/dist/config/plugin/location-watcher.js +81 -81
- package/dist/config/plugin/mcp.js +87 -87
- package/dist/config/plugin/policy.js +82 -82
- package/dist/config/plugin/provider.js +81 -81
- package/dist/config/plugin/reference.js +82 -82
- package/dist/config/plugin/shell.js +83 -83
- package/dist/config/plugin/skill-file.js +72 -71
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +100 -100
- package/dist/config/plugin/snapshot.js +81 -81
- package/dist/config/plugin/source.js +84 -84
- package/dist/config/plugin/tool-output.js +82 -82
- package/dist/config/plugin/websearch.js +82 -82
- package/dist/config/plugin/worktree.js +83 -83
- package/dist/config.js +87 -87
- package/dist/credential.js +63 -63
- package/dist/database/database.js +49 -49
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +14 -13
- package/dist/effect/app-node-builder.js +232 -232
- package/dist/environment/environment.js +65 -64
- package/dist/environment/index.js +67 -66
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +75 -74
- package/dist/file-mutation.js +66 -65
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +180 -180
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +70 -69
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +75 -74
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +63 -62
- package/dist/generate.js +79 -78
- package/dist/git.js +4 -3
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +73 -72
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +302 -302
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +63 -62
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +65 -65
- package/dist/job.js +59 -59
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +67 -67
- package/dist/location-lifecycle.js +78 -77
- package/dist/location-service-map.js +62 -61
- package/dist/location-services.js +300 -300
- package/dist/location.js +57 -56
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -17
- package/dist/mcp/index.js +81 -80
- package/dist/mcp/instructions.js +104 -103
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +62 -61
- package/dist/modal/models.js +73 -72
- package/dist/model-resolver.js +75 -74
- package/dist/model.js +74 -73
- package/dist/models-dev.js +73 -72
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +84 -83
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +53 -53
- package/dist/plugin/agent.js +55 -55
- package/dist/plugin/command.js +72 -71
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +173 -173
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/internal.js +274 -274
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +70 -69
- package/dist/plugin/module.js +80 -80
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +73 -72
- package/dist/plugin/provider/amazon-bedrock.js +64 -63
- package/dist/plugin/provider/azure.js +82 -82
- package/dist/plugin/provider/chatgpt.js +80 -80
- package/dist/plugin/provider/cloudflare-ai-gateway.js +79 -79
- package/dist/plugin/provider/cloudflare-workers-ai.js +79 -79
- package/dist/plugin/provider/configured.js +78 -78
- package/dist/plugin/provider/digitalocean.js +66 -65
- package/dist/plugin/provider/github-copilot.js +68 -67
- package/dist/plugin/provider/gitlab.js +66 -65
- package/dist/plugin/provider/google-vertex.js +79 -79
- package/dist/plugin/provider/llmgateway.js +56 -56
- package/dist/plugin/provider/lmstudio.js +89 -89
- package/dist/plugin/provider/local.js +86 -86
- package/dist/plugin/provider/modal.js +66 -65
- package/dist/plugin/provider/ollama.js +89 -89
- package/dist/plugin/provider/openai-context-caps.js +64 -63
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +72 -71
- package/dist/plugin/provider/openrouter.js +65 -64
- package/dist/plugin/provider/poe.js +56 -56
- package/dist/plugin/provider/sap-ai-core.js +64 -63
- package/dist/plugin/provider/snowflake-cortex.js +80 -80
- package/dist/plugin/provider/vercel.js +64 -63
- package/dist/plugin/provider/vllm.js +89 -89
- package/dist/plugin/provider/xai.js +65 -64
- package/dist/plugin/provider.js +124 -124
- package/dist/plugin/sdk.js +55 -55
- package/dist/plugin/skill.js +95 -95
- package/dist/plugin/supervisor.js +290 -290
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +60 -59
- package/dist/plugin/vcs/hg.js +62 -61
- package/dist/plugin/verbosity.js +65 -64
- package/dist/plugin/warming.js +80 -80
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +6 -6
- package/dist/plugin/websearch/parallel.js +2 -2
- package/dist/plugin/websearch/tavily.js +2 -2
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +176 -176
- package/dist/project.js +56 -55
- package/dist/provider.js +75 -74
- package/dist/pty.js +64 -64
- package/dist/reference/instructions.js +66 -65
- package/dist/reference.js +64 -63
- package/dist/repository-cache.js +59 -58
- package/dist/ripgrep.js +66 -65
- package/dist/rpc.js +62 -61
- package/dist/session/command.js +54 -54
- package/dist/session/compaction.js +102 -101
- package/dist/session/context.js +127 -126
- package/dist/session/diff.js +62 -61
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +112 -112
- package/dist/session/execution.js +99 -98
- package/dist/session/generate.js +128 -127
- package/dist/session/history.js +5 -5
- package/dist/session/inbox.js +68 -68
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +69 -68
- package/dist/session/model-request.js +90 -89
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +99 -98
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +74 -73
- package/dist/session/revert.js +66 -65
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +183 -183
- package/dist/session/runner/model.js +74 -73
- package/dist/session/runner/publish-llm-event.js +84 -83
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +96 -95
- package/dist/session/runner/to-llm-message.js +6 -6
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +122 -122
- package/dist/session/shell.js +92 -92
- package/dist/session/skill.js +73 -72
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +60 -60
- package/dist/session/subagent-job.js +166 -166
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +130 -129
- package/dist/session/to-session-error.js +83 -82
- package/dist/session/transfer.js +106 -106
- package/dist/session.js +172 -172
- package/dist/shell/parse.js +6 -6
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +96 -96
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +78 -77
- package/dist/skill.js +83 -82
- package/dist/snapshot.js +69 -68
- package/dist/tool/mcp.js +101 -100
- package/dist/tool/plugin/edit.js +86 -85
- package/dist/tool/plugin/glob.js +91 -90
- package/dist/tool/plugin/grep.js +91 -90
- package/dist/tool/plugin/mcp-resource.js +90 -89
- package/dist/tool/plugin/opencode.js +78 -77
- package/dist/tool/plugin/patch.js +86 -85
- package/dist/tool/plugin/question.js +72 -71
- package/dist/tool/plugin/read.js +91 -90
- package/dist/tool/plugin/shell.js +172 -172
- package/dist/tool/plugin/skill.js +82 -81
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/todo.js +100 -100
- package/dist/tool/plugin/webfetch.js +80 -79
- package/dist/tool/plugin/websearch.js +79 -78
- package/dist/tool/plugin/write.js +88 -87
- package/dist/tool/read-filesystem.js +72 -71
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +12 -12
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/util/git-executable.js +4 -1
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +65 -64
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +65 -64
- package/dist/vcs.js +65 -64
- package/dist/voice.js +60 -60
- package/dist/websearch.js +61 -61
- package/dist/wellknown/plugin.js +53 -53
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +61 -61
- package/dist/worktree/git.js +7 -6
- package/dist/worktree/strategies.js +64 -63
- package/dist/worktree.js +72 -71
- package/package.json +8 -8
- package/dist/chunks/websearch-ef5x83kb.js +0 -15
- package/dist/chunks/websearch-gnqtsnxp.js +0 -82
- package/dist/chunks/websearch-ms1v96r1.js +0 -257
- /package/dist/chunks/{websearch-qcf9sep0.js → websearch-558sn0j3.js} +0 -0
- /package/dist/chunks/{websearch-j6a70pje.js → websearch-dx5g0f3r.js} +0 -0
- /package/dist/chunks/{websearch-sfkj0ta1.js → websearch-j34dxvpb.js} +0 -0
- /package/dist/chunks/{websearch-z41z05dk.js → websearch-pxkxhxat.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./websearch-
|
|
3
|
+
Service62
|
|
4
|
+
} from "./websearch-qvn0et0v.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./websearch-
|
|
6
|
+
Service61
|
|
7
|
+
} from "./websearch-ebh17g7q.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./websearch-6pjqjmy2.js";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
} from "./websearch-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ConfigShellPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_shell = {};
|
|
17
|
+
__export(exports_shell, {
|
|
18
|
+
ConfigShellPlugin: () => exports_shell,
|
|
19
|
+
Plugin: () => Plugin33
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin33 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service62;
|
|
27
|
+
const shell = yield* Service61;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin36 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin33, exports_shell };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
lazy2
|
|
3
|
+
} from "./websearch-88xbtdfr.js";
|
|
4
|
+
import {
|
|
5
|
+
which2
|
|
6
|
+
} from "./websearch-qaymkmh1.js";
|
|
7
|
+
|
|
8
|
+
// src/util/git-executable.ts
|
|
9
|
+
import { existsSync, realpathSync } from "node:fs";
|
|
10
|
+
import path from "path";
|
|
11
|
+
var darwinShim = "/usr/bin/git";
|
|
12
|
+
var xcodeSelectLink = "/var/db/xcode_select_link";
|
|
13
|
+
var defaultDeveloperDirs = [
|
|
14
|
+
"/Applications/Xcode.app/Contents/Developer",
|
|
15
|
+
"/Library/Developer/CommandLineTools"
|
|
16
|
+
];
|
|
17
|
+
function readXcodeSelectLink(link) {
|
|
18
|
+
if (!existsSync(link))
|
|
19
|
+
return null;
|
|
20
|
+
try {
|
|
21
|
+
return realpathSync(link);
|
|
22
|
+
} catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function darwinDeveloperDirs2(developerDir = process.env.DEVELOPER_DIR?.trim(), readLink = readXcodeSelectLink) {
|
|
27
|
+
if (developerDir)
|
|
28
|
+
return [developerDir];
|
|
29
|
+
const selected = readLink(xcodeSelectLink);
|
|
30
|
+
return selected ? [selected, ...defaultDeveloperDirs] : defaultDeveloperDirs;
|
|
31
|
+
}
|
|
32
|
+
function resolveGitExecutable2(platform, resolved, options) {
|
|
33
|
+
if (platform === "win32")
|
|
34
|
+
return resolved ? path.resolve(resolved) : "git";
|
|
35
|
+
if (platform !== "darwin" || !resolved)
|
|
36
|
+
return "git";
|
|
37
|
+
const full = path.posix.resolve(resolved);
|
|
38
|
+
if (full !== darwinShim)
|
|
39
|
+
return full;
|
|
40
|
+
const exists = options?.exists ?? existsSync;
|
|
41
|
+
const dirs = options?.developerDirs ?? darwinDeveloperDirs2();
|
|
42
|
+
return dirs.filter((dir) => Boolean(dir) && path.posix.isAbsolute(dir)).map((dir) => path.posix.join(dir, "usr/bin/git")).find((candidate) => candidate !== darwinShim && exists(candidate)) ?? "git";
|
|
43
|
+
}
|
|
44
|
+
var gitExecutable2 = lazy2(() => resolveGitExecutable2(process.platform, process.platform === "win32" || process.platform === "darwin" ? which2("git") : null));
|
|
45
|
+
|
|
46
|
+
export { darwinDeveloperDirs2, resolveGitExecutable2, gitExecutable2 };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./websearch-
|
|
3
|
+
} from "./websearch-dncnpr57.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./websearch-
|
|
6
|
+
} from "./websearch-v6e01gce.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./websearch-
|
|
9
|
+
Event15
|
|
10
|
+
} from "./websearch-srcpqtfh.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./websearch-
|
|
13
|
+
} from "./websearch-ar2j3j0f.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID7,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./websearch-
|
|
18
|
+
} from "./websearch-0sc0whcy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./websearch-
|
|
20
|
+
Service19
|
|
21
|
+
} from "./websearch-wdv0vama.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID6,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./websearch-
|
|
26
|
+
} from "./websearch-98t00bmz.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./websearch-
|
|
29
|
+
} from "./websearch-gxjy29d9.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
32
|
resolve2
|
|
33
|
-
} from "./websearch-
|
|
33
|
+
} from "./websearch-qtw36mps.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
35
|
+
ID10,
|
|
36
36
|
Input15,
|
|
37
37
|
Response2
|
|
38
|
-
} from "./websearch-
|
|
38
|
+
} from "./websearch-76t1xp06.js";
|
|
39
39
|
|
|
40
40
|
// src/plugin/provider/opencode.ts
|
|
41
41
|
import {
|
|
@@ -73,7 +73,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
|
|
|
73
73
|
var RemoteResponse = Schema.Struct({
|
|
74
74
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
75
75
|
websearch: Schema.Struct({
|
|
76
|
-
providerID:
|
|
76
|
+
providerID: ID10
|
|
77
77
|
}).pipe(Schema.optional),
|
|
78
78
|
mcp: Schema.Struct({
|
|
79
79
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -124,7 +124,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
124
124
|
}
|
|
125
125
|
function oauth(http) {
|
|
126
126
|
return {
|
|
127
|
-
integrationID:
|
|
127
|
+
integrationID: ID7.make("opencode"),
|
|
128
128
|
method: {
|
|
129
129
|
id: methodID,
|
|
130
130
|
type: "oauth",
|
|
@@ -192,7 +192,7 @@ var OpencodePlugin2 = define({
|
|
|
192
192
|
const bus = yield* Service85;
|
|
193
193
|
const client = yield* HttpClient.HttpClient;
|
|
194
194
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
195
|
-
const managed = yield*
|
|
195
|
+
const managed = yield* Service19;
|
|
196
196
|
const scope = yield* Scope.Scope;
|
|
197
197
|
const loading = Semaphore.makeUnsafe(1);
|
|
198
198
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -246,7 +246,7 @@ var OpencodePlugin2 = define({
|
|
|
246
246
|
providers.update(providerID, (provider) => {
|
|
247
247
|
if (source && source.provider !== provider)
|
|
248
248
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
249
|
-
provider.integrationID =
|
|
249
|
+
provider.integrationID = ID7.make("opencode");
|
|
250
250
|
if (item.canonical !== undefined)
|
|
251
251
|
provider.canonical = item.canonical;
|
|
252
252
|
if (item.name !== undefined)
|
|
@@ -320,7 +320,7 @@ var OpencodePlugin2 = define({
|
|
|
320
320
|
sourceConnection: snapshot.connection
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
const item = providers.get(
|
|
323
|
+
const item = providers.get(ID6.opencode);
|
|
324
324
|
if (!item)
|
|
325
325
|
return;
|
|
326
326
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -332,7 +332,7 @@ var OpencodePlugin2 = define({
|
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
334
|
yield* ctx.model.transform((models) => {
|
|
335
|
-
const item = models.provider.get(
|
|
335
|
+
const item = models.provider.get(ID6.opencode);
|
|
336
336
|
if (!item)
|
|
337
337
|
return;
|
|
338
338
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -427,7 +427,7 @@ var OpencodePlugin2 = define({
|
|
|
427
427
|
});
|
|
428
428
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
429
429
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
430
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
430
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID6.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
431
431
|
});
|
|
432
432
|
yield* guard(snapshot);
|
|
433
433
|
const polling = yield* FiberHandle.make();
|
|
@@ -438,7 +438,7 @@ var OpencodePlugin2 = define({
|
|
|
438
438
|
onlyIfMissing: true
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
|
-
yield* bus.subscribe(
|
|
441
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID7.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
442
442
|
yield* poll();
|
|
443
443
|
})
|
|
444
444
|
});
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./websearch-
|
|
7
|
+
} from "./websearch-y24s7hc7.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./websearch-
|
|
11
|
+
} from "./websearch-v6e01gce.js";
|
|
12
12
|
import {
|
|
13
13
|
Service84,
|
|
14
14
|
node88
|
|
15
|
-
} from "./websearch-
|
|
15
|
+
} from "./websearch-45k1q4jf.js";
|
|
16
16
|
import {
|
|
17
17
|
ID18,
|
|
18
18
|
Current3,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./websearch-
|
|
3
|
+
} from "./websearch-v6e01gce.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./websearch-
|
|
5
|
+
Event15
|
|
6
|
+
} from "./websearch-srcpqtfh.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./websearch-
|
|
8
|
+
ID7
|
|
9
|
+
} from "./websearch-0sc0whcy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./websearch-
|
|
11
|
+
ID6
|
|
12
|
+
} from "./websearch-98t00bmz.js";
|
|
13
13
|
|
|
14
14
|
// src/plugin/provider/openai-context-caps.ts
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Stream } from "effect";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID7.make("openai");
|
|
18
18
|
var methodIDs = new Set(["chatgpt-browser", "chatgpt-headless", "chatgpt-token-sharing"]);
|
|
19
19
|
var legacyInput = 272000;
|
|
20
20
|
var currentInput = 500000;
|
|
@@ -34,7 +34,7 @@ var OpenAIContextCapsPlugin2 = define({
|
|
|
34
34
|
yield* ctx.model.transform((models) => {
|
|
35
35
|
if (!signedIn)
|
|
36
36
|
return;
|
|
37
|
-
for (const model of models.list(
|
|
37
|
+
for (const model of models.list(ID6.openai)) {
|
|
38
38
|
models.update(model.providerID, model.id, (draft) => {
|
|
39
39
|
const input = cap(draft.modelID ?? draft.id);
|
|
40
40
|
if ((draft.limit.input || draft.limit.context) <= input)
|
|
@@ -43,7 +43,7 @@ var OpenAIContextCapsPlugin2 = define({
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
yield* bus.subscribe(
|
|
46
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load().pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
47
47
|
})
|
|
48
48
|
});
|
|
49
49
|
function cap(apiID) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./websearch-
|
|
4
|
+
} from "./websearch-y24s7hc7.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
7
|
Service85,
|
|
8
8
|
node89
|
|
9
|
-
} from "./websearch-
|
|
9
|
+
} from "./websearch-v6e01gce.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
12
|
} from "./websearch-p015t6z3.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
} from "./websearch-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./websearch-
|
|
18
|
+
} from "./websearch-cvna5pvx.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./websearch-
|
|
20
|
+
Service76,
|
|
21
|
+
node79
|
|
22
|
+
} from "./websearch-783zccns.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./websearch-
|
|
24
|
+
Service29,
|
|
25
|
+
node32
|
|
26
|
+
} from "./websearch-gk3b5har.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
37
37
|
__export(exports_title, {
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service12,
|
|
39
39
|
SessionTitle: () => exports_title,
|
|
40
40
|
isUntitled: () => isUntitled2,
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
41
|
+
layer: () => layer8,
|
|
42
|
+
node: () => node14
|
|
43
43
|
});
|
|
44
44
|
import { isDeepStrictEqual } from "node:util";
|
|
45
45
|
import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
|
|
@@ -51,7 +51,7 @@ var MAX_CONTEXT_LENGTH = 8000;
|
|
|
51
51
|
var MAX_FIRST_MESSAGE_LENGTH = 2000;
|
|
52
52
|
var titleChanged = Symbol("Session title changed");
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service12 extends Context.Service()("@opencode/SessionTitle") {
|
|
55
55
|
}
|
|
56
56
|
var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
|
|
57
57
|
var messagePrompt = (text) => `Here is the first message of the conversation:
|
|
@@ -72,11 +72,11 @@ var isUntitled2 = (session) => isExactRootFallback({
|
|
|
72
72
|
title: session.title,
|
|
73
73
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
76
76
|
const bus = yield* Service85;
|
|
77
77
|
const llm = yield* LLMClient.Service;
|
|
78
|
-
const context = yield*
|
|
79
|
-
const store = yield*
|
|
78
|
+
const context = yield* Service29;
|
|
79
|
+
const store = yield* Service76;
|
|
80
80
|
const db = (yield* Service86).db;
|
|
81
81
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
82
82
|
const chunks = [];
|
|
@@ -160,12 +160,12 @@ Recent conversation:
|
|
|
160
160
|
title: truncate(title)
|
|
161
161
|
}, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
|
|
162
162
|
});
|
|
163
|
-
return
|
|
163
|
+
return Service12.of({ generate });
|
|
164
164
|
}));
|
|
165
|
-
var
|
|
166
|
-
service:
|
|
167
|
-
layer:
|
|
168
|
-
deps: [node89, llmClient2,
|
|
165
|
+
var node14 = makeLocationNode({
|
|
166
|
+
service: Service12,
|
|
167
|
+
layer: layer8,
|
|
168
|
+
deps: [node89, llmClient2, node32, node79, node90]
|
|
169
169
|
});
|
|
170
170
|
|
|
171
|
-
export {
|
|
171
|
+
export { Service12, isUntitled2, layer8, node14, exports_title };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./websearch-
|
|
4
|
+
} from "./websearch-y24s7hc7.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./websearch-
|
|
8
|
+
} from "./websearch-v6e01gce.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./websearch-pknna89w.js";
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event15,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
27
|
-
Key: () =>
|
|
25
|
+
ID: () => ID8,
|
|
26
|
+
Info: () => Info21,
|
|
27
|
+
Key: () => Key3,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service68,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node71
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,31 +36,31 @@ import { Credential } from "@opencode/schema/credential";
|
|
|
36
36
|
import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
|
-
var
|
|
39
|
+
var ID8 = Credential.ID;
|
|
40
40
|
var OAuth3 = Credential.OAuth;
|
|
41
|
-
var
|
|
41
|
+
var Key3 = Credential.Key;
|
|
42
42
|
var External2 = Credential.External;
|
|
43
43
|
var Value2 = Credential.Value;
|
|
44
|
-
var
|
|
44
|
+
var Event15 = Credential.Event;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info21 extends Schema.Class("Credential.Info")({
|
|
47
|
+
id: ID8,
|
|
48
48
|
integrationID: Integration.ID,
|
|
49
49
|
label: Schema.String,
|
|
50
50
|
value: Value2
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service68 extends Context.Service()("@opencode/Credential") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
56
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
57
57
|
const db = (yield* Service86).db;
|
|
58
58
|
const bus = yield* Service85;
|
|
59
59
|
const decode = Schema.decodeUnknownSync(CredentialLegacy.Value);
|
|
60
60
|
const stored = (row) => {
|
|
61
61
|
if (!row.integration_id)
|
|
62
62
|
return;
|
|
63
|
-
return new
|
|
63
|
+
return new Info21({
|
|
64
64
|
id: row.id,
|
|
65
65
|
integrationID: row.integration_id,
|
|
66
66
|
label: row.label,
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
71
71
|
const credential = stored(row);
|
|
72
72
|
return credential ? [credential] : [];
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Service68.of({
|
|
75
75
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
77
77
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -79,8 +79,8 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
79
79
|
return row ? stored(row) : undefined;
|
|
80
80
|
}),
|
|
81
81
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
82
|
-
const credential = new
|
|
83
|
-
id: input.id ??
|
|
82
|
+
const credential = new Info21({
|
|
83
|
+
id: input.id ?? ID8.create(),
|
|
84
84
|
integrationID: input.integrationID,
|
|
85
85
|
label: input.label ?? "default",
|
|
86
86
|
value: input.value
|
|
@@ -111,9 +111,9 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
111
111
|
type: credential.value.type,
|
|
112
112
|
active: activated
|
|
113
113
|
});
|
|
114
|
-
yield* bus.publish(
|
|
114
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
115
115
|
if (activated)
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event15.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
117
117
|
return credential;
|
|
118
118
|
}),
|
|
119
119
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -133,7 +133,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
133
133
|
})), Effect.orDie);
|
|
134
134
|
if (integrationID) {
|
|
135
135
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
136
|
-
yield* bus.publish(
|
|
136
|
+
yield* bus.publish(Event15.Switched, { integrationID, credentialID: id }, { global: true });
|
|
137
137
|
}
|
|
138
138
|
}),
|
|
139
139
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
165
165
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
166
166
|
});
|
|
167
167
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
168
|
-
yield* bus.publish(
|
|
168
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
169
169
|
}),
|
|
170
170
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
171
171
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -198,12 +198,12 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
198
198
|
active: removed.switched,
|
|
199
199
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
200
200
|
});
|
|
201
|
-
yield* bus.publish(
|
|
201
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
202
202
|
if (removed.switched)
|
|
203
|
-
yield* bus.publish(
|
|
203
|
+
yield* bus.publish(Event15.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
}));
|
|
207
|
-
var
|
|
207
|
+
var node71 = makeGlobalNode({ service: Service68, layer, deps: [node90, node89] });
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { ID8, OAuth3, Key3, External2, Value2, Event15, Info21, Service68, node71, exports_credential };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make18
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make18 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -79,4 +79,4 @@ var make17 = (options) => Effect.gen(function* () {
|
|
|
79
79
|
return { active: Effect.sync(() => new Set(executions.keys())), isActive, run, wake, interrupt, awaitIdle };
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { make18, exports_run_coordinator };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
isTextual2
|
|
3
3
|
} from "./websearch-2z1j29yd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./websearch-
|
|
5
|
+
Service74
|
|
6
|
+
} from "./websearch-af6r45an.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
@@ -19,29 +19,29 @@ import {
|
|
|
19
19
|
var exports_webfetch = {};
|
|
20
20
|
__export(exports_webfetch, {
|
|
21
21
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input11,
|
|
23
23
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
24
24
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin48,
|
|
26
26
|
WebFetchTool: () => exports_webfetch,
|
|
27
27
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
28
|
-
description: () =>
|
|
28
|
+
description: () => description5,
|
|
29
29
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => name11
|
|
31
31
|
});
|
|
32
32
|
import { ToolFailure } from "@opencode/ai";
|
|
33
33
|
import { Duration, Effect, Schema } from "effect";
|
|
34
34
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
35
35
|
import { Parser } from "htmlparser2";
|
|
36
|
-
var
|
|
36
|
+
var name11 = "webfetch";
|
|
37
37
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
38
38
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
39
39
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
40
|
-
var
|
|
40
|
+
var description5 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
41
41
|
|
|
42
42
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
43
43
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
44
|
-
var
|
|
44
|
+
var Input11 = Schema.Struct({
|
|
45
45
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
46
46
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
47
47
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -51,7 +51,7 @@ var Input7 = Schema.Struct({
|
|
|
51
51
|
var Output = Schema.Struct({
|
|
52
52
|
url: Schema.String,
|
|
53
53
|
contentType: Schema.String,
|
|
54
|
-
format:
|
|
54
|
+
format: Input11.fields.format,
|
|
55
55
|
output: Schema.String
|
|
56
56
|
});
|
|
57
57
|
var acceptHeader = (format) => {
|
|
@@ -94,16 +94,16 @@ var convert = (content, contentType, format) => {
|
|
|
94
94
|
return extractTextFromHTML2(content);
|
|
95
95
|
return content;
|
|
96
96
|
};
|
|
97
|
-
var
|
|
97
|
+
var Plugin48 = {
|
|
98
98
|
id: "opencode.tool.webfetch",
|
|
99
99
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
100
100
|
const http = yield* HttpClient.HttpClient;
|
|
101
|
-
const permission = yield*
|
|
101
|
+
const permission = yield* Service74;
|
|
102
102
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
103
|
-
name:
|
|
103
|
+
name: name11,
|
|
104
104
|
options: { codemode: false },
|
|
105
|
-
description:
|
|
106
|
-
input:
|
|
105
|
+
description: description5,
|
|
106
|
+
input: Input11,
|
|
107
107
|
output: Output,
|
|
108
108
|
execute: (input, context) => Effect.gen(function* () {
|
|
109
109
|
yield* Effect.try({
|
|
@@ -111,7 +111,7 @@ var Plugin24 = {
|
|
|
111
111
|
catch: (error) => error
|
|
112
112
|
});
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name11,
|
|
115
115
|
resources: [input.url],
|
|
116
116
|
save: ["*"],
|
|
117
117
|
metadata: input,
|
|
@@ -169,4 +169,4 @@ function extractTextFromHTML2(html) {
|
|
|
169
169
|
parser.end();
|
|
170
170
|
return text.trim();
|
|
171
171
|
}
|
|
172
|
-
export {
|
|
172
|
+
export { name11, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input11, Plugin48, extractTextFromHTML2, exports_webfetch };
|