@opencode-ai/core 0.0.0-dev-19236 → 0.0.0-dev-19237
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 +59 -59
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +7 -7
- package/dist/bus.js +52 -52
- package/dist/catalog.js +56 -56
- package/dist/chunks/{file-qq11w61w.js → file-00z3vp5f.js} +3 -3
- package/dist/chunks/{file-5fhcw59z.js → file-03ssqq1h.js} +39 -39
- package/dist/chunks/{file-ebtdd58c.js → file-0jb3k8j6.js} +21 -21
- package/dist/chunks/{file-2k8khapm.js → file-0jwsre1p.js} +4 -4
- package/dist/chunks/{file-4e8crvtb.js → file-0p6bnn4j.js} +10 -10
- package/dist/chunks/{file-sd8ec36g.js → file-0wagesx1.js} +2 -2
- package/dist/chunks/{file-p0fvx2b7.js → file-129m3zyv.js} +7 -7
- package/dist/chunks/{file-at07c4b9.js → file-179n7qcx.js} +12 -12
- package/dist/chunks/{file-yp2x3t23.js → file-1acjjqhc.js} +3 -3
- package/dist/chunks/{file-8p628rfe.js → file-1j6fw132.js} +20 -20
- package/dist/chunks/{file-btr637ng.js → file-1jpftfmz.js} +42 -42
- package/dist/chunks/{file-3s2nsa7k.js → file-1nk2mnc0.js} +3 -3
- package/dist/chunks/{file-hczx788n.js → file-1vkgnbk5.js} +9 -9
- package/dist/chunks/{file-1fyf70sm.js → file-1zkb17nt.js} +3 -3
- package/dist/chunks/{file-6h73sxmp.js → file-2402vzrj.js} +4 -4
- package/dist/chunks/{file-pwphe3rf.js → file-2931d2p1.js} +10 -10
- package/dist/chunks/{file-64hre8q8.js → file-2hgwbbq1.js} +28 -28
- package/dist/chunks/{file-2gtf4gxt.js → file-2j2akc50.js} +7 -7
- package/dist/chunks/{file-7stz268c.js → file-2n0rqa47.js} +39 -39
- package/dist/chunks/{file-cctcmebf.js → file-2rx0c1se.js} +2 -2
- package/dist/chunks/{file-qyg26a5q.js → file-32vaat9j.js} +67 -67
- package/dist/chunks/{file-m25102gb.js → file-339x25ws.js} +5 -5
- package/dist/chunks/{file-3k4x7jps.js → file-36srvmcg.js} +8 -8
- package/dist/chunks/{file-1mrma768.js → file-3cm4x8pz.js} +3 -3
- package/dist/chunks/{file-vz6nxp08.js → file-3dab0e5z.js} +16 -16
- package/dist/chunks/{file-4z3jhc10.js → file-3f4r80p6.js} +42 -42
- package/dist/chunks/{file-65g4zw8b.js → file-3n69sb31.js} +11 -11
- package/dist/chunks/{file-jfx7w4w0.js → file-3v1vnpky.js} +55 -55
- package/dist/chunks/{file-bsa9yb1r.js → file-3wwk5jwz.js} +29 -29
- package/dist/chunks/{file-y8r8mqe0.js → file-3y04nngn.js} +18 -18
- package/dist/chunks/{file-sgecvmzg.js → file-3zf7jj5c.js} +29 -29
- package/dist/chunks/{file-jasnfvjs.js → file-46e97tr7.js} +7 -7
- package/dist/chunks/{file-hjt4xg1x.js → file-47gsdddb.js} +6 -6
- package/dist/chunks/{file-4skn7rc2.js → file-4c7fwq4e.js} +21 -21
- package/dist/chunks/{file-q6ypxst3.js → file-4pgqfzd8.js} +4 -4
- package/dist/chunks/{file-tjjz5xwe.js → file-4v4ajd06.js} +5 -5
- package/dist/chunks/{file-zkj92s1w.js → file-52bfwkce.js} +5 -5
- package/dist/chunks/{file-hx6eb5yw.js → file-595kwe3a.js} +1 -1
- package/dist/chunks/{file-303p9w1h.js → file-5dhjvcph.js} +4 -4
- package/dist/chunks/{file-8ej6t0kx.js → file-5f95ff4q.js} +21 -21
- package/dist/chunks/{file-skgjtp1k.js → file-5h5dsh0k.js} +29 -29
- package/dist/chunks/{file-5sqy5p9k.js → file-5rdj9hmq.js} +10 -10
- package/dist/chunks/{file-p742g7s6.js → file-5vgh9pjn.js} +22 -22
- package/dist/chunks/{file-3ew3pzd4.js → file-654kmdbf.js} +4 -4
- package/dist/chunks/{file-4xx57fsq.js → file-6652nm96.js} +7 -7
- package/dist/chunks/{file-veabk5tt.js → file-6h414ywr.js} +3 -3
- package/dist/chunks/{file-ga7x5g5r.js → file-6njxrdza.js} +13 -13
- package/dist/chunks/{file-4qjmbshy.js → file-6r2w4rfh.js} +24 -24
- package/dist/chunks/{file-qvrpv7pw.js → file-71n2k0sw.js} +21 -21
- package/dist/chunks/{file-0gfv995g.js → file-7d289b1g.js} +31 -31
- package/dist/chunks/{file-8dv8mw3k.js → file-7fxxes5g.js} +6 -6
- package/dist/chunks/{file-bj16ny09.js → file-7mcdhjjw.js} +34 -34
- package/dist/chunks/{file-swhyn6z2.js → file-7qhv6080.js} +13 -13
- package/dist/chunks/{file-jg8hpbdb.js → file-7vmn5jxr.js} +15 -15
- package/dist/chunks/{file-b01ryz8d.js → file-7yr2wfkw.js} +13 -13
- package/dist/chunks/{file-sbnvhk9g.js → file-88nptzkr.js} +19 -19
- package/dist/chunks/{file-1pdtxp2d.js → file-89cfd633.js} +1 -1
- package/dist/chunks/{file-7grmgsg7.js → file-8fhts7ts.js} +3 -3
- package/dist/chunks/{file-bwrfg74g.js → file-8kpcqxj9.js} +11 -11
- package/dist/chunks/{file-1wfjb4fb.js → file-8tq3sb4p.js} +1 -1
- package/dist/chunks/{file-8b48ft5s.js → file-934h7amq.js} +28 -28
- package/dist/chunks/{file-75yf2d83.js → file-97f5v037.js} +7 -7
- package/dist/chunks/{file-jee1seff.js → file-9938j897.js} +7 -7
- package/dist/chunks/{file-65dn8j3v.js → file-9qnjdkjv.js} +13 -13
- package/dist/chunks/{file-x5wdkkrz.js → file-9ss86a26.js} +9 -9
- package/dist/chunks/{file-wdmsjcnj.js → file-9t0ny11b.js} +9 -9
- package/dist/chunks/{file-066kw2xy.js → file-9vw7vcdh.js} +3 -3
- package/dist/chunks/{file-ht963k40.js → file-9z6xj13s.js} +5 -5
- package/dist/chunks/{file-yb55v587.js → file-a1cchfxj.js} +3 -3
- package/dist/chunks/{file-q87c86rb.js → file-a6m8wy4f.js} +14 -14
- package/dist/chunks/{file-17hja9f4.js → file-acd73yp7.js} +7 -7
- package/dist/chunks/{file-66hkt5g6.js → file-ajc7k593.js} +53 -53
- package/dist/chunks/{file-yg7sb877.js → file-ajtjthsy.js} +1 -1
- package/dist/chunks/{file-wj16sq0a.js → file-asf9wq49.js} +10 -10
- package/dist/chunks/{file-rs2df3q6.js → file-avf2awfk.js} +6 -6
- package/dist/chunks/{file-y1r8n7hf.js → file-avffydqw.js} +25 -25
- package/dist/chunks/{file-gst7axd9.js → file-baaqp4zd.js} +3 -3
- package/dist/chunks/{file-t9s2ckae.js → file-bffddetr.js} +19 -19
- package/dist/chunks/{file-v7z8bxbw.js → file-btqahyaw.js} +10 -10
- package/dist/chunks/{file-9m6tffr9.js → file-bvza9xe3.js} +80 -80
- package/dist/chunks/{file-te19xw12.js → file-c1v5b0wv.js} +11 -11
- package/dist/chunks/{file-z0xt53t1.js → file-c2m11pw9.js} +9 -9
- package/dist/chunks/{file-z98ztr55.js → file-c7jdh4x9.js} +7 -7
- package/dist/chunks/{file-skb9jyq5.js → file-cdbx1xhb.js} +40 -40
- package/dist/chunks/{file-hht6jkqw.js → file-cj6bar7a.js} +17 -17
- package/dist/chunks/{file-7yqjxrmz.js → file-cpy6gm2a.js} +3 -3
- package/dist/chunks/{file-2yb0w078.js → file-crtth3kn.js} +3 -3
- package/dist/chunks/{file-z2aqhqx5.js → file-csm9f11b.js} +12 -12
- package/dist/chunks/{file-jdnm8yea.js → file-ctpqmbes.js} +9 -9
- package/dist/chunks/{file-rxkkpkzx.js → file-d0e4f7jz.js} +6 -6
- package/dist/chunks/{file-g2gt0w0k.js → file-d72308c8.js} +1 -1
- package/dist/chunks/{file-rc3fvhed.js → file-d9ywy8qq.js} +156 -156
- package/dist/chunks/{file-vd657q2k.js → file-dhv13n9b.js} +22 -22
- package/dist/chunks/{file-cek9jpa8.js → file-dm4t3jdg.js} +22 -22
- package/dist/chunks/{file-km1d5px4.js → file-dt1n4p4v.js} +2 -2
- package/dist/chunks/{file-7qxyrcbr.js → file-e2611c6v.js} +9 -9
- package/dist/chunks/{file-af4svgqg.js → file-e5w0frp6.js} +9 -9
- package/dist/chunks/{file-f73jprk4.js → file-e5zee4hv.js} +9 -9
- package/dist/chunks/{file-sb82pmjh.js → file-e9bp071a.js} +1 -1
- package/dist/chunks/{file-defv84qj.js → file-en1kwsfy.js} +9 -9
- package/dist/chunks/{file-w3v7t084.js → file-ewjc977p.js} +31 -31
- package/dist/chunks/{file-4fv3rmvn.js → file-fhm8k5s2.js} +16 -16
- package/dist/chunks/{file-sn5ar8h4.js → file-fjsjs8gs.js} +1 -1
- package/dist/chunks/{file-08abk570.js → file-fkpavqt9.js} +23 -23
- package/dist/chunks/{file-jkbrzrrv.js → file-fqsf7web.js} +27 -27
- package/dist/chunks/{file-pbhkjpds.js → file-fz1pdqz4.js} +3 -3
- package/dist/chunks/{file-p5a9pe6q.js → file-g2zsh1qa.js} +20 -20
- package/dist/chunks/{file-4rx2ve8e.js → file-g3fmkc14.js} +30 -30
- package/dist/chunks/{file-qp4m35b7.js → file-g4j6k2pz.js} +11 -11
- package/dist/chunks/{file-mtq6xxnx.js → file-g8d3gcyj.js} +3 -3
- package/dist/chunks/{file-6pdxptdt.js → file-gpkgrk3z.js} +1 -1
- package/dist/chunks/{file-fyvm2v1v.js → file-hadacg6q.js} +4 -4
- package/dist/chunks/{file-jnv61ywj.js → file-hc2w1ek9.js} +12 -12
- package/dist/chunks/{file-35agntz9.js → file-hcmmkp4d.js} +29 -29
- package/dist/chunks/{file-1zremn8p.js → file-hk900qzg.js} +22 -22
- package/dist/chunks/{file-bcezcar3.js → file-hnyf01b0.js} +3 -3
- package/dist/chunks/{file-10ac5mb1.js → file-hr77wr0b.js} +2 -2
- package/dist/chunks/{file-g2dy4bvs.js → file-hrvm11jt.js} +1 -1
- package/dist/chunks/{file-rap9a73h.js → file-ht5y0zrb.js} +4 -4
- package/dist/chunks/{file-kvsjn1dr.js → file-hw4pv20g.js} +1 -1
- package/dist/chunks/{file-xbh233pe.js → file-hw71hpyd.js} +6 -6
- package/dist/chunks/{file-049bzhxb.js → file-j2sq7sy2.js} +8 -8
- package/dist/chunks/{file-39cmf8tc.js → file-jb4h4dr1.js} +22 -22
- package/dist/chunks/{file-zwjsydpj.js → file-jntn13wn.js} +7 -7
- package/dist/chunks/{file-fd12r7gp.js → file-jwd6g0dr.js} +8 -8
- package/dist/chunks/{file-xqrgenjs.js → file-k4b13ztk.js} +11 -11
- package/dist/chunks/{file-wt8jf74x.js → file-k50qz9pg.js} +14 -14
- package/dist/chunks/file-k7jgc7wy.js +22 -0
- package/dist/chunks/{file-nw7wp838.js → file-kkq1zppc.js} +1 -1
- package/dist/chunks/{file-dtb0ws7g.js → file-ktr5pece.js} +286 -286
- package/dist/chunks/{file-9ddpxva0.js → file-m0m2gtc4.js} +16 -16
- package/dist/chunks/{file-a9zfrvqc.js → file-m3fm0fm8.js} +3 -3
- package/dist/chunks/{file-hg836chd.js → file-m3p4mq0k.js} +22 -22
- package/dist/chunks/{file-kt8ej3md.js → file-m4je5jzf.js} +15 -15
- package/dist/chunks/{file-sthxzpft.js → file-mb6d61vn.js} +21 -21
- package/dist/chunks/{file-mw9hhfke.js → file-md9ad6xb.js} +26 -26
- package/dist/chunks/{file-56gdpj1q.js → file-mfqp6xfm.js} +4 -4
- package/dist/chunks/{file-73tb2d7t.js → file-mhkvc446.js} +2 -2
- package/dist/chunks/{file-cbq8agb2.js → file-mhq5r63x.js} +43 -43
- package/dist/chunks/{file-0gbwq0hg.js → file-mmkbhfjj.js} +21 -21
- package/dist/chunks/{file-6m3yr79m.js → file-mr1e9xzf.js} +27 -27
- package/dist/chunks/{file-sxxkfwq9.js → file-mt2hp97g.js} +32 -32
- package/dist/chunks/{file-ybjzef57.js → file-mtqwgfqs.js} +7 -7
- package/dist/chunks/{file-99f55ymk.js → file-n5f8hq7m.js} +5 -5
- package/dist/chunks/{file-00pw28xp.js → file-na3f2bx6.js} +29 -29
- package/dist/chunks/{file-kq7ayz9w.js → file-p9tbkvt9.js} +9 -9
- package/dist/chunks/{file-j935v87r.js → file-paphc93g.js} +2 -2
- package/dist/chunks/file-pegy9qka.js +247 -0
- package/dist/chunks/{file-jw46jgr9.js → file-pmfjm0ds.js} +16 -16
- package/dist/chunks/{file-qqff7yvw.js → file-pmtj7vd7.js} +8 -8
- package/dist/chunks/{file-x7ynhfcf.js → file-prt369qg.js} +28 -28
- package/dist/chunks/{file-kkq7fz0t.js → file-ptz1ztyq.js} +5 -5
- package/dist/chunks/{file-3qysrpvj.js → file-q3cgsmnj.js} +18 -18
- package/dist/chunks/{file-rg4vxe4z.js → file-q604e6nk.js} +12 -12
- package/dist/chunks/{file-yqgm3h52.js → file-qeka1wpx.js} +16 -16
- package/dist/chunks/{file-39hqv1cv.js → file-qrjx5gd0.js} +20 -20
- package/dist/chunks/{file-m7fncjt1.js → file-qya9qmjj.js} +21 -21
- package/dist/chunks/{file-xb5gd69p.js → file-r528y2ap.js} +10 -10
- package/dist/chunks/{file-j01ht7zb.js → file-r911hjta.js} +17 -17
- package/dist/chunks/{file-759pz1a2.js → file-rjqxra3c.js} +7 -7
- package/dist/chunks/{file-14ek8s6r.js → file-rjrsppvq.js} +13 -13
- package/dist/chunks/{file-81wsxtk4.js → file-rmeyr0zp.js} +28 -28
- package/dist/chunks/{file-6c94r859.js → file-rmftyprg.js} +35 -35
- package/dist/chunks/{file-7ntygjpx.js → file-rmjbkvqc.js} +5 -5
- package/dist/chunks/{file-y0hxjsdz.js → file-rrp6adwx.js} +16 -16
- package/dist/chunks/{file-3hfq6gnd.js → file-rtgawa8q.js} +3 -3
- package/dist/chunks/{file-f5n5pagv.js → file-rtmnkjh7.js} +7 -7
- package/dist/chunks/{file-6gg9h021.js → file-rvvz5b9h.js} +12 -12
- package/dist/chunks/{file-rh7y5xh0.js → file-s0gpr7nd.js} +1 -1
- package/dist/chunks/{file-dns6mj49.js → file-s0xr38aj.js} +7 -7
- package/dist/chunks/{file-nknpaanp.js → file-ssh3ax1h.js} +9 -9
- package/dist/chunks/{file-phke90h3.js → file-t7xph3b4.js} +4 -4
- package/dist/chunks/{file-vqv04s3v.js → file-t9v5xvk5.js} +1 -1
- package/dist/chunks/{file-0nv781ed.js → file-tgta4dgx.js} +25 -25
- package/dist/chunks/{file-ts767fjw.js → file-tjjbrw7w.js} +16 -16
- package/dist/chunks/{file-tsv3p22z.js → file-tmgtet36.js} +19 -19
- package/dist/chunks/{file-wgcrfrpe.js → file-tpqfb4gb.js} +5 -5
- package/dist/chunks/{file-dm7yrpwm.js → file-ttmf2k06.js} +3 -3
- package/dist/chunks/{file-r5bh2vbg.js → file-tvqb7ptv.js} +8 -8
- package/dist/chunks/{file-p2bhzj9e.js → file-tvzx8eep.js} +7 -7
- package/dist/chunks/{file-xysfxsss.js → file-tymq08ss.js} +19 -19
- package/dist/chunks/{file-vhjdrq5e.js → file-tyqynq3b.js} +4 -4
- package/dist/chunks/{file-19knqdbs.js → file-v6khqva7.js} +1 -1
- package/dist/chunks/{file-kgx56mxq.js → file-v6vne6e8.js} +82 -82
- package/dist/chunks/{file-q06n7zjg.js → file-v8sg56bb.js} +6 -6
- package/dist/chunks/{file-75w3e9am.js → file-v92wz3b8.js} +30 -30
- package/dist/chunks/{file-d8ch6z4t.js → file-v940708v.js} +22 -22
- package/dist/chunks/{file-754np4jn.js → file-v961h6fn.js} +19 -19
- package/dist/chunks/{file-j5208yae.js → file-va5qff5x.js} +3 -3
- package/dist/chunks/{file-428apkw1.js → file-vgjr9pam.js} +15 -15
- package/dist/chunks/{file-z9bw2vtt.js → file-vn9j9bbf.js} +14 -14
- package/dist/chunks/{file-ge7ds67b.js → file-vnzc40bj.js} +1 -1
- package/dist/chunks/{file-k7ry919m.js → file-vt4ykcc5.js} +18 -18
- package/dist/chunks/{file-0kyj2j0j.js → file-vypq2r11.js} +12 -12
- package/dist/chunks/{file-zmscwvaw.js → file-w07k5xss.js} +10 -10
- package/dist/chunks/{file-7n7dggr2.js → file-w4d6nzh9.js} +7 -7
- package/dist/chunks/{file-rzmvvtd3.js → file-waegbgsk.js} +16 -16
- package/dist/chunks/{file-kmcjptjm.js → file-wefnnxbq.js} +1 -1
- package/dist/chunks/{file-aj358c6r.js → file-wfr7fczh.js} +12 -12
- package/dist/chunks/{file-qpfcbq6z.js → file-whc6z58z.js} +7 -7
- package/dist/chunks/{file-cryxk9jx.js → file-wt9rnddh.js} +19 -19
- package/dist/chunks/{file-b82xwvp7.js → file-wzds84qh.js} +5 -5
- package/dist/chunks/{file-fksjs2ph.js → file-x6pvac8r.js} +45 -45
- package/dist/chunks/{file-17qydk6p.js → file-x9efqt87.js} +18 -18
- package/dist/chunks/{file-3vtq9f9y.js → file-xb70hszk.js} +10 -10
- package/dist/chunks/{file-04k4zjse.js → file-xdrtxdpg.js} +15 -15
- package/dist/chunks/{file-nxrz604p.js → file-xjde6dvc.js} +7 -7
- package/dist/chunks/{file-76wr4mq2.js → file-xr5vwsd4.js} +7 -7
- package/dist/chunks/{file-ws7sq7f3.js → file-xy58tbcv.js} +25 -25
- package/dist/chunks/{file-c36t02qb.js → file-y37eft65.js} +28 -28
- package/dist/chunks/{file-a73hhrgc.js → file-y3cm0t0c.js} +10 -10
- package/dist/chunks/{file-ez0vzke5.js → file-y5z1eg03.js} +7 -7
- package/dist/chunks/{file-kk3rr3qh.js → file-yfbd16n1.js} +3 -3
- package/dist/chunks/{file-fqrxtbzb.js → file-yq559278.js} +5 -5
- package/dist/chunks/{file-m6gkbcmq.js → file-yqr8waf2.js} +32 -32
- package/dist/chunks/{file-kjsgxbnr.js → file-yt0vhsen.js} +19 -19
- package/dist/chunks/{file-33j3s859.js → file-z3h7hm3n.js} +3 -3
- package/dist/chunks/{file-29x78va6.js → file-z63w68vq.js} +4 -4
- package/dist/chunks/{file-ampcz2zy.js → file-z7ezyskm.js} +28 -28
- package/dist/chunks/{file-wd9xnjkn.js → file-z7n23fv9.js} +20 -20
- package/dist/chunks/{file-v24vjsdb.js → file-zmy6e5rj.js} +47 -47
- package/dist/chunks/{file-zxhyecep.js → file-zp70bgmg.js} +26 -26
- package/dist/chunks/{file-sy2xv61m.js → file-ztxeb84j.js} +1 -1
- package/dist/chunks/{file-bnce5g0a.js → file-zy8c9jht.js} +17 -17
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +55 -55
- package/dist/config/discovery.js +56 -56
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +86 -86
- package/dist/config/plugin/command.js +172 -172
- package/dist/config/plugin/compaction.js +124 -124
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +86 -86
- package/dist/config/plugin/instruction.js +62 -62
- package/dist/config/plugin/location-watcher.js +86 -86
- package/dist/config/plugin/mcp.js +95 -95
- package/dist/config/plugin/policy.js +86 -86
- package/dist/config/plugin/provider.js +85 -85
- package/dist/config/plugin/reference.js +88 -88
- package/dist/config/plugin/shell.js +89 -89
- package/dist/config/plugin/skill-file.js +71 -71
- package/dist/config/plugin/skill.js +106 -106
- package/dist/config/plugin/snapshot.js +86 -86
- package/dist/config/plugin/source.js +89 -89
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +87 -87
- package/dist/config/plugin/worktree.js +87 -87
- package/dist/config/variable.js +2 -2
- package/dist/config.js +92 -92
- package/dist/credential.js +59 -59
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +38 -38
- package/dist/database/v1-migration.bun.js +14 -14
- package/dist/effect/app-node-builder.js +236 -236
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +13 -13
- package/dist/file-mutation.js +61 -61
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +70 -70
- package/dist/form.js +63 -63
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +60 -60
- package/dist/generate.js +64 -64
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- 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 +62 -62
- package/dist/instructions/builtins.js +61 -61
- package/dist/instructions/index.js +5 -5
- package/dist/integration.js +63 -63
- package/dist/job.js +57 -57
- package/dist/kv.js +52 -52
- package/dist/location-activity.js +60 -60
- package/dist/location-mutation.js +60 -60
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +307 -307
- package/dist/location.js +61 -61
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +76 -76
- package/dist/mcp/instructions.js +92 -92
- package/dist/mcp/stdio.js +61 -61
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +59 -59
- package/dist/model.js +10 -10
- package/dist/models-dev.js +65 -65
- package/dist/permission/saved.js +59 -59
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +83 -83
- package/dist/persistent-pty/index.js +64 -64
- package/dist/persistent-pty.js +50 -50
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +69 -69
- 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 +54 -54
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +89 -89
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +88 -88
- package/dist/plugin/provider/cloudflare-workers-ai.js +88 -88
- package/dist/plugin/provider/configured.js +86 -86
- package/dist/plugin/provider/github-copilot.js +57 -57
- 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 +53 -53
- package/dist/plugin/provider/lmstudio.js +89 -89
- package/dist/plugin/provider/modal.js +56 -56
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +89 -89
- package/dist/plugin/provider/openai.js +56 -56
- package/dist/plugin/provider/opencode.js +53 -53
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +89 -89
- package/dist/plugin/provider/xai.js +54 -54
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +122 -122
- package/dist/plugin/sdk.js +55 -55
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +104 -104
- package/dist/plugin/supervisor.js +300 -300
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +59 -59
- package/dist/plugin/vcs/hg.js +59 -59
- package/dist/plugin/warming.js +85 -85
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +187 -187
- package/dist/project/schema.js +5 -5
- package/dist/project/sql.js +2 -2
- package/dist/project.js +62 -62
- package/dist/provider.js +5 -5
- package/dist/pty.js +64 -64
- package/dist/reference/instructions.js +60 -60
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +56 -56
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +60 -60
- package/dist/session/command.js +52 -52
- package/dist/session/compaction.js +100 -100
- package/dist/session/context.js +118 -118
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +125 -125
- package/dist/session/execution.js +96 -96
- package/dist/session/generate.js +117 -117
- package/dist/session/history.js +10 -10
- package/dist/session/inbox.js +63 -63
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +58 -58
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +68 -68
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +97 -97
- package/dist/session/projector.js +58 -58
- package/dist/session/prompt.js +74 -74
- package/dist/session/revert.js +61 -61
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +188 -188
- package/dist/session/runner/model.js +63 -63
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +91 -91
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +135 -135
- package/dist/session/shell.js +101 -101
- package/dist/session/skill.js +73 -73
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +12 -12
- package/dist/session/store.js +61 -61
- package/dist/session/subagent-job.js +171 -171
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +121 -121
- package/dist/session/to-session-error.js +80 -80
- package/dist/session/transfer.js +125 -125
- package/dist/session.js +180 -180
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +75 -75
- package/dist/skill.js +80 -80
- package/dist/snapshot.js +66 -66
- package/dist/tool/mcp.js +93 -93
- package/dist/tool/plugin/edit.js +88 -88
- package/dist/tool/plugin/glob.js +92 -92
- package/dist/tool/plugin/grep.js +90 -90
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +88 -88
- package/dist/tool/plugin/question.js +73 -73
- package/dist/tool/plugin/read.js +89 -89
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +81 -81
- package/dist/tool/plugin/subagent.js +178 -178
- package/dist/tool/plugin/webfetch.js +80 -80
- package/dist/tool/plugin/websearch.js +84 -84
- package/dist/tool/plugin/write.js +88 -88
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +3 -3
- 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/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +62 -62
- package/dist/websearch.js +58 -58
- package/dist/wellknown/plugin.js +53 -53
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +57 -57
- package/dist/worktree/git.js +2 -2
- package/dist/worktree/refresh.js +299 -299
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree.js +63 -63
- package/package.json +7 -7
- package/dist/chunks/file-g7tb25v3.js +0 -247
- package/dist/chunks/file-vz1btq9j.js +0 -22
- /package/dist/chunks/{file-qvbcabdc.js → file-9qm9egsn.js} +0 -0
- /package/dist/chunks/{file-b29mbqx6.js → file-d9wzmzc3.js} +0 -0
- /package/dist/chunks/{file-tag52meg.js → file-gmq3187j.js} +0 -0
- /package/dist/chunks/{file-eyx7m0wd.js → file-hpgd43jv.js} +0 -0
- /package/dist/chunks/{file-92k45pvj.js → file-zvrekwpq.js} +0 -0
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./file-982e01ww.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./file-
|
|
6
|
+
} from "./file-1nk2mnc0.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./file-
|
|
9
|
+
} from "./file-2j2akc50.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./file-
|
|
13
|
+
} from "./file-97f5v037.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./file-
|
|
16
|
+
} from "./file-hrvm11jt.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./file-
|
|
20
|
+
} from "./file-hr77wr0b.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
23
|
} from "./file-9rqn6x4v.js";
|
|
@@ -30,7 +30,7 @@ __export(exports_history, {
|
|
|
30
30
|
entriesForRunner: () => entriesForRunner2,
|
|
31
31
|
firstUserMessage: () => firstUserMessage2,
|
|
32
32
|
latestCompaction: () => latestCompaction2,
|
|
33
|
-
load: () =>
|
|
33
|
+
load: () => load3,
|
|
34
34
|
preview: () => preview2
|
|
35
35
|
});
|
|
36
36
|
import { and, asc, desc, eq, gte, sql } from "drizzle-orm";
|
|
@@ -48,7 +48,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID) {
|
|
|
48
48
|
const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), compaction ? gte(SessionMessageTable2.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.orDie);
|
|
49
49
|
return yield* Effect.forEach(rows, (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
|
|
50
50
|
});
|
|
51
|
-
var
|
|
51
|
+
var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID) {
|
|
52
52
|
return (yield* messageEntries(db, sessionID)).map((entry) => entry.message);
|
|
53
53
|
});
|
|
54
54
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions) {
|
|
@@ -84,4 +84,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
84
84
|
return message?.type === "user" ? message : undefined;
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
87
|
+
export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-
|
|
2
|
+
Service53
|
|
3
|
+
} from "./file-tpqfb4gb.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./file-
|
|
6
|
+
} from "./file-ht5y0zrb.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./file-
|
|
8
|
+
Service36
|
|
9
|
+
} from "./file-x6pvac8r.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
12
|
} from "./file-fxbjtjnd.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service53;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service36), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
makeMemoryDriver2
|
|
15
15
|
} from "./file-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./file-
|
|
17
|
+
Service72,
|
|
18
|
+
node77
|
|
19
|
+
} from "./file-xdrtxdpg.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./file-
|
|
21
|
+
Service71,
|
|
22
|
+
node75
|
|
23
|
+
} from "./file-qrjx5gd0.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./file-9rqn6x4v.js";
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service70,
|
|
33
|
+
node: () => node74
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode-ai/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service70,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node74,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service70 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service72;
|
|
66
|
+
const workspace = yield* Service71;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service70.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node74 = makeLocationNode({
|
|
71
|
+
service: Service70,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node77, node75]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service70, node74, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-
|
|
2
|
+
ID18
|
|
3
|
+
} from "./file-52bfwkce.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
6
|
} from "./file-x1b8g1yb.js";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID18.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID18.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service77,
|
|
3
|
+
node82
|
|
4
|
+
} from "./file-5rdj9hmq.js";
|
|
5
5
|
import {
|
|
6
6
|
ID9,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./file-
|
|
7
|
+
Service60,
|
|
8
|
+
node64
|
|
9
|
+
} from "./file-v961h6fn.js";
|
|
10
10
|
import {
|
|
11
11
|
Service62,
|
|
12
12
|
node66
|
|
13
|
-
} from "./file-
|
|
13
|
+
} from "./file-5f95ff4q.js";
|
|
14
14
|
import {
|
|
15
15
|
combine2
|
|
16
|
-
} from "./file-
|
|
16
|
+
} from "./file-97f5v037.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./file-
|
|
18
|
+
make15
|
|
19
|
+
} from "./file-vgjr9pam.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./file-
|
|
21
|
+
Service45,
|
|
22
|
+
node50
|
|
23
|
+
} from "./file-mr1e9xzf.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./file-
|
|
25
|
+
Service72,
|
|
26
|
+
node77
|
|
27
|
+
} from "./file-xdrtxdpg.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./file-
|
|
29
|
+
Service23,
|
|
30
|
+
node27
|
|
31
|
+
} from "./file-3y04nngn.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentNotFoundError2
|
|
34
|
-
} from "./file-
|
|
34
|
+
} from "./file-2j2akc50.js";
|
|
35
35
|
import {
|
|
36
36
|
entriesForRunner2
|
|
37
|
-
} from "./file-
|
|
37
|
+
} from "./file-tvqb7ptv.js";
|
|
38
|
+
import {
|
|
39
|
+
Service58,
|
|
40
|
+
node62
|
|
41
|
+
} from "./file-m0m2gtc4.js";
|
|
38
42
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} from "./file-
|
|
43
|
+
Service78,
|
|
44
|
+
node83
|
|
45
|
+
} from "./file-bffddetr.js";
|
|
42
46
|
import {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from "./file-
|
|
47
|
+
Service31,
|
|
48
|
+
node35
|
|
49
|
+
} from "./file-ewjc977p.js";
|
|
46
50
|
import {
|
|
47
|
-
|
|
51
|
+
Service30,
|
|
48
52
|
node34
|
|
49
|
-
} from "./file-
|
|
53
|
+
} from "./file-mmkbhfjj.js";
|
|
54
|
+
import {
|
|
55
|
+
Service25,
|
|
56
|
+
node30
|
|
57
|
+
} from "./file-waegbgsk.js";
|
|
50
58
|
import {
|
|
51
|
-
|
|
59
|
+
Service29,
|
|
52
60
|
node33
|
|
53
|
-
} from "./file-
|
|
61
|
+
} from "./file-pmfjm0ds.js";
|
|
62
|
+
import {
|
|
63
|
+
Service24,
|
|
64
|
+
node29
|
|
65
|
+
} from "./file-wt9rnddh.js";
|
|
54
66
|
import {
|
|
55
67
|
Service26,
|
|
56
68
|
node31
|
|
57
|
-
} from "./file-
|
|
58
|
-
import {
|
|
59
|
-
Service27,
|
|
60
|
-
node32
|
|
61
|
-
} from "./file-jw46jgr9.js";
|
|
62
|
-
import {
|
|
63
|
-
Service31,
|
|
64
|
-
node36
|
|
65
|
-
} from "./file-cryxk9jx.js";
|
|
66
|
-
import {
|
|
67
|
-
Service32,
|
|
68
|
-
node37
|
|
69
|
-
} from "./file-00pw28xp.js";
|
|
69
|
+
} from "./file-na3f2bx6.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} from "./file-
|
|
71
|
+
Service52,
|
|
72
|
+
node56
|
|
73
|
+
} from "./file-en1kwsfy.js";
|
|
74
74
|
import {
|
|
75
75
|
__export
|
|
76
76
|
} from "./file-9rqn6x4v.js";
|
|
@@ -78,31 +78,31 @@ import {
|
|
|
78
78
|
// src/session/context.ts
|
|
79
79
|
var exports_context = {};
|
|
80
80
|
__export(exports_context, {
|
|
81
|
-
Service: () =>
|
|
81
|
+
Service: () => Service22,
|
|
82
82
|
SessionContext: () => exports_context,
|
|
83
|
-
node: () =>
|
|
83
|
+
node: () => node26
|
|
84
84
|
});
|
|
85
85
|
import { Model } from "@opencode-ai/schema/model";
|
|
86
86
|
import { Context, Effect, Layer } from "effect";
|
|
87
87
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
88
|
-
class
|
|
88
|
+
class Service22 extends Context.Service()("@opencode/SessionContext") {
|
|
89
89
|
}
|
|
90
|
-
var layer = Layer.effect(
|
|
91
|
-
const agents = yield*
|
|
92
|
-
const builtins = yield*
|
|
90
|
+
var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
91
|
+
const agents = yield* Service60;
|
|
92
|
+
const builtins = yield* Service23;
|
|
93
93
|
const catalog = yield* Service62;
|
|
94
|
-
const db = (yield*
|
|
95
|
-
const discovery = yield*
|
|
96
|
-
const entries = yield*
|
|
97
|
-
const location = yield*
|
|
98
|
-
const mcpInstructions = yield*
|
|
99
|
-
const mcpTools = yield*
|
|
100
|
-
const models = yield*
|
|
101
|
-
const modelRequests = yield*
|
|
102
|
-
const referenceInstructions = yield*
|
|
103
|
-
const skillInstructions = yield*
|
|
104
|
-
const store = yield*
|
|
105
|
-
const registry = yield*
|
|
94
|
+
const db = (yield* Service77).db;
|
|
95
|
+
const discovery = yield* Service45;
|
|
96
|
+
const entries = yield* Service24;
|
|
97
|
+
const location = yield* Service72;
|
|
98
|
+
const mcpInstructions = yield* Service30;
|
|
99
|
+
const mcpTools = yield* Service31;
|
|
100
|
+
const models = yield* Service52;
|
|
101
|
+
const modelRequests = yield* Service26;
|
|
102
|
+
const referenceInstructions = yield* Service25;
|
|
103
|
+
const skillInstructions = yield* Service29;
|
|
104
|
+
const store = yield* Service58;
|
|
105
|
+
const registry = yield* Service78;
|
|
106
106
|
const resolveModel = (session) => models.resolve(session, catalog.model.available);
|
|
107
107
|
const selectTitle = Effect.fn("SessionContext.selectTitle")(function* (session) {
|
|
108
108
|
const agent = yield* agents.get(ID9.make("title"));
|
|
@@ -158,7 +158,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
158
158
|
agent: { ...agent, info: agent.info },
|
|
159
159
|
instructions: combine2([
|
|
160
160
|
loaded.builtins,
|
|
161
|
-
|
|
161
|
+
make15(loaded.tools.codeModeCatalog),
|
|
162
162
|
loaded.discovery,
|
|
163
163
|
loaded.skills,
|
|
164
164
|
loaded.references,
|
|
@@ -180,29 +180,29 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
180
180
|
tools: selection.tools
|
|
181
181
|
};
|
|
182
182
|
});
|
|
183
|
-
return
|
|
183
|
+
return Service22.of({ select, load, resolveModel, selectTitle, prepare: modelRequests.prepare });
|
|
184
184
|
}));
|
|
185
185
|
var MINIMAL_REASONING_VARIANTS = ["none", "minimal", "low"].map((id) => Model.VariantID.make(id));
|
|
186
|
-
var
|
|
187
|
-
service:
|
|
186
|
+
var node26 = makeLocationNode({
|
|
187
|
+
service: Service22,
|
|
188
188
|
layer,
|
|
189
189
|
deps: [
|
|
190
|
-
|
|
190
|
+
node64,
|
|
191
191
|
node66,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
node33,
|
|
192
|
+
node82,
|
|
193
|
+
node27,
|
|
194
|
+
node50,
|
|
195
|
+
node29,
|
|
196
|
+
node77,
|
|
198
197
|
node34,
|
|
198
|
+
node35,
|
|
199
|
+
node30,
|
|
200
|
+
node56,
|
|
199
201
|
node31,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
node32,
|
|
204
|
-
node57
|
|
202
|
+
node62,
|
|
203
|
+
node33,
|
|
204
|
+
node83
|
|
205
205
|
]
|
|
206
206
|
});
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { Service22, node26, exports_context };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
fromPromise2
|
|
3
3
|
} from "./file-b9wsbatv.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
Service39
|
|
6
|
+
} from "./file-dm4t3jdg.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: () => make4
|
|
17
17
|
});
|
|
18
18
|
import { Host } from "@opencode-ai/plugin/host";
|
|
19
19
|
import { createPluginSources } from "@opencode-ai/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 make4 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
+
const watcher = yield* Service39;
|
|
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 { make4, LoadError2, exports_module };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-
|
|
2
|
+
Service77
|
|
3
|
+
} from "./file-5rdj9hmq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
Service76
|
|
6
|
+
} from "./file-7qhv6080.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./file-
|
|
8
|
+
Service53
|
|
9
|
+
} from "./file-tpqfb4gb.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
12
|
} from "./file-fxbjtjnd.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./file-982e01ww.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError6,
|
|
18
18
|
MessageNotFoundError2,
|
|
19
19
|
MessageNotAssistantError2,
|
|
20
20
|
MessageIncompleteError2,
|
|
@@ -24,35 +24,35 @@ import {
|
|
|
24
24
|
CompactionConflictError2,
|
|
25
25
|
BusyError2,
|
|
26
26
|
InboxConflictError2
|
|
27
|
-
} from "./file-
|
|
27
|
+
} from "./file-2j2akc50.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionEvent2
|
|
30
30
|
} from "./file-mntxs535.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./file-
|
|
32
|
+
Service58
|
|
33
|
+
} from "./file-m0m2gtc4.js";
|
|
34
34
|
import {
|
|
35
35
|
Delivery2,
|
|
36
36
|
SyntheticPayload2,
|
|
37
|
-
|
|
38
|
-
} from "./file-
|
|
37
|
+
Service51
|
|
38
|
+
} from "./file-hk900qzg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./file-
|
|
40
|
+
Service49
|
|
41
|
+
} from "./file-3f4r80p6.js";
|
|
42
42
|
import {
|
|
43
43
|
prepare2
|
|
44
|
-
} from "./file-
|
|
44
|
+
} from "./file-hc2w1ek9.js";
|
|
45
45
|
import {
|
|
46
46
|
stage2,
|
|
47
47
|
clear2,
|
|
48
48
|
commit2
|
|
49
|
-
} from "./file-
|
|
49
|
+
} from "./file-0jb3k8j6.js";
|
|
50
50
|
import {
|
|
51
51
|
start2
|
|
52
|
-
} from "./file-
|
|
52
|
+
} from "./file-tvzx8eep.js";
|
|
53
53
|
import {
|
|
54
54
|
get4
|
|
55
|
-
} from "./file-
|
|
55
|
+
} from "./file-avf2awfk.js";
|
|
56
56
|
import {
|
|
57
57
|
__export
|
|
58
58
|
} from "./file-9rqn6x4v.js";
|
|
@@ -67,18 +67,18 @@ import { DateTime, Effect, Fiber, Schema, Scope } from "effect";
|
|
|
67
67
|
import { Event } from "@opencode-ai/schema/event";
|
|
68
68
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
69
69
|
var make13 = Effect.fn("Session.make")(function* () {
|
|
70
|
-
const bus = yield*
|
|
71
|
-
const database = yield*
|
|
72
|
-
const store = yield*
|
|
73
|
-
const instances = yield*
|
|
74
|
-
const execution = yield*
|
|
75
|
-
const admission = yield*
|
|
70
|
+
const bus = yield* Service76;
|
|
71
|
+
const database = yield* Service77;
|
|
72
|
+
const store = yield* Service58;
|
|
73
|
+
const instances = yield* Service53;
|
|
74
|
+
const execution = yield* Service49;
|
|
75
|
+
const admission = yield* Service51;
|
|
76
76
|
const fs = yield* FSUtil.Service;
|
|
77
77
|
const scope = yield* Scope.Scope;
|
|
78
78
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
79
79
|
const session = yield* store.get(sessionID);
|
|
80
80
|
if (!session)
|
|
81
|
-
return yield* new
|
|
81
|
+
return yield* new NotFoundError6({ sessionID });
|
|
82
82
|
return session;
|
|
83
83
|
});
|
|
84
84
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -154,7 +154,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
154
154
|
});
|
|
155
155
|
if (existing)
|
|
156
156
|
return existing;
|
|
157
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
157
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service53, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
158
158
|
if (session.revert)
|
|
159
159
|
yield* commit2(bus, session);
|
|
160
160
|
return yield* admission.admit({
|
|
@@ -170,7 +170,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
170
170
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
171
171
|
const session = yield* get(sessionID);
|
|
172
172
|
const running = yield* Effect.gen(function* () {
|
|
173
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
173
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service53, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
174
174
|
text: `User shell command failed to start:
|
|
175
175
|
${input.command}
|
|
176
176
|
|
|
@@ -199,7 +199,7 @@ ${error.message}`,
|
|
|
199
199
|
});
|
|
200
200
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
201
201
|
const session = yield* get(sessionID);
|
|
202
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
202
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service53, instances));
|
|
203
203
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
204
204
|
sessionID,
|
|
205
205
|
id: skill.id,
|
|
@@ -256,13 +256,13 @@ ${error.message}`,
|
|
|
256
256
|
const session = yield* get(sessionID);
|
|
257
257
|
if (yield* execution.isActive(sessionID))
|
|
258
258
|
return yield* new BusyError2({ sessionID });
|
|
259
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
259
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service53, instances), Effect.provideService(Service77, database), Effect.provideService(Service76, bus));
|
|
260
260
|
});
|
|
261
261
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
262
262
|
const session = yield* get(sessionID);
|
|
263
263
|
if (yield* execution.isActive(sessionID))
|
|
264
264
|
return yield* new BusyError2({ sessionID });
|
|
265
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
265
|
+
yield* clear2(session).pipe(Effect.provideService(Service53, instances), Effect.provideService(Service76, bus));
|
|
266
266
|
return yield* execution.wake(sessionID);
|
|
267
267
|
});
|
|
268
268
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|