@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
|
useragent2
|
|
3
|
-
} from "./mime-
|
|
3
|
+
} from "./mime-z5e4xs1g.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
6
|
} from "./mime-56gdpj1q.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin39,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint6
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint6 = "https://search.parallel.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
objective: Schema.String,
|
|
24
24
|
search_queries: Schema.Array(Schema.String),
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin39 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -69,7 +69,7 @@ var Plugin34 = define({
|
|
|
69
69
|
execute: (input) => Effect.gen(function* () {
|
|
70
70
|
const connection = yield* ctx.integration.connection.active("parallel");
|
|
71
71
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
72
|
-
const result = yield* call2(http,
|
|
72
|
+
const result = yield* call2(http, endpoint6, "web_search", { input: McpInput, output: McpOutput }, {
|
|
73
73
|
objective: input.query,
|
|
74
74
|
search_queries: [input.query]
|
|
75
75
|
}, {
|
|
@@ -93,4 +93,4 @@ var Plugin34 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { endpoint6, Plugin39, exports_parallel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./mime-z4y4a432.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./mime-kg06axw8.js";
|
|
@@ -10,36 +10,36 @@ import {
|
|
|
10
10
|
} from "./mime-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
Agent: () => exports_agent4,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event14,
|
|
18
|
+
ID: () => ID10,
|
|
19
|
+
Info: () => Info23,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service61,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node65
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event14 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
|
-
var
|
|
33
|
+
var ID10 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
|
-
var defaultID2 =
|
|
35
|
+
var defaultID2 = ID10.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info23 = Agent.Info;
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service61 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const bus = yield*
|
|
41
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
42
|
+
const bus = yield* Service76;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
45
45
|
{ action: "external_directory", resource: SHELL_OUTPUT_GLOB(global.data), effect: "allow" },
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info23.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
79
79
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
80
80
|
if (configured)
|
|
81
81
|
return configured;
|
|
82
|
-
const build = selectable(data.agents.get(
|
|
82
|
+
const build = selectable(data.agents.get(ID10.make("build")));
|
|
83
83
|
if (build)
|
|
84
84
|
return build;
|
|
85
85
|
for (const agent of data.agents.values()) {
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
88
88
|
return fallback;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return Service61.of({
|
|
92
92
|
transform: state.transform,
|
|
93
93
|
reload: state.reload,
|
|
94
94
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -96,12 +96,12 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
96
96
|
}),
|
|
97
97
|
resolve: Effect.fnUntraced(function* (id) {
|
|
98
98
|
if (id !== undefined)
|
|
99
|
-
return state.get().agents.get(
|
|
99
|
+
return state.get().agents.get(ID10.make(id));
|
|
100
100
|
return selectedDefault();
|
|
101
101
|
}),
|
|
102
102
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
103
103
|
if (id !== undefined) {
|
|
104
|
-
const selected =
|
|
104
|
+
const selected = ID10.make(id);
|
|
105
105
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
106
106
|
}
|
|
107
107
|
const info = selectedDefault();
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node65 = makeLocationNode({ service: Service61, layer, deps: [node81, Global.node] });
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { ID10, Name3, defaultID2, Color2, Info23, Service61, node65, exports_agent4, Event14 };
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./mime-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./mime-
|
|
6
|
+
} from "./mime-8q7cq0y1.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./mime-
|
|
9
|
+
} from "./mime-hs2a3b3x.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./mime-
|
|
13
|
+
} from "./mime-rhjbct0v.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./mime-a1bz86dw.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./mime-
|
|
20
|
+
} from "./mime-cq37gk0t.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./mime-
|
|
25
|
+
} from "./mime-mfhfdr54.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load3,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./mime-z4y4a432.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./mime-
|
|
6
|
+
node53
|
|
7
|
+
} from "./mime-2cv161v0.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./mime-
|
|
9
|
+
Service4,
|
|
10
|
+
node7
|
|
11
|
+
} from "./mime-t92h3xfh.js";
|
|
12
12
|
import {
|
|
13
13
|
Service29
|
|
14
14
|
} from "./mime-4v7qdvcn.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
node20,
|
|
17
17
|
ID3
|
|
18
|
-
} from "./mime-
|
|
18
|
+
} from "./mime-gv2jqw69.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./mime-
|
|
20
|
+
Service5,
|
|
21
|
+
node8
|
|
22
|
+
} from "./mime-844ef7ks.js";
|
|
23
23
|
import {
|
|
24
24
|
requirements2,
|
|
25
25
|
list2
|
|
26
|
-
} from "./mime-
|
|
26
|
+
} from "./mime-z16ek00m.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
make4,
|
|
29
29
|
LoadError2
|
|
30
|
-
} from "./mime-
|
|
30
|
+
} from "./mime-tst7fck9.js";
|
|
31
31
|
import {
|
|
32
32
|
Updated2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./mime-
|
|
33
|
+
Service6,
|
|
34
|
+
node9
|
|
35
|
+
} from "./mime-anxsz8s7.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./mime-
|
|
37
|
+
Service7,
|
|
38
|
+
node10
|
|
39
|
+
} from "./mime-kpvyk30t.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
42
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
var exports_supervisor = {};
|
|
46
46
|
__export(exports_supervisor, {
|
|
47
47
|
PluginSupervisor: () => exports_supervisor,
|
|
48
|
-
layer: () =>
|
|
49
|
-
node: () =>
|
|
48
|
+
layer: () => layer4,
|
|
49
|
+
node: () => node6
|
|
50
50
|
});
|
|
51
51
|
import { Event } from "@opencode/schema/config";
|
|
52
52
|
import { Cause, Effect, Layer, Queue, Stream } from "effect";
|
|
@@ -124,14 +124,14 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
124
124
|
pending: [...pending]
|
|
125
125
|
};
|
|
126
126
|
});
|
|
127
|
-
var
|
|
127
|
+
var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
128
128
|
const registry = yield* Service29;
|
|
129
|
-
const sdk = yield*
|
|
130
|
-
const instance = yield*
|
|
131
|
-
const sources = yield*
|
|
132
|
-
const modules = yield*
|
|
133
|
-
const bus = yield*
|
|
134
|
-
const updates = yield*
|
|
129
|
+
const sdk = yield* Service6;
|
|
130
|
+
const instance = yield* Service5;
|
|
131
|
+
const sources = yield* Service4;
|
|
132
|
+
const modules = yield* make4();
|
|
133
|
+
const bus = yield* Service76;
|
|
134
|
+
const updates = yield* Service7;
|
|
135
135
|
const internal = yield* list2();
|
|
136
136
|
let release = yield* registry.hold();
|
|
137
137
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -206,14 +206,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
206
206
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
207
207
|
}));
|
|
208
208
|
var nodeDeps = [
|
|
209
|
-
|
|
210
|
-
node10,
|
|
209
|
+
node20,
|
|
211
210
|
node9,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
node8,
|
|
212
|
+
node7,
|
|
213
|
+
node10,
|
|
214
|
+
node81,
|
|
215
215
|
Npm.node,
|
|
216
|
-
|
|
216
|
+
node53,
|
|
217
217
|
requirements2
|
|
218
218
|
];
|
|
219
219
|
function pluginSource(target) {
|
|
@@ -221,6 +221,6 @@ function pluginSource(target) {
|
|
|
221
221
|
return { type: "local", path: target };
|
|
222
222
|
return { type: "package", target };
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var node6 = makeLocationNode({ name: "plugin-supervisor", layer: layer4, deps: nodeDeps });
|
|
225
225
|
|
|
226
|
-
export {
|
|
226
|
+
export { layer4, node6, exports_supervisor };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./mime-
|
|
2
|
+
ID10
|
|
3
|
+
} from "./mime-6pg9yxyn.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./mime-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./mime-
|
|
8
|
+
Info15
|
|
9
|
+
} from "./mime-818pfwc9.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./mime-
|
|
12
|
+
} from "./mime-b11403r6.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./mime-
|
|
15
|
+
Service48
|
|
16
|
+
} from "./mime-pdcjakb6.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./mime-5daktx2q.js";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info15);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
47
|
var Plugin17 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service48;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin17 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID10.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID10.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service77,
|
|
3
|
+
node82
|
|
4
|
+
} from "./mime-ke3mc4hq.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
7
|
} from "./mime-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: () => Service55,
|
|
17
|
+
node: () => node59
|
|
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/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service55 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
25
|
-
const db = (yield*
|
|
26
|
-
return
|
|
24
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
25
|
+
const db = (yield* Service77).db;
|
|
26
|
+
return Service55.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 node59 = makeGlobalNode({ service: Service55, layer, deps: [node82] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service55, node59, exports_kv };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./mime-z4y4a432.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./mime-
|
|
7
|
+
Service74,
|
|
8
|
+
node79
|
|
9
|
+
} from "./mime-7fejhyaj.js";
|
|
10
10
|
import {
|
|
11
11
|
create3
|
|
12
12
|
} from "./mime-kg06axw8.js";
|
|
13
13
|
import {
|
|
14
14
|
validateAnswer2,
|
|
15
15
|
validateFields2
|
|
16
|
-
} from "./mime-
|
|
16
|
+
} from "./mime-9h8p7dc2.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./mime-9rqn6x4v.js";
|
|
@@ -40,8 +40,8 @@ __export(exports_integration, {
|
|
|
40
40
|
MethodID: () => MethodID2,
|
|
41
41
|
OAuthMethod: () => OAuthMethod2,
|
|
42
42
|
Ref: () => Ref3,
|
|
43
|
-
Service: () =>
|
|
44
|
-
node: () =>
|
|
43
|
+
Service: () => Service73,
|
|
44
|
+
node: () => node78
|
|
45
45
|
});
|
|
46
46
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
47
47
|
import {
|
|
@@ -94,14 +94,14 @@ class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNot
|
|
|
94
94
|
}
|
|
95
95
|
var Ref3 = Integration.Ref;
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class Service73 extends Context.Service()("@opencode/Integration") {
|
|
98
98
|
}
|
|
99
99
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
100
100
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
101
101
|
var scrubInterval = Duration.seconds(30);
|
|
102
|
-
var layer = Layer.effect(
|
|
103
|
-
const credentials = yield*
|
|
104
|
-
const bus = yield*
|
|
102
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
103
|
+
const credentials = yield* Service74;
|
|
104
|
+
const bus = yield* Service76;
|
|
105
105
|
const processes = yield* AppProcess.Service;
|
|
106
106
|
const scope = yield* Scope.Scope;
|
|
107
107
|
const attempts = SynchronizedRef.makeUnsafe(new Map);
|
|
@@ -424,7 +424,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
424
424
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
425
425
|
return CommandAttempt2.make({ attemptID, time });
|
|
426
426
|
});
|
|
427
|
-
return
|
|
427
|
+
return Service73.of({
|
|
428
428
|
transform: state.transform,
|
|
429
429
|
reload: state.reload,
|
|
430
430
|
get: Effect.fn("Integration.get")(function* (id) {
|
|
@@ -572,10 +572,10 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
572
572
|
}
|
|
573
573
|
});
|
|
574
574
|
}));
|
|
575
|
-
var
|
|
576
|
-
service:
|
|
575
|
+
var node78 = makeLocationNode({
|
|
576
|
+
service: Service73,
|
|
577
577
|
layer,
|
|
578
|
-
deps: [
|
|
578
|
+
deps: [node79, node81, AppProcess.node]
|
|
579
579
|
});
|
|
580
580
|
|
|
581
|
-
export { ID14, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, EnvMethod2, Method2, Info29, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3,
|
|
581
|
+
export { ID14, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, EnvMethod2, Method2, Info29, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service73, node78, exports_integration, Event18 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./mime-
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./mime-z4y4a432.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./mime-
|
|
7
|
+
} from "./mime-wjf2ryf5.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./mime-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: () => NotFoundError6,
|
|
20
|
+
Options: () => Options4,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
configured: () =>
|
|
25
|
-
layer: () =>
|
|
26
|
-
node: () =>
|
|
22
|
+
Service: () => Service36,
|
|
23
|
+
UnavailableError: () => UnavailableError2,
|
|
24
|
+
configured: () => configured4,
|
|
25
|
+
layer: () => layer14,
|
|
26
|
+
node: () => node40
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,22 +35,22 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options4 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError6 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service36 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
53
|
-
const bus = yield*
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service36, 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(Service46, 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 NotFoundError6({ 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(Service46, 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 UnavailableError2({ 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(Service46, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service36.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -255,17 +255,17 @@ var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* (
|
|
|
255
255
|
attach
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
261
|
-
layer: options === undefined ?
|
|
262
|
-
deps: [
|
|
258
|
+
var layer14 = makeLayer();
|
|
259
|
+
var configured4 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service36,
|
|
261
|
+
layer: options === undefined ? layer14 : makeLayer(options),
|
|
262
|
+
deps: [node81, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node40 = configured4();
|
|
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 UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
268
|
+
var unavailable = (error) => new UnavailableError2({ 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 { Options4, UnavailableError2, NotFoundError6, Service36, layer14, configured4, node40, exports_persistent_pty, Handoff2 };
|