@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,37 +1,37 @@
|
|
|
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
15
|
Service72
|
|
16
|
-
} from "./model-
|
|
16
|
+
} from "./model-r7ka9ch8.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
20
|
} from "./model-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./model-
|
|
22
|
+
ID13
|
|
23
|
+
} from "./model-nf4ty3xq.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./model-
|
|
26
|
+
} from "./model-sxkxnm8w.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID13.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID14.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -55,7 +55,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
56
|
const credentials = yield* Service74;
|
|
57
57
|
const integrations = yield* Service72;
|
|
58
|
-
const bus = yield*
|
|
58
|
+
const bus = yield* Service82;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_service = {};
|
|
7
7
|
__export(exports_service, {
|
|
8
8
|
Plugin: () => exports_service,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service40,
|
|
10
10
|
awaitActivation: () => awaitActivation2
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class Service40 extends Context.Service()("@opencode/Plugin") {
|
|
15
15
|
}
|
|
16
|
-
var awaitActivation2 =
|
|
16
|
+
var awaitActivation2 = Service40.use((plugins) => plugins.awaitActivation);
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { Service40, awaitActivation2, exports_service };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./model-jmkbrx6z.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./model-9rqn6x4v.js";
|
|
@@ -9,25 +9,25 @@ import {
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info27,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service79,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node83,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info27, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service79 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node83 = LayerNode.unbound(Service79, tags.values.location);
|
|
27
|
+
var layer = (ref) => Layer.effect(Service79, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service80;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory);
|
|
30
|
-
return
|
|
30
|
+
return Service79.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref) => Layer.effect(Service78, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service79,
|
|
39
39
|
layer: layer(ref),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node84]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info27, Ref4, response2, Service79, node83, boundNode2, exports_location };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
3
|
+
Service56
|
|
4
|
+
} from "./model-5e81dfca.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./model-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
// src/plugin/warming.ts
|
|
10
10
|
var exports_warming = {};
|
|
11
11
|
__export(exports_warming, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin47,
|
|
13
13
|
WarmingPlugin: () => exports_warming
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -19,10 +19,10 @@ var defaults = {
|
|
|
19
19
|
interval: Duration.minutes(4),
|
|
20
20
|
duration: Duration.minutes(30)
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Plugin47 = define({
|
|
23
23
|
id: "opencode.warming",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service56;
|
|
26
26
|
const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
|
|
27
27
|
const warming = latest2(yield* config.entries(), "warming");
|
|
28
28
|
if (!warming)
|
|
@@ -96,4 +96,4 @@ var Plugin15 = define({
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin47, exports_warming };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-addxnjmp.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
|
-
} from "./model-
|
|
10
|
+
} from "./model-5s0x098x.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./model-
|
|
14
|
+
} from "./model-r7ka9ch8.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
19
|
Service71
|
|
20
|
-
} from "./model-
|
|
20
|
+
} from "./model-nf4ty3xq.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./model-
|
|
22
|
+
ID12
|
|
23
|
+
} from "./model-1dds5gcz.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./model-
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./model-b3dw1nxt.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./model-
|
|
30
|
+
} from "./model-9syxb0r3.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./model-
|
|
32
|
+
ID11
|
|
33
|
+
} from "./model-228yc791.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
36
|
} from "./model-54ma36ye.js";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID14.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -164,7 +164,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
166
|
const providers = yield* Service71;
|
|
167
|
-
const bus = yield*
|
|
167
|
+
const bus = yield* Service82;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
170
170
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID13.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -230,17 +230,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(
|
|
234
|
-
models.update(
|
|
233
|
+
if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
|
|
234
|
+
models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
|
|
235
235
|
model.enabled = false;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
240
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
241
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
242
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
|
-
if (evt.model.providerID !==
|
|
243
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
244
244
|
return;
|
|
245
245
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
246
246
|
return;
|
|
@@ -249,7 +249,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
249
249
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
250
250
|
}));
|
|
251
251
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
252
|
-
if (evt.model.providerID !==
|
|
252
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
253
253
|
return;
|
|
254
254
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
255
255
|
return;
|
|
@@ -259,13 +259,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
259
259
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
260
260
|
if (interaction !== "conversation-agent")
|
|
261
261
|
evt.headers["x-initiator"] = "agent";
|
|
262
|
-
}), { providerID:
|
|
262
|
+
}), { providerID: ID13.githubCopilot });
|
|
263
263
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
264
|
-
if (evt.model.providerID !==
|
|
264
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
265
265
|
return;
|
|
266
266
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
267
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
268
|
+
const agent = yield* ctx.agent.get({ agentID: ID11.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
271
|
if (agent?.data.model)
|
|
@@ -276,9 +276,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
276
276
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
277
277
|
return;
|
|
278
278
|
}));
|
|
279
|
-
}), { providerID:
|
|
279
|
+
}), { providerID: ID13.githubCopilot });
|
|
280
280
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
281
|
-
if (evt.model.providerID !==
|
|
281
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
282
282
|
return;
|
|
283
283
|
const token = evt.request.headers.get("x-api-key");
|
|
284
284
|
if (!token)
|
|
@@ -286,9 +286,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
286
286
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
287
287
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
288
288
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
289
|
-
}), { providerID:
|
|
289
|
+
}), { providerID: ID13.githubCopilot });
|
|
290
290
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
292
292
|
return;
|
|
293
293
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
294
294
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./model-9rqn6x4v.js";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service11,
|
|
13
|
+
node: () => node13
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service11 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service11.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node13 = makeGlobalNode({ service: Service11, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service11, node13, exports_update };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
node85
|
|
6
|
+
} from "./model-hvh251q6.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./model-
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./model-ff251rbv.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
13
|
} from "./model-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
make12
|
|
16
|
-
} from "./model-
|
|
16
|
+
} from "./model-q81gz903.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./model-9rqn6x4v.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service20,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node23
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,10 +31,10 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service20 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
37
|
-
const location = yield*
|
|
36
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
37
|
+
const location = yield* Service79;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
39
|
const git = yield* make12;
|
|
40
40
|
const state = create3({
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service20.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node23 = makeLocationNode({
|
|
61
|
+
service: Service20,
|
|
62
62
|
layer,
|
|
63
|
-
deps: [
|
|
63
|
+
deps: [node83, Global.node, node85, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service20, node23, exports_strategies };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make21,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./model-
|
|
6
|
+
} from "./model-s8d7rejh.js";
|
|
7
7
|
import {
|
|
8
8
|
evaluate2
|
|
9
|
-
} from "./model-
|
|
9
|
+
} from "./model-9dk8dbn0.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./model-
|
|
11
|
+
Service41,
|
|
12
|
+
node44
|
|
13
|
+
} from "./model-79rwpvn4.js";
|
|
14
14
|
import {
|
|
15
15
|
namespace2,
|
|
16
16
|
name14
|
|
17
|
-
} from "./model-
|
|
17
|
+
} from "./model-wzf7q3t7.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./model-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/mcp/instructions.ts
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
McpInstructions: () =>
|
|
26
|
-
Service: () =>
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
23
|
+
var exports_instructions5 = {};
|
|
24
|
+
__export(exports_instructions5, {
|
|
25
|
+
McpInstructions: () => exports_instructions5,
|
|
26
|
+
Service: () => Service38,
|
|
27
|
+
layer: () => layer15,
|
|
28
|
+
node: () => node42
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -61,13 +61,13 @@ var update = (previous, current) => {
|
|
|
61
61
|
`);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class Service38 extends Context.Service()("@opencode/McpInstructions") {
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
const mcp = yield*
|
|
68
|
-
return
|
|
66
|
+
var layer15 = Layer.effect(Service38, Effect.gen(function* () {
|
|
67
|
+
const mcp = yield* Service41;
|
|
68
|
+
return Service38.of({
|
|
69
69
|
load: Effect.fn("McpInstructions.load")(function* (permissions) {
|
|
70
|
-
const source = (value) =>
|
|
70
|
+
const source = (value) => make21({
|
|
71
71
|
key: Key3.make("core/mcp-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
73
73
|
read: Effect.succeed(value),
|
|
@@ -96,6 +96,6 @@ var layer11 = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var node42 = makeLocationNode({ service: Service38, layer: layer15, deps: [node44] });
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { Service38, layer15, node42, exports_instructions5 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info10,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info10 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info15 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info10, exports_provider2 };
|