@opencode/core 0.0.0-dev-20981 → 0.0.0-dev-20982
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 +73 -73
- package/dist/aisdk-native.js +71 -71
- package/dist/aisdk.js +76 -76
- package/dist/app.js +9 -9
- package/dist/bus.js +65 -65
- package/dist/chunks/{model-zwh4a1ab.js → model-04ym1fwe.js} +5 -5
- package/dist/chunks/{model-efwcmd71.js → model-0fjeggm9.js} +9 -9
- package/dist/chunks/{model-7j1a6jdx.js → model-0m0wxxk9.js} +18 -18
- package/dist/chunks/{model-d8mxpyz7.js → model-0njq27v6.js} +37 -37
- package/dist/chunks/{model-cwzd7x1t.js → model-0ppgc59f.js} +4 -4
- package/dist/chunks/{model-0nsjxa2x.js → model-13wqnzak.js} +3 -3
- package/dist/chunks/{model-w1yg9qkm.js → model-16nrxpzh.js} +16 -16
- package/dist/chunks/{model-r2jsz6zh.js → model-1a5352wv.js} +4 -4
- package/dist/chunks/{model-v9j8n8rs.js → model-1bwe3qwc.js} +8 -8
- package/dist/chunks/{model-x804m9tz.js → model-1dds5gcz.js} +23 -23
- package/dist/chunks/{model-7vfd4xz9.js → model-1gpb38yh.js} +5 -5
- package/dist/chunks/{model-tzgwpa0q.js → model-1qreg6w5.js} +30 -30
- package/dist/chunks/{model-fxaymqdw.js → model-1w2wqhfv.js} +3 -3
- package/dist/chunks/{model-t66atx3n.js → model-1wv6ewf4.js} +16 -16
- package/dist/chunks/{model-2k71kv7p.js → model-1y283654.js} +3 -3
- package/dist/chunks/{model-aq7k84zy.js → model-20zrxk89.js} +12 -12
- package/dist/chunks/{model-2h69y2j1.js → model-228yc791.js} +25 -25
- package/dist/chunks/{model-cqbr470d.js → model-249n4y23.js} +4 -4
- package/dist/chunks/{model-5y480sgp.js → model-2eegacq4.js} +7 -7
- package/dist/chunks/{model-t1vvqrnj.js → model-2gft9see.js} +21 -21
- package/dist/chunks/{model-fcrkznn8.js → model-2k8khapm.js} +4 -4
- package/dist/chunks/{model-810ve36t.js → model-30ezw4dz.js} +20 -20
- package/dist/chunks/{model-dw52cd0g.js → model-30x88qrh.js} +3 -3
- package/dist/chunks/{model-gd0tnyjc.js → model-3g8j9he4.js} +1 -1
- package/dist/chunks/{model-6qyp6q13.js → model-3n54exg3.js} +12 -12
- package/dist/chunks/{model-674w987k.js → model-3vhfphj7.js} +32 -32
- package/dist/chunks/{model-zxf3xmnj.js → model-3xvck7mv.js} +14 -14
- package/dist/chunks/{model-cz1na6pr.js → model-41k1h118.js} +16 -16
- package/dist/chunks/{model-87qbasm5.js → model-453djzx7.js} +8 -8
- package/dist/chunks/{model-4wytv71p.js → model-4e171ha0.js} +1 -1
- package/dist/chunks/{model-dc27vedx.js → model-4kca7kha.js} +25 -25
- package/dist/chunks/{model-nng5j9h6.js → model-4p1qn5j9.js} +3 -3
- package/dist/chunks/{model-1e0t64bm.js → model-4z3vwhnt.js} +9 -9
- package/dist/chunks/{model-svdem9xa.js → model-4zjcfn6g.js} +16 -16
- package/dist/chunks/{model-hk9t36gz.js → model-568arzm9.js} +3 -3
- package/dist/chunks/{model-h83xjv7f.js → model-57myy5jh.js} +3 -3
- package/dist/chunks/{model-vjvcezxg.js → model-5a7z4yxf.js} +8 -8
- package/dist/chunks/{model-n7m069ya.js → model-5e81dfca.js} +39 -39
- package/dist/chunks/{model-e3qxr5gk.js → model-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-mksqe0jy.js → model-5s0x098x.js} +19 -19
- package/dist/chunks/{model-5agp6482.js → model-5xzyc826.js} +26 -26
- package/dist/chunks/{model-09cyt2wq.js → model-61sfa1aj.js} +24 -24
- package/dist/chunks/{model-m77chmsg.js → model-6897dy4y.js} +8 -8
- package/dist/chunks/{model-yyq8xdja.js → model-68yh2fx3.js} +320 -320
- package/dist/chunks/{model-mm8a7tkj.js → model-6eadky4a.js} +48 -48
- package/dist/chunks/{model-w8038a0g.js → model-6epe09p4.js} +37 -37
- package/dist/chunks/{model-da571fjn.js → model-6exrpman.js} +22 -22
- package/dist/chunks/{model-a63pq2m6.js → model-6hh0p4jj.js} +9 -9
- package/dist/chunks/{model-wgahhr0x.js → model-6kg1vfnr.js} +7 -7
- package/dist/chunks/{model-dt5p2gzz.js → model-6nsfmgdp.js} +25 -25
- package/dist/chunks/model-6vb0jgt0.js +26 -0
- package/dist/chunks/{model-xscv4v2z.js → model-6w1q88cy.js} +7 -7
- package/dist/chunks/{model-hsn420a8.js → model-6x53d5fk.js} +13 -13
- package/dist/chunks/{model-e29c15sd.js → model-782zrs06.js} +3 -3
- package/dist/chunks/{model-11n2fvbk.js → model-79rwpvn4.js} +38 -38
- package/dist/chunks/{model-kas6drz3.js → model-7hbcydxm.js} +30 -30
- package/dist/chunks/{model-zy3z5mtm.js → model-7j4s1nts.js} +13 -13
- package/dist/chunks/{model-k16ggyyw.js → model-7nh8f0wn.js} +26 -26
- package/dist/chunks/{model-gsxrv0fy.js → model-7pw8yz1b.js} +9 -9
- package/dist/chunks/{model-fe4vsmnr.js → model-7x0qfkxs.js} +9 -9
- package/dist/chunks/{model-gwda5h78.js → model-81njmjsm.js} +9 -9
- package/dist/chunks/{model-w30whbb5.js → model-866gnewa.js} +12 -12
- package/dist/chunks/{model-n5ckd50m.js → model-868thhtj.js} +33 -33
- package/dist/chunks/{model-8a6bygkp.js → model-8beabzaw.js} +8 -8
- package/dist/chunks/{model-agkn6djb.js → model-8bv2d044.js} +17 -17
- package/dist/chunks/{model-wge3n3kq.js → model-8kamc0n0.js} +7 -7
- package/dist/chunks/{model-sfk668n4.js → model-8rez7pc9.js} +4 -4
- package/dist/chunks/{model-v577e917.js → model-918hk0p8.js} +17 -17
- package/dist/chunks/{model-142fkw1n.js → model-97868axb.js} +15 -15
- package/dist/chunks/{model-tg4ne0mz.js → model-9dk8dbn0.js} +51 -51
- package/dist/chunks/{model-mn4hnxkt.js → model-9jryrv3a.js} +12 -12
- package/dist/chunks/{model-nktcn7bv.js → model-9m88xfvv.js} +35 -35
- package/dist/chunks/{model-tfpgne2e.js → model-9syxb0r3.js} +10 -10
- package/dist/chunks/{model-gsndwzqv.js → model-ac9zsgge.js} +17 -17
- package/dist/chunks/{model-x661k3y3.js → model-addxnjmp.js} +3 -3
- package/dist/chunks/{model-z5crsmww.js → model-ajzsbz6h.js} +3 -3
- package/dist/chunks/{model-2ach13s2.js → model-ap7d67yw.js} +42 -42
- package/dist/chunks/{model-dyvsbq8q.js → model-apnwk0zd.js} +10 -10
- package/dist/chunks/{model-5gw5nkjt.js → model-aspgww5t.js} +82 -82
- package/dist/chunks/{model-kx2n7v0t.js → model-avj7e4e4.js} +10 -10
- package/dist/chunks/{model-m82j3vqr.js → model-b1et22ex.js} +26 -26
- package/dist/chunks/{model-7z93154z.js → model-b3dw1nxt.js} +21 -21
- package/dist/chunks/{model-hs2sc01j.js → model-bcffw6zz.js} +41 -41
- package/dist/chunks/{model-rgrzrdjr.js → model-bpxpvztg.js} +22 -22
- package/dist/chunks/{model-e5yhdxdz.js → model-bq5355gp.js} +41 -41
- package/dist/chunks/{model-cmwkp3r5.js → model-br0tr5aq.js} +7 -7
- package/dist/chunks/{model-cxmm8qc0.js → model-bsqtyhzw.js} +27 -27
- package/dist/chunks/{model-909p1r3q.js → model-c8bydgjz.js} +5 -5
- package/dist/chunks/{model-6w89m9p1.js → model-cazcby7s.js} +19 -19
- package/dist/chunks/{model-zswvs50y.js → model-csjk4z4y.js} +17 -17
- package/dist/chunks/{model-mxjbaaz4.js → model-dbz9e5sv.js} +20 -20
- package/dist/chunks/{model-msyrw4bq.js → model-dd5e861g.js} +4 -4
- package/dist/chunks/{model-m5b2t9yd.js → model-dexdmn7s.js} +55 -55
- package/dist/chunks/{model-k6zkg7sr.js → model-dhfmk2zr.js} +7 -7
- package/dist/chunks/{model-zvt5dnpc.js → model-dhmh7aw6.js} +3 -3
- package/dist/chunks/{model-8sgxnewj.js → model-dm0nfydx.js} +8 -8
- package/dist/chunks/{model-y71avatq.js → model-dpkg50ah.js} +3 -3
- package/dist/chunks/{model-ktgr00t7.js → model-drnf6xwf.js} +1 -1
- package/dist/chunks/{model-f6g8pkb4.js → model-dxw5vmgr.js} +16 -16
- package/dist/chunks/{model-t9fz1x23.js → model-e01gj4cd.js} +62 -62
- package/dist/chunks/{model-r2z489rp.js → model-ed1g29hy.js} +2 -2
- package/dist/chunks/{model-nsnm0d77.js → model-efjxf17k.js} +38 -38
- package/dist/chunks/{model-y2tp8ndf.js → model-ekw32q82.js} +9 -9
- package/dist/chunks/{model-1gh4n1ba.js → model-es9h6wy0.js} +4 -4
- package/dist/chunks/{model-xkcm35ep.js → model-exwpqpdy.js} +4 -4
- package/dist/chunks/{model-zn6ek04n.js → model-f6fz9g7x.js} +6 -6
- package/dist/chunks/{model-z1dnb0jf.js → model-f6j4pfw7.js} +12 -12
- package/dist/chunks/{model-4v7qdvcn.js → model-f81tjggh.js} +4 -4
- package/dist/chunks/{model-gyksvwm5.js → model-ff251rbv.js} +15 -15
- package/dist/chunks/{model-7src2pyj.js → model-fjb8erg1.js} +6 -6
- package/dist/chunks/{model-zvk9pegx.js → model-fng1q3a6.js} +34 -34
- package/dist/chunks/{model-0996nyz8.js → model-fqcgpcra.js} +8 -8
- package/dist/chunks/{model-1rd80ksx.js → model-g5ppxhgr.js} +16 -16
- package/dist/chunks/{model-xthmztap.js → model-gj1adh3k.js} +20 -20
- package/dist/chunks/{model-z6c3x22d.js → model-gj71zhbs.js} +3 -3
- package/dist/chunks/{model-qxcp4ttm.js → model-gs2he756.js} +182 -182
- package/dist/chunks/{model-cxkbmgp7.js → model-gtr46jpy.js} +12 -12
- package/dist/chunks/{model-hrg0xqaw.js → model-h3cseehx.js} +27 -27
- package/dist/chunks/{model-x5wrmng7.js → model-hcv80w8f.js} +9 -9
- package/dist/chunks/{model-8kw59tg1.js → model-hh74v2b0.js} +16 -16
- package/dist/chunks/{model-gxra9ntr.js → model-hjd8wwja.js} +22 -22
- package/dist/chunks/{model-0b5g1ynf.js → model-hkffa77z.js} +1 -1
- package/dist/chunks/{model-2ypdw6v4.js → model-hvh251q6.js} +8 -8
- package/dist/chunks/{model-605fdbxk.js → model-hz9wj0ed.js} +1 -1
- package/dist/chunks/{model-7sr4khpq.js → model-j142m76w.js} +16 -16
- package/dist/chunks/{model-q79edn6k.js → model-jcgcvvgv.js} +19 -19
- package/dist/chunks/{model-7dmr3qxn.js → model-jj9d5szw.js} +11 -11
- package/dist/chunks/{model-6g107h22.js → model-jk540des.js} +1 -1
- package/dist/chunks/{model-zm14bp5n.js → model-jmkbrx6z.js} +40 -40
- package/dist/chunks/{model-wr9rbap8.js → model-jvjaj5rz.js} +14 -14
- package/dist/chunks/{model-xeea7gjf.js → model-jwwy4gf7.js} +5 -5
- package/dist/chunks/{model-x076sjt5.js → model-k4h0p2n0.js} +6 -6
- package/dist/chunks/{model-2p142bke.js → model-k6fa6tfe.js} +14 -14
- package/dist/chunks/{model-11m4y6qd.js → model-k83c78af.js} +26 -26
- package/dist/chunks/{model-sddez406.js → model-kkjc9dy5.js} +13 -13
- package/dist/chunks/{model-8dt2m3qt.js → model-kvw3mq9v.js} +9 -9
- package/dist/chunks/{model-rs6n5dpz.js → model-kx1gjmzp.js} +5 -5
- package/dist/chunks/{model-em98dst4.js → model-m0b7pkkd.js} +28 -28
- package/dist/chunks/{model-b1a1n7cj.js → model-my4zabxr.js} +3 -3
- package/dist/chunks/{model-4z58m4b4.js → model-n1n192bv.js} +3 -3
- package/dist/chunks/{model-tdw1jchh.js → model-n5n1zjbv.js} +32 -32
- package/dist/chunks/{model-zhspmtmh.js → model-n724kc2b.js} +3 -3
- package/dist/chunks/{model-xheas1rx.js → model-n8ja6an3.js} +8 -8
- package/dist/chunks/{model-0d7p0p78.js → model-nd7vcjm8.js} +13 -13
- package/dist/chunks/{model-kh162zpt.js → model-nf4ty3xq.js} +21 -21
- package/dist/chunks/{model-y8k4q3en.js → model-nf63sdyz.js} +19 -19
- package/dist/chunks/{model-xsa1hygm.js → model-nfh0qqsf.js} +21 -21
- package/dist/chunks/{model-2stkn66k.js → model-nftsbvkz.js} +25 -25
- package/dist/chunks/{model-4ybf7fnk.js → model-npyp060g.js} +8 -8
- package/dist/chunks/{model-jekssrtq.js → model-npypc4rd.js} +7 -7
- package/dist/chunks/{model-h2ssqnba.js → model-p2c1p7fg.js} +4 -4
- package/dist/chunks/{model-smdpqrpz.js → model-p3mytphf.js} +22 -22
- package/dist/chunks/{model-5z0y4e44.js → model-p7jr90hv.js} +15 -15
- package/dist/chunks/{model-0br3sbwn.js → model-pg3d8dpb.js} +3 -3
- package/dist/chunks/{model-d7x0sh0y.js → model-phz50fbd.js} +7 -7
- package/dist/chunks/{model-2pfz9zj6.js → model-pk4brtys.js} +29 -29
- package/dist/chunks/{model-xnv46bg2.js → model-pyz1vfrp.js} +21 -21
- package/dist/chunks/{model-0j77ygfz.js → model-q0xm7vwc.js} +4 -4
- package/dist/chunks/{model-kaxyez5z.js → model-q2736rqt.js} +17 -17
- package/dist/chunks/{model-2qg26xbp.js → model-q504mf2g.js} +2 -2
- package/dist/chunks/{model-cekk119z.js → model-q81gz903.js} +3 -3
- package/dist/chunks/{model-2mcax4ft.js → model-qbfqzset.js} +12 -12
- package/dist/chunks/{model-kbxmpcp5.js → model-qjcj5bxx.js} +9 -9
- package/dist/chunks/{model-999bzrsf.js → model-qpzj3qa9.js} +5 -5
- package/dist/chunks/{model-k4dt4j6g.js → model-qwsskq9g.js} +20 -20
- package/dist/chunks/{model-zqm6kvvn.js → model-qy52ep8z.js} +16 -16
- package/dist/chunks/{model-rdza6gx1.js → model-r2a53ztr.js} +13 -13
- package/dist/chunks/{model-8vkaqw1w.js → model-r35mg9et.js} +12 -12
- package/dist/chunks/{model-f20efee0.js → model-r6734q5n.js} +10 -10
- package/dist/chunks/{model-qxhhhvy1.js → model-r6xwq2vk.js} +17 -17
- package/dist/chunks/{model-rm6mdncc.js → model-r7ka9ch8.js} +18 -18
- package/dist/chunks/{model-sbem282a.js → model-rgqhra37.js} +25 -25
- package/dist/chunks/{model-gj4dz15w.js → model-rh2yf6b2.js} +11 -11
- package/dist/chunks/{model-stfafkkt.js → model-rpxwryvh.js} +8 -8
- package/dist/chunks/{model-9c2gx1av.js → model-rsswyzw7.js} +12 -12
- package/dist/chunks/{model-s7ev4p20.js → model-rzn7k92n.js} +2 -2
- package/dist/chunks/{model-hpje1asd.js → model-s4q167yz.js} +16 -16
- package/dist/chunks/{model-t550f9t1.js → model-s8d7rejh.js} +3 -3
- package/dist/chunks/{model-479aec3e.js → model-sffa00cj.js} +26 -26
- package/dist/chunks/{model-b8rasqmm.js → model-sfj6zb2f.js} +85 -85
- package/dist/chunks/{model-pygwap58.js → model-sjyz1h2d.js} +24 -24
- package/dist/chunks/{model-8arnnpza.js → model-sk663hk0.js} +26 -26
- package/dist/chunks/{model-nhyne0rh.js → model-sxkxnm8w.js} +4 -4
- package/dist/chunks/{model-a2ew8a62.js → model-sxz6gkc3.js} +6 -6
- package/dist/chunks/{model-j1mj860n.js → model-tat11k01.js} +7 -7
- package/dist/chunks/{model-b22wppy7.js → model-ts98378q.js} +4 -4
- package/dist/chunks/{model-1j6m29mr.js → model-txm3e8qz.js} +8 -8
- package/dist/chunks/{model-dw5aamzj.js → model-tyawky02.js} +15 -15
- package/dist/chunks/{model-6g7e4dd5.js → model-v0es1rhs.js} +5 -5
- package/dist/chunks/{model-0f58zsv5.js → model-v9sgcpv9.js} +41 -41
- package/dist/chunks/{model-h9v0byjp.js → model-v9vx4ha1.js} +7 -7
- package/dist/chunks/{model-neg72jb9.js → model-vbktcqf2.js} +18 -18
- package/dist/chunks/{model-jwah6ncg.js → model-vdqx43ex.js} +1 -1
- package/dist/chunks/{model-t89fqycx.js → model-vgx6weyf.js} +7 -7
- package/dist/chunks/{model-nzep555n.js → model-vpdcaygd.js} +36 -36
- package/dist/chunks/{model-jqjtjqm5.js → model-vta2cxva.js} +14 -14
- package/dist/chunks/{model-6hernfpx.js → model-vtdgthxf.js} +20 -20
- package/dist/chunks/{model-84txncab.js → model-w1eejvng.js} +4 -4
- package/dist/chunks/{model-b3f8fkhc.js → model-wecqtg5s.js} +3 -3
- package/dist/chunks/{model-yb5kpwm0.js → model-wj5z0n6a.js} +16 -16
- package/dist/chunks/{model-pff3x97k.js → model-wk6sqcc5.js} +8 -8
- package/dist/chunks/model-wk815h5a.js +253 -0
- package/dist/chunks/{model-3aq39rmm.js → model-wr3xabqx.js} +11 -11
- package/dist/chunks/{model-x76z1jaq.js → model-wwhqjdsn.js} +16 -16
- package/dist/chunks/{model-edr8mr1d.js → model-wwncb6zf.js} +12 -12
- package/dist/chunks/{model-gs3mfcxs.js → model-wzf7q3t7.js} +27 -27
- package/dist/chunks/{model-s8cdmyqk.js → model-wzvjkcye.js} +17 -17
- package/dist/chunks/{model-x4za3xcr.js → model-x04pqkrt.js} +1 -1
- package/dist/chunks/{model-c0eqp439.js → model-xea223yn.js} +1 -1
- package/dist/chunks/{model-mvp4hync.js → model-xmk3nhga.js} +17 -17
- package/dist/chunks/{model-1b2xjh8d.js → model-y9yrahrn.js} +16 -16
- package/dist/chunks/{model-bjx1sjef.js → model-ywt8jp22.js} +7 -7
- package/dist/chunks/{model-z7tka8yh.js → model-yxebmv17.js} +21 -21
- package/dist/chunks/{model-c4ads7bv.js → model-z164wy97.js} +14 -14
- package/dist/chunks/{model-b888nyxg.js → model-z1j5fswa.js} +1 -1
- package/dist/chunks/{model-f3ttcj74.js → model-z4526mx1.js} +15 -15
- package/dist/chunks/{model-22xnzr80.js → model-z5d5yc96.js} +9 -9
- package/dist/chunks/{model-t4dv37ma.js → model-zm0hys1r.js} +18 -18
- package/dist/chunks/{model-y8y4787y.js → model-zmfgr60r.js} +7 -7
- package/dist/chunks/{model-bc32chh7.js → model-zmtn6p76.js} +12 -12
- package/dist/chunks/{model-fketk0k4.js → model-znj2jcy4.js} +8 -8
- package/dist/chunks/{model-az68kh8z.js → model-zr2nq6gp.js} +1 -1
- package/dist/chunks/{model-57w6ys69.js → model-zzdhwppw.js} +45 -45
- package/dist/codemode/instructions.js +2 -2
- package/dist/command.js +75 -75
- package/dist/config/discovery.js +66 -66
- package/dist/config/normalize.js +80 -80
- package/dist/config/plugin/agent.js +96 -96
- package/dist/config/plugin/command.js +177 -177
- package/dist/config/plugin/compaction.js +126 -126
- package/dist/config/plugin/compatibility.js +111 -111
- package/dist/config/plugin/formatter.js +95 -95
- package/dist/config/plugin/image.js +94 -94
- package/dist/config/plugin/instruction.js +93 -93
- package/dist/config/plugin/location-watcher.js +94 -94
- package/dist/config/plugin/mcp.js +104 -104
- package/dist/config/plugin/policy.js +95 -95
- package/dist/config/plugin/provider.js +92 -92
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +96 -96
- package/dist/config/plugin/skill-file.js +81 -81
- package/dist/config/plugin/skill.js +112 -112
- package/dist/config/plugin/snapshot.js +94 -94
- package/dist/config/plugin/source.js +97 -97
- package/dist/config/plugin/tool-output.js +95 -95
- package/dist/config/plugin/websearch.js +95 -95
- package/dist/config/plugin/worktree.js +95 -95
- package/dist/config/variable.js +2 -2
- package/dist/config.js +96 -96
- package/dist/credential.js +67 -67
- package/dist/database/database.js +63 -63
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +40 -40
- package/dist/database/migration.js +42 -42
- package/dist/database/v1-migration.bun.js +12 -12
- package/dist/effect/app-node-builder.js +234 -234
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +75 -75
- package/dist/environment/index.js +80 -80
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +84 -84
- package/dist/file-mutation.js +76 -76
- package/dist/filesystem/location-watcher.js +187 -187
- package/dist/filesystem/search.js +79 -79
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +8 -8
- package/dist/filesystem.js +76 -76
- package/dist/form.js +66 -66
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +71 -71
- package/dist/generate.js +83 -83
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +81 -81
- package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +317 -317
- package/dist/instruction-discovery.js +74 -74
- package/dist/instructions/builtins.js +71 -71
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +71 -71
- package/dist/job.js +65 -65
- package/dist/kv.js +62 -62
- package/dist/location-activity.js +56 -56
- package/dist/location-lifecycle.js +87 -87
- package/dist/location-service-map.js +70 -70
- package/dist/location-services.js +316 -316
- package/dist/location.js +71 -71
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +87 -87
- package/dist/mcp/instructions.js +107 -107
- package/dist/mcp/oauth.js +11 -11
- package/dist/mcp/stdio.js +72 -72
- package/dist/modal/models.js +81 -81
- package/dist/model-resolver.js +80 -80
- package/dist/model.js +80 -80
- package/dist/models-dev.js +89 -89
- package/dist/permission/saved.js +66 -66
- package/dist/permission.js +91 -91
- package/dist/persistent-pty/index.js +76 -76
- package/dist/persistent-pty.js +62 -62
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +84 -84
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +181 -181
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +290 -290
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +78 -78
- package/dist/plugin/module.js +95 -95
- package/dist/plugin/plan.js +82 -82
- package/dist/plugin/provider/amazon-bedrock.js +72 -72
- package/dist/plugin/provider/azure.js +95 -95
- package/dist/plugin/provider/chatgpt.js +93 -93
- 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 +91 -91
- package/dist/plugin/provider/digitalocean.js +74 -74
- package/dist/plugin/provider/github-copilot.js +76 -76
- package/dist/plugin/provider/gitlab.js +74 -74
- package/dist/plugin/provider/google-vertex.js +92 -92
- package/dist/plugin/provider/llmgateway.js +66 -66
- package/dist/plugin/provider/lmstudio.js +104 -104
- package/dist/plugin/provider/local.js +101 -101
- package/dist/plugin/provider/modal.js +74 -74
- package/dist/plugin/provider/ollama.js +104 -104
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +73 -73
- package/dist/plugin/provider/poe.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +72 -72
- package/dist/plugin/provider/snowflake-cortex.js +93 -93
- package/dist/plugin/provider/vercel.js +72 -72
- package/dist/plugin/provider/vllm.js +104 -104
- package/dist/plugin/provider/xai.js +73 -73
- package/dist/plugin/provider.js +138 -138
- package/dist/plugin/sdk.js +66 -66
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +112 -112
- package/dist/plugin/supervisor.js +307 -307
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +70 -70
- package/dist/plugin/vcs/hg.js +70 -70
- package/dist/plugin/verbosity.js +75 -75
- package/dist/plugin/warming.js +93 -93
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +194 -194
- package/dist/project/schema.js +5 -5
- package/dist/project.js +72 -72
- package/dist/provider.js +77 -77
- package/dist/pty.js +82 -82
- package/dist/reference/instructions.js +76 -76
- package/dist/reference.js +74 -74
- package/dist/repository-cache.js +68 -68
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +76 -76
- package/dist/rpc.js +70 -70
- package/dist/session/command.js +64 -64
- package/dist/session/compaction.js +107 -107
- package/dist/session/context.js +126 -126
- package/dist/session/diff.js +70 -70
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +116 -116
- package/dist/session/execution.js +102 -102
- package/dist/session/generate.js +127 -127
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +70 -70
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +63 -63
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +78 -78
- package/dist/session/model-request.js +94 -94
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +104 -104
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +85 -85
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +71 -71
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +189 -189
- package/dist/session/runner/model.js +80 -80
- package/dist/session/runner/publish-llm-event.js +90 -90
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +100 -100
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +138 -138
- package/dist/session/shell.js +108 -108
- package/dist/session/skill.js +83 -83
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +69 -69
- package/dist/session/subagent-job.js +175 -175
- package/dist/session/title.js +123 -123
- package/dist/session/to-session-error.js +89 -89
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +180 -180
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +111 -111
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +87 -87
- package/dist/skill.js +92 -92
- package/dist/snapshot.js +73 -73
- package/dist/tool/mcp.js +104 -104
- package/dist/tool/plugin/edit.js +99 -99
- package/dist/tool/plugin/glob.js +102 -102
- package/dist/tool/plugin/grep.js +100 -100
- package/dist/tool/plugin/mcp-resource.js +95 -95
- package/dist/tool/plugin/opencode.js +87 -87
- package/dist/tool/plugin/patch.js +101 -101
- package/dist/tool/plugin/question.js +83 -83
- package/dist/tool/plugin/read.js +103 -103
- package/dist/tool/plugin/shell.js +181 -181
- package/dist/tool/plugin/skill.js +91 -91
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/webfetch.js +89 -89
- package/dist/tool/plugin/websearch.js +94 -94
- package/dist/tool/plugin/write.js +101 -101
- package/dist/tool/read-filesystem.js +79 -79
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +73 -73
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +73 -73
- package/dist/vcs.js +73 -73
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +65 -65
- package/dist/wellknown.js +70 -70
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +71 -71
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/strategies.js +72 -72
- package/dist/worktree.js +80 -80
- package/package.json +8 -8
- package/dist/chunks/model-fz6md8dw.js +0 -26
- package/dist/chunks/model-s3zr8hxy.js +0 -253
- /package/dist/chunks/{model-5hx7d1d6.js → model-6xw3seg4.js} +0 -0
- /package/dist/chunks/{model-f1q4hcq2.js → model-khxmfjj5.js} +0 -0
- /package/dist/chunks/{model-d7hemvnj.js → model-n7gz5fxy.js} +0 -0
- /package/dist/chunks/{model-f7ma11rg.js → model-nzs7qp78.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./model-qy52ep8z.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./model-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./model-
|
|
12
|
+
} from "./model-jmkbrx6z.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./model-
|
|
14
|
+
Service79,
|
|
15
|
+
node83
|
|
16
|
+
} from "./model-ff251rbv.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info4,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service21,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node24
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info4, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service21 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const bus = yield*
|
|
61
|
+
const location = yield* Service79;
|
|
62
|
+
const bus = yield* Service82;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info4));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service21.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node24 = makeLocationNode({
|
|
191
|
+
service: Service21,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node83, node86]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info4, Mode2, DiffError2, InitializeError2, Service21, node24, exports_vcs };
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "./model-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/error.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
ConfigErrorV1: () =>
|
|
9
|
+
var exports_error = {};
|
|
10
|
+
__export(exports_error, {
|
|
11
|
+
ConfigErrorV1: () => exports_error,
|
|
12
12
|
InvalidError: () => InvalidError2
|
|
13
13
|
});
|
|
14
14
|
import { Schema } from "effect";
|
|
@@ -22,4 +22,4 @@ var InvalidError2 = NamedError2.create("ConfigInvalidError", {
|
|
|
22
22
|
message: Schema.optional(Schema.String)
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
export { InvalidError2,
|
|
25
|
+
export { InvalidError2, exports_error };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-9syxb0r3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service82
|
|
6
|
+
} from "./model-qy52ep8z.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event20,
|
|
10
10
|
Service74
|
|
11
|
-
} from "./model-
|
|
11
|
+
} from "./model-5s0x098x.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./model-
|
|
15
|
+
} from "./model-r7ka9ch8.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID13,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./model-
|
|
19
|
+
} from "./model-nf4ty3xq.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./model-
|
|
23
|
+
Info21
|
|
24
|
+
} from "./model-1dds5gcz.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./model-54ma36ye.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./model-
|
|
34
|
+
} from "./model-sxkxnm8w.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID13.openai;
|
|
47
|
+
var integrationID = ID14.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -179,7 +179,7 @@ function listen(server) {
|
|
|
179
179
|
var ChatGPTPlugin2 = define({
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
|
-
const bus = yield*
|
|
182
|
+
const bus = yield* Service82;
|
|
183
183
|
const credentials = yield* Service74;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info21.default(ID13.openai, ID12.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
aisdk2,
|
|
8
8
|
packageName2
|
|
9
|
-
} from "./model-
|
|
9
|
+
} from "./model-nf4ty3xq.js";
|
|
10
10
|
import {
|
|
11
11
|
Capabilities2,
|
|
12
12
|
compatibility2
|
|
13
|
-
} from "./model-
|
|
13
|
+
} from "./model-1dds5gcz.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./model-9rqn6x4v.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service81
|
|
3
|
+
} from "./model-hvh251q6.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
@@ -20,7 +20,7 @@ import { Worktree } from "@opencode/schema/worktree";
|
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
21
|
var make12 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
|
-
const git = yield*
|
|
23
|
+
const git = yield* Service81;
|
|
24
24
|
return {
|
|
25
25
|
id: Worktree.StrategyID.make("git"),
|
|
26
26
|
create: Effect.fn("Worktree.Git.create")(function* (input) {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service56
|
|
3
|
+
} from "./model-5e81dfca.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service41
|
|
6
|
+
} from "./model-79rwpvn4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./model-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp = {};
|
|
13
|
+
__export(exports_mcp, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp,
|
|
15
|
+
Plugin: () => Plugin26,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin26 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service56;
|
|
28
|
+
const mcp = yield* Service41;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin26, register2, exports_mcp };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service56
|
|
3
|
+
} from "./model-5e81dfca.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service76
|
|
6
|
+
} from "./model-tat11k01.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
9
|
} from "./model-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: () => Plugin18
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin18 = 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* Service56;
|
|
26
|
+
const image = yield* Service76;
|
|
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 Plugin29 = define({
|
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { Plugin18, exports_image };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./model-
|
|
4
|
+
} from "./model-1gpb38yh.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./model-
|
|
8
|
+
} from "./model-9dk8dbn0.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./model-
|
|
11
|
+
} from "./model-r7ka9ch8.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./model-
|
|
19
|
+
} from "./model-efjxf17k.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./model-
|
|
23
|
+
} from "./model-9jryrv3a.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./model-wwncb6zf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service82
|
|
6
|
+
} from "./model-qy52ep8z.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service49
|
|
9
|
+
} from "./model-c8bydgjz.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./model-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./model-
|
|
14
|
+
ID5,
|
|
15
|
+
Service43
|
|
16
|
+
} from "./model-nfh0qqsf.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./model-ec1grn59.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./model-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./model-
|
|
25
|
+
} from "./model-1gpb38yh.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
28
|
} from "./model-c1fqxshp.js";
|
|
@@ -41,12 +41,12 @@ __export(exports_revert, {
|
|
|
41
41
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
42
42
|
import { Effect, Schema } from "effect";
|
|
43
43
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
44
|
-
const instances = yield*
|
|
45
|
-
const database = yield*
|
|
46
|
-
const bus = yield*
|
|
44
|
+
const instances = yield* Service49;
|
|
45
|
+
const database = yield* Service83;
|
|
46
|
+
const bus = yield* Service82;
|
|
47
47
|
return yield* Effect.gen(function* () {
|
|
48
|
-
const snapshot = yield*
|
|
49
|
-
const original = input.session.revert?.snapshot ?
|
|
48
|
+
const snapshot = yield* Service43;
|
|
49
|
+
const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
50
50
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
51
51
|
const restore = new Map;
|
|
52
52
|
if (original) {
|
|
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
73
73
|
}).pipe(instances.provide(input.session));
|
|
74
74
|
});
|
|
75
75
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
76
|
-
const instances = yield*
|
|
77
|
-
const bus = yield*
|
|
76
|
+
const instances = yield* Service49;
|
|
77
|
+
const bus = yield* Service82;
|
|
78
78
|
yield* Effect.gen(function* () {
|
|
79
|
-
const snapshot = yield*
|
|
79
|
+
const snapshot = yield* Service43;
|
|
80
80
|
if (!session.revert)
|
|
81
81
|
return;
|
|
82
|
-
const original = session.revert.snapshot ?
|
|
82
|
+
const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
|
|
83
83
|
if (original)
|
|
84
84
|
yield* snapshot.restore({
|
|
85
85
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -110,7 +110,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
110
110
|
continue;
|
|
111
111
|
for (const file of message.snapshot.files ?? [])
|
|
112
112
|
if (!files.has(file))
|
|
113
|
-
files.set(file,
|
|
113
|
+
files.set(file, ID5.make(message.snapshot.start));
|
|
114
114
|
}
|
|
115
115
|
return files;
|
|
116
116
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./model-wwncb6zf.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
8
|
} from "./model-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./model-
|
|
11
|
+
} from "./model-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./model-9rqn6x4v.js";
|
|
@@ -18,13 +18,13 @@ var exports_bus = {};
|
|
|
18
18
|
__export(exports_bus, {
|
|
19
19
|
Bus: () => exports_bus,
|
|
20
20
|
InvalidDurableEventError: () => InvalidDurableEventError2,
|
|
21
|
-
Service: () =>
|
|
22
|
-
configured: () =>
|
|
21
|
+
Service: () => Service82,
|
|
22
|
+
configured: () => configured12,
|
|
23
23
|
durable: () => durable2,
|
|
24
24
|
ephemeral: () => ephemeral2,
|
|
25
25
|
isSynced: () => isSynced2,
|
|
26
26
|
latestSequence: () => latestSequence2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node86,
|
|
28
28
|
reserveSequence: () => reserveSequence2,
|
|
29
29
|
versionedType: () => versionedType2
|
|
30
30
|
});
|
|
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
|
|
|
76
76
|
var isSynced2 = (item) => item.type === "log.synced";
|
|
77
77
|
var isDefinition = (input) => !Array.isArray(input);
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service82 extends Context.Service()("@opencode/Bus") {
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function configured12(options) {
|
|
82
82
|
return makeGlobalNode({
|
|
83
|
-
service:
|
|
84
|
-
deps: [
|
|
85
|
-
layer: Layer.effect(
|
|
83
|
+
service: Service82,
|
|
84
|
+
deps: [node87],
|
|
85
|
+
layer: Layer.effect(Service82, Effect.gen(function* () {
|
|
86
86
|
const { Location } = yield* Effect.promise(() => import("../location.js"));
|
|
87
87
|
const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
|
|
88
88
|
const pubsub = {
|
|
@@ -93,7 +93,7 @@ function configured11(options) {
|
|
|
93
93
|
const projectors = new Map;
|
|
94
94
|
const listeners = new Array;
|
|
95
95
|
const durableLocks = makeUnsafe2();
|
|
96
|
-
const { db } = yield*
|
|
96
|
+
const { db } = yield* Service83;
|
|
97
97
|
const logReadPageSize = options?.logReadPageSize ?? 512;
|
|
98
98
|
const persist = options?.persist ?? false;
|
|
99
99
|
const sessions = new Map;
|
|
@@ -525,7 +525,7 @@ function configured11(options) {
|
|
|
525
525
|
list.push((event) => projector(event));
|
|
526
526
|
projectors.set(key, list);
|
|
527
527
|
});
|
|
528
|
-
return
|
|
528
|
+
return Service82.of({
|
|
529
529
|
publish,
|
|
530
530
|
publishAll,
|
|
531
531
|
subscribe,
|
|
@@ -539,6 +539,6 @@ function configured11(options) {
|
|
|
539
539
|
}))
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var node86 = configured12();
|
|
543
543
|
|
|
544
|
-
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2,
|
|
544
|
+
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service82, configured12, node86, exports_bus };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID11,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./model-
|
|
5
|
+
} from "./model-228yc791.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./model-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/agent.ts
|
|
11
|
-
var
|
|
12
|
-
__export(
|
|
13
|
-
AgentPlugin: () =>
|
|
14
|
-
Plugin: () =>
|
|
11
|
+
var exports_agent2 = {};
|
|
12
|
+
__export(exports_agent2, {
|
|
13
|
+
AgentPlugin: () => exports_agent2,
|
|
14
|
+
Plugin: () => Plugin49
|
|
15
15
|
});
|
|
16
16
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
17
17
|
import { Effect } from "effect";
|
|
@@ -81,7 +81,7 @@ Rules:
|
|
|
81
81
|
- Never ask questions or add new questions
|
|
82
82
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
83
83
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
84
|
-
var
|
|
84
|
+
var Plugin49 = define({
|
|
85
85
|
id: "opencode.agent",
|
|
86
86
|
effect: Effect.fn(function* (ctx) {
|
|
87
87
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -91,32 +91,32 @@ var Plugin13 = define({
|
|
|
91
91
|
item.mode = "primary";
|
|
92
92
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
93
93
|
});
|
|
94
|
-
editor.update(
|
|
94
|
+
editor.update(ID11.make("general"), (item) => {
|
|
95
95
|
item.name = Name3.make("General");
|
|
96
96
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
97
97
|
item.mode = "subagent";
|
|
98
98
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
99
99
|
});
|
|
100
|
-
editor.update(
|
|
100
|
+
editor.update(ID11.make("explore"), (item) => {
|
|
101
101
|
item.name = Name3.make("Explore");
|
|
102
102
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
103
103
|
item.system = PROMPT_EXPLORE;
|
|
104
104
|
item.mode = "subagent";
|
|
105
105
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" }, { action: "shell", resource: "*", effect: "allow" }, { action: "grep", resource: "*", effect: "allow" }, { action: "glob", resource: "*", effect: "allow" }, { action: "webfetch", resource: "*", effect: "allow" }, { action: "websearch", resource: "*", effect: "allow" }, { action: "read", resource: "*", effect: "allow" }, { action: "read", resource: "*.env", effect: "ask" }, { action: "read", resource: "*.env.*", effect: "ask" }, { action: "read", resource: "*.env.example", effect: "allow" }, { action: "subagent", resource: "*", effect: "deny" }, { action: "external_directory", resource: "*", effect: "allow" });
|
|
106
106
|
});
|
|
107
|
-
editor.update(
|
|
107
|
+
editor.update(ID11.make("compaction"), (item) => {
|
|
108
108
|
item.name = Name3.make("Compaction");
|
|
109
109
|
item.mode = "primary";
|
|
110
110
|
item.hidden = true;
|
|
111
111
|
});
|
|
112
|
-
editor.update(
|
|
112
|
+
editor.update(ID11.make("title"), (item) => {
|
|
113
113
|
item.name = Name3.make("Title");
|
|
114
114
|
item.mode = "primary";
|
|
115
115
|
item.hidden = true;
|
|
116
116
|
item.system = PROMPT_TITLE;
|
|
117
117
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
118
118
|
});
|
|
119
|
-
editor.update(
|
|
119
|
+
editor.update(ID11.make("summary"), (item) => {
|
|
120
120
|
item.name = Name3.make("Summary");
|
|
121
121
|
item.mode = "primary";
|
|
122
122
|
item.hidden = true;
|
|
@@ -127,4 +127,4 @@ var Plugin13 = define({
|
|
|
127
127
|
})
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
export {
|
|
130
|
+
export { Plugin49, exports_agent2 };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./model-ff251rbv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service56
|
|
9
|
+
} from "./model-5e81dfca.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service20
|
|
12
|
+
} from "./model-g5ppxhgr.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
15
|
} from "./model-qsdy395h.js";
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin19
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin19 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service56;
|
|
34
|
+
const location = yield* Service79;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service20;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin25 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin19, exports_worktree };
|