@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,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./integration-
|
|
4
|
+
} from "./integration-x8v6s741.js";
|
|
5
5
|
import {
|
|
6
6
|
Service80,
|
|
7
7
|
node84
|
|
8
|
-
} from "./integration-
|
|
8
|
+
} from "./integration-y0s8f48q.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
Service56,
|
|
11
11
|
login2,
|
|
12
|
-
|
|
13
|
-
} from "./integration-
|
|
12
|
+
node58
|
|
13
|
+
} from "./integration-1q0e68gg.js";
|
|
14
14
|
import {
|
|
15
15
|
lazy2
|
|
16
16
|
} from "./integration-88xbtdfr.js";
|
|
@@ -22,44 +22,44 @@ import {
|
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
24
|
CreateInput: () => CreateInput2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event2,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID2,
|
|
28
|
+
Info: () => Info2,
|
|
29
|
+
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service13,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node15
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event2 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var ID2 = Pty.ID;
|
|
43
|
+
var Info2 = Pty.Info;
|
|
44
44
|
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID2
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service13 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service83;
|
|
61
61
|
const location = yield* Service80;
|
|
62
|
-
const shell = yield*
|
|
62
|
+
const shell = yield* Service56;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID2.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service13.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node15 = makeLocationNode({
|
|
273
|
+
service: Service13,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node87, node84,
|
|
275
|
+
deps: [node87, node84, node58]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID2, Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service13, node15, exports_pty, Event2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./integration-
|
|
2
|
+
Service75
|
|
3
|
+
} from "./integration-mgznjxj1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID5,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./integration-
|
|
9
|
+
Service50
|
|
10
|
+
} from "./integration-43fvpk64.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
16
|
var exports_skill3 = {};
|
|
17
17
|
__export(exports_skill3, {
|
|
18
|
-
Input: () =>
|
|
19
|
-
Output: () =>
|
|
20
|
-
Plugin: () =>
|
|
18
|
+
Input: () => Input11,
|
|
19
|
+
Output: () => Output8,
|
|
20
|
+
Plugin: () => Plugin46,
|
|
21
21
|
SkillTool: () => exports_skill3,
|
|
22
|
-
description: () =>
|
|
23
|
-
name: () =>
|
|
22
|
+
description: () => description5,
|
|
23
|
+
name: () => name11,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai";
|
|
27
27
|
import { Effect, Schema } from "effect";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
id:
|
|
29
|
+
var name11 = "skill";
|
|
30
|
+
var Input11 = Schema.Struct({
|
|
31
|
+
id: ID5.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var Output8 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
35
35
|
directory: Schema.String,
|
|
36
36
|
output: Schema.String
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var description5 = [
|
|
39
39
|
"Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
|
|
40
40
|
"",
|
|
41
41
|
"The skill ID must match an available skill or a skill explicitly referenced by the user."
|
|
@@ -43,25 +43,25 @@ var description2 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin46 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service50;
|
|
51
|
+
const permission = yield* Service75;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
|
-
name:
|
|
53
|
+
name: name11,
|
|
54
54
|
options: { codemode: false },
|
|
55
|
-
description:
|
|
56
|
-
input:
|
|
57
|
-
output:
|
|
55
|
+
description: description5,
|
|
56
|
+
input: Input11,
|
|
57
|
+
output: Output8,
|
|
58
58
|
execute: (input, context) => Effect.gen(function* () {
|
|
59
59
|
const skill = yield* skills.get(input.id);
|
|
60
60
|
if (!skill)
|
|
61
61
|
return yield* unableToLoad(input.id);
|
|
62
62
|
return yield* Effect.gen(function* () {
|
|
63
63
|
yield* permission.assert({
|
|
64
|
-
action:
|
|
64
|
+
action: name11,
|
|
65
65
|
resources: [skill.id],
|
|
66
66
|
save: [skill.id],
|
|
67
67
|
sessionID: context.sessionID,
|
|
@@ -79,4 +79,4 @@ var Plugin42 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { name11, Input11, Output8, description5, toModelOutput2, Plugin46, exports_skill3 };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
Service80,
|
|
8
8
|
node84
|
|
9
|
-
} from "./integration-
|
|
9
|
+
} from "./integration-y0s8f48q.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./integration-
|
|
11
|
+
Service16,
|
|
12
|
+
node18
|
|
13
|
+
} from "./integration-wdzcbyx9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -22,20 +22,20 @@ __export(exports_filesystem, {
|
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
Entry: () => Entry2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event3,
|
|
26
26
|
FileSystem: () => exports_filesystem,
|
|
27
27
|
FindInput: () => FindInput2,
|
|
28
28
|
GlobInput: () => GlobInput2,
|
|
29
29
|
GrepInput: () => GrepInput2,
|
|
30
30
|
ListInput: () => ListInput2,
|
|
31
31
|
Match: () => Match2,
|
|
32
|
-
NotFoundError: () =>
|
|
32
|
+
NotFoundError: () => NotFoundError3,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service15,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node17
|
|
39
39
|
});
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
41
|
import path from "path";
|
|
@@ -51,7 +51,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
51
51
|
data: Schema.Uint8Array
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class NotFoundError3 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
55
55
|
path: RelativePath2
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
@@ -85,14 +85,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
85
85
|
limit: Schema.optionalKey(PositiveInt2)
|
|
86
86
|
}) {
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Event3 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service15 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
94
|
const location = yield* Service80;
|
|
95
|
-
const search = yield*
|
|
95
|
+
const search = yield* Service16;
|
|
96
96
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
97
97
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
98
98
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -103,15 +103,15 @@ var baseLayer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
103
103
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
104
|
return { absolute, real, directory: location.directory };
|
|
105
105
|
});
|
|
106
|
-
return
|
|
106
|
+
return Service15.of({
|
|
107
107
|
find: search.find,
|
|
108
108
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
109
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
110
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
109
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
|
|
110
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
|
|
111
111
|
if (info.type !== "File")
|
|
112
112
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
113
113
|
return {
|
|
114
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
114
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error))),
|
|
115
115
|
mime: FSUtil.mimeType(target.real)
|
|
116
116
|
};
|
|
117
117
|
}),
|
|
@@ -140,10 +140,10 @@ var baseLayer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node17 = makeLocationNode({
|
|
144
|
+
service: Service15,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node, node84,
|
|
146
|
+
deps: [FSUtil.node, node84, node18]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event3, Service15, node17, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./integration-
|
|
2
|
+
ID9
|
|
3
|
+
} from "./integration-c634d86v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID9.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./integration-
|
|
5
|
+
} from "./integration-x8v6s741.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
Key4,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make21,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./integration-
|
|
12
|
+
} from "./integration-eaj1djv9.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2
|
|
15
15
|
} from "./integration-922hggd3.js";
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
// src/instruction-discovery.ts
|
|
24
24
|
var exports_instruction_discovery = {};
|
|
25
25
|
__export(exports_instruction_discovery, {
|
|
26
|
-
Event: () =>
|
|
26
|
+
Event: () => Event8,
|
|
27
27
|
File: () => File2,
|
|
28
28
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
29
|
-
Options: () =>
|
|
30
|
-
Service: () =>
|
|
31
|
-
configured: () =>
|
|
29
|
+
Options: () => Options5,
|
|
30
|
+
Service: () => Service46,
|
|
31
|
+
configured: () => configured5,
|
|
32
32
|
layer: () => layer19,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node48
|
|
34
34
|
});
|
|
35
35
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,18 +41,18 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
41
41
|
}) {
|
|
42
42
|
}
|
|
43
43
|
var Files = Schema.Array(File2);
|
|
44
|
-
var key =
|
|
45
|
-
var
|
|
44
|
+
var key = Key4.make("core/instructions");
|
|
45
|
+
var Event8 = {
|
|
46
46
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
47
47
|
};
|
|
48
|
-
var
|
|
48
|
+
var Options5 = Schema.Struct({
|
|
49
49
|
project: Schema.optional(Schema.Boolean),
|
|
50
50
|
global: Schema.optional(Schema.Boolean)
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service46 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
54
54
|
}
|
|
55
|
-
var layer19 = (options) => Layer.effect(
|
|
55
|
+
var layer19 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service83;
|
|
57
57
|
const state = create3({
|
|
58
58
|
name: "instruction-discovery",
|
|
@@ -72,9 +72,9 @@ var layer19 = (options) => Layer.effect(Service50, Effect.gen(function* () {
|
|
|
72
72
|
editor.available = false;
|
|
73
73
|
}
|
|
74
74
|
}),
|
|
75
|
-
notify: () => bus.publish(
|
|
75
|
+
notify: () => bus.publish(Event8.Updated, {}).pipe(Effect.asVoid)
|
|
76
76
|
});
|
|
77
|
-
const source = (value) =>
|
|
77
|
+
const source = (value) => make21({
|
|
78
78
|
key,
|
|
79
79
|
codec: Schema.toCodecJson(Files),
|
|
80
80
|
read: Effect.succeed(value),
|
|
@@ -90,7 +90,7 @@ var layer19 = (options) => Layer.effect(Service50, Effect.gen(function* () {
|
|
|
90
90
|
return unavailable3;
|
|
91
91
|
return Array.from(current.files.values());
|
|
92
92
|
});
|
|
93
|
-
return
|
|
93
|
+
return Service46.of({
|
|
94
94
|
project: options?.project !== false,
|
|
95
95
|
global: options?.global !== false,
|
|
96
96
|
transform: state.transform,
|
|
@@ -104,14 +104,14 @@ var layer19 = (options) => Layer.effect(Service50, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}));
|
|
107
|
-
function
|
|
107
|
+
function configured5(options) {
|
|
108
108
|
return makeLocationNode({
|
|
109
|
-
service:
|
|
109
|
+
service: Service46,
|
|
110
110
|
layer: layer19(options),
|
|
111
111
|
deps: [node87]
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var node48 = configured5();
|
|
115
115
|
function render(files) {
|
|
116
116
|
return files.map((file) => `Instructions from: ${file.path}
|
|
117
117
|
${file.content}`).join(`
|
|
@@ -142,4 +142,4 @@ ${render([after])}`;
|
|
|
142
142
|
`);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export { File2,
|
|
145
|
+
export { File2, Event8, Options5, Service46, layer19, configured5, node48, exports_instruction_discovery };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./integration-
|
|
4
|
+
} from "./integration-xn7zchcf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./integration-
|
|
6
|
+
Service53
|
|
7
|
+
} from "./integration-ehzy0r6a.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./integration-
|
|
10
|
+
} from "./integration-dmftx2z2.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/ollama.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -45,12 +45,12 @@ var ShowResponse = Schema.Struct({
|
|
|
45
45
|
});
|
|
46
46
|
var discovery = new Map;
|
|
47
47
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
48
|
-
function
|
|
48
|
+
function make5(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
49
49
|
return define({
|
|
50
50
|
id: "opencode.provider.ollama",
|
|
51
51
|
effect: Effect.fn(function* (ctx) {
|
|
52
52
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
53
|
-
const config = yield*
|
|
53
|
+
const config = yield* Service53;
|
|
54
54
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
55
55
|
const loaded = { models: [], hash: "[]" };
|
|
56
56
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -77,7 +77,7 @@ function make6(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
77
77
|
});
|
|
78
78
|
for (const item of loaded.models) {
|
|
79
79
|
providers.models.update(providerID, item.model, (model) => {
|
|
80
|
-
model.modelID =
|
|
80
|
+
model.modelID = ID8.make(item.model);
|
|
81
81
|
model.name = item.name || item.model;
|
|
82
82
|
model.family = item.show.details?.family ? Family2.make(item.show.details.family) : item.details.family ? Family2.make(item.details.family) : undefined;
|
|
83
83
|
model.capabilities = {
|
|
@@ -151,7 +151,7 @@ function make6(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
var OllamaPlugin2 =
|
|
154
|
+
var OllamaPlugin2 = make5();
|
|
155
155
|
function configured(entries, origin) {
|
|
156
156
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
157
157
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -170,4 +170,4 @@ function configured(entries, origin) {
|
|
|
170
170
|
return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
export {
|
|
173
|
+
export { make5, OllamaPlugin2 };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
fromPromise2
|
|
3
3
|
} from "./integration-zr2ceqn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./integration-
|
|
5
|
+
Service54
|
|
6
|
+
} from "./integration-hx450sbz.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -23,7 +23,7 @@ import path from "path";
|
|
|
23
23
|
import { stat } from "node:fs/promises";
|
|
24
24
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
25
25
|
var make3 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
-
const watcher = yield*
|
|
26
|
+
const watcher = yield* Service54;
|
|
27
27
|
const scope = yield* Effect.scope;
|
|
28
28
|
const runPromise = yield* FiberSet.makeRuntimePromise();
|
|
29
29
|
const changes = yield* PubSub.unbounded();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./integration-
|
|
3
|
+
} from "./integration-x8v6s741.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./integration-
|
|
5
|
+
Service57,
|
|
6
|
+
Event12
|
|
7
|
+
} from "./integration-haf8ym7w.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./integration-9rqn6x4v.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin4,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin4 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
const bus = yield* Service83;
|
|
24
|
-
const wellknown = yield*
|
|
24
|
+
const wellknown = yield* Service57;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin2 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin4, exports_plugin };
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
// src/plugin/tool-input-repair.ts
|
|
9
9
|
var exports_tool_input_repair = {};
|
|
10
10
|
__export(exports_tool_input_repair, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin35,
|
|
12
12
|
ToolInputRepairPlugin: () => exports_tool_input_repair
|
|
13
13
|
});
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Effect, Option, Predicate, Schema } from "effect";
|
|
16
16
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
17
17
|
var maxDepth = 6;
|
|
18
|
-
var
|
|
18
|
+
var Plugin35 = define({
|
|
19
19
|
id: "opencode.tool.input.repair",
|
|
20
20
|
effect: (ctx) => ctx.tool.hook("execute.before", (event) => Effect.gen(function* () {
|
|
21
21
|
if (event.tool === "execute")
|
|
@@ -120,4 +120,4 @@ function repairArray(value, schema, root, depth) {
|
|
|
120
120
|
return compatible ? [repaired] : value;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { Plugin35, exports_tool_input_repair };
|