@opencode/core 0.0.0-dev-19593 → 0.0.0-dev-19594
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 +67 -67
- package/dist/aisdk.js +5 -5
- package/dist/app.js +7 -7
- package/dist/bus.js +57 -57
- package/dist/catalog.js +65 -65
- package/dist/chunks/{mime-gnwbrhke.js → mime-0q847seh.js} +9 -9
- package/dist/chunks/{mime-rk0rec3h.js → mime-0qxam8dj.js} +5 -5
- package/dist/chunks/{mime-c8v5kc65.js → mime-0rh963zz.js} +16 -16
- package/dist/chunks/{mime-60n7bf9e.js → mime-0rn7bd2y.js} +1 -1
- package/dist/chunks/{mime-f14wgmqf.js → mime-133n9d2d.js} +6 -6
- package/dist/chunks/{mime-j1ydts1m.js → mime-13a7a1wx.js} +27 -27
- package/dist/chunks/{mime-522twr50.js → mime-1cbk4m95.js} +14 -14
- package/dist/chunks/{mime-8gz95mnd.js → mime-1eaf0dqh.js} +6 -6
- package/dist/chunks/{mime-rr42dmak.js → mime-1p086jrz.js} +10 -10
- package/dist/chunks/{mime-qwnx8exk.js → mime-1qy9swdm.js} +13 -13
- package/dist/chunks/{mime-5r3v2435.js → mime-1vh2jpye.js} +25 -25
- package/dist/chunks/{mime-sge7677j.js → mime-2cv161v0.js} +20 -20
- package/dist/chunks/{mime-x9yfajt1.js → mime-2fz3ddp8.js} +15 -15
- package/dist/chunks/{mime-9v7b1t0y.js → mime-2ge8dzt3.js} +19 -19
- package/dist/chunks/{mime-3v1f2d9y.js → mime-2gwea9g5.js} +16 -16
- package/dist/chunks/{mime-pkm3pkx5.js → mime-2ht41vc1.js} +8 -8
- package/dist/chunks/{mime-1rr79kmz.js → mime-2nm7ty4g.js} +8 -8
- package/dist/chunks/{mime-h7xbcxh5.js → mime-2p6q1z9q.js} +7 -7
- package/dist/chunks/{mime-ddt2bs9e.js → mime-2vs2nh1n.js} +3 -3
- package/dist/chunks/{mime-7k089n9a.js → mime-2wyn68kt.js} +88 -88
- package/dist/chunks/{mime-zmyxeed4.js → mime-2x58g7fm.js} +36 -36
- package/dist/chunks/{mime-wrqsgs34.js → mime-35vdht0v.js} +1 -1
- package/dist/chunks/{mime-6ph579g1.js → mime-3bxse654.js} +9 -9
- package/dist/chunks/{mime-s3w38y65.js → mime-3djbw1yw.js} +18 -18
- package/dist/chunks/{mime-yq15jsfs.js → mime-3gjcsfkp.js} +23 -23
- package/dist/chunks/{mime-0dd32wke.js → mime-3zygn6db.js} +18 -18
- package/dist/chunks/{mime-pzy0y0v9.js → mime-420zfhbw.js} +9 -9
- package/dist/chunks/{mime-ypdxe0g3.js → mime-444p8hwk.js} +4 -4
- package/dist/chunks/{mime-8jqmzt62.js → mime-4780s8zr.js} +7 -7
- package/dist/chunks/{mime-25c3bv42.js → mime-4xgk073c.js} +30 -30
- package/dist/chunks/{mime-d942djzc.js → mime-50spkatp.js} +1 -1
- package/dist/chunks/{mime-xzzqdqzt.js → mime-52xa8h0k.js} +15 -15
- package/dist/chunks/{mime-fcj6b5ej.js → mime-59c8rz3w.js} +17 -17
- package/dist/chunks/{mime-g9wvjw5e.js → mime-5cbe66kg.js} +15 -15
- package/dist/chunks/{mime-tqkrwgse.js → mime-5frpvc34.js} +1 -1
- package/dist/chunks/{mime-6ecentyg.js → mime-5r46t150.js} +6 -6
- package/dist/chunks/{mime-9adpk5qf.js → mime-5w49rw7h.js} +16 -16
- package/dist/chunks/{mime-428y0mtg.js → mime-5y1dhwgz.js} +9 -9
- package/dist/chunks/{mime-7n2xhmm7.js → mime-5yeq06a0.js} +8 -8
- package/dist/chunks/{mime-yhnrb9df.js → mime-64mdbckw.js} +19 -19
- package/dist/chunks/{mime-71pc8m80.js → mime-6heswp50.js} +7 -7
- package/dist/chunks/{mime-7x9wdesj.js → mime-6pg9yxyn.js} +25 -25
- package/dist/chunks/{mime-rk95q894.js → mime-6sm2335y.js} +8 -8
- package/dist/chunks/{mime-2z24jnne.js → mime-6stpc6jq.js} +39 -39
- package/dist/chunks/{mime-jt9z208x.js → mime-704h20fa.js} +11 -11
- package/dist/chunks/{mime-zdzzr9rq.js → mime-73zec2db.js} +11 -11
- package/dist/chunks/{mime-n7w7dj2n.js → mime-79j0w79y.js} +18 -18
- package/dist/chunks/{mime-z2st3mnt.js → mime-7dt64zzx.js} +29 -29
- package/dist/chunks/{mime-n9gzpzcc.js → mime-7fejhyaj.js} +31 -31
- package/dist/chunks/{mime-1fqx7y25.js → mime-7fkzzjzh.js} +16 -16
- package/dist/chunks/{mime-793krves.js → mime-7jryds9y.js} +7 -7
- package/dist/chunks/{mime-dhwr7h25.js → mime-818pfwc9.js} +9 -9
- package/dist/chunks/{mime-zcqf6png.js → mime-81rrwt6s.js} +5 -5
- package/dist/chunks/{mime-tpw6cwsb.js → mime-844ef7ks.js} +7 -7
- package/dist/chunks/{mime-nk4x76k7.js → mime-870jgjkc.js} +28 -28
- package/dist/chunks/{mime-m0e07c1q.js → mime-8bnrj9ah.js} +7 -7
- package/dist/chunks/{mime-p1rhzz4x.js → mime-8na3ps9f.js} +14 -14
- package/dist/chunks/{mime-7dn07k07.js → mime-8pcfc58d.js} +30 -30
- package/dist/chunks/{mime-nvxqht09.js → mime-8q7cq0y1.js} +2 -2
- package/dist/chunks/{mime-hfk58y1y.js → mime-8qh7f6m5.js} +25 -25
- package/dist/chunks/{mime-kpj3v0jx.js → mime-8x7bs8k4.js} +7 -7
- package/dist/chunks/{mime-wce6r091.js → mime-9eafbtjx.js} +3 -3
- package/dist/chunks/{mime-sae7gfvb.js → mime-9fk0tq8j.js} +9 -9
- package/dist/chunks/{mime-a14tmfw2.js → mime-9h8p7dc2.js} +22 -22
- package/dist/chunks/{mime-mk0f86h1.js → mime-a6wxbqrd.js} +18 -18
- package/dist/chunks/{mime-vknx877p.js → mime-adtd93wp.js} +24 -24
- package/dist/chunks/{mime-1nq040z3.js → mime-ahxwejs5.js} +3 -3
- package/dist/chunks/{mime-exmx9z86.js → mime-anxsz8s7.js} +12 -12
- package/dist/chunks/{mime-6tjahags.js → mime-axyhzpge.js} +19 -19
- package/dist/chunks/{mime-d8d1pk1w.js → mime-b0dn0kc2.js} +20 -20
- package/dist/chunks/{mime-k3a2w7sd.js → mime-b11403r6.js} +1 -1
- package/dist/chunks/{mime-a9pbgtwm.js → mime-bbrkv54p.js} +20 -20
- package/dist/chunks/{mime-hnr5yq9h.js → mime-bgxcxs0p.js} +3 -3
- package/dist/chunks/mime-bhcmsjc5.js +26 -0
- package/dist/chunks/{mime-244ce5kg.js → mime-c3s2gn8c.js} +6 -6
- package/dist/chunks/{mime-18e56dsp.js → mime-c5gn303e.js} +3 -3
- package/dist/chunks/{mime-8zve7j1r.js → mime-cc31018j.js} +28 -28
- package/dist/chunks/{mime-hsyde07s.js → mime-cfpeewsf.js} +15 -15
- package/dist/chunks/{mime-vkxpz7g2.js → mime-cq37gk0t.js} +1 -1
- package/dist/chunks/{mime-sxr8e92x.js → mime-d2q9jptv.js} +38 -38
- package/dist/chunks/{mime-efemqsg6.js → mime-d6k63gab.js} +55 -55
- package/dist/chunks/{mime-wxg5n4nt.js → mime-dagq8swk.js} +85 -85
- package/dist/chunks/{mime-yxmrz8pz.js → mime-dec7wy2e.js} +34 -34
- package/dist/chunks/{mime-7n7hfnea.js → mime-dvfrh357.js} +2 -2
- package/dist/chunks/{mime-3e6fhmkh.js → mime-e07961mt.js} +16 -16
- package/dist/chunks/{mime-7mawc3w3.js → mime-e6prdszb.js} +30 -30
- package/dist/chunks/{mime-7mny09t0.js → mime-eatzh2k7.js} +10 -10
- package/dist/chunks/{mime-pdxxk7hn.js → mime-edtxp2z3.js} +1 -1
- package/dist/chunks/{mime-t2p9dx1c.js → mime-eq6c3fte.js} +3 -3
- package/dist/chunks/{mime-wwxdkha1.js → mime-eqde16p0.js} +14 -14
- package/dist/chunks/{mime-was7srj9.js → mime-et0rkxxj.js} +6 -6
- package/dist/chunks/{mime-3xfqjwf0.js → mime-f0r94znb.js} +6 -6
- package/dist/chunks/{mime-ndqxs5js.js → mime-f160myny.js} +2 -2
- package/dist/chunks/{mime-mzs7jtbe.js → mime-f565jxke.js} +20 -20
- package/dist/chunks/{mime-r0e9nadw.js → mime-f640cp8s.js} +4 -4
- package/dist/chunks/{mime-19dhad8j.js → mime-fr161fk4.js} +1 -1
- package/dist/chunks/{mime-6yr30ss5.js → mime-fvhxsqzp.js} +8 -8
- package/dist/chunks/{mime-6e67y2h6.js → mime-fvx6fngr.js} +15 -15
- package/dist/chunks/{mime-vsp1fds9.js → mime-g190xswt.js} +20 -20
- package/dist/chunks/{mime-mv4qg2g8.js → mime-g2v8q978.js} +64 -64
- package/dist/chunks/{mime-89fvnp0w.js → mime-g3vtg5jq.js} +11 -11
- package/dist/chunks/{mime-0jez15af.js → mime-g95881nk.js} +4 -4
- package/dist/chunks/{mime-p2ab4s2r.js → mime-gb2e7tdd.js} +3 -3
- package/dist/chunks/{mime-k5ysc9y0.js → mime-gcb8mzse.js} +49 -49
- package/dist/chunks/{mime-ycn09wbg.js → mime-gsy31vka.js} +6 -6
- package/dist/chunks/{mime-2bg24y81.js → mime-gv2jqw69.js} +12 -12
- package/dist/chunks/{mime-th5km1p3.js → mime-gv6a8nnw.js} +3 -3
- package/dist/chunks/{mime-gg6k7kh9.js → mime-h4xx3q8r.js} +42 -42
- package/dist/chunks/{mime-2swfdtqq.js → mime-h752p31j.js} +10 -10
- package/dist/chunks/{mime-ex7fppdg.js → mime-hbbajkb6.js} +38 -38
- package/dist/chunks/{mime-y598pph1.js → mime-hcv4nqeb.js} +7 -7
- package/dist/chunks/{mime-mkyvxn7c.js → mime-hr15y0yn.js} +2 -2
- package/dist/chunks/{mime-p8vshhkt.js → mime-hs2a3b3x.js} +7 -7
- package/dist/chunks/{mime-84f9n64y.js → mime-hssj4d10.js} +30 -30
- package/dist/chunks/{mime-6f9xqzex.js → mime-hwfrndnj.js} +12 -12
- package/dist/chunks/{mime-gqz15p6p.js → mime-j3y0vmp2.js} +13 -13
- package/dist/chunks/{mime-9jn58xvx.js → mime-jgs57335.js} +26 -26
- package/dist/chunks/{mime-n0t0kfwn.js → mime-jyzy5bh9.js} +26 -26
- package/dist/chunks/{mime-xyf1yhas.js → mime-k30yspdv.js} +8 -8
- package/dist/chunks/{mime-tp988bqa.js → mime-ke3mc4hq.js} +10 -10
- package/dist/chunks/{mime-mc7r38pz.js → mime-kn0whz0h.js} +19 -19
- package/dist/chunks/{mime-xf8yqmad.js → mime-kpvyk30t.js} +8 -8
- package/dist/chunks/{mime-599ntear.js → mime-kpzqjmdf.js} +9 -9
- package/dist/chunks/{mime-g6jvm51t.js → mime-ky1z1t7f.js} +17 -17
- package/dist/chunks/{mime-rbtn8dzz.js → mime-m1mf6fzk.js} +33 -33
- package/dist/chunks/{mime-7wj5bpvf.js → mime-m6mq2hjy.js} +1 -1
- package/dist/chunks/{mime-jjs74g98.js → mime-m86bnw2c.js} +7 -7
- package/dist/chunks/{mime-syx98vxf.js → mime-mdwr1hje.js} +5 -5
- package/dist/chunks/{mime-mgfyp3pg.js → mime-mez6c9p4.js} +12 -12
- package/dist/chunks/{mime-csf2jhsg.js → mime-mfhfdr54.js} +3 -3
- package/dist/chunks/{mime-rjasbbd6.js → mime-mx7czsbd.js} +23 -23
- package/dist/chunks/{mime-sat34sqy.js → mime-njct8jvz.js} +7 -7
- package/dist/chunks/{mime-thfnv5gc.js → mime-njhyngta.js} +1 -1
- package/dist/chunks/{mime-hwyw3hyr.js → mime-pa86c6bb.js} +4 -4
- package/dist/chunks/{mime-j935v87r.js → mime-paphc93g.js} +2 -2
- package/dist/chunks/{mime-vp7npndj.js → mime-pdcjakb6.js} +44 -44
- package/dist/chunks/{mime-qg6c32m5.js → mime-pfm8588r.js} +9 -9
- package/dist/chunks/{mime-43fjnve3.js → mime-ppg8cm88.js} +142 -142
- package/dist/chunks/{mime-mq0v60k6.js → mime-prkz2p0b.js} +8 -8
- package/dist/chunks/{mime-mhxmw1gn.js → mime-pt4bgws9.js} +13 -13
- package/dist/chunks/{mime-qkma89m6.js → mime-pt5fe4wm.js} +12 -12
- package/dist/chunks/{mime-a7ymv1f3.js → mime-q5r46mjj.js} +19 -19
- package/dist/chunks/{mime-9fk3d21e.js → mime-qbx47xy2.js} +6 -6
- package/dist/chunks/{mime-58426wyj.js → mime-qc2jvtz9.js} +13 -13
- package/dist/chunks/{mime-aq5y8b9e.js → mime-qd153e6s.js} +7 -7
- package/dist/chunks/{mime-4x2wqn1j.js → mime-qharf8gs.js} +18 -18
- package/dist/chunks/{mime-cjwramev.js → mime-qk0gpxf2.js} +5 -5
- package/dist/chunks/{mime-zp6fq2c5.js → mime-qkdjfw93.js} +12 -12
- package/dist/chunks/{mime-az6rvz1x.js → mime-qmd9v6g9.js} +23 -23
- package/dist/chunks/{mime-mvfsc1pv.js → mime-r5x6zcsm.js} +2 -2
- package/dist/chunks/{mime-z1jvgbj7.js → mime-r65rh87v.js} +12 -12
- package/dist/chunks/{mime-6w1gr0yw.js → mime-r9asyhme.js} +13 -13
- package/dist/chunks/{mime-4m405q6x.js → mime-ra43e7fd.js} +31 -31
- package/dist/chunks/{mime-0gdmqesm.js → mime-rhjbct0v.js} +3 -3
- package/dist/chunks/{mime-0m2e9swf.js → mime-rm1v9tpv.js} +29 -29
- package/dist/chunks/{mime-cp31e4n6.js → mime-rqkpr08e.js} +50 -50
- package/dist/chunks/{mime-6xm8j45g.js → mime-rr835zjc.js} +13 -13
- package/dist/chunks/{mime-z7haez8t.js → mime-s140sdf9.js} +7 -7
- package/dist/chunks/{mime-rw5ambcd.js → mime-sd8yy5r9.js} +9 -9
- package/dist/chunks/{mime-60w3gzyt.js → mime-seam05pa.js} +10 -10
- package/dist/chunks/{mime-y87sds1v.js → mime-skgd961f.js} +34 -34
- package/dist/chunks/{mime-apaaqhj0.js → mime-sm7k231e.js} +10 -10
- package/dist/chunks/{mime-806j49yq.js → mime-sxz6gkc3.js} +6 -6
- package/dist/chunks/{mime-29zjypxj.js → mime-sy5x3wzp.js} +20 -20
- package/dist/chunks/{mime-3w0fmcng.js → mime-t0fxg8b9.js} +3 -3
- package/dist/chunks/{mime-94np39z2.js → mime-t0x5rdq8.js} +7 -7
- package/dist/chunks/{mime-9s1hrf4j.js → mime-t2qnazqa.js} +24 -24
- package/dist/chunks/{mime-y5hshd3q.js → mime-t92h3xfh.js} +25 -25
- package/dist/chunks/{mime-3j8sdtpz.js → mime-t9zs3egg.js} +3 -3
- package/dist/chunks/{mime-89znhe33.js → mime-tcezcvh9.js} +3 -3
- package/dist/chunks/{mime-a7fxnse5.js → mime-tdjcx4hx.js} +23 -23
- package/dist/chunks/{mime-ffxj81eb.js → mime-tfwtnexv.js} +9 -9
- package/dist/chunks/{mime-tyqa4rq3.js → mime-tpnhe26j.js} +9 -9
- package/dist/chunks/{mime-b9bv6qq3.js → mime-tqtqm0tk.js} +20 -20
- package/dist/chunks/{mime-1h8wvx6q.js → mime-tr59z4r6.js} +16 -16
- package/dist/chunks/{mime-rw09cprj.js → mime-tst7fck9.js} +6 -6
- package/dist/chunks/{mime-qxad6akg.js → mime-tt0d903s.js} +31 -31
- package/dist/chunks/{mime-p11mj9nc.js → mime-txhedez9.js} +25 -25
- package/dist/chunks/{mime-yad4qhb5.js → mime-v2rhk2e4.js} +17 -17
- package/dist/chunks/{mime-n4aaschn.js → mime-v4xb0e1g.js} +6 -6
- package/dist/chunks/{mime-8nk5pr3x.js → mime-vc4e6k4r.js} +3 -3
- package/dist/chunks/{mime-8j0zrhvt.js → mime-vv47xjan.js} +17 -17
- package/dist/chunks/{mime-pva5nxfr.js → mime-w3zbj2ne.js} +42 -42
- package/dist/chunks/{mime-efv4s0g0.js → mime-w4arg62q.js} +3 -3
- package/dist/chunks/{mime-t9kjr4z5.js → mime-wa22fvar.js} +14 -14
- package/dist/chunks/{mime-en53wcfr.js → mime-wjf2ryf5.js} +15 -15
- package/dist/chunks/{mime-3ey5ve5m.js → mime-wwgj97ya.js} +14 -14
- package/dist/chunks/{mime-jy2v93y2.js → mime-wyd5qy3e.js} +12 -12
- package/dist/chunks/{mime-1k3djte8.js → mime-wzv25m25.js} +9 -9
- package/dist/chunks/mime-x0mt5qzb.js +247 -0
- package/dist/chunks/{mime-0pt4f7ej.js → mime-xj7p06cz.js} +9 -9
- package/dist/chunks/{mime-9t6fn9sm.js → mime-xkanz2ea.js} +7 -7
- package/dist/chunks/{mime-aqtq9wzx.js → mime-xmvk2ac6.js} +5 -5
- package/dist/chunks/{mime-vgx6weyf.js → mime-xn5rvdk3.js} +7 -7
- package/dist/chunks/{mime-47jk2x7b.js → mime-xtdnnkz9.js} +21 -21
- package/dist/chunks/{mime-rpw1jzq2.js → mime-y1x7r325.js} +30 -30
- package/dist/chunks/{mime-dpkg50ah.js → mime-y71avatq.js} +3 -3
- package/dist/chunks/{mime-3nv94yae.js → mime-ye34jjbw.js} +20 -20
- package/dist/chunks/{mime-f2n192rq.js → mime-yp2x3t23.js} +3 -3
- package/dist/chunks/{mime-s4enseaf.js → mime-yrznvahk.js} +1 -1
- package/dist/chunks/{mime-d2aac7k2.js → mime-yt0fqk68.js} +3 -3
- package/dist/chunks/{mime-mvtk1eek.js → mime-ywcdcbeh.js} +10 -10
- package/dist/chunks/{mime-8v4hj3yf.js → mime-z053jb5k.js} +17 -17
- package/dist/chunks/{mime-7136dx6n.js → mime-z16ek00m.js} +296 -296
- package/dist/chunks/{mime-sbwhh814.js → mime-z4y4a432.js} +14 -14
- package/dist/chunks/{mime-6mn0csek.js → mime-z5e4xs1g.js} +7 -7
- package/dist/chunks/{mime-29x78va6.js → mime-z63w68vq.js} +4 -4
- package/dist/chunks/{mime-08vesxpc.js → mime-zb37mv0v.js} +3 -3
- package/dist/chunks/{mime-7t2a4rxe.js → mime-zfyh5k5p.js} +30 -30
- package/dist/chunks/{mime-t0kymgeb.js → mime-zjw2f83e.js} +58 -58
- package/dist/chunks/{mime-7kppz51p.js → mime-zqbh65n6.js} +22 -22
- package/dist/chunks/{mime-233vw3g8.js → mime-zyyezbff.js} +11 -11
- package/dist/chunks/{mime-msr7tfg3.js → mime-zyyy8fjh.js} +10 -10
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +69 -69
- package/dist/config/discovery.js +62 -62
- package/dist/config/normalize.js +14 -14
- package/dist/config/plugin/agent.js +88 -88
- package/dist/config/plugin/command.js +172 -172
- package/dist/config/plugin/compaction.js +128 -128
- package/dist/config/plugin/compatibility.js +108 -108
- package/dist/config/plugin/formatter.js +91 -91
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +90 -90
- package/dist/config/plugin/mcp.js +96 -96
- package/dist/config/plugin/policy.js +89 -89
- package/dist/config/plugin/provider.js +88 -88
- package/dist/config/plugin/reference.js +92 -92
- package/dist/config/plugin/shell.js +92 -92
- package/dist/config/plugin/skill-file.js +76 -76
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +92 -92
- package/dist/config/plugin/tool-output.js +91 -91
- package/dist/config/plugin/websearch.js +90 -90
- package/dist/config/plugin/worktree.js +93 -93
- package/dist/config/variable.js +2 -2
- package/dist/config.js +93 -93
- package/dist/credential.js +65 -65
- package/dist/database/database.js +55 -55
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +224 -224
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +79 -79
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +184 -184
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +76 -76
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +12 -12
- package/dist/filesystem.js +81 -81
- package/dist/form.js +64 -64
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +75 -75
- package/dist/git.js +8 -8
- 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 +6 -6
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +304 -304
- package/dist/instruction-discovery.js +68 -68
- package/dist/instructions/builtins.js +65 -65
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +62 -62
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +58 -58
- package/dist/location-mutation.js +31 -31
- package/dist/location-service-map.js +66 -66
- package/dist/location-services.js +302 -302
- package/dist/location.js +65 -65
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +95 -95
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +6 -6
- package/dist/model-resolver.js +68 -68
- package/dist/model.js +5 -5
- package/dist/models-dev.js +68 -68
- package/dist/permission/saved.js +62 -62
- package/dist/permission.js +88 -88
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +77 -77
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +177 -177
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +278 -278
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +59 -59
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/plan.js +77 -77
- package/dist/plugin/provider/azure.js +92 -92
- package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
- package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
- package/dist/plugin/provider/configured.js +90 -90
- package/dist/plugin/provider/digitalocean.js +62 -62
- package/dist/plugin/provider/github-copilot.js +64 -64
- package/dist/plugin/provider/gitlab.js +2 -2
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +93 -93
- package/dist/plugin/provider/modal.js +63 -63
- package/dist/plugin/provider/ollama.js +93 -93
- package/dist/plugin/provider/openai.js +61 -61
- package/dist/plugin/provider/opencode.js +62 -62
- package/dist/plugin/provider/openrouter.js +2 -2
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/snowflake-cortex.js +92 -92
- package/dist/plugin/provider/vllm.js +93 -93
- package/dist/plugin/provider/xai.js +61 -61
- package/dist/plugin/provider.js +124 -124
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/skill.js +107 -107
- package/dist/plugin/supervisor.js +294 -294
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +3 -3
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/warming.js +88 -88
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +183 -183
- package/dist/project/schema.js +5 -5
- package/dist/project.js +66 -66
- package/dist/pty.js +62 -62
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +62 -62
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +57 -57
- package/dist/session/compaction.js +104 -104
- package/dist/session/context.js +120 -120
- package/dist/session/diff.js +64 -64
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +118 -118
- package/dist/session/execution.js +103 -103
- package/dist/session/generate.js +121 -121
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +65 -65
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +72 -72
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +104 -104
- package/dist/session/projector.js +62 -62
- package/dist/session/prompt.js +79 -79
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +65 -65
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +70 -70
- package/dist/session/runner/retry.js +89 -89
- package/dist/session/runner/step.js +98 -98
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +136 -136
- package/dist/session/shell.js +100 -100
- package/dist/session/skill.js +77 -77
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +171 -171
- package/dist/session/title.js +123 -123
- package/dist/session/to-session-error.js +86 -86
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +184 -184
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +103 -103
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +82 -82
- package/dist/skill.js +85 -85
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +92 -92
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +95 -95
- package/dist/tool/plugin/grep.js +95 -95
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +92 -92
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +96 -96
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +88 -88
- package/dist/tool/plugin/subagent.js +178 -178
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +83 -83
- package/dist/tool/plugin/write.js +92 -92
- package/dist/tool/read-filesystem.js +73 -73
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +11 -11
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +2 -2
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +67 -67
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +58 -58
- package/dist/wellknown.js +61 -61
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +60 -60
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/refresh.js +293 -293
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/mime-5wm2rtqk.js +0 -247
- package/dist/chunks/mime-89qrc0yw.js +0 -26
- /package/dist/chunks/{mime-8mw9dy87.js → mime-cga0myw9.js} +0 -0
- /package/dist/chunks/{mime-11qgt1va.js → mime-kx4bd44t.js} +0 -0
- /package/dist/chunks/{mime-q6yya7b3.js → mime-rf80fxgj.js} +0 -0
- /package/dist/chunks/{mime-7f5wqp31.js → mime-stk15n3e.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./mime-
|
|
3
|
+
} from "./mime-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service7,
|
|
13
|
+
node: () => node10
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service7 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service7.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node10 = makeGlobalNode({ service: Service7, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service7, node10, exports_update };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./mime-
|
|
2
|
+
Service48
|
|
3
|
+
} from "./mime-pdcjakb6.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./mime-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./mime-4780s8zr.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
9
|
} from "./mime-qsdy395h.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
var exports_image = {};
|
|
16
16
|
__export(exports_image, {
|
|
17
17
|
ConfigImagePlugin: () => exports_image,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin3
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin3 = define({
|
|
23
23
|
id: "opencode.config.image",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const image = yield*
|
|
25
|
+
const config = yield* Service48;
|
|
26
|
+
const image = yield* Service79;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, image.reload());
|
|
28
28
|
yield* image.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -43,4 +43,4 @@ var Plugin22 = define({
|
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { Plugin3, exports_image };
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
} from "./mime-0artwwxx.js";
|
|
7
7
|
import {
|
|
8
8
|
AzurePlugin2
|
|
9
|
-
} from "./mime-
|
|
9
|
+
} from "./mime-sd8yy5r9.js";
|
|
10
10
|
import {
|
|
11
11
|
CerebrasPlugin2
|
|
12
12
|
} from "./mime-wavq5vqb.js";
|
|
13
13
|
import {
|
|
14
14
|
CloudflareAIGatewayPlugin2
|
|
15
|
-
} from "./mime-
|
|
15
|
+
} from "./mime-hr15y0yn.js";
|
|
16
16
|
import {
|
|
17
17
|
CloudflareWorkersAIPlugin2
|
|
18
|
-
} from "./mime-
|
|
18
|
+
} from "./mime-dvfrh357.js";
|
|
19
19
|
import {
|
|
20
20
|
CoherePlugin2
|
|
21
21
|
} from "./mime-z0bkrqjs.js";
|
|
22
22
|
import {
|
|
23
23
|
DigitalOceanPlugin2
|
|
24
|
-
} from "./mime-
|
|
24
|
+
} from "./mime-xj7p06cz.js";
|
|
25
25
|
import {
|
|
26
26
|
DynamicProviderPlugin2
|
|
27
27
|
} from "./mime-vzcthcp8.js";
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
} from "./mime-669tq793.js";
|
|
31
31
|
import {
|
|
32
32
|
GithubCopilotPlugin2
|
|
33
|
-
} from "./mime-
|
|
33
|
+
} from "./mime-q5r46mjj.js";
|
|
34
34
|
import {
|
|
35
35
|
GitLabPlugin2
|
|
36
|
-
} from "./mime-
|
|
36
|
+
} from "./mime-fr161fk4.js";
|
|
37
37
|
import {
|
|
38
38
|
GoogleVertexPlugin2
|
|
39
39
|
} from "./mime-0pb75hch.js";
|
|
@@ -42,40 +42,40 @@ import {
|
|
|
42
42
|
} from "./mime-265kqrgy.js";
|
|
43
43
|
import {
|
|
44
44
|
LLMGatewayPlugin2
|
|
45
|
-
} from "./mime-
|
|
45
|
+
} from "./mime-zb37mv0v.js";
|
|
46
46
|
import {
|
|
47
47
|
LMStudioPlugin2
|
|
48
|
-
} from "./mime-
|
|
48
|
+
} from "./mime-zyyy8fjh.js";
|
|
49
49
|
import {
|
|
50
50
|
ModalPlugin2
|
|
51
|
-
} from "./mime-
|
|
51
|
+
} from "./mime-tr59z4r6.js";
|
|
52
52
|
import {
|
|
53
53
|
NvidiaPlugin2
|
|
54
54
|
} from "./mime-70d2s7af.js";
|
|
55
55
|
import {
|
|
56
56
|
OllamaPlugin2
|
|
57
|
-
} from "./mime-
|
|
57
|
+
} from "./mime-eatzh2k7.js";
|
|
58
58
|
import {
|
|
59
59
|
OpenAIPlugin2
|
|
60
|
-
} from "./mime-
|
|
60
|
+
} from "./mime-2ht41vc1.js";
|
|
61
61
|
import {
|
|
62
62
|
SnowflakeCortexPlugin2
|
|
63
|
-
} from "./mime-
|
|
63
|
+
} from "./mime-1qy9swdm.js";
|
|
64
64
|
import {
|
|
65
65
|
OpenAICompatiblePlugin2
|
|
66
66
|
} from "./mime-hrnqkpcd.js";
|
|
67
67
|
import {
|
|
68
68
|
OpencodePlugin2
|
|
69
|
-
} from "./mime-
|
|
69
|
+
} from "./mime-mez6c9p4.js";
|
|
70
70
|
import {
|
|
71
71
|
OpenRouterPlugin2
|
|
72
|
-
} from "./mime-
|
|
72
|
+
} from "./mime-eq6c3fte.js";
|
|
73
73
|
import {
|
|
74
74
|
PerplexityPlugin2
|
|
75
75
|
} from "./mime-veqvce7d.js";
|
|
76
76
|
import {
|
|
77
77
|
PoePlugin2
|
|
78
|
-
} from "./mime-
|
|
78
|
+
} from "./mime-f160myny.js";
|
|
79
79
|
import {
|
|
80
80
|
SapAICorePlugin2
|
|
81
81
|
} from "./mime-219neeqh.js";
|
|
@@ -87,10 +87,10 @@ import {
|
|
|
87
87
|
} from "./mime-yrhqyw5v.js";
|
|
88
88
|
import {
|
|
89
89
|
VLLMPlugin2
|
|
90
|
-
} from "./mime-
|
|
90
|
+
} from "./mime-seam05pa.js";
|
|
91
91
|
import {
|
|
92
92
|
XAIPlugin2
|
|
93
|
-
} from "./mime-
|
|
93
|
+
} from "./mime-xmvk2ac6.js";
|
|
94
94
|
import {
|
|
95
95
|
ZenmuxPlugin2
|
|
96
96
|
} from "./mime-cvtmmhw6.js";
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
Failed2
|
|
5
5
|
} from "./mime-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./mime-
|
|
7
|
+
Service65
|
|
8
|
+
} from "./mime-cfpeewsf.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./mime-
|
|
10
|
+
Service63
|
|
11
|
+
} from "./mime-kn0whz0h.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./mime-
|
|
13
|
+
Service52
|
|
14
|
+
} from "./mime-0rh963zz.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service62,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./mime-
|
|
19
|
+
} from "./mime-qkdjfw93.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./mime-
|
|
21
|
+
Service58
|
|
22
|
+
} from "./mime-d6k63gab.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service57,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./mime-
|
|
26
|
+
} from "./mime-5w49rw7h.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
29
|
} from "./mime-6prwharc.js";
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input12,
|
|
39
|
+
Output: () => Output8,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin30,
|
|
42
|
+
name: () => name12,
|
|
43
|
+
toModelContent: () => toModelContent6
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name12 = "patch";
|
|
89
|
+
var Input12 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output8 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent6 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin30 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service63;
|
|
112
|
+
const access = yield* Service57;
|
|
113
|
+
const fileMutation = yield* Service62;
|
|
114
|
+
const formatter = yield* Service52;
|
|
115
|
+
const location = yield* Service65;
|
|
116
|
+
const permission = yield* Service58;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name12,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input12,
|
|
122
|
+
output: Output8,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -266,7 +266,7 @@ var Plugin4 = {
|
|
|
266
266
|
return { applied, files };
|
|
267
267
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
268
268
|
output,
|
|
269
|
-
content:
|
|
269
|
+
content: toModelContent6(output),
|
|
270
270
|
metadata: { files: output.files }
|
|
271
271
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
272
272
|
}
|
|
@@ -326,4 +326,4 @@ function trimDiff(diff) {
|
|
|
326
326
|
`);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
export {
|
|
329
|
+
export { name12, Input12, Applied2, Output8, toModelContent6, Plugin30, exports_patch };
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service9,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service9 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service9.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node12 = makeGlobalNode({ service: Service9, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service9, node12, exports_discovery };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./mime-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./mime-
|
|
6
|
+
} from "./mime-cga0myw9.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./mime-
|
|
9
|
+
} from "./mime-edtxp2z3.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -20,7 +20,7 @@ class EffectSQLiteDatabase2 extends SQLiteEffectDatabase2 {
|
|
|
20
20
|
static [entityKind] = "EffectSQLiteDatabase";
|
|
21
21
|
}
|
|
22
22
|
var DefaultServices2 = Layer.merge(EffectCache.Default, EffectLogger.Default);
|
|
23
|
-
var
|
|
23
|
+
var make23 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
24
24
|
const client = yield* SqlClient;
|
|
25
25
|
const cache = yield* EffectCache;
|
|
26
26
|
const logger = yield* EffectLogger;
|
|
@@ -37,6 +37,6 @@ var make22 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
|
37
37
|
db.$cache.invalidate = cache.onMutate;
|
|
38
38
|
return db;
|
|
39
39
|
});
|
|
40
|
-
var makeWithDefaults2 = (config = {}) =>
|
|
40
|
+
var makeWithDefaults2 = (config = {}) => make23(config).pipe(Effect.provide(DefaultServices2));
|
|
41
41
|
|
|
42
|
-
export { EffectSQLiteDatabase2, DefaultServices2,
|
|
42
|
+
export { EffectSQLiteDatabase2, DefaultServices2, make23, makeWithDefaults2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./mime-
|
|
2
|
+
Service76
|
|
3
|
+
} from "./mime-z4y4a432.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./mime-
|
|
6
|
+
Event19
|
|
7
|
+
} from "./mime-7fejhyaj.js";
|
|
8
8
|
import {
|
|
9
9
|
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./mime-
|
|
11
|
+
} from "./mime-79j0w79y.js";
|
|
12
12
|
import {
|
|
13
13
|
ID18,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
16
|
} from "./mime-33n3bzdy.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ID4,
|
|
19
|
+
Input13,
|
|
20
20
|
Response2
|
|
21
|
-
} from "./mime-
|
|
21
|
+
} from "./mime-jyzy5bh9.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
|
|
|
32
32
|
var RemoteResponse = Schema.Struct({
|
|
33
33
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
34
|
websearch: Schema.Struct({
|
|
35
|
-
providerID:
|
|
35
|
+
providerID: ID4
|
|
36
36
|
}).pipe(Schema.optional)
|
|
37
37
|
});
|
|
38
38
|
var Device = Schema.Struct({
|
|
@@ -99,7 +99,7 @@ function oauth(http) {
|
|
|
99
99
|
var OpencodePlugin2 = define({
|
|
100
100
|
id: "opencode.provider.opencode",
|
|
101
101
|
effect: Effect.fn(function* (ctx) {
|
|
102
|
-
const bus = yield*
|
|
102
|
+
const bus = yield* Service76;
|
|
103
103
|
const http = yield* HttpClient.HttpClient;
|
|
104
104
|
const loading = Semaphore.makeUnsafe(1);
|
|
105
105
|
let snapshot = { config: undefined, connection: undefined };
|
|
@@ -228,7 +228,7 @@ var OpencodePlugin2 = define({
|
|
|
228
228
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
229
229
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
230
230
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
231
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
231
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
232
232
|
query: input.query,
|
|
233
233
|
providerID: descriptor.providerID
|
|
234
234
|
}));
|
|
@@ -249,7 +249,7 @@ var OpencodePlugin2 = define({
|
|
|
249
249
|
yield* Effect.all([ctx.catalog.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
250
250
|
});
|
|
251
251
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
252
|
-
yield* bus.subscribe(
|
|
252
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
253
253
|
yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
254
254
|
})
|
|
255
255
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info20,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info20 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -52,4 +52,4 @@ var encode2 = (provenance, replacement) => ({
|
|
|
52
52
|
var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
|
|
53
53
|
var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Info20, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
ID10,
|
|
3
|
+
Service61
|
|
4
|
+
} from "./mime-6pg9yxyn.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./mime-
|
|
6
|
+
Service65
|
|
7
|
+
} from "./mime-cfpeewsf.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./mime-
|
|
9
|
+
Service48
|
|
10
|
+
} from "./mime-pdcjakb6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service37,
|
|
13
13
|
args2
|
|
14
|
-
} from "./mime-
|
|
14
|
+
} from "./mime-wjf2ryf5.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./mime-
|
|
16
|
+
Service18
|
|
17
|
+
} from "./mime-2wyn68kt.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./mime-
|
|
19
|
+
make6
|
|
20
|
+
} from "./mime-tpnhe26j.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
23
|
} from "./mime-5daktx2q.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
var exports_command = {};
|
|
30
30
|
__export(exports_command, {
|
|
31
31
|
ConfigCommandPlugin: () => exports_command,
|
|
32
|
-
Plugin: () =>
|
|
32
|
+
Plugin: () => Plugin14
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -41,10 +41,10 @@ import { Effect, Option, PubSub, Schema, Stream } from "effect";
|
|
|
41
41
|
import { ChildProcess } from "effect/unstable/process";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
43
|
var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
44
|
-
var
|
|
44
|
+
var Plugin14 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service48;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -54,12 +54,12 @@ var Plugin19 = define({
|
|
|
54
54
|
const commands = yield* loadDirectory(fs, entry.path);
|
|
55
55
|
return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
|
|
56
56
|
});
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service65;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service37;
|
|
60
|
+
const sessions = yield* Service18;
|
|
61
|
+
const agents = yield* Service61;
|
|
62
|
+
const subagents = yield* make6;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin19 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID10.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|
|
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
|
|
|
204
204
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
205
205
|
var shellRegex = /!`([^`]+)`/g;
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { Plugin14, exports_command };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./mime-
|
|
6
|
+
} from "./mime-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize2,
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
} from "./mime-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
17
|
+
var exports_instructions3 = {};
|
|
18
|
+
__export(exports_instructions3, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions3,
|
|
20
20
|
make: () => make13,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update2
|
|
@@ -115,7 +115,7 @@ var key = Key3.make("core/codemode");
|
|
|
115
115
|
var codec = Schema.toCodecJson(Summary2);
|
|
116
116
|
var make13 = (inventory) => {
|
|
117
117
|
const catalog = inventory === undefined ? removed2 : summarize2(inventory);
|
|
118
|
-
return
|
|
118
|
+
return make20({
|
|
119
119
|
key,
|
|
120
120
|
codec,
|
|
121
121
|
read: Effect.succeed(catalog),
|
|
@@ -127,4 +127,4 @@ var make13 = (inventory) => {
|
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
export { render2, update2, make13,
|
|
130
|
+
export { render2, update2, make13, exports_instructions3 };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2,
|
|
4
4
|
UserInterruptedError2
|
|
5
|
-
} from "./mime-
|
|
5
|
+
} from "./mime-hs2a3b3x.js";
|
|
6
6
|
import {
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./mime-
|
|
8
|
+
} from "./mime-d6k63gab.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./mime-
|
|
11
|
+
} from "./mime-79j0w79y.js";
|
|
12
12
|
import {
|
|
13
13
|
ModelNotSelectedError2,
|
|
14
14
|
ModelUnavailableError2,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ModelInitializationError2,
|
|
19
19
|
UnresolvedProviderVariablesError2,
|
|
20
20
|
UnsupportedCompactionError2
|
|
21
|
-
} from "./mime-
|
|
21
|
+
} from "./mime-pt5fe4wm.js";
|
|
22
22
|
|
|
23
23
|
// src/session/to-session-error.ts
|
|
24
24
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/filesystem/watcher-binding.ts
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
function
|
|
3
|
+
function load2() {
|
|
4
4
|
const require2 = createRequire(import.meta.url);
|
|
5
5
|
const libc = typeof OPENCODE_LIBC === "undefined" ? undefined : OPENCODE_LIBC;
|
|
6
6
|
return require2(process.env.OPENCODE_PARCEL_WATCHER_PATH ?? `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linux" ? `-${libc || "glibc"}` : ""}`);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { load2 };
|