@opencode/core 0.0.0-dev-20284 → 0.0.0-dev-20286
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 +63 -63
- package/dist/aisdk-native.js +65 -65
- package/dist/aisdk.js +70 -70
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/chunks/{integration-wzmaxvc9.js → integration-007kv54v.js} +19 -19
- package/dist/chunks/integration-04cetggm.js +507 -0
- package/dist/chunks/{integration-4yb1sc8z.js → integration-090naprk.js} +5 -5
- package/dist/chunks/{integration-a4ae1mqs.js → integration-0bfcnrg1.js} +1 -1
- package/dist/chunks/{integration-hkxx6036.js → integration-0mph93pj.js} +1 -1
- package/dist/chunks/{integration-8y7th7f2.js → integration-0r7yqxbf.js} +3 -3
- package/dist/chunks/{integration-0ta8ncat.js → integration-0s64387h.js} +10 -10
- package/dist/chunks/{integration-2c7hjkzv.js → integration-1813d5zh.js} +15 -15
- package/dist/chunks/{integration-v7tbbmm7.js → integration-1bzea8hf.js} +7 -7
- package/dist/chunks/{integration-y5sjzhg5.js → integration-1g2pwm2v.js} +3 -3
- package/dist/chunks/{integration-xr72202b.js → integration-1jhsme74.js} +1 -1
- package/dist/chunks/{integration-mr90rcr6.js → integration-1kwjt6d6.js} +16 -16
- package/dist/chunks/{integration-kefef9st.js → integration-1mwnra7p.js} +22 -22
- package/dist/chunks/{integration-10ce4g8v.js → integration-1n23hs5q.js} +10 -10
- package/dist/chunks/{integration-g26xt907.js → integration-1q0e68gg.js} +15 -15
- package/dist/chunks/{integration-e5d75q9m.js → integration-1ysctg58.js} +27 -27
- package/dist/chunks/{integration-ash82f75.js → integration-216h48p4.js} +24 -24
- package/dist/chunks/{integration-df3df5tx.js → integration-228m9d3z.js} +1 -1
- package/dist/chunks/{integration-txe61999.js → integration-23dc2d68.js} +21 -21
- package/dist/chunks/{integration-qf37nfnm.js → integration-276aa1tg.js} +3 -3
- package/dist/chunks/{integration-r1mh77dy.js → integration-29yhzn30.js} +21 -21
- package/dist/chunks/{integration-fj3c9ane.js → integration-2f8k78sm.js} +10 -10
- package/dist/chunks/{integration-0w5jwg0z.js → integration-2ggkd5y6.js} +3 -3
- package/dist/chunks/{integration-nf82b3wt.js → integration-2gx9j6y9.js} +9 -9
- package/dist/chunks/{integration-3801kdgp.js → integration-2p623br6.js} +3 -3
- package/dist/chunks/{integration-s00bxgng.js → integration-2zg6nskx.js} +22 -22
- package/dist/chunks/{integration-cvhkk3hw.js → integration-37x5te5e.js} +6 -6
- package/dist/chunks/{integration-bt5vmpp6.js → integration-3h57rhwa.js} +3 -3
- package/dist/chunks/{integration-3ayz7pdh.js → integration-3htr6yph.js} +32 -32
- package/dist/chunks/{integration-a79rb00n.js → integration-427a15qw.js} +27 -27
- package/dist/chunks/{integration-4w3q00qb.js → integration-43fvpk64.js} +22 -22
- package/dist/chunks/{integration-3py9tntd.js → integration-450n1fmb.js} +5 -5
- package/dist/chunks/{integration-fjnt6npx.js → integration-4bvnjebc.js} +14 -14
- package/dist/chunks/{integration-fsmmwzws.js → integration-4enjeyq9.js} +28 -28
- package/dist/chunks/{integration-1x11rq2a.js → integration-4v7qdvcn.js} +4 -4
- package/dist/chunks/{integration-yfj39tds.js → integration-4x26exyn.js} +22 -22
- package/dist/chunks/{integration-d0k1g5nx.js → integration-51f5btjf.js} +5 -5
- package/dist/chunks/{integration-7rncv06g.js → integration-52t303b9.js} +40 -40
- package/dist/chunks/{integration-s9taesah.js → integration-55bzypr0.js} +10 -10
- package/dist/chunks/{integration-ns7tbk3m.js → integration-55jj4qxv.js} +21 -21
- package/dist/chunks/{integration-8parajs2.js → integration-5df5bq3a.js} +41 -41
- package/dist/chunks/{integration-355jfwf8.js → integration-5nnneb5s.js} +46 -46
- package/dist/chunks/{integration-med42bqn.js → integration-5qxftstg.js} +16 -16
- package/dist/chunks/{integration-18fhcwyd.js → integration-5xp6zek4.js} +8 -8
- package/dist/chunks/{integration-cpyc35sh.js → integration-67kxvcq5.js} +80 -80
- package/dist/chunks/{integration-5we7r0eg.js → integration-6f8737q3.js} +7 -7
- package/dist/chunks/{integration-14skzq0n.js → integration-6whetfrh.js} +41 -41
- package/dist/chunks/{integration-9kbags8k.js → integration-70byt6m4.js} +8 -8
- package/dist/chunks/{integration-exxm0dv4.js → integration-77d9dkzy.js} +23 -23
- package/dist/chunks/{integration-m2p4qxhv.js → integration-7e6vht7x.js} +25 -25
- package/dist/chunks/{integration-baes5359.js → integration-7m3qqnex.js} +4 -4
- package/dist/chunks/{integration-5r5ngwvx.js → integration-7my3jqe6.js} +6 -6
- package/dist/chunks/{integration-b8t30bwq.js → integration-7pzv1w99.js} +9 -9
- package/dist/chunks/{integration-41xbg949.js → integration-7rcqk60f.js} +12 -12
- package/dist/chunks/{integration-jmv4csz4.js → integration-7yaqes3v.js} +9 -9
- package/dist/chunks/{integration-7r6wwy4a.js → integration-7yr82b3h.js} +6 -6
- package/dist/chunks/{integration-s0k7kba5.js → integration-818pfwc9.js} +6 -6
- package/dist/chunks/{integration-s3g84wna.js → integration-85kjp3d4.js} +5 -5
- package/dist/chunks/{integration-r280vhkp.js → integration-8j3sn0xa.js} +17 -17
- package/dist/chunks/{integration-1p07q0wb.js → integration-8sze2n9a.js} +7 -7
- package/dist/chunks/{integration-m8dxka3f.js → integration-8vag3pxv.js} +32 -32
- package/dist/chunks/{integration-a79tw4th.js → integration-8wa5wmwv.js} +5 -5
- package/dist/chunks/{integration-ete09x6f.js → integration-918vfc7v.js} +5 -5
- package/dist/chunks/{integration-gfvb90ym.js → integration-94ek1h2f.js} +1 -1
- package/dist/chunks/{integration-akqv09jd.js → integration-9e9nvwfq.js} +174 -169
- package/dist/chunks/{integration-xsgk3b13.js → integration-9jsdpggr.js} +7 -7
- package/dist/chunks/{integration-k8s2g9k3.js → integration-9pcszhcd.js} +66 -66
- package/dist/chunks/{integration-enc8k7eb.js → integration-9sp358pj.js} +142 -34
- package/dist/chunks/{integration-nvrj0150.js → integration-9xefwsd5.js} +9 -9
- package/dist/chunks/{integration-ngts6ef0.js → integration-a2qe2ev9.js} +7 -7
- package/dist/chunks/{integration-mh4rkcf4.js → integration-a3vq5bj2.js} +24 -24
- package/dist/chunks/{integration-5798x35d.js → integration-a6fmcvwn.js} +23 -23
- package/dist/chunks/{integration-d7ap0fky.js → integration-apjcg4d6.js} +8 -8
- package/dist/chunks/{integration-56tk9z3j.js → integration-arkmsdt9.js} +13 -13
- package/dist/chunks/{integration-8xwjq0pe.js → integration-b1rb0xwe.js} +23 -23
- package/dist/chunks/{integration-v4r6ds62.js → integration-bay80n5w.js} +4 -4
- package/dist/chunks/{integration-q2b1ymqp.js → integration-bf0ztrs3.js} +3 -3
- package/dist/chunks/{integration-2y8s9x1b.js → integration-br4ct1cv.js} +10 -10
- package/dist/chunks/{integration-2emg5d4r.js → integration-brka9z6d.js} +1 -1
- package/dist/chunks/{integration-wefqzq4f.js → integration-c634d86v.js} +304 -304
- package/dist/chunks/{integration-54tcyq79.js → integration-ckecvw8r.js} +1 -1
- package/dist/chunks/{integration-h3b20av4.js → integration-cs3k7vbw.js} +7 -7
- package/dist/chunks/{integration-7zdz69fq.js → integration-ctkexn52.js} +17 -17
- package/dist/chunks/{integration-datgzbnb.js → integration-cw40cn3a.js} +18 -18
- package/dist/chunks/{integration-rbkd2d5v.js → integration-dcdcxcqv.js} +21 -21
- package/dist/chunks/{integration-zfsz7c4a.js → integration-ddxretnd.js} +9 -9
- package/dist/chunks/{integration-h3xyrx8k.js → integration-dez0353w.js} +14 -14
- package/dist/chunks/{integration-cwa6csj7.js → integration-djszqvmq.js} +7 -7
- package/dist/chunks/{integration-r0bd36fr.js → integration-dmftx2z2.js} +6 -6
- package/dist/chunks/{integration-y71avatq.js → integration-dpkg50ah.js} +3 -3
- package/dist/chunks/{integration-dd4dnbbb.js → integration-dpy1708c.js} +4 -4
- package/dist/chunks/{integration-wztfhms8.js → integration-e2ha372a.js} +2 -2
- package/dist/chunks/{integration-yqrrhp5w.js → integration-e2zxmq4e.js} +16 -16
- package/dist/chunks/{integration-zbsarep8.js → integration-e56jykm2.js} +11 -11
- package/dist/chunks/{integration-nydz2zbj.js → integration-e8n5dwh7.js} +24 -24
- package/dist/chunks/{integration-rhjbct0v.js → integration-eaj1djv9.js} +7 -7
- package/dist/chunks/{integration-zywn5321.js → integration-eckntx06.js} +21 -21
- package/dist/chunks/{integration-9erc8nq9.js → integration-ehzy0r6a.js} +36 -36
- package/dist/chunks/{integration-mvfdckk2.js → integration-emzsebxx.js} +5 -5
- package/dist/chunks/{integration-eahhehpg.js → integration-ermxvwhp.js} +3 -3
- package/dist/chunks/{integration-59xwxqv5.js → integration-evbgk2k8.js} +3 -3
- package/dist/chunks/{integration-19eyspa8.js → integration-ew48pmvr.js} +26 -26
- package/dist/chunks/{integration-8ntmc9jd.js → integration-ex6pt5yr.js} +1 -1
- package/dist/chunks/{integration-j6rk38x8.js → integration-eyz64kwr.js} +4 -4
- package/dist/chunks/{integration-zd5r1z3p.js → integration-f1csepjx.js} +28 -28
- package/dist/chunks/{integration-kc8mrxbe.js → integration-f4ntpb4a.js} +15 -15
- package/dist/chunks/{integration-dpja50vx.js → integration-f5gy8qwh.js} +7 -7
- package/dist/chunks/{integration-fs86y4y8.js → integration-fb8ajyr9.js} +23 -23
- package/dist/chunks/{integration-h9055z12.js → integration-fbrwwgmz.js} +16 -16
- package/dist/chunks/{integration-941r3npm.js → integration-fh23fcf5.js} +10 -10
- package/dist/chunks/{integration-13ahtzqa.js → integration-ftnq43wp.js} +14 -14
- package/dist/chunks/{integration-a8bn8zg0.js → integration-g190xswt.js} +3 -3
- package/dist/chunks/{integration-xvp1j2dc.js → integration-g5agzp2h.js} +3 -3
- package/dist/chunks/{integration-a2xz39qp.js → integration-g8ab104g.js} +7 -7
- package/dist/chunks/{integration-wnys78fq.js → integration-gdv3ksn6.js} +2 -2
- package/dist/chunks/{integration-3e147rt9.js → integration-gzbkpp9m.js} +8 -8
- package/dist/chunks/{integration-4p773rn4.js → integration-h1vw7kx6.js} +13 -13
- package/dist/chunks/{integration-jssdqx31.js → integration-h70zt0wt.js} +22 -22
- package/dist/chunks/{integration-ycwy6ex1.js → integration-haf8ym7w.js} +17 -17
- package/dist/chunks/{integration-sn41jhqx.js → integration-hn0x82vs.js} +13 -13
- package/dist/chunks/{integration-h9qb7c7q.js → integration-htq109gq.js} +30 -30
- package/dist/chunks/{integration-576s5d3g.js → integration-hx450sbz.js} +19 -19
- package/dist/chunks/{integration-e2w4nw67.js → integration-hxmak5w6.js} +10 -10
- package/dist/chunks/{integration-2va239gy.js → integration-hza05959.js} +16 -16
- package/dist/chunks/{integration-d1pkyphn.js → integration-j1jfj66b.js} +5 -5
- package/dist/chunks/{integration-8p70309a.js → integration-j26sntzs.js} +8 -8
- package/dist/chunks/{integration-g74mfj6n.js → integration-j3s2z371.js} +7 -7
- package/dist/chunks/{integration-pc4b88sv.js → integration-j8afcsyc.js} +3 -3
- package/dist/chunks/{integration-mkvne50z.js → integration-j9a2q0fz.js} +6 -6
- package/dist/chunks/{integration-5frpvc34.js → integration-jca4demv.js} +1 -1
- package/dist/chunks/{integration-2e55ks6z.js → integration-jdnyyw3y.js} +12 -12
- package/dist/chunks/{integration-m3v0axb2.js → integration-jkcjd3kp.js} +4 -4
- package/dist/chunks/{integration-tffktew3.js → integration-jrjzd75d.js} +5 -5
- package/dist/chunks/{integration-rpg9c19m.js → integration-jvf3yq6v.js} +3 -3
- package/dist/chunks/{integration-g56r92cj.js → integration-k054q3ng.js} +12 -12
- package/dist/chunks/{integration-j34bs4nz.js → integration-k0a3z2qz.js} +3 -3
- package/dist/chunks/{integration-88b17fsa.js → integration-k3y1sryq.js} +35 -35
- package/dist/chunks/{integration-m601tfh9.js → integration-k7a6qazk.js} +13 -13
- package/dist/chunks/{integration-qf0b0eax.js → integration-kfgccrws.js} +9 -9
- package/dist/chunks/{integration-1hsgezmh.js → integration-kmsf2gmc.js} +11 -11
- package/dist/chunks/integration-krtr9e37.js +26 -0
- package/dist/chunks/{integration-j7kkg62r.js → integration-kyr9dgrt.js} +19 -19
- package/dist/chunks/{integration-t5ey9jjv.js → integration-m84jjq37.js} +39 -39
- package/dist/chunks/{integration-hwaq6n4f.js → integration-m8n1jv7h.js} +16 -16
- package/dist/chunks/{integration-1ygqh575.js → integration-mfqp6xfm.js} +4 -4
- package/dist/chunks/{integration-sht10b59.js → integration-mgznjxj1.js} +50 -50
- package/dist/chunks/{integration-y9vg1scn.js → integration-mm0znw5z.js} +9 -9
- package/dist/chunks/{integration-tchf8bzg.js → integration-mnwqmehd.js} +16 -16
- package/dist/chunks/{integration-mhkvc446.js → integration-mvfsc1pv.js} +2 -2
- package/dist/chunks/{integration-87b0ccws.js → integration-mvg2k0gw.js} +4 -4
- package/dist/chunks/{integration-287rg9sk.js → integration-mvxy8yk1.js} +23 -23
- package/dist/chunks/{integration-amv7r7xf.js → integration-mx84fb2r.js} +6 -6
- package/dist/chunks/{integration-7w8vs4ab.js → integration-mxxa41h5.js} +11 -11
- package/dist/chunks/{integration-f60ve7xe.js → integration-n56w81az.js} +10 -10
- package/dist/chunks/{integration-jw0bqmef.js → integration-n5jbg1jr.js} +31 -31
- package/dist/chunks/{integration-s2eagjy5.js → integration-n6ywjbkr.js} +22 -22
- package/dist/chunks/{integration-99ws31qd.js → integration-n860bejb.js} +24 -24
- package/dist/chunks/{integration-mpthp08p.js → integration-ngfnceq4.js} +8 -8
- package/dist/chunks/{integration-rzep3kdk.js → integration-nxgbngy1.js} +6 -6
- package/dist/chunks/{integration-ssx3zy79.js → integration-nzg2pgvq.js} +14 -14
- package/dist/chunks/{integration-w4arg62q.js → integration-p0b4ytnr.js} +5 -5
- package/dist/chunks/{integration-5yzzbxa7.js → integration-p37cw4rj.js} +7 -7
- package/dist/chunks/integration-p6rn815x.js +252 -0
- package/dist/chunks/{integration-jx4jx4s1.js → integration-pc24wejf.js} +1 -1
- package/dist/chunks/{integration-evxqfha7.js → integration-pcgeyt73.js} +24 -24
- package/dist/chunks/{integration-500fmqbd.js → integration-pp173efe.js} +9 -9
- package/dist/chunks/{integration-fndw4the.js → integration-ppdtm0qk.js} +1 -1
- package/dist/chunks/{integration-6hjx5zpb.js → integration-prq7hedt.js} +8 -8
- package/dist/chunks/{integration-hawc55qt.js → integration-prqcyn0c.js} +2 -2
- package/dist/chunks/{integration-3q756xqj.js → integration-psy3e1hh.js} +31 -31
- package/dist/chunks/{integration-q7z079fr.js → integration-pxy4dh62.js} +22 -22
- package/dist/chunks/{integration-8q7cq0y1.js → integration-q3t37ft6.js} +3 -3
- package/dist/chunks/{integration-h8vn6fjj.js → integration-qepzh1bh.js} +11 -11
- package/dist/chunks/{integration-0jwsre1p.js → integration-qgn6gcr1.js} +4 -4
- package/dist/chunks/{integration-5sxhaqv9.js → integration-qkcvm401.js} +12 -12
- package/dist/chunks/{integration-13wsvgev.js → integration-qm74d4cp.js} +9 -9
- package/dist/chunks/{integration-txzsewg6.js → integration-qvqw0qph.js} +20 -20
- package/dist/chunks/{integration-6esbwhw5.js → integration-rbpwsggg.js} +30 -30
- package/dist/chunks/{integration-b2s2f9hy.js → integration-rc5nmyhy.js} +9 -9
- package/dist/chunks/{integration-h8pmqzj1.js → integration-re7wp77e.js} +5 -5
- package/dist/chunks/{integration-03wz1akf.js → integration-rq3a28zf.js} +36 -36
- package/dist/chunks/{integration-kfktj5h5.js → integration-rrzjzqrd.js} +2 -2
- package/dist/chunks/{integration-7b7x293f.js → integration-rwsvrpt4.js} +48 -29
- package/dist/chunks/{integration-kxw6n92b.js → integration-s22tcjmk.js} +12 -12
- package/dist/chunks/{integration-d2czbp48.js → integration-s30fyz93.js} +3 -3
- package/dist/chunks/{integration-jxjcdxd0.js → integration-sf48c4sg.js} +23 -23
- package/dist/chunks/{integration-166agdv6.js → integration-sj2zwkfm.js} +9 -9
- package/dist/chunks/{integration-npzqcw4h.js → integration-sjhe73hb.js} +8 -8
- package/dist/chunks/{integration-pkfxfszq.js → integration-skb9kzak.js} +22 -22
- package/dist/chunks/{integration-1ag5f13t.js → integration-srvnn0v4.js} +9 -9
- package/dist/chunks/{integration-9jft2ye4.js → integration-st0j0zn3.js} +17 -17
- package/dist/chunks/{integration-qv1j0f1d.js → integration-sv7yr8xe.js} +15 -15
- package/dist/chunks/{integration-336jbapg.js → integration-t71c8r43.js} +7 -7
- package/dist/chunks/{integration-g3nv7gdt.js → integration-tp0s123v.js} +4 -4
- package/dist/chunks/{integration-p0sbmvqz.js → integration-tqz9py0c.js} +19 -19
- package/dist/chunks/{integration-aby47wwy.js → integration-trfm30pq.js} +22 -22
- package/dist/chunks/{integration-xn76t6fc.js → integration-v2g7d70b.js} +14 -14
- package/dist/chunks/{integration-fdv30zvt.js → integration-v5dkyp31.js} +6 -6
- package/dist/chunks/{integration-k5c5twea.js → integration-vavgc505.js} +25 -25
- package/dist/chunks/{integration-r0d7dx27.js → integration-vnn4gkfz.js} +81 -81
- package/dist/chunks/{integration-yesqp7fw.js → integration-vycpbpnw.js} +25 -25
- package/dist/chunks/{integration-kaqgv1kk.js → integration-w3senr2q.js} +6 -6
- package/dist/chunks/{integration-tgcnk5sw.js → integration-w47g9jnr.js} +1 -1
- package/dist/chunks/{integration-1p2r191f.js → integration-w9nr0r4k.js} +15 -15
- package/dist/chunks/{integration-g2mx06y3.js → integration-wdzcbyx9.js} +22 -22
- package/dist/chunks/{integration-a7pt7jn1.js → integration-wq4mmp7m.js} +2 -2
- package/dist/chunks/{integration-n264kn3f.js → integration-wstveqzx.js} +13 -13
- package/dist/chunks/{integration-k2aj64ym.js → integration-wvjmf19v.js} +21 -21
- package/dist/chunks/{integration-vzfyd6yh.js → integration-wyvmt7jr.js} +14 -14
- package/dist/chunks/{integration-dxt5nwr4.js → integration-x3k4y0th.js} +14 -14
- package/dist/chunks/{integration-8hpx30f9.js → integration-x8h61vbx.js} +43 -43
- package/dist/chunks/{integration-bxp2jpa1.js → integration-x8v6s741.js} +2 -2
- package/dist/chunks/{integration-7evwkt5a.js → integration-xf1aecpm.js} +13 -13
- package/dist/chunks/{integration-57b9ws8p.js → integration-xfkkasph.js} +6 -6
- package/dist/chunks/{integration-s9htjpym.js → integration-xn7zchcf.js} +26 -26
- package/dist/chunks/{integration-y3ems7z9.js → integration-xp8cepfb.js} +8 -8
- package/dist/chunks/{integration-4wdgh5xv.js → integration-y0s8f48q.js} +1 -1
- package/dist/chunks/{integration-h6r3nrb9.js → integration-y6bex35g.js} +5 -3
- package/dist/chunks/{integration-3rtxz4nr.js → integration-y72zmemf.js} +7 -7
- package/dist/chunks/{integration-37dqmmxw.js → integration-yk1wne8d.js} +17 -17
- package/dist/chunks/{integration-kcc7mh83.js → integration-yn0skrfd.js} +39 -39
- package/dist/chunks/{integration-4xz89tjk.js → integration-yt0fqk68.js} +3 -3
- package/dist/chunks/{integration-bjtzbw4r.js → integration-z07pqspn.js} +1 -1
- package/dist/chunks/{integration-99jc8f7r.js → integration-z83vrf6c.js} +21 -21
- package/dist/chunks/{integration-0qjwcdf0.js → integration-z96crwnb.js} +3 -3
- package/dist/chunks/{integration-2yx0kjta.js → integration-zqankrzg.js} +3 -3
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +67 -67
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +81 -81
- package/dist/config/plugin/agent.js +94 -94
- package/dist/config/plugin/command.js +177 -177
- package/dist/config/plugin/compaction.js +126 -126
- package/dist/config/plugin/compatibility.js +110 -110
- package/dist/config/plugin/formatter.js +93 -93
- package/dist/config/plugin/image.js +92 -92
- package/dist/config/plugin/instruction.js +66 -66
- package/dist/config/plugin/location-watcher.js +92 -92
- package/dist/config/plugin/mcp.js +100 -100
- package/dist/config/plugin/policy.js +93 -93
- package/dist/config/plugin/provider.js +92 -92
- package/dist/config/plugin/reference.js +94 -94
- package/dist/config/plugin/shell.js +92 -92
- package/dist/config/plugin/skill-file.js +77 -77
- package/dist/config/plugin/skill.js +113 -113
- package/dist/config/plugin/snapshot.js +92 -92
- package/dist/config/plugin/source.js +95 -95
- package/dist/config/plugin/tool-output.js +93 -93
- package/dist/config/plugin/websearch.js +91 -91
- package/dist/config/plugin/worktree.js +94 -94
- package/dist/config.js +98 -98
- package/dist/credential.js +65 -65
- package/dist/database/database.js +50 -50
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +241 -241
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +68 -68
- package/dist/environment/index.js +70 -70
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +80 -80
- package/dist/file-mutation.js +69 -69
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +188 -188
- package/dist/filesystem/search.js +76 -76
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +75 -75
- package/dist/form.js +67 -67
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +79 -79
- package/dist/git.js +3 -3
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +75 -75
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- 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 +312 -312
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +65 -65
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +5 -3
- package/dist/integration.js +67 -66
- package/dist/job.js +60 -60
- package/dist/kv.js +55 -55
- package/dist/location-activity.js +57 -57
- package/dist/location-lifecycle.js +83 -83
- package/dist/location-service-map.js +64 -64
- package/dist/location-services.js +309 -309
- package/dist/location.js +59 -59
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +76 -75
- package/dist/mcp/instructions.js +99 -98
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +65 -65
- package/dist/modal/models.js +75 -75
- package/dist/model-resolver.js +74 -74
- package/dist/model.js +76 -76
- package/dist/models-dev.js +82 -82
- package/dist/permission/saved.js +64 -64
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +55 -55
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +75 -74
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +181 -181
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +285 -285
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +71 -71
- package/dist/plugin/module.js +2 -2
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +78 -78
- package/dist/plugin/provider/amazon-bedrock.js +66 -66
- package/dist/plugin/provider/azure.js +91 -91
- package/dist/plugin/provider/cloudflare-ai-gateway.js +90 -90
- package/dist/plugin/provider/cloudflare-workers-ai.js +90 -90
- package/dist/plugin/provider/configured.js +89 -89
- package/dist/plugin/provider/digitalocean.js +68 -68
- package/dist/plugin/provider/github-copilot.js +70 -70
- package/dist/plugin/provider/gitlab.js +68 -68
- package/dist/plugin/provider/google-vertex.js +66 -66
- package/dist/plugin/provider/llmgateway.js +58 -57
- package/dist/plugin/provider/lmstudio.js +92 -92
- package/dist/plugin/provider/modal.js +68 -68
- package/dist/plugin/provider/ollama.js +92 -92
- package/dist/plugin/provider/openai.js +69 -69
- package/dist/plugin/provider/opencode.js +70 -70
- package/dist/plugin/provider/openrouter.js +67 -67
- package/dist/plugin/provider/poe.js +58 -57
- package/dist/plugin/provider/prompt-cache-key.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +66 -66
- package/dist/plugin/provider/snowflake-cortex.js +91 -91
- package/dist/plugin/provider/vercel.js +66 -66
- package/dist/plugin/provider/vllm.js +92 -92
- package/dist/plugin/provider/xai.js +67 -67
- package/dist/plugin/provider.js +123 -123
- package/dist/plugin/sdk.js +59 -59
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +111 -111
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/verbosity.js +69 -69
- package/dist/plugin/warming.js +91 -91
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +192 -192
- package/dist/project/schema.js +1 -1
- package/dist/project/sql.js +2 -2
- package/dist/project.js +58 -58
- package/dist/provider.js +77 -77
- package/dist/pty.js +74 -74
- package/dist/reference/instructions.js +63 -63
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +60 -60
- package/dist/ripgrep.js +71 -71
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +122 -122
- package/dist/session/diff.js +65 -65
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +101 -101
- package/dist/session/generate.js +123 -123
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +61 -61
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +73 -73
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +102 -102
- package/dist/session/projector.js +63 -63
- package/dist/session/prompt.js +80 -80
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +66 -66
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +191 -191
- package/dist/session/runner/model.js +74 -74
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +97 -97
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +135 -135
- package/dist/session/shell.js +104 -104
- package/dist/session/skill.js +79 -79
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +67 -67
- package/dist/session/subagent-job.js +172 -172
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +125 -125
- package/dist/session/to-session-error.js +87 -87
- package/dist/session/transfer.js +114 -114
- package/dist/session.js +186 -186
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +83 -83
- package/dist/skill.js +88 -88
- package/dist/snapshot.js +71 -71
- package/dist/tool/mcp.js +98 -97
- package/dist/tool/plugin/edit.js +88 -88
- package/dist/tool/plugin/glob.js +97 -97
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +88 -87
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +81 -81
- package/dist/tool/plugin/read.js +98 -98
- package/dist/tool/plugin/shell.js +180 -180
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +85 -85
- package/dist/tool/plugin/websearch.js +88 -88
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +73 -73
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +9 -9
- package/dist/types/integration/connection.d.ts +42 -0
- package/dist/types/integration.d.ts +24 -0
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +67 -67
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +1 -1
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +67 -67
- package/dist/vcs.js +67 -67
- package/dist/websearch.js +65 -65
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +60 -60
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +67 -67
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/integration-78b6byxs.js +0 -252
- package/dist/chunks/integration-a9zdxssk.js +0 -26
- package/dist/chunks/integration-efmr7s8w.js +0 -507
- /package/dist/chunks/{integration-d9s573fh.js → integration-57ez7d0k.js} +0 -0
- /package/dist/chunks/{integration-82206brs.js → integration-5wyqsnb4.js} +0 -0
- /package/dist/chunks/{integration-dfmjf6m5.js → integration-fqm9ba4x.js} +0 -0
- /package/dist/chunks/{integration-yyb7tjpc.js → integration-gv6a8nnw.js} +0 -0
- /package/dist/chunks/{integration-p4b86tx8.js → integration-prwkcbsp.js} +0 -0
- /package/dist/chunks/{integration-2hg7qvzt.js → integration-q4fmv0xv.js} +0 -0
- /package/dist/chunks/{integration-psazpmmj.js → integration-wd3x2cqz.js} +0 -0
- /package/dist/chunks/{integration-rq775frq.js → integration-zeh9ct20.js} +0 -0
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./integration-
|
|
4
|
+
node70
|
|
5
|
+
} from "./integration-55bzypr0.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./integration-
|
|
9
|
+
} from "./integration-s30fyz93.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./integration-
|
|
11
|
+
Service79,
|
|
12
|
+
node83
|
|
13
|
+
} from "./integration-a2qe2ev9.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./integration-
|
|
16
|
+
} from "./integration-mgznjxj1.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./integration-
|
|
19
|
+
} from "./integration-xf1aecpm.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./integration-
|
|
21
|
+
Error3
|
|
22
|
+
} from "./integration-kyr9dgrt.js";
|
|
23
23
|
import {
|
|
24
24
|
get5
|
|
25
25
|
} from "./integration-54ma36ye.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./integration-
|
|
27
|
+
Service36,
|
|
28
|
+
node39
|
|
29
|
+
} from "./integration-pp173efe.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./integration-
|
|
31
|
+
make15
|
|
32
|
+
} from "./integration-xfkkasph.js";
|
|
33
33
|
import {
|
|
34
34
|
toLLMMessages2
|
|
35
|
-
} from "./integration-
|
|
35
|
+
} from "./integration-0bfcnrg1.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
// src/session/model-request.ts
|
|
41
41
|
var exports_model_request = {};
|
|
42
42
|
__export(exports_model_request, {
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service35,
|
|
44
44
|
SessionModelRequest: () => exports_model_request,
|
|
45
45
|
baseTranscript: () => baseTranscript2,
|
|
46
46
|
boundImages: () => boundImages2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer12,
|
|
48
|
+
node: () => node38,
|
|
49
49
|
unsupportedParts: () => unsupportedParts2
|
|
50
50
|
});
|
|
51
51
|
import {
|
|
@@ -82,7 +82,7 @@ var baseTranscript2 = (input) => {
|
|
|
82
82
|
return {
|
|
83
83
|
providerMetadataKey,
|
|
84
84
|
system: [
|
|
85
|
-
input.agent.system ? input.agent.system :
|
|
85
|
+
input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
|
|
86
86
|
input.initial
|
|
87
87
|
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
88
88
|
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
@@ -172,11 +172,11 @@ var boundImages2 = (messages) => {
|
|
|
172
172
|
}));
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
class
|
|
175
|
+
class Service35 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
176
176
|
}
|
|
177
|
-
var
|
|
178
|
-
const hooks = yield*
|
|
179
|
-
const transport = yield*
|
|
177
|
+
var layer12 = Layer.effect(Service35, Effect.gen(function* () {
|
|
178
|
+
const hooks = yield* Service79;
|
|
179
|
+
const transport = yield* Service36;
|
|
180
180
|
const app = yield* Metadata2;
|
|
181
181
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
182
182
|
const session = input.session;
|
|
@@ -184,7 +184,7 @@ var layer11 = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
184
184
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
185
185
|
const tools = input.tools ?? {
|
|
186
186
|
definitions: [],
|
|
187
|
-
execute: () => new
|
|
187
|
+
execute: () => new Error3({ message: "Tools are not available for this request" })
|
|
188
188
|
};
|
|
189
189
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
190
190
|
const shaped = yield* shape({
|
|
@@ -280,17 +280,17 @@ var layer11 = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
280
280
|
};
|
|
281
281
|
});
|
|
282
282
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
283
|
-
return
|
|
283
|
+
return Service35.of({
|
|
284
284
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
285
285
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
286
286
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
287
287
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
288
288
|
});
|
|
289
289
|
}));
|
|
290
|
-
var
|
|
291
|
-
service:
|
|
292
|
-
layer:
|
|
293
|
-
deps: [
|
|
290
|
+
var node38 = makeLocationNode({
|
|
291
|
+
service: Service35,
|
|
292
|
+
layer: layer12,
|
|
293
|
+
deps: [node83, node39, node70]
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
296
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service35, layer12, node38, exports_model_request };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./integration-
|
|
2
|
+
Service54,
|
|
3
|
+
node56
|
|
4
|
+
} from "./integration-hx450sbz.js";
|
|
5
5
|
import {
|
|
6
6
|
Service80,
|
|
7
7
|
node84
|
|
8
|
-
} from "./integration-
|
|
8
|
+
} from "./integration-y0s8f48q.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./integration-
|
|
10
|
+
Service53,
|
|
11
|
+
node55
|
|
12
|
+
} from "./integration-ehzy0r6a.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service2,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer4,
|
|
28
|
+
node: () => node3
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,11 +33,11 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service2 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer4 = Layer.effect(Service2, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service53;
|
|
40
|
+
const watcher = yield* Service54;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
42
|
const location = yield* Service80;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
@@ -58,7 +58,7 @@ var layer7 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service2.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer7 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node3 = makeLocationNode({
|
|
74
|
+
service: Service2,
|
|
75
|
+
layer: layer4,
|
|
76
|
+
deps: [node55, FSUtil.node, node56, node84]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service2,
|
|
80
|
+
layer: Layer.succeed(Service2, Service2.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service2, layer4, node3, empty2, exports_source };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID15 = Session.ID;
|
|
5
|
+
var Info30 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID15, Info30, SessionSchema2 };
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./integration-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
node86
|
|
6
|
-
} from "./integration-
|
|
6
|
+
} from "./integration-w47g9jnr.js";
|
|
7
7
|
import {
|
|
8
8
|
Service80,
|
|
9
9
|
node84
|
|
10
|
-
} from "./integration-
|
|
10
|
+
} from "./integration-y0s8f48q.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
13
|
} from "./integration-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
make12
|
|
16
|
-
} from "./integration-
|
|
16
|
+
} from "./integration-gdv3ksn6.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service21,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node24
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,9 +31,9 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service21 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
36
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
37
37
|
const location = yield* Service80;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
39
|
const git = yield* make12;
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service21.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node24 = makeLocationNode({
|
|
61
|
+
service: Service21,
|
|
62
62
|
layer,
|
|
63
63
|
deps: [node84, Global.node, node86, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service21, node24, exports_strategies };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options7,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options7 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options7]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options7, Spec2, exports_plugin3 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./integration-
|
|
2
|
+
Service53
|
|
3
|
+
} from "./integration-ehzy0r6a.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./integration-
|
|
5
|
+
Service39
|
|
6
|
+
} from "./integration-m84jjq37.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./integration-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp = {};
|
|
13
|
+
__export(exports_mcp, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp,
|
|
15
|
+
Plugin: () => Plugin14,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin14 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service53;
|
|
28
|
+
const mcp = yield* Service39;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin14, register2, exports_mcp };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./integration-
|
|
4
|
+
} from "./integration-x8v6s741.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Ref4,
|
|
11
11
|
Service80,
|
|
12
12
|
node84
|
|
13
|
-
} from "./integration-
|
|
13
|
+
} from "./integration-y0s8f48q.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service26,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node29
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service26 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,7 +39,7 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service83;
|
|
44
44
|
const location = yield* Service80;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service26.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node29 = makeLocationNode({ service: Service26, layer, deps: [node87, node84] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service26, node29, exports_rpc, define2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./integration-
|
|
4
|
+
} from "./integration-e2ha372a.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./integration-
|
|
8
|
+
} from "./integration-x8v6s741.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
11
|
} from "./integration-5t3nmthw.js";
|
|
@@ -23,27 +23,27 @@ import {
|
|
|
23
23
|
compatible2,
|
|
24
24
|
isCheckpoint2,
|
|
25
25
|
encode2
|
|
26
|
-
} from "./integration-
|
|
26
|
+
} from "./integration-s30fyz93.js";
|
|
27
27
|
import {
|
|
28
28
|
load5
|
|
29
|
-
} from "./integration-
|
|
29
|
+
} from "./integration-w3senr2q.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./integration-
|
|
32
|
+
} from "./integration-0bfcnrg1.js";
|
|
33
33
|
import {
|
|
34
34
|
baseTranscript2,
|
|
35
35
|
unsupportedParts2,
|
|
36
36
|
boundImages2,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./integration-
|
|
37
|
+
Service35,
|
|
38
|
+
node38
|
|
39
|
+
} from "./integration-psy3e1hh.js";
|
|
40
40
|
import {
|
|
41
41
|
isRetryable2,
|
|
42
42
|
policy2
|
|
43
|
-
} from "./integration-
|
|
43
|
+
} from "./integration-g5agzp2h.js";
|
|
44
44
|
import {
|
|
45
45
|
toSessionError2
|
|
46
|
-
} from "./integration-
|
|
46
|
+
} from "./integration-8wa5wmwv.js";
|
|
47
47
|
import {
|
|
48
48
|
calculateCost2,
|
|
49
49
|
record2,
|
|
@@ -56,13 +56,13 @@ import {
|
|
|
56
56
|
// src/session/compaction.ts
|
|
57
57
|
var exports_compaction2 = {};
|
|
58
58
|
__export(exports_compaction2, {
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service7,
|
|
60
60
|
SessionCompaction: () => exports_compaction2,
|
|
61
61
|
buildPrompt: () => buildPrompt2,
|
|
62
62
|
estimateContext: () => estimateContext2,
|
|
63
63
|
estimatePrompt: () => estimatePrompt2,
|
|
64
64
|
layer: () => layer6,
|
|
65
|
-
node: () =>
|
|
65
|
+
node: () => node9,
|
|
66
66
|
recentUserMessages: () => recentUserMessages2
|
|
67
67
|
});
|
|
68
68
|
import {
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
} from "@opencode/ai";
|
|
79
79
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
80
80
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
81
|
-
class
|
|
81
|
+
class Service7 extends Context.Service()("@opencode/SessionCompaction") {
|
|
82
82
|
}
|
|
83
83
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
84
84
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -157,11 +157,11 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
157
157
|
};
|
|
158
158
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
159
159
|
var LEGACY_HEADING = "## Additional Context";
|
|
160
|
-
var layer6 = Layer.effect(
|
|
160
|
+
var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
161
161
|
const bus = yield* Service83;
|
|
162
162
|
const llm = yield* LLMClient.Service;
|
|
163
163
|
const db = (yield* Service84).db;
|
|
164
|
-
const requests = yield*
|
|
164
|
+
const requests = yield* Service35;
|
|
165
165
|
const state = create3({
|
|
166
166
|
name: "session-compaction",
|
|
167
167
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -452,16 +452,16 @@ ${text}`;
|
|
|
452
452
|
}, { metadata: outcome.metadata });
|
|
453
453
|
return { status: "completed" };
|
|
454
454
|
});
|
|
455
|
-
return
|
|
455
|
+
return Service7.of({
|
|
456
456
|
transform: state.transform,
|
|
457
457
|
reload: state.reload,
|
|
458
458
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
459
459
|
});
|
|
460
460
|
}));
|
|
461
|
-
var
|
|
462
|
-
service:
|
|
461
|
+
var node9 = makeLocationNode({
|
|
462
|
+
service: Service7,
|
|
463
463
|
layer: layer6,
|
|
464
|
-
deps: [node87, node88, llmClient2,
|
|
464
|
+
deps: [node87, node88, llmClient2, node38]
|
|
465
465
|
});
|
|
466
466
|
var previousCompaction = (messages) => {
|
|
467
467
|
const [first] = messages;
|
|
@@ -666,4 +666,4 @@ var estimateMedia = (mime) => {
|
|
|
666
666
|
return 0;
|
|
667
667
|
};
|
|
668
668
|
|
|
669
|
-
export {
|
|
669
|
+
export { Service7, buildPrompt2, layer6, node9, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./integration-
|
|
2
|
+
Service64
|
|
3
|
+
} from "./integration-hza05959.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service63,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./integration-
|
|
8
|
+
} from "./integration-s22tcjmk.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./integration-
|
|
10
|
+
Service24
|
|
11
|
+
} from "./integration-k054q3ng.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./integration-
|
|
13
|
+
Service75
|
|
14
|
+
} from "./integration-mgznjxj1.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./integration-
|
|
16
|
+
Service74
|
|
17
|
+
} from "./integration-k7a6qazk.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
20
|
} from "./integration-6prwharc.js";
|
|
@@ -25,48 +25,48 @@ import {
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
29
|
-
Output: () =>
|
|
30
|
-
Plugin: () =>
|
|
28
|
+
Input: () => Input7,
|
|
29
|
+
Output: () => Output5,
|
|
30
|
+
Plugin: () => Plugin42,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name7,
|
|
33
|
+
toModelContent: () => toModelContent3
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name7 = "write";
|
|
39
|
+
var Input7 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
43
43
|
content: Schema.String.annotate({ description: "Content to write to the file" })
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Output5 = Schema.Struct({
|
|
46
46
|
operation: Schema.Literal("write"),
|
|
47
47
|
target: Schema.String,
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent3 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin42 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service74;
|
|
56
|
+
const fileMutation = yield* Service63;
|
|
57
|
+
const environment = yield* Service64;
|
|
58
|
+
const formatter = yield* Service24;
|
|
59
|
+
const permission = yield* Service75;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name7,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
69
|
-
output:
|
|
68
|
+
input: Input7,
|
|
69
|
+
output: Output5,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
72
72
|
type: "tool",
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent3(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name7, Input7, Output5, toModelContent3, Plugin42, exports_write };
|