@opencode/core 0.0.0-dev-19438 → 0.0.0-dev-19440
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 +70 -70
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +62 -62
- package/dist/catalog.js +70 -70
- package/dist/chunks/{file-2cmcktmr.js → file-01x5ayvb.js} +9 -9
- package/dist/chunks/{file-3fj0ehej.js → file-0a423ajn.js} +38 -38
- package/dist/chunks/{file-xr2q0tqq.js → file-0ccn345w.js} +21 -21
- package/dist/chunks/{file-jjwvsmw4.js → file-0gb42mpy.js} +1 -1
- package/dist/chunks/{file-t550f9t1.js → file-0gdmqesm.js} +3 -3
- package/dist/chunks/{file-g713qgch.js → file-0j7s38gp.js} +21 -21
- package/dist/chunks/{file-p1nm93x7.js → file-0r7yqxbf.js} +3 -3
- package/dist/chunks/{file-m4w483hc.js → file-10m077g0.js} +6 -6
- package/dist/chunks/{file-614n5vxr.js → file-11rr1j9z.js} +14 -14
- package/dist/chunks/{file-s3h59be2.js → file-1dgfjwgv.js} +17 -17
- package/dist/chunks/{file-75v5avbv.js → file-1kz1ep11.js} +7 -7
- package/dist/chunks/{file-td1bwv9m.js → file-1nepfxaz.js} +8 -8
- package/dist/chunks/{file-cqyrr4jp.js → file-1qvh4tdd.js} +89 -89
- package/dist/chunks/{file-5trk58xb.js → file-1vtz46z8.js} +7 -7
- package/dist/chunks/{file-ht5y0zrb.js → file-1x11rq2a.js} +4 -4
- package/dist/chunks/{file-31hyewty.js → file-1zpv7ff7.js} +42 -42
- package/dist/chunks/{file-6h73sxmp.js → file-2402vzrj.js} +4 -4
- package/dist/chunks/{file-awz7xhfp.js → file-29vcxy2s.js} +4 -4
- package/dist/chunks/{file-mdcc0ar8.js → file-2a02pqey.js} +23 -23
- package/dist/chunks/{file-3n1sj9mp.js → file-2dwxz9nb.js} +1 -1
- package/dist/chunks/{file-3trbxeqx.js → file-2jhvch9f.js} +1 -1
- package/dist/chunks/{file-fq1h1v14.js → file-2w8gt3dc.js} +3 -3
- package/dist/chunks/{file-wb1yzg53.js → file-31k57cnn.js} +17 -17
- package/dist/chunks/{file-fydnx5fx.js → file-34y33xw8.js} +33 -33
- package/dist/chunks/{file-befft0k5.js → file-39ydjj0q.js} +13 -13
- package/dist/chunks/{file-k2cps1w2.js → file-3e0re2er.js} +12 -12
- package/dist/chunks/{file-m20ewzpv.js → file-3q86das3.js} +29 -29
- package/dist/chunks/{file-3w2b2yj4.js → file-3w0fmcng.js} +3 -3
- package/dist/chunks/{file-qefhz522.js → file-40bxqg89.js} +9 -9
- package/dist/chunks/{file-ngx16gc5.js → file-41nzdzyt.js} +11 -11
- package/dist/chunks/{file-zn15gz72.js → file-47rg0syt.js} +14 -14
- package/dist/chunks/{file-t3ejw313.js → file-4gxnfwsp.js} +40 -40
- package/dist/chunks/{file-1tx98gn3.js → file-4k1x48fq.js} +12 -12
- package/dist/chunks/{file-q5sxxe7s.js → file-4qk82zqm.js} +19 -19
- package/dist/chunks/{file-ntp00jbn.js → file-4zqvh54v.js} +48 -48
- package/dist/chunks/{file-g5twr0sp.js → file-51b1p1nf.js} +13 -13
- package/dist/chunks/{file-b3xk0srv.js → file-53kvdkfc.js} +44 -44
- package/dist/chunks/{file-wh05710z.js → file-54xwtjdq.js} +37 -37
- package/dist/chunks/{file-6bg31a94.js → file-56pp0xdw.js} +16 -16
- package/dist/chunks/{file-1enyjv7v.js → file-5ahbvy81.js} +12 -12
- package/dist/chunks/{file-664j63h8.js → file-5eep6mvg.js} +14 -14
- package/dist/chunks/{file-9k2v62xn.js → file-5k8nf3y0.js} +1 -1
- package/dist/chunks/{file-1302kqpv.js → file-5t76y6t3.js} +59 -59
- package/dist/chunks/{file-wkwfxgj3.js → file-5tvb4m4x.js} +2 -2
- package/dist/chunks/{file-rb7pkpgx.js → file-5wd13403.js} +25 -25
- package/dist/chunks/{file-9ch41db7.js → file-5zjhyd44.js} +42 -42
- package/dist/chunks/{file-52az7e5h.js → file-6brzmxsm.js} +17 -17
- package/dist/chunks/{file-e3qzfmye.js → file-6cwg1y4g.js} +17 -17
- package/dist/chunks/{file-b8n110tt.js → file-6cxvyk5r.js} +4 -4
- package/dist/chunks/{file-fjmrr6sh.js → file-6d9mz4vp.js} +7 -7
- package/dist/chunks/{file-8s84r2ab.js → file-6kaqw02d.js} +17 -17
- package/dist/chunks/{file-2rk3das1.js → file-6tp3trja.js} +14 -14
- package/dist/chunks/{file-03zt5v0h.js → file-6wbs09gh.js} +11 -11
- package/dist/chunks/{file-d5n4bh35.js → file-6z8rkrt2.js} +22 -22
- package/dist/chunks/{file-79rym0vx.js → file-75kte9jx.js} +17 -17
- package/dist/chunks/{file-ms6rwfbv.js → file-7c6e5y81.js} +29 -29
- package/dist/chunks/{file-ec8389mk.js → file-7sqxeqwy.js} +3 -3
- package/dist/chunks/{file-jvdqbckk.js → file-81wjxh2j.js} +15 -15
- package/dist/chunks/{file-ypy1tgyh.js → file-84k0ms65.js} +12 -12
- package/dist/chunks/{file-6jnybvqn.js → file-84zt2byv.js} +7 -7
- package/dist/chunks/{file-37y0x4sa.js → file-85y38j38.js} +12 -12
- package/dist/chunks/{file-hq8zt1th.js → file-8a2qdx2a.js} +5 -5
- package/dist/chunks/{file-m2eczmet.js → file-8b4f4643.js} +289 -289
- package/dist/chunks/{file-t9qhnrv6.js → file-8st6sg7d.js} +5 -5
- package/dist/chunks/{file-xbet31bz.js → file-8tf464ev.js} +29 -29
- package/dist/chunks/{file-v9n7g2jp.js → file-8va43b33.js} +49 -49
- package/dist/chunks/{file-rn18s34v.js → file-8ygr8afe.js} +6 -6
- package/dist/chunks/{file-56j57pys.js → file-90hac4w7.js} +13 -13
- package/dist/chunks/{file-3kff94q5.js → file-915t83ht.js} +6 -6
- package/dist/chunks/{file-ew6y6y1a.js → file-92e8bh4d.js} +27 -27
- package/dist/chunks/{file-4qbtf2xm.js → file-9ev7wkx2.js} +4 -4
- package/dist/chunks/{file-q043d12m.js → file-9khdf5s3.js} +10 -10
- package/dist/chunks/{file-0cq9sm51.js → file-9pazyhrx.js} +26 -26
- package/dist/chunks/{file-z2rxccdg.js → file-a12ktaww.js} +4 -4
- package/dist/chunks/{file-he3a9kdv.js → file-a1ttd06w.js} +27 -27
- package/dist/chunks/{file-8pnwjqbd.js → file-ad4c86qp.js} +20 -20
- package/dist/chunks/{file-dx6t03ys.js → file-ah20z6ve.js} +1 -1
- package/dist/chunks/{file-zts5fb25.js → file-akrnn5pm.js} +9 -9
- package/dist/chunks/{file-99tcg3bm.js → file-apktd9aw.js} +9 -9
- package/dist/chunks/{file-xe3tttza.js → file-aqnnbpn3.js} +10 -10
- package/dist/chunks/{file-rbb6h0rd.js → file-arsacetm.js} +9 -9
- package/dist/chunks/{file-ja6srv6s.js → file-avp3hhf2.js} +20 -20
- package/dist/chunks/{file-8x96bj0m.js → file-b27vhd2z.js} +6 -6
- package/dist/chunks/{file-416qpt5q.js → file-b3yz7px1.js} +22 -22
- package/dist/chunks/{file-ashvqh0k.js → file-b5v58ftx.js} +6 -6
- package/dist/chunks/{file-azec8exe.js → file-bez9jb7v.js} +6 -6
- package/dist/chunks/{file-jxj1g7d6.js → file-bjwja24f.js} +1 -1
- package/dist/chunks/{file-s7vx81dz.js → file-bnd8m4xr.js} +7 -7
- package/dist/chunks/{file-34202413.js → file-bsre5g92.js} +20 -20
- package/dist/chunks/{file-gj7pn1ka.js → file-bty97h6q.js} +10 -10
- package/dist/chunks/{file-bv5t9bgg.js → file-bz5k20yh.js} +10 -10
- package/dist/chunks/{file-reygygas.js → file-c0q0hmxn.js} +4 -4
- package/dist/chunks/{file-w6vgwbtw.js → file-c6090g2y.js} +20 -20
- package/dist/chunks/{file-b3ab3ctg.js → file-c7vqgbdp.js} +5 -5
- package/dist/chunks/{file-8kpa3sfw.js → file-caevyejh.js} +26 -26
- package/dist/chunks/{file-p7r5e3re.js → file-cef1ew0c.js} +25 -25
- package/dist/chunks/{file-qcv4hsrb.js → file-cqf55qpv.js} +12 -12
- package/dist/chunks/{file-zfv8a0ht.js → file-ct16t8sn.js} +13 -13
- package/dist/chunks/{file-1vd4786e.js → file-cw20kccn.js} +7 -7
- package/dist/chunks/{file-famamp43.js → file-cxgbd94q.js} +19 -19
- package/dist/chunks/{file-mrw4weg4.js → file-d1jmswd2.js} +4 -4
- package/dist/chunks/{file-an7cqtb7.js → file-dfe8djrf.js} +3 -3
- package/dist/chunks/{file-jwcy2c2z.js → file-dpkg50ah.js} +3 -3
- package/dist/chunks/{file-bxsmgxt8.js → file-dqjwa780.js} +9 -9
- package/dist/chunks/{file-8qqdnwax.js → file-dv8j6wzk.js} +11 -11
- package/dist/chunks/{file-gzbkpp9m.js → file-dwvzh0g2.js} +5 -5
- package/dist/chunks/{file-195b9hkp.js → file-e4jhm3j4.js} +25 -25
- package/dist/chunks/{file-7ebn0nc0.js → file-e6hd9jay.js} +5 -5
- package/dist/chunks/{file-a28msnrx.js → file-efd2tswm.js} +1 -1
- package/dist/chunks/{file-3yknbgq7.js → file-eg6tdpbh.js} +10 -10
- package/dist/chunks/{file-szgy4byf.js → file-epd1fg1b.js} +1 -1
- package/dist/chunks/{file-4rpd5z62.js → file-etq9z835.js} +1 -1
- package/dist/chunks/{file-dgbe4bt1.js → file-f0w7qnfr.js} +17 -17
- package/dist/chunks/{file-nmwa5e32.js → file-f40nw3s4.js} +13 -13
- package/dist/chunks/{file-xp2ajnz8.js → file-f7xc3wa1.js} +19 -19
- package/dist/chunks/{file-d86az2qg.js → file-fmhfve32.js} +20 -20
- package/dist/chunks/{file-ck83t0ny.js → file-fpm9cd7c.js} +29 -29
- package/dist/chunks/{file-9v3118pd.js → file-fz45jgbm.js} +26 -26
- package/dist/chunks/{file-h2gyv3sg.js → file-g08h86t3.js} +1 -1
- package/dist/chunks/{file-t33aqq77.js → file-g1sb636y.js} +6 -6
- package/dist/chunks/{file-bxxxhdn8.js → file-gctttn65.js} +22 -22
- package/dist/chunks/{file-3fc6dm20.js → file-gdvy8fx6.js} +3 -3
- package/dist/chunks/{file-67mjd9te.js → file-gsnb458g.js} +7 -7
- package/dist/chunks/{file-kyrbgmgz.js → file-gz2y2193.js} +1 -1
- package/dist/chunks/{file-gqzswqpg.js → file-h7nxn43q.js} +30 -30
- package/dist/chunks/{file-xnn90w67.js → file-ha2h0zjh.js} +26 -26
- package/dist/chunks/{file-e7c5hh0v.js → file-heer32bb.js} +7 -7
- package/dist/chunks/{file-sb15f9kd.js → file-hgyq7eg6.js} +20 -20
- package/dist/chunks/{file-e6g776ht.js → file-hgz4ddpy.js} +11 -11
- package/dist/chunks/{file-nmpjh5tr.js → file-hjkgy200.js} +22 -22
- package/dist/chunks/{file-yt0fqk68.js → file-hkfg6fzm.js} +3 -3
- package/dist/chunks/{file-9ay0erd8.js → file-hqt9f5hj.js} +172 -172
- package/dist/chunks/{file-7yh4e7ss.js → file-j028xdjb.js} +2 -2
- package/dist/chunks/{file-xacpwbjs.js → file-j0hyjfyk.js} +7 -7
- package/dist/chunks/{file-wxg97684.js → file-j1dc1ckq.js} +25 -25
- package/dist/chunks/{file-5z7h86dp.js → file-j1k07czg.js} +2 -2
- package/dist/chunks/{file-embw8kgh.js → file-jj3qxa52.js} +3 -3
- package/dist/chunks/{file-b3c6xmwh.js → file-jk47m7qg.js} +16 -16
- package/dist/chunks/{file-9vqmh8rd.js → file-jtkkm2qn.js} +20 -20
- package/dist/chunks/{file-rctdwqm8.js → file-jzd3sdz4.js} +9 -9
- package/dist/chunks/{file-tfg00z1r.js → file-jzd96n45.js} +14 -14
- package/dist/chunks/{file-0p4j4cv0.js → file-jzzy94zk.js} +8 -8
- package/dist/chunks/{file-vabb23s0.js → file-kaaek4yc.js} +1 -1
- package/dist/chunks/{file-1wv7z5mx.js → file-kegs65m0.js} +25 -25
- package/dist/chunks/{file-y2vrj84a.js → file-kt5w8vxh.js} +8 -8
- package/dist/chunks/{file-3kt1zrpp.js → file-kvext5yd.js} +87 -87
- package/dist/chunks/{file-rbwxp75v.js → file-m0f43kw2.js} +33 -33
- package/dist/chunks/{file-agmzfzv5.js → file-m2h2dh4q.js} +16 -16
- package/dist/chunks/{file-jhtsdbae.js → file-m8nf6fh5.js} +35 -35
- package/dist/chunks/{file-b4ssmz4r.js → file-ma9yb35x.js} +7 -7
- package/dist/chunks/{file-vypqtakx.js → file-mb0ha6fs.js} +1 -1
- package/dist/chunks/{file-88sz8qcd.js → file-msq0jde0.js} +3 -3
- package/dist/chunks/{file-pd9nar43.js → file-n8hp42zk.js} +22 -22
- package/dist/chunks/{file-rs226bz6.js → file-nfnqdzmc.js} +5 -5
- package/dist/chunks/{file-nrj82zgb.js → file-nnsfn4jb.js} +26 -26
- package/dist/chunks/{file-yp2x3t23.js → file-nxer0yad.js} +3 -3
- package/dist/chunks/{file-xck56rmx.js → file-nyj7fnw9.js} +33 -33
- package/dist/chunks/{file-b3wkxfg9.js → file-p33ejz0k.js} +1 -1
- package/dist/chunks/{file-esdnemd6.js → file-p6mw6jzc.js} +1 -1
- package/dist/chunks/{file-nhy5jxhy.js → file-p6yzb5ay.js} +3 -3
- package/dist/chunks/{file-j935v87r.js → file-paphc93g.js} +2 -2
- package/dist/chunks/{file-gtwpvwn0.js → file-pfjkw3sm.js} +67 -67
- package/dist/chunks/{file-3yjg5mh2.js → file-pxt4kznk.js} +3 -3
- package/dist/chunks/{file-nrrb2a3e.js → file-pydmrwq0.js} +28 -28
- package/dist/chunks/{file-tsdrwk88.js → file-qbrwkfs8.js} +9 -9
- package/dist/chunks/{file-vsp1fds9.js → file-qj8eh1ht.js} +20 -20
- package/dist/chunks/{file-k4t1n3ds.js → file-qknber6z.js} +5 -5
- package/dist/chunks/{file-fzsrmebp.js → file-qmj11y7g.js} +18 -18
- package/dist/chunks/{file-206fxkvm.js → file-qnq5akd1.js} +19 -19
- package/dist/chunks/{file-n3ehebhz.js → file-qr42g2ex.js} +8 -8
- package/dist/chunks/file-qtvmxc8s.js +4 -0
- package/dist/chunks/{file-91p1v22t.js → file-qvb3nf84.js} +7 -7
- package/dist/chunks/{file-kk4kf303.js → file-qz8n5g0w.js} +9 -9
- package/dist/chunks/{file-0z8fjeev.js → file-r0q5qwf7.js} +16 -16
- package/dist/chunks/{file-vjjshyym.js → file-r6r1pz2h.js} +23 -23
- package/dist/chunks/{file-n2egqj3k.js → file-rj8m8qzm.js} +10 -10
- package/dist/chunks/{file-8n8qbvvf.js → file-rmnfqzky.js} +31 -31
- package/dist/chunks/{file-verq85zk.js → file-rq6a0dg0.js} +1 -1
- package/dist/chunks/{file-qacd23e2.js → file-rvyh1tga.js} +4 -4
- package/dist/chunks/{file-pnfpsavj.js → file-s8b69be9.js} +6 -6
- package/dist/chunks/{file-8s0m5yrh.js → file-s9wkemjm.js} +13 -13
- package/dist/chunks/{file-d1xvm4af.js → file-sfegc1hb.js} +14 -14
- package/dist/chunks/{file-yc3z3e63.js → file-shyev4mk.js} +11 -11
- package/dist/chunks/{file-wc01vwq2.js → file-snsk04x3.js} +16 -16
- package/dist/chunks/{file-2r4xr41j.js → file-stntv2hh.js} +21 -21
- package/dist/chunks/{file-c4vq1gr4.js → file-sx8dqv37.js} +21 -21
- package/dist/chunks/{file-pvp2wc9z.js → file-t1d7geq2.js} +9 -9
- package/dist/chunks/{file-jh9jg79a.js → file-td8ytyxd.js} +8 -8
- package/dist/chunks/{file-egqspz5t.js → file-tjr0drtg.js} +10 -10
- package/dist/chunks/{file-2ff89mrc.js → file-tmrp3428.js} +3 -3
- package/dist/chunks/{file-qbka3964.js → file-tnjzq8hh.js} +21 -21
- package/dist/chunks/{file-844ef7ks.js → file-tpw6cwsb.js} +7 -7
- package/dist/chunks/{file-gj4x8zz6.js → file-ts8g87kd.js} +12 -12
- package/dist/chunks/{file-zh30k3px.js → file-v1d6h3jw.js} +9 -9
- package/dist/chunks/{file-11h1hnb3.js → file-v6krneed.js} +1 -1
- package/dist/chunks/file-v7es8fey.js +247 -0
- package/dist/chunks/{file-fec1vscd.js → file-v84ecj13.js} +39 -39
- package/dist/chunks/{file-sqmt1xrx.js → file-v9yqefes.js} +31 -31
- package/dist/chunks/{file-v3smhzc7.js → file-vpsn8azz.js} +17 -17
- package/dist/chunks/{file-6jekb6p7.js → file-w3tvvpzb.js} +7 -7
- package/dist/chunks/{file-eykg37vx.js → file-w7q7v3t1.js} +13 -13
- package/dist/chunks/{file-5cvqq58e.js → file-wepxzacc.js} +1 -1
- package/dist/chunks/{file-87deq66t.js → file-wpm2rk0p.js} +5 -5
- package/dist/chunks/{file-n92g5px8.js → file-x3n8sh0p.js} +15 -15
- package/dist/chunks/{file-vq3dh784.js → file-x4tsw7vb.js} +21 -21
- package/dist/chunks/{file-0bc9xa41.js → file-xhhb3q2x.js} +12 -12
- package/dist/chunks/{file-j2j5pzjs.js → file-xw91ethm.js} +3 -3
- package/dist/chunks/{file-kkmk6wev.js → file-xxsgs27q.js} +9 -9
- package/dist/chunks/{file-9bj2cvf7.js → file-y2rgym3m.js} +7 -7
- package/dist/chunks/{file-x5df1stp.js → file-y3ak5rv5.js} +52 -52
- package/dist/chunks/{file-2sgjhdq8.js → file-yczh3409.js} +25 -25
- package/dist/chunks/{file-84tssp1s.js → file-yhks5pv3.js} +5 -5
- package/dist/chunks/{file-xncegbyh.js → file-ykhkvv1t.js} +2 -2
- package/dist/chunks/{file-s4enseaf.js → file-yrznvahk.js} +1 -1
- package/dist/chunks/{file-e7n26ax2.js → file-z0q4dsav.js} +7 -7
- package/dist/chunks/{file-0tqgm7xh.js → file-z0wr5a8a.js} +23 -23
- package/dist/chunks/{file-rywfhtnt.js → file-z2fmw18c.js} +16 -16
- package/dist/chunks/{file-f3kdsvs6.js → file-z3asdwpy.js} +16 -16
- package/dist/chunks/{file-29x78va6.js → file-z63w68vq.js} +4 -4
- package/dist/chunks/{file-11tcp5y8.js → file-zfznrpx1.js} +3 -3
- package/dist/chunks/{file-69q31xtv.js → file-zr6kk9a2.js} +4 -4
- package/dist/chunks/{file-z2maercm.js → file-zrd73k1r.js} +21 -21
- package/dist/chunks/{file-0kzzmtkd.js → file-zw0jxv6w.js} +16 -16
- package/dist/chunks/{file-9yb9755z.js → file-zx6x6k27.js} +10 -10
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/command.js +72 -72
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +14 -14
- package/dist/config/plugin/agent.js +90 -90
- package/dist/config/plugin/command.js +172 -172
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/formatter.js +92 -92
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +90 -90
- package/dist/config/plugin/mcp.js +97 -97
- package/dist/config/plugin/policy.js +89 -89
- package/dist/config/plugin/provider.js +88 -88
- package/dist/config/plugin/reference.js +92 -92
- package/dist/config/plugin/shell.js +93 -93
- package/dist/config/plugin/skill-file.js +76 -76
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +92 -92
- package/dist/config/plugin/tool-output.js +92 -92
- package/dist/config/plugin/websearch.js +90 -90
- package/dist/config/plugin/worktree.js +91 -91
- package/dist/config/variable.js +2 -2
- package/dist/config.js +91 -91
- package/dist/credential.js +66 -66
- package/dist/database/database.js +62 -62
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +235 -235
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +79 -79
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +75 -75
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +10 -10
- package/dist/filesystem.js +74 -74
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +65 -65
- package/dist/generate.js +76 -76
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +2 -2
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +7 -7
- package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
- 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 +310 -310
- package/dist/instruction-discovery.js +71 -71
- package/dist/instructions/builtins.js +65 -65
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +71 -71
- package/dist/job.js +65 -65
- package/dist/kv.js +59 -59
- package/dist/location-activity.js +57 -57
- package/dist/location-mutation.js +30 -30
- package/dist/location-service-map.js +64 -64
- package/dist/location-services.js +306 -306
- package/dist/location.js +67 -67
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +82 -82
- package/dist/mcp/instructions.js +96 -96
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +73 -73
- package/dist/model.js +10 -10
- package/dist/models-dev.js +63 -63
- package/dist/permission/saved.js +61 -61
- package/dist/permission.js +88 -88
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty.js +59 -59
- package/dist/plugin/agent.js +77 -77
- package/dist/plugin/command.js +73 -73
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +179 -179
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +281 -281
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +62 -62
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +77 -77
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +93 -93
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
- package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
- package/dist/plugin/provider/configured.js +90 -90
- package/dist/plugin/provider/digitalocean.js +65 -65
- package/dist/plugin/provider/github-copilot.js +67 -67
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +63 -63
- package/dist/plugin/provider/lmstudio.js +93 -93
- package/dist/plugin/provider/modal.js +66 -66
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +93 -93
- package/dist/plugin/provider/openai.js +64 -64
- package/dist/plugin/provider/opencode.js +65 -65
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +62 -62
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +92 -92
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +93 -93
- package/dist/plugin/provider/xai.js +64 -64
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +128 -128
- package/dist/plugin/sdk.js +63 -63
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +107 -107
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +2 -2
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/warming.js +88 -88
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +4 -4
- package/dist/plugin/websearch/index.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +188 -188
- package/dist/project.js +62 -62
- package/dist/provider.js +5 -5
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +75 -75
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +63 -63
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +61 -61
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +121 -121
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +122 -122
- package/dist/session/execution.js +102 -102
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +68 -68
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +62 -62
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +72 -72
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +102 -102
- package/dist/session/projector.js +64 -64
- package/dist/session/prompt.js +80 -80
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +67 -67
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +189 -189
- package/dist/session/runner/model.js +73 -73
- package/dist/session/runner/retry.js +89 -89
- package/dist/session/runner/step.js +96 -96
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +140 -140
- package/dist/session/shell.js +102 -102
- package/dist/session/skill.js +78 -78
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +68 -68
- package/dist/session/subagent-job.js +171 -171
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +124 -124
- package/dist/session/to-session-error.js +86 -86
- package/dist/session/transfer.js +122 -122
- package/dist/session.js +186 -186
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +105 -105
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +82 -82
- package/dist/skill.js +81 -81
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +95 -95
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +92 -92
- package/dist/tool/plugin/grep.js +92 -92
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +92 -92
- package/dist/tool/plugin/question.js +80 -80
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +86 -86
- package/dist/tool/plugin/subagent.js +180 -180
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +86 -86
- package/dist/tool/plugin/write.js +86 -86
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +7 -7
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +12 -12
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +69 -69
- package/dist/wellknown/plugin.js +61 -61
- package/dist/wellknown.js +64 -64
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +67 -67
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +298 -298
- package/dist/worktree.js +72 -72
- package/package.json +8 -8
- package/dist/chunks/file-0mesazry.js +0 -4
- package/dist/chunks/file-dk9ef0gz.js +0 -247
- /package/dist/chunks/{file-kcvfr73y.js → file-31a64gx3.js} +0 -0
- /package/dist/chunks/{file-qaeybh9m.js → file-n032fvft.js} +0 -0
- /package/dist/chunks/{file-ff8vf18q.js → file-p2vn5raz.js} +0 -0
- /package/dist/chunks/{file-ce5fknq2.js → file-pfq1ksym.js} +0 -0
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service49,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node52
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service49 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service49.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node52 = makeLocationNode({
|
|
143
|
+
service: Service49,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service49, node52, exports_tool_output2 };
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service41,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node44
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service41 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service41, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service41.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service64, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node44 = makeGlobalNode({ service: Service41, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service41, node44, exports_environment };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
3
|
+
Service52
|
|
4
|
+
} from "./file-54xwtjdq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./file-
|
|
6
|
+
Service70
|
|
7
|
+
} from "./file-hjkgy200.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./file-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin30
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin30 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service52;
|
|
27
|
+
const snapshot = yield* Service70;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin10 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin30, exports_snapshot };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./file-
|
|
5
|
+
} from "./file-yhks5pv3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID12,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./file-
|
|
10
|
+
Info27
|
|
11
|
+
} from "./file-51b1p1nf.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./file-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CopilotModels: () =>
|
|
20
|
-
get: () =>
|
|
17
|
+
var exports_models2 = {};
|
|
18
|
+
__export(exports_models2, {
|
|
19
|
+
CopilotModels: () => exports_models2,
|
|
20
|
+
get: () => get3
|
|
21
21
|
});
|
|
22
22
|
import { Money } from "@opencode/schema/money";
|
|
23
23
|
import { Option, Schema } from "effect";
|
|
@@ -66,7 +66,7 @@ var RemoteModel = Schema.Struct({
|
|
|
66
66
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
67
67
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
68
68
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
69
|
-
async function
|
|
69
|
+
async function get3(baseURL, headers, existing) {
|
|
70
70
|
const response = await fetch(`${baseURL}/models`, {
|
|
71
71
|
headers,
|
|
72
72
|
signal: AbortSignal.timeout(5000)
|
|
@@ -87,7 +87,7 @@ async function get2(baseURL, headers, existing) {
|
|
|
87
87
|
result.set(id, build(id, current, baseURL, model));
|
|
88
88
|
}
|
|
89
89
|
for (const [id, model] of remote) {
|
|
90
|
-
const key =
|
|
90
|
+
const key = ID12.make(id);
|
|
91
91
|
if (result.has(key))
|
|
92
92
|
continue;
|
|
93
93
|
result.set(key, build(key, model, baseURL));
|
|
@@ -111,11 +111,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
111
111
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
112
112
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
113
113
|
const released = previous?.time.released || Date.parse(version);
|
|
114
|
-
return
|
|
115
|
-
...
|
|
114
|
+
return Info27.make({
|
|
115
|
+
...Info27.default(ID13.githubCopilot, id),
|
|
116
116
|
id,
|
|
117
|
-
modelID:
|
|
118
|
-
providerID:
|
|
117
|
+
modelID: ID12.make(remote.id),
|
|
118
|
+
providerID: ID13.githubCopilot,
|
|
119
119
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
120
120
|
name: previous?.name ?? remote.name,
|
|
121
121
|
package: aisdk2(messages ? "@ai-sdk/anthropic" : "@ai-sdk/github-copilot"),
|
|
@@ -190,4 +190,4 @@ function variants(remote, messages) {
|
|
|
190
190
|
];
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { get3, exports_models2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./file-zw0jxv6w.js";
|
|
1
5
|
import {
|
|
2
6
|
Service78,
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
7
|
+
node83
|
|
8
|
+
} from "./file-kt5w8vxh.js";
|
|
5
9
|
import {
|
|
6
|
-
|
|
10
|
+
Service76,
|
|
7
11
|
node81
|
|
8
|
-
} from "./file-
|
|
9
|
-
import {
|
|
10
|
-
Service72,
|
|
11
|
-
node76
|
|
12
|
-
} from "./file-6bg31a94.js";
|
|
12
|
+
} from "./file-56pp0xdw.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./file-
|
|
15
|
+
} from "./file-1x11rq2a.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./file-
|
|
17
|
+
Service53,
|
|
18
|
+
node56
|
|
19
|
+
} from "./file-qmj11y7g.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./file-
|
|
21
|
+
node21
|
|
22
|
+
} from "./file-cxgbd94q.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./file-
|
|
24
|
+
Service9,
|
|
25
|
+
node11
|
|
26
|
+
} from "./file-6d9mz4vp.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./file-9rqn6x4v.js";
|
|
@@ -43,12 +43,12 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
43
43
|
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
45
|
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
46
|
+
const location = yield* Service76;
|
|
47
|
+
const watcher = yield* Service53;
|
|
48
|
+
const bus = yield* Service79;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service78;
|
|
51
|
+
const policy = yield* Service9;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
|
105
105
|
var node2 = makeLocationNode({
|
|
106
106
|
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node56, FSUtil.node, node81, node83, node84, node21, node11]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./file-
|
|
4
|
+
} from "./file-51b1p1nf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./file-
|
|
6
|
+
Service52
|
|
7
|
+
} from "./file-54xwtjdq.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./file-
|
|
10
|
+
} from "./file-heer32bb.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* Service52;
|
|
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 make9(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
77
77
|
});
|
|
78
78
|
for (const item of loaded.models) {
|
|
79
79
|
catalog.model.update(providerID, item.model, (model) => {
|
|
80
|
-
model.modelID =
|
|
80
|
+
model.modelID = ID12.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 make9(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 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./file-zw0jxv6w.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./file-
|
|
6
|
+
Service35,
|
|
7
|
+
node38
|
|
8
|
+
} from "./file-4zqvh54v.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./file-
|
|
10
|
+
Service56,
|
|
11
|
+
node59
|
|
12
|
+
} from "./file-y3ak5rv5.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./file-
|
|
14
|
+
Service45,
|
|
15
|
+
node48
|
|
16
|
+
} from "./file-1dgfjwgv.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./file-9rqn6x4v.js";
|
|
@@ -22,26 +22,26 @@ import {
|
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
name: () =>
|
|
25
|
+
Service: () => Service34,
|
|
26
|
+
layer: () => layer14,
|
|
27
|
+
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node37
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
33
33
|
import { Context, Effect, Fiber, Layer, PubSub, Semaphore, Stream } from "effect";
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
|
-
var
|
|
36
|
+
var name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service34 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const permission = yield*
|
|
40
|
+
var layer14 = Layer.effect(Service34, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service35;
|
|
42
|
+
const tools = yield* Service45;
|
|
43
|
+
const bus = yield* Service79;
|
|
44
|
+
const permission = yield* Service56;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -62,7 +62,7 @@ var layer12 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
62
62
|
output: tool.outputSchema ?? {},
|
|
63
63
|
execute: (input, context) => Effect.gen(function* () {
|
|
64
64
|
yield* permission.assert({
|
|
65
|
-
action:
|
|
65
|
+
action: name13(tool.server, tool.name),
|
|
66
66
|
resources: ["*"],
|
|
67
67
|
save: ["*"],
|
|
68
68
|
metadata: {},
|
|
@@ -99,7 +99,7 @@ var layer12 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
99
99
|
output: result.structured ?? (text === "" ? null : text),
|
|
100
100
|
...content.length === 0 ? {} : { content }
|
|
101
101
|
};
|
|
102
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
102
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name13(tool.server, tool.name)}` })))
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -112,12 +112,12 @@ var layer12 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
112
112
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
113
113
|
const updates = yield* PubSub.subscribe(changes);
|
|
114
114
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
115
|
-
return
|
|
115
|
+
return Service34.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
116
116
|
}));
|
|
117
|
-
var
|
|
118
|
-
service:
|
|
119
|
-
layer:
|
|
120
|
-
deps: [
|
|
117
|
+
var node37 = makeLocationNode({
|
|
118
|
+
service: Service34,
|
|
119
|
+
layer: layer14,
|
|
120
|
+
deps: [node48, node38, node84, node59]
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
export { namespace2,
|
|
123
|
+
export { namespace2, name13, Service34, layer14, node37, exports_mcp3 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./file-
|
|
3
|
+
} from "./file-9khdf5s3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
ID13
|
|
6
|
+
} from "./file-yhks5pv3.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/gitlab.ts
|
|
9
9
|
import os from "os";
|
|
@@ -33,7 +33,7 @@ var GitLabPlugin2 = define({
|
|
|
33
33
|
});
|
|
34
34
|
}));
|
|
35
35
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
36
|
-
if (evt.model.providerID !==
|
|
36
|
+
if (evt.model.providerID !== ID13.gitlab)
|
|
37
37
|
return;
|
|
38
38
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
39
39
|
const id = evt.model.modelID ?? evt.model.id;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
fromPromise2
|
|
3
3
|
} from "./file-zr2ceqn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
Service53
|
|
6
|
+
} from "./file-qmj11y7g.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./file-9rqn6x4v.js";
|
|
@@ -13,7 +13,7 @@ var exports_module = {};
|
|
|
13
13
|
__export(exports_module, {
|
|
14
14
|
LoadError: () => LoadError2,
|
|
15
15
|
PluginModule: () => exports_module,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make7
|
|
17
17
|
});
|
|
18
18
|
import { Host } from "@opencode/plugin/host";
|
|
19
19
|
import { createPluginSources } from "@opencode/plugin/source";
|
|
@@ -22,8 +22,8 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
|
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { stat } from "node:fs/promises";
|
|
24
24
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
25
|
-
var
|
|
26
|
-
const watcher = yield*
|
|
25
|
+
var make7 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
+
const watcher = yield* Service53;
|
|
27
27
|
const scope = yield* Effect.scope;
|
|
28
28
|
const runPromise = yield* FiberSet.makeRuntimePromise();
|
|
29
29
|
const changes = yield* PubSub.unbounded();
|
|
@@ -102,4 +102,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
|
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { make7, LoadError2, exports_module };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service80,
|
|
3
|
+
node85
|
|
4
|
+
} from "./file-sfegc1hb.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
7
|
} from "./file-f828m53h.js";
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
ListInput: () =>
|
|
16
|
+
ID: () => ID6,
|
|
17
|
+
Info: () => Info20,
|
|
18
|
+
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
20
|
Service: () => Service57,
|
|
21
21
|
node: () => node60
|
|
@@ -25,9 +25,9 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
28
|
+
var ID6 = PermissionSaved.ID;
|
|
29
|
+
var Info20 = PermissionSaved.Info;
|
|
30
|
+
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
33
33
|
var AddInput2 = Schema.Struct({
|
|
@@ -39,7 +39,7 @@ var AddInput2 = Schema.Struct({
|
|
|
39
39
|
class Service57 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
41
|
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
42
|
-
const db = (yield*
|
|
42
|
+
const db = (yield* Service80).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
45
45
|
return rows.map((row) => ({
|
|
@@ -53,7 +53,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
53
53
|
if (!input.resources.length)
|
|
54
54
|
return;
|
|
55
55
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
56
|
-
id:
|
|
56
|
+
id: ID6.create(),
|
|
57
57
|
project_id: input.projectID,
|
|
58
58
|
action: input.action,
|
|
59
59
|
resource
|
|
@@ -64,6 +64,6 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
64
64
|
});
|
|
65
65
|
return Service57.of({ list, add, remove });
|
|
66
66
|
}));
|
|
67
|
-
var node60 = makeGlobalNode({ service: Service57, layer, deps: [
|
|
67
|
+
var node60 = makeGlobalNode({ service: Service57, layer, deps: [node85] });
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { ID6, Info20, ListInput4, AddInput2, Service57, node60, exports_saved };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./file-
|
|
3
|
+
} from "./file-ykhkvv1t.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./file-
|
|
6
|
+
} from "./file-wepxzacc.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./file-9rqn6x4v.js";
|
|
@@ -13,12 +13,12 @@ var exports_database = {};
|
|
|
13
13
|
__export(exports_database, {
|
|
14
14
|
Database: () => exports_database,
|
|
15
15
|
Options: () => Options11,
|
|
16
|
-
Service: () =>
|
|
17
|
-
configured: () =>
|
|
16
|
+
Service: () => Service80,
|
|
17
|
+
configured: () => configured13,
|
|
18
18
|
configuredClient: () => configuredClient2,
|
|
19
|
-
layer: () =>
|
|
19
|
+
layer: () => layer26,
|
|
20
20
|
layerFromClient: () => layerFromClient2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node85
|
|
22
22
|
});
|
|
23
23
|
import { sqliteLayer, supportsForeignKeyToggle, supportsTuningPragmas } from "#sqlite";
|
|
24
24
|
import { Context, Effect, Layer, Schema, Semaphore } from "effect";
|
|
@@ -30,9 +30,9 @@ var Options11 = Schema.Struct({
|
|
|
30
30
|
path: Schema.optional(Schema.String)
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class Service80 extends Context.Service()("@opencode/storage/Database") {
|
|
34
34
|
}
|
|
35
|
-
var databaseLayer = (lock) => Layer.effect(
|
|
35
|
+
var databaseLayer = (lock) => Layer.effect(Service80, Effect.gen(function* () {
|
|
36
36
|
const db = yield* makeDatabase;
|
|
37
37
|
if (supportsTuningPragmas) {
|
|
38
38
|
yield* db.run("PRAGMA journal_mode = WAL");
|
|
@@ -56,7 +56,7 @@ function lockFor(filename) {
|
|
|
56
56
|
locks.set(filename, lock);
|
|
57
57
|
return lock;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function layer26(options = { path: ":memory:" }) {
|
|
60
60
|
return Layer.unwrap(Effect.gen(function* () {
|
|
61
61
|
const provide = (filename) => databaseLayer(filename === ":memory:" ? Semaphore.make(1) : Effect.succeed(lockFor(filename))).pipe(Layer.provide(sqliteLayer({ filename })));
|
|
62
62
|
const filename = options.path ?? ":memory:";
|
|
@@ -67,16 +67,16 @@ function layer25(options = { path: ":memory:" }) {
|
|
|
67
67
|
}));
|
|
68
68
|
}
|
|
69
69
|
var layerFromClient2 = databaseLayer(Semaphore.make(1));
|
|
70
|
-
function
|
|
71
|
-
return makeGlobalNode({ service:
|
|
70
|
+
function configured13(options) {
|
|
71
|
+
return makeGlobalNode({ service: Service80, layer: layer26(options), deps: [Global.node] });
|
|
72
72
|
}
|
|
73
73
|
function configuredClient2(client) {
|
|
74
74
|
return makeGlobalNode({
|
|
75
|
-
service:
|
|
75
|
+
service: Service80,
|
|
76
76
|
layer: layerFromClient2.pipe(Layer.provide(client)),
|
|
77
77
|
deps: [Global.node]
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var node85 = configured13({ path: ":memory:" });
|
|
81
81
|
|
|
82
|
-
export { Options11,
|
|
82
|
+
export { Options11, Service80, layer26, layerFromClient2, configured13, configuredClient2, node85, exports_database };
|