@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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./model-wwncb6zf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service82
|
|
6
|
+
} from "./model-qy52ep8z.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service49
|
|
9
|
+
} from "./model-c8bydgjz.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
12
|
} from "./model-vzs5sf6e.js";
|
|
@@ -20,35 +20,35 @@ import {
|
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./model-
|
|
23
|
+
} from "./model-1gpb38yh.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
26
|
} from "./model-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./model-
|
|
28
|
+
Service65
|
|
29
|
+
} from "./model-tyawky02.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./model-
|
|
33
|
+
Service47
|
|
34
|
+
} from "./model-vtdgthxf.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./model-
|
|
36
|
+
Service45
|
|
37
|
+
} from "./model-6epe09p4.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./model-
|
|
40
|
+
} from "./model-3xvck7mv.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./model-
|
|
45
|
+
} from "./model-qwsskq9g.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./model-
|
|
48
|
+
} from "./model-zmfgr60r.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./model-
|
|
51
|
+
} from "./model-dm0nfydx.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
54
|
} from "./model-9rqn6x4v.js";
|
|
@@ -63,12 +63,12 @@ import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
var make13 = Effect.fn("Session.make")(function* () {
|
|
66
|
-
const bus = yield*
|
|
67
|
-
const database = yield*
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
66
|
+
const bus = yield* Service82;
|
|
67
|
+
const database = yield* Service83;
|
|
68
|
+
const store = yield* Service65;
|
|
69
|
+
const instances = yield* Service49;
|
|
70
|
+
const execution = yield* Service45;
|
|
71
|
+
const admission = yield* Service47;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
@@ -135,7 +135,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service49, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service49, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
183
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service49, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service49, instances), Effect.provideService(Service83, database), Effect.provideService(Service82, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service49, instances), Effect.provideService(Service82, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID10 = Session.ID;
|
|
5
|
+
var Info19 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID10, Info19, SessionSchema2 };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info17,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Predicate, Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info17 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -66,4 +66,4 @@ function upgradeLegacyMedia(input) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { Info17, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -5,26 +5,26 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./model-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service79
|
|
9
|
+
} from "./model-ff251rbv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service62
|
|
12
|
+
} from "./model-cazcby7s.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./model-
|
|
14
|
+
Service27
|
|
15
|
+
} from "./model-jj9d5szw.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./model-
|
|
21
|
+
} from "./model-z5d5yc96.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./model-
|
|
23
|
+
Service64
|
|
24
|
+
} from "./model-9dk8dbn0.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./model-
|
|
26
|
+
Service14
|
|
27
|
+
} from "./model-41k1h118.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./model-9rqn6x4v.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input4,
|
|
37
|
+
Output: () => Output3,
|
|
38
|
+
Plugin: () => Plugin4,
|
|
39
|
+
name: () => name4,
|
|
40
|
+
toModelContent: () => toModelContent3
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name4 = "glob";
|
|
46
|
+
var Input4 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input9 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output3 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent3 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin4 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service62;
|
|
70
|
+
const ripgrep = yield* Service27;
|
|
71
|
+
const location = yield* Service79;
|
|
72
|
+
const access = yield* Service14;
|
|
73
|
+
const permission = yield* Service64;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name4,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input4,
|
|
79
|
+
output: Output3,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name4,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin46 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name4, Input4, Output3, toModelContent3, Plugin4, exports_glob };
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./model-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID6,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./model-
|
|
10
|
+
} from "./model-k83c78af.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./model-9rqn6x4v.js";
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID6.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-9syxb0r3.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./model-
|
|
6
|
+
} from "./model-ywt8jp22.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./model-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/tinyfish.ts
|
|
12
12
|
var exports_tinyfish = {};
|
|
13
13
|
__export(exports_tinyfish, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin34,
|
|
15
15
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint3
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint3 = "https://agent.tinyfish.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String
|
|
24
24
|
});
|
|
@@ -33,7 +33,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
33
33
|
}))
|
|
34
34
|
}));
|
|
35
35
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
36
|
-
var
|
|
36
|
+
var Plugin34 = define({
|
|
37
37
|
id: "opencode.websearch.tinyfish",
|
|
38
38
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
39
39
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -55,7 +55,7 @@ var Plugin7 = define({
|
|
|
55
55
|
execute: (input) => Effect.gen(function* () {
|
|
56
56
|
const connection = yield* ctx.integration.connection.active("tinyfish");
|
|
57
57
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
58
|
-
const result = yield* call2(http,
|
|
58
|
+
const result = yield* call2(http, endpoint3, "search", { input: McpInput, output: McpOutput }, { query: input.query }, {
|
|
59
59
|
"User-Agent": useragent2(ctx.app),
|
|
60
60
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
61
61
|
});
|
|
@@ -73,4 +73,4 @@ var Plugin7 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { endpoint3, Plugin34, exports_tinyfish };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service53,
|
|
3
|
+
node55,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./model-
|
|
5
|
+
} from "./model-rpxwryvh.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
7
|
+
Service49,
|
|
8
|
+
node51
|
|
9
|
+
} from "./model-c8bydgjz.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service25
|
|
12
|
+
} from "./model-3vhfphj7.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./model-
|
|
15
|
+
} from "./model-wk815h5a.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service53, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service25);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node51.replace(Layer.succeed(Service49, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node55.replace(Layer.succeed(Service53, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./model-qy52ep8z.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./model-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./model-
|
|
11
|
+
} from "./model-addxnjmp.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
Service72,
|
|
15
|
-
|
|
15
|
+
node76,
|
|
16
16
|
Event18
|
|
17
|
-
} from "./model-
|
|
17
|
+
} from "./model-r7ka9ch8.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./model-
|
|
19
|
+
Service79,
|
|
20
|
+
node83
|
|
21
|
+
} from "./model-ff251rbv.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./model-9rqn6x4v.js";
|
|
@@ -40,8 +40,8 @@ __export(exports_provider3, {
|
|
|
40
40
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
41
41
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
42
42
|
Event: () => Event17,
|
|
43
|
-
ID: () =>
|
|
44
|
-
Info: () =>
|
|
43
|
+
ID: () => ID13,
|
|
44
|
+
Info: () => Info22,
|
|
45
45
|
LoadError: () => LoadError3,
|
|
46
46
|
Provider: () => exports_provider3,
|
|
47
47
|
Request: () => Request3,
|
|
@@ -56,7 +56,7 @@ __export(exports_provider3, {
|
|
|
56
56
|
mergeOverlay: () => mergeOverlay2,
|
|
57
57
|
modelSettings: () => modelSettings2,
|
|
58
58
|
nativeSettings: () => nativeSettings2,
|
|
59
|
-
node: () =>
|
|
59
|
+
node: () => node75,
|
|
60
60
|
packageName: () => packageName2,
|
|
61
61
|
timeout: () => timeout2,
|
|
62
62
|
timeouts: () => timeouts2
|
|
@@ -71,7 +71,7 @@ import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
|
71
71
|
import { Credential } from "@opencode/schema/credential";
|
|
72
72
|
import { freeze } from "immer";
|
|
73
73
|
import { Event as Event17 } from "@opencode/schema/provider";
|
|
74
|
-
var
|
|
74
|
+
var ID13 = Provider.ID;
|
|
75
75
|
var AISDK_PREFIX2 = "aisdk:";
|
|
76
76
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
77
77
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -253,7 +253,7 @@ var Request3 = Provider.Request;
|
|
|
253
253
|
var Compaction3 = Provider.Compaction;
|
|
254
254
|
var Transport2 = Provider.Transport;
|
|
255
255
|
var Settings2 = Provider.Settings;
|
|
256
|
-
var
|
|
256
|
+
var Info22 = Provider.Info;
|
|
257
257
|
|
|
258
258
|
class Service71 extends Context.Service()("@opencode/Provider") {
|
|
259
259
|
}
|
|
@@ -269,9 +269,9 @@ function index(providerID, models) {
|
|
|
269
269
|
return result;
|
|
270
270
|
}
|
|
271
271
|
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
272
|
-
const bus = yield*
|
|
272
|
+
const bus = yield* Service82;
|
|
273
273
|
const integrations = yield* Service72;
|
|
274
|
-
const location = yield*
|
|
274
|
+
const location = yield* Service79;
|
|
275
275
|
const state = create3({
|
|
276
276
|
name: "provider",
|
|
277
277
|
initial: () => new Map,
|
|
@@ -282,7 +282,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
282
282
|
const current = records.get(id);
|
|
283
283
|
if (current)
|
|
284
284
|
return current;
|
|
285
|
-
const added = { provider:
|
|
285
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
286
286
|
records.set(id, added);
|
|
287
287
|
maps.add(added.models);
|
|
288
288
|
return added;
|
|
@@ -363,7 +363,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
363
363
|
const available = Array.from(records.values()).filter((record) => {
|
|
364
364
|
if (record.provider.activation === "disabled")
|
|
365
365
|
return false;
|
|
366
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
366
|
+
const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
|
|
367
367
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
368
368
|
return false;
|
|
369
369
|
if (record.provider.activation === "enabled")
|
|
@@ -399,7 +399,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
399
399
|
snapshot
|
|
400
400
|
});
|
|
401
401
|
}));
|
|
402
|
-
var
|
|
402
|
+
var node75 = makeLocationNode({ service: Service71, layer, deps: [node86, node76, node83] });
|
|
403
403
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
404
404
|
const module = yield* Effect.tryPromise({
|
|
405
405
|
try: () => {
|
|
@@ -677,4 +677,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
677
677
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
678
678
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
679
679
|
|
|
680
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
680
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service71, node75, exports_provider3, Event17 };
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
create3
|
|
14
14
|
} from "./model-rdw6cm16.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./model-
|
|
16
|
+
Service76,
|
|
17
|
+
node80
|
|
18
|
+
} from "./model-tat11k01.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./model-
|
|
20
|
+
Service77,
|
|
21
|
+
node81
|
|
22
|
+
} from "./model-2eegacq4.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
25
|
} from "./model-y1fvbwt7.js";
|
|
@@ -32,15 +32,15 @@ var exports_tool = {};
|
|
|
32
32
|
__export(exports_tool, {
|
|
33
33
|
CallID: () => CallID2,
|
|
34
34
|
Content: () => Content3,
|
|
35
|
-
Error: () =>
|
|
35
|
+
Error: () => Error5,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service75,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node79
|
|
42
42
|
});
|
|
43
|
-
import { CallID as CallID2, Content as Content3, Error as
|
|
43
|
+
import { CallID as CallID2, Content as Content3, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode/ai";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service75 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service77;
|
|
58
|
+
const image = yield* Service76;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
184
184
|
}), { discard: true });
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
return
|
|
187
|
+
return Service75.of({
|
|
188
188
|
transform: state.transform,
|
|
189
189
|
reload: state.reload,
|
|
190
190
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -273,10 +273,10 @@ function namespaceError(name) {
|
|
|
273
273
|
return;
|
|
274
274
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
276
|
+
var node79 = makeLocationNode({
|
|
277
|
+
service: Service75,
|
|
278
278
|
layer,
|
|
279
|
-
deps: [
|
|
279
|
+
deps: [node81, node80]
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
export { RegistrationError2,
|
|
282
|
+
export { RegistrationError2, Service75, node79, exports_tool, CallID2, Content3, Error5, FileContent3, TextContent2 };
|