@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
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./model-
|
|
6
|
+
} from "./model-jmkbrx6z.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./model-
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./model-ff251rbv.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./model-
|
|
12
|
+
Service64,
|
|
13
|
+
node68
|
|
14
|
+
} from "./model-9dk8dbn0.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./model-9rqn6x4v.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
26
|
-
node: () =>
|
|
25
|
+
Service: () => Service14,
|
|
26
|
+
node: () => node16,
|
|
27
27
|
resolvePath: () => resolvePath2
|
|
28
28
|
});
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ var ResolveInput2 = Schema.Struct({
|
|
|
37
37
|
kind: Kind2.pipe(Schema.optional)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service14 extends Context.Service()("@opencode/FileAccess") {
|
|
41
41
|
}
|
|
42
42
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
43
43
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -49,10 +49,10 @@ var invocation = (context) => ({
|
|
|
49
49
|
agent: context.agent,
|
|
50
50
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
51
51
|
});
|
|
52
|
-
var layer = Layer.effect(
|
|
52
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
|
-
const location = yield*
|
|
55
|
-
const permission = yield*
|
|
54
|
+
const location = yield* Service79;
|
|
55
|
+
const permission = yield* Service64;
|
|
56
56
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
57
57
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
58
58
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service14.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node16 = makeLocationNode({ service: Service14, layer, deps: [FSUtil.node, node83, node68] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service14, resolvePath2, node16, exports_file_access };
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service85,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node89
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service85 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service85, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service85.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node89 = makeLocationNode({
|
|
137
|
+
service: Service85,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service85, node89, exports_tool_output2 };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./model-
|
|
4
|
+
node56
|
|
5
|
+
} from "./model-9syxb0r3.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./model-
|
|
9
|
+
} from "./model-n1n192bv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./model-
|
|
11
|
+
Service77,
|
|
12
|
+
node81
|
|
13
|
+
} from "./model-2eegacq4.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./model-
|
|
16
|
+
} from "./model-9dk8dbn0.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./model-
|
|
19
|
+
} from "./model-5a7z4yxf.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./model-
|
|
21
|
+
Error5
|
|
22
|
+
} from "./model-nf63sdyz.js";
|
|
23
23
|
import {
|
|
24
24
|
get5
|
|
25
25
|
} from "./model-54ma36ye.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
27
|
+
Service34,
|
|
28
28
|
node38
|
|
29
|
-
} from "./model-
|
|
29
|
+
} from "./model-npyp060g.js";
|
|
30
30
|
import {
|
|
31
31
|
make15
|
|
32
32
|
} from "./model-xfkkasph.js";
|
|
33
33
|
import {
|
|
34
34
|
toLLMMessages2
|
|
35
|
-
} from "./model-
|
|
35
|
+
} from "./model-3g8j9he4.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./model-9rqn6x4v.js";
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
// src/session/model-request.ts
|
|
41
41
|
var exports_model_request = {};
|
|
42
42
|
__export(exports_model_request, {
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service33,
|
|
44
44
|
SessionModelRequest: () => exports_model_request,
|
|
45
45
|
baseTranscript: () => baseTranscript2,
|
|
46
46
|
boundImages: () => boundImages2,
|
|
47
|
-
layer: () =>
|
|
47
|
+
layer: () => layer13,
|
|
48
48
|
node: () => node37,
|
|
49
49
|
outputLimit: () => outputLimit2,
|
|
50
50
|
unsupportedParts: () => unsupportedParts2
|
|
@@ -156,11 +156,11 @@ var boundImages2 = (messages) => {
|
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
class
|
|
159
|
+
class Service33 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
160
160
|
}
|
|
161
|
-
var
|
|
162
|
-
const hooks = yield*
|
|
163
|
-
const transport = yield*
|
|
161
|
+
var layer13 = Layer.effect(Service33, Effect.gen(function* () {
|
|
162
|
+
const hooks = yield* Service77;
|
|
163
|
+
const transport = yield* Service34;
|
|
164
164
|
const app = yield* Metadata2;
|
|
165
165
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
166
166
|
const session = input.session;
|
|
@@ -168,7 +168,7 @@ var layer12 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
168
168
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
169
169
|
const tools = input.tools ?? {
|
|
170
170
|
definitions: [],
|
|
171
|
-
execute: () => new
|
|
171
|
+
execute: () => new Error5({ message: "Tools are not available for this request" })
|
|
172
172
|
};
|
|
173
173
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
174
174
|
const shaped = yield* shape({
|
|
@@ -265,7 +265,7 @@ var layer12 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
265
265
|
};
|
|
266
266
|
});
|
|
267
267
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
268
|
-
return
|
|
268
|
+
return Service33.of({
|
|
269
269
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
270
270
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
271
271
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
@@ -273,9 +273,9 @@ var layer12 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
273
273
|
});
|
|
274
274
|
}));
|
|
275
275
|
var node37 = makeLocationNode({
|
|
276
|
-
service:
|
|
277
|
-
layer:
|
|
278
|
-
deps: [
|
|
276
|
+
service: Service33,
|
|
277
|
+
layer: layer13,
|
|
278
|
+
deps: [node81, node38, node56]
|
|
279
279
|
});
|
|
280
280
|
|
|
281
|
-
export { outputLimit2, baseTranscript2, unsupportedParts2, boundImages2,
|
|
281
|
+
export { outputLimit2, baseTranscript2, unsupportedParts2, boundImages2, Service33, layer13, node37, exports_model_request };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./model-1dds5gcz.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service41
|
|
6
|
+
} from "./model-79rwpvn4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service64
|
|
9
|
+
} from "./model-9dk8dbn0.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./model-9rqn6x4v.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
var exports_mcp_resource = {};
|
|
16
16
|
__export(exports_mcp_resource, {
|
|
17
17
|
McpResourceTools: () => exports_mcp_resource,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin9
|
|
19
19
|
});
|
|
20
20
|
import { ToolFailure } from "@opencode/ai";
|
|
21
21
|
import { Effect, Schema } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin9 = {
|
|
23
23
|
id: "opencode.tools.mcp-resources",
|
|
24
24
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
25
|
-
const mcp = yield*
|
|
26
|
-
const permission = yield*
|
|
25
|
+
const mcp = yield* Service41;
|
|
26
|
+
const permission = yield* Service64;
|
|
27
27
|
yield* ctx.tool.transform((editor) => {
|
|
28
28
|
editor.add({
|
|
29
29
|
name: "list_mcp_resources",
|
|
@@ -93,4 +93,4 @@ var Plugin37 = {
|
|
|
93
93
|
})
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Plugin9, exports_mcp_resource };
|
|
@@ -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
|
__export
|
|
7
7
|
} from "./model-9rqn6x4v.js";
|
|
@@ -16,8 +16,8 @@ __export(exports_form, {
|
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID15,
|
|
20
|
+
Info: () => Info25,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError10,
|
|
@@ -26,7 +26,7 @@ __export(exports_form, {
|
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer26,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node77,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
@@ -35,8 +35,8 @@ import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema
|
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Event as Event19 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID15 = Form.ID;
|
|
39
|
+
var Info25 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID15
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID15
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID15
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID15,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -82,7 +82,7 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
82
82
|
class Service73 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
84
|
var layer26 = Layer.effect(Service73, Effect.gen(function* () {
|
|
85
|
-
const bus = yield*
|
|
85
|
+
const bus = yield* Service82;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
@@ -90,7 +90,7 @@ var layer26 = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
90
90
|
});
|
|
91
91
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID15.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -164,7 +164,7 @@ var layer26 = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
165
|
return Service73.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node77 = makeLocationNode({ service: Service73, layer: layer26, deps: [node86] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID15, Info25, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service73, layer26, node77, validateAnswer2, validateFields2, exports_form, Event19 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service62
|
|
3
|
+
} from "./model-cazcby7s.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./model-9rqn6x4v.js";
|
|
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
|
21
21
|
var EXIT_WAIT = Duration.seconds(1);
|
|
22
22
|
var STDERR_TAIL = 1000;
|
|
23
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
24
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service62;
|
|
25
25
|
const scope = yield* Effect.scope;
|
|
26
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
27
27
|
const buffer = new ReadBuffer;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info14,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info14 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info14, exports_mcp5 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service73
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-4zjcfn6g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service64
|
|
6
|
+
} from "./model-9dk8dbn0.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./model-9rqn6x4v.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input14,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin50,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input14 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -54,12 +54,12 @@ var Plugin50 = {
|
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
56
|
const forms = yield* Service73;
|
|
57
|
-
const permission = yield*
|
|
57
|
+
const permission = yield* Service64;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input14,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export { name13, description6,
|
|
120
|
+
export { name13, description6, Input14, Output9, CancelledError2, toModelContent7, Plugin50, exports_question };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./model-qy52ep8z.js";
|
|
5
5
|
import {
|
|
6
6
|
Event20,
|
|
7
7
|
Service74,
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
node78
|
|
9
|
+
} from "./model-5s0x098x.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./model-
|
|
11
|
+
Service57,
|
|
12
|
+
node60
|
|
13
|
+
} from "./model-s4q167yz.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
16
|
} from "./model-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./model-
|
|
18
|
+
Service79,
|
|
19
|
+
node83
|
|
20
|
+
} from "./model-ff251rbv.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./model-
|
|
23
|
+
} from "./model-jk540des.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./model-
|
|
26
|
+
} from "./model-wwhqjdsn.js";
|
|
27
27
|
import {
|
|
28
28
|
names4,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./model-
|
|
31
|
+
} from "./model-13wqnzak.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
34
|
} from "./model-dqxsqydv.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./model-
|
|
36
|
+
Service58,
|
|
37
|
+
Event12,
|
|
38
|
+
node61
|
|
39
|
+
} from "./model-bpxpvztg.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
42
|
} from "./model-9rqn6x4v.js";
|
|
@@ -45,13 +45,13 @@ import {
|
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
|
-
Options: () =>
|
|
49
|
-
Service: () =>
|
|
48
|
+
Options: () => Options7,
|
|
49
|
+
Service: () => Service56,
|
|
50
50
|
Test: () => Test2,
|
|
51
51
|
configured: () => configured8,
|
|
52
52
|
latest: () => latest2,
|
|
53
53
|
layer: () => layer22,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node59,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -67,7 +67,7 @@ import { ChildProcess } from "effect/process";
|
|
|
67
67
|
function latest2(entries, key) {
|
|
68
68
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var Options7 = Schema.Struct({
|
|
71
71
|
project: Schema.optional(Schema.Boolean),
|
|
72
72
|
global: Schema.optional(Schema.Boolean),
|
|
73
73
|
system: Schema.optional(Schema.Union([Schema.Boolean, Schema.String])),
|
|
@@ -75,7 +75,7 @@ var Options8 = Schema.Struct({
|
|
|
75
75
|
content: Schema.optional(Schema.String)
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
class
|
|
78
|
+
class Service56 extends Context.Service()("@opencode/Config") {
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -93,16 +93,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
93
93
|
setEntries: (next) => Ref.set(entries, next),
|
|
94
94
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
95
95
|
});
|
|
96
|
-
return Context.empty().pipe(Context.add(
|
|
96
|
+
return Context.empty().pipe(Context.add(Service56, service), Context.add(Test2, service));
|
|
97
97
|
}));
|
|
98
|
-
var layer22 = (options) => Layer.effect(
|
|
98
|
+
var layer22 = (options) => Layer.effect(Service56, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
|
-
const location = yield*
|
|
101
|
-
const watcher = yield*
|
|
102
|
-
const bus = yield*
|
|
100
|
+
const location = yield* Service79;
|
|
101
|
+
const watcher = yield* Service57;
|
|
102
|
+
const bus = yield* Service82;
|
|
103
103
|
const credentials = yield* Service74;
|
|
104
104
|
const globalService = yield* Global.Service;
|
|
105
|
-
const wellknown = yield*
|
|
105
|
+
const wellknown = yield* Service58;
|
|
106
106
|
const processes = yield* AppProcess.Service;
|
|
107
107
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
108
108
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -254,7 +254,7 @@ var layer22 = (options) => Layer.effect(Service64, Effect.gen(function* () {
|
|
|
254
254
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
255
255
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
256
256
|
yield* bus.subscribe(Event20.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
258
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
259
259
|
if (!wellknown.snapshot().length)
|
|
260
260
|
return Effect.void;
|
|
@@ -282,7 +282,7 @@ var layer22 = (options) => Layer.effect(Service64, Effect.gen(function* () {
|
|
|
282
282
|
`);
|
|
283
283
|
yield* requestReload;
|
|
284
284
|
}, (effect) => updateLock.withPermit(effect));
|
|
285
|
-
return
|
|
285
|
+
return Service56.of({
|
|
286
286
|
entries: Effect.fnUntraced(function* () {
|
|
287
287
|
return configs;
|
|
288
288
|
}),
|
|
@@ -296,20 +296,20 @@ var layer22 = (options) => Layer.effect(Service64, Effect.gen(function* () {
|
|
|
296
296
|
}));
|
|
297
297
|
function configured8(options) {
|
|
298
298
|
return makeLocationNode({
|
|
299
|
-
service:
|
|
299
|
+
service: Service56,
|
|
300
300
|
layer: layer22(options),
|
|
301
301
|
deps: [
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
node60,
|
|
303
|
+
node86,
|
|
304
304
|
FSUtil.node,
|
|
305
305
|
Global.node,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
node83,
|
|
307
|
+
node78,
|
|
308
|
+
node61,
|
|
309
309
|
AppProcess.node
|
|
310
310
|
]
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
var
|
|
313
|
+
var node59 = configured8();
|
|
314
314
|
|
|
315
|
-
export { latest2,
|
|
315
|
+
export { latest2, Options7, Service56, Test2, testLayer2, layer22, configured8, node59, exports_config };
|