@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
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./file-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./file-
|
|
5
|
+
Service72,
|
|
6
|
+
node77
|
|
7
|
+
} from "./file-xdrtxdpg.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./file-
|
|
9
|
+
Service69,
|
|
10
|
+
node73
|
|
11
|
+
} from "./file-m4je5jzf.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options3,
|
|
25
|
+
Service: () => Service17,
|
|
26
|
+
configured: () => configured3,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer9,
|
|
29
|
+
node: () => node20,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode-ai/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options3 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service17 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service72;
|
|
63
|
+
const ripgrep = yield* Service69;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service17.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service17, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service72;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service17.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service17.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer9 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service72;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured3(options) {
|
|
186
|
+
return makeLocationNode({ service: Service17, layer: layer9(options), deps: [node77, node73] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node20 = configured3();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options3, Service17, ripgrepLayer2, fffLayer2, layer9, configured3, node20, exports_search };
|
|
@@ -10,7 +10,7 @@ var exports_location_watcher_policy = {};
|
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
12
|
Service: () => Service7,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node10
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
@@ -48,6 +48,6 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node10 = makeLocationNode({ service: Service7, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export { Service7,
|
|
53
|
+
export { Service7, node10, exports_location_watcher_policy };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./file-7qhv6080.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./file-
|
|
6
|
+
Service72,
|
|
7
|
+
node77
|
|
8
|
+
} from "./file-xdrtxdpg.js";
|
|
9
9
|
import {
|
|
10
10
|
reconcile2,
|
|
11
11
|
create3
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info6,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service34,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node38
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode-ai/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode-ai/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info6, Mode as Mode2 } from "@opencode-ai/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode-ai/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
@@ -45,12 +45,12 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service34 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service72;
|
|
53
|
+
const bus = yield* Service76;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
56
56
|
const vcs = location.vcs;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info6));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
115
115
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
116
116
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return Service34.of({
|
|
119
119
|
transform: state.transform,
|
|
120
120
|
reload: state.reload,
|
|
121
121
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -161,10 +161,10 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
165
|
-
service:
|
|
164
|
+
var node38 = makeLocationNode({
|
|
165
|
+
service: Service34,
|
|
166
166
|
layer,
|
|
167
|
-
deps: [FSUtil.node,
|
|
167
|
+
deps: [FSUtil.node, node77, node81]
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
export { Base2, BranchList2, FileStatus2,
|
|
170
|
+
export { Base2, BranchList2, FileStatus2, Info6, Mode2, DiffError2, Service34, node38, exports_vcs };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./file-
|
|
8
|
+
Service74,
|
|
9
|
+
node79
|
|
10
|
+
} from "./file-46e97tr7.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./file-
|
|
12
|
+
Service72,
|
|
13
|
+
node77
|
|
14
|
+
} from "./file-xdrtxdpg.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
17
|
} from "./file-kg06axw8.js";
|
|
@@ -22,34 +22,34 @@ import {
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error2,
|
|
26
|
+
ID: () => ID6,
|
|
27
|
+
Service: () => Service46,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node51,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode-ai/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID6 } from "@opencode-ai/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode-ai/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error2 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service46 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service74;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service72;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID6.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -122,25 +122,25 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
122
122
|
for (const [file, snapshot] of input.files) {
|
|
123
123
|
const absolute = path.resolve(worktree, file);
|
|
124
124
|
if (!FSUtil.contains(worktree, absolute))
|
|
125
|
-
return yield* new
|
|
125
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
126
126
|
files.set(file, TreeID2.make(snapshot));
|
|
127
127
|
}
|
|
128
128
|
return files;
|
|
129
129
|
});
|
|
130
130
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
131
131
|
if (!enabled())
|
|
132
|
-
return yield* new
|
|
132
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
133
133
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
134
134
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service46.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
137
137
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
138
|
-
var
|
|
139
|
-
service:
|
|
138
|
+
var node51 = makeLocationNode({
|
|
139
|
+
service: Service46,
|
|
140
140
|
layer,
|
|
141
|
-
deps: [FSUtil.node,
|
|
141
|
+
deps: [FSUtil.node, node79, Global.node, node77]
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var noopLayer2 = Layer.succeed(Service46, Service46.of({
|
|
144
144
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
145
145
|
reload: () => Effect.void,
|
|
146
146
|
capture: () => Effect.undefined,
|
|
@@ -149,13 +149,13 @@ var noopLayer3 = Layer.succeed(Service74, Service74.of({
|
|
|
149
149
|
restore: () => Effect.void
|
|
150
150
|
}));
|
|
151
151
|
function failure(operation, cause) {
|
|
152
|
-
if (cause instanceof
|
|
152
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
153
153
|
return cause;
|
|
154
|
-
return new
|
|
154
|
+
return new Error2({
|
|
155
155
|
operation,
|
|
156
156
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
157
157
|
cause
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export {
|
|
161
|
+
export { ID6, Error2, Service46, node51, noopLayer2, exports_snapshot2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service77,
|
|
3
|
+
node82
|
|
4
|
+
} from "./file-5rdj9hmq.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
7
|
} from "./file-3hepkmqq.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service56,
|
|
17
|
+
node: () => node60
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service56 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
25
|
-
const db = (yield*
|
|
26
|
-
return
|
|
24
|
+
var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
25
|
+
const db = (yield* Service77).db;
|
|
26
|
+
return Service56.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node60 = makeGlobalNode({ service: Service56, layer, deps: [node82] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service56, node60, exports_kv };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_command4 = {};
|
|
7
7
|
__export(exports_command4, {
|
|
8
8
|
ConfigCommandV1: () => exports_command4,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info15
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info15 = Schema.Struct({
|
|
13
13
|
template: Schema.String,
|
|
14
14
|
description: Schema.optional(Schema.String),
|
|
15
15
|
agent: Schema.optional(Schema.String),
|
|
@@ -18,4 +18,4 @@ var Info18 = Schema.Struct({
|
|
|
18
18
|
subtask: Schema.optional(Schema.Boolean)
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info15, exports_command4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./file-
|
|
3
|
+
} from "./file-1vkgnbk5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
ID18
|
|
6
|
+
} from "./file-52bfwkce.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 !== ID18.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;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-
|
|
2
|
+
Service79
|
|
3
|
+
} from "./file-s0xr38aj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-
|
|
5
|
+
Service53
|
|
6
|
+
} from "./file-tpqfb4gb.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./file-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./file-
|
|
12
|
+
} from "./file-ht5y0zrb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./file-
|
|
14
|
+
Service80
|
|
15
|
+
} from "./file-9938j897.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./file-
|
|
19
|
+
} from "./file-2j2akc50.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
22
|
Service41
|
|
23
|
-
} from "./file-
|
|
23
|
+
} from "./file-mb6d61vn.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./file-9rqn6x4v.js";
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service53;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service80;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -125,7 +125,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
125
125
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
126
126
|
if (!mime.startsWith("image/"))
|
|
127
127
|
return { data: Base64.make(data), mime };
|
|
128
|
-
const image = yield*
|
|
128
|
+
const image = yield* Service79;
|
|
129
129
|
const label = input.name ?? (input.uri.startsWith("data:") ? "inline attachment" : input.uri);
|
|
130
130
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
131
131
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./file-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./file-7qhv6080.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./file-
|
|
7
|
+
} from "./file-qeka1wpx.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./file-sk3qaz4a.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError8,
|
|
20
|
+
Options: () => Options9,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
configured: () =>
|
|
25
|
-
layer: () =>
|
|
26
|
-
node: () =>
|
|
22
|
+
Service: () => Service67,
|
|
23
|
+
UnavailableError: () => UnavailableError3,
|
|
24
|
+
configured: () => configured9,
|
|
25
|
+
layer: () => layer24,
|
|
26
|
+
node: () => node71
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,22 +35,22 @@ import { Pty } from "@opencode-ai/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode-ai/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode-ai/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options9 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError8 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service67 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
53
|
-
const bus = yield*
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service67, Effect.gen(function* () {
|
|
53
|
+
const bus = yield* Service76;
|
|
54
54
|
const global = yield* Global.Service;
|
|
55
55
|
const context = yield* Effect.context();
|
|
56
56
|
const runFork = Effect.runForkWith(context);
|
|
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service51, Effect.gen(function* (
|
|
|
72
72
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
73
73
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
74
74
|
if (!found)
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new NotFoundError8({ ptyID: id });
|
|
76
76
|
return found;
|
|
77
77
|
});
|
|
78
78
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -162,7 +162,7 @@ var makeLayer = (options = {}) => Layer.effect(Service51, Effect.gen(function* (
|
|
|
162
162
|
});
|
|
163
163
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
164
164
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
165
|
-
return yield* new
|
|
165
|
+
return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
|
|
166
166
|
const id = current.get(sessionID);
|
|
167
167
|
if (!id)
|
|
168
168
|
return null;
|
|
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service51, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service67.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -255,17 +255,17 @@ var makeLayer = (options = {}) => Layer.effect(Service51, Effect.gen(function* (
|
|
|
255
255
|
attach
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
261
|
-
layer: options === undefined ?
|
|
262
|
-
deps: [
|
|
258
|
+
var layer24 = makeLayer();
|
|
259
|
+
var configured9 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service67,
|
|
261
|
+
layer: options === undefined ? layer24 : makeLayer(options),
|
|
262
|
+
deps: [node81, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node71 = configured9();
|
|
265
265
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
266
266
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
267
|
-
var unexpected = (response) => Effect.fail(new
|
|
268
|
-
var unavailable = (error) => new
|
|
267
|
+
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
268
|
+
var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
|
|
269
269
|
var runtimeDirectory = () => {
|
|
270
270
|
const root = process.env.OPENCODE_PTY_RUNTIME_DIR ?? (process.env.XDG_RUNTIME_DIR ? path.join(process.env.XDG_RUNTIME_DIR, "opencode-pty") : path.join(os.tmpdir(), `opencode-pty-${typeof process.getuid === "function" ? process.getuid() : process.env.USER || "unknown"}`));
|
|
271
271
|
return path.join(root, crypto.randomUUID());
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options9, UnavailableError3, NotFoundError8, Service67, layer24, configured9, node71, exports_persistent_pty, Handoff2 };
|