@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,9 +1,9 @@
|
|
|
1
1
|
// src/filesystem/watcher-binding.ts
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
function
|
|
3
|
+
function load4() {
|
|
4
4
|
const require2 = createRequire(import.meta.url);
|
|
5
5
|
const libc = typeof OPENCODE_LIBC === "undefined" ? undefined : OPENCODE_LIBC;
|
|
6
6
|
return require2(process.env.OPENCODE_PARCEL_WATCHER_PATH ?? `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linux" ? `-${libc || "glibc"}` : ""}`);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { load4 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./model-wwncb6zf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./model-
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./model-qy52ep8z.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./model-pknna89w.js";
|
|
@@ -22,28 +22,28 @@ __export(exports_credential, {
|
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
23
|
Event: () => Event20,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID16,
|
|
26
|
+
Info: () => Info26,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
29
|
Service: () => Service74,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node78
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
35
35
|
import { Credential } from "@opencode/schema/credential";
|
|
36
36
|
import { Integration } from "@opencode/schema/integration";
|
|
37
37
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
38
|
-
var
|
|
38
|
+
var ID16 = Credential.ID;
|
|
39
39
|
var OAuth3 = Credential.OAuth;
|
|
40
40
|
var Key4 = Credential.Key;
|
|
41
41
|
var External2 = Credential.External;
|
|
42
42
|
var Value2 = Credential.Value;
|
|
43
43
|
var Event20 = Credential.Event;
|
|
44
44
|
|
|
45
|
-
class
|
|
46
|
-
id:
|
|
45
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
46
|
+
id: ID16,
|
|
47
47
|
integrationID: Integration.ID,
|
|
48
48
|
label: Schema.String,
|
|
49
49
|
value: Value2
|
|
@@ -53,13 +53,13 @@ class Info25 extends Schema.Class("Credential.Info")({
|
|
|
53
53
|
class Service74 extends Context.Service()("@opencode/Credential") {
|
|
54
54
|
}
|
|
55
55
|
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
56
|
-
const db = (yield*
|
|
57
|
-
const bus = yield*
|
|
56
|
+
const db = (yield* Service83).db;
|
|
57
|
+
const bus = yield* Service82;
|
|
58
58
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
59
59
|
const stored = (row) => {
|
|
60
60
|
if (!row.integration_id)
|
|
61
61
|
return;
|
|
62
|
-
return new
|
|
62
|
+
return new Info26({
|
|
63
63
|
id: row.id,
|
|
64
64
|
integrationID: row.integration_id,
|
|
65
65
|
label: row.label,
|
|
@@ -78,8 +78,8 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
78
78
|
return row ? stored(row) : undefined;
|
|
79
79
|
}),
|
|
80
80
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
81
|
-
const credential = new
|
|
82
|
-
id: input.id ??
|
|
81
|
+
const credential = new Info26({
|
|
82
|
+
id: input.id ?? ID16.create(),
|
|
83
83
|
integrationID: input.integrationID,
|
|
84
84
|
label: input.label ?? "default",
|
|
85
85
|
value: input.value
|
|
@@ -203,6 +203,6 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
205
|
}));
|
|
206
|
-
var
|
|
206
|
+
var node78 = makeGlobalNode({ service: Service74, layer, deps: [node87, node86] });
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { ID16, OAuth3, Key4, External2, Value2, Event20, Info26, Service74, node78, exports_credential };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-
|
|
2
|
+
ID11,
|
|
3
|
+
Service67
|
|
4
|
+
} from "./model-228yc791.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./model-
|
|
6
|
+
Service79
|
|
7
|
+
} from "./model-ff251rbv.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./model-
|
|
9
|
+
Service56
|
|
10
|
+
} from "./model-5e81dfca.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service59,
|
|
13
13
|
args2
|
|
14
|
-
} from "./model-
|
|
14
|
+
} from "./model-16nrxpzh.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./model-
|
|
16
|
+
Service29
|
|
17
|
+
} from "./model-aspgww5t.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./model-
|
|
19
|
+
Service7
|
|
20
|
+
} from "./model-wzvjkcye.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
23
|
} from "./model-8m6m0r52.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "./model-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/command.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
ConfigCommandPlugin: () =>
|
|
32
|
-
Plugin: () =>
|
|
29
|
+
var exports_command = {};
|
|
30
|
+
__export(exports_command, {
|
|
31
|
+
ConfigCommandPlugin: () => exports_command,
|
|
32
|
+
Plugin: () => Plugin24
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -41,10 +41,10 @@ import { Effect, Option, PubSub, Schema, Stream } from "effect";
|
|
|
41
41
|
import { ChildProcess } from "effect/process";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
43
|
var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
44
|
-
var
|
|
44
|
+
var Plugin24 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service56;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -54,12 +54,12 @@ var Plugin32 = define({
|
|
|
54
54
|
const commands = yield* loadDirectory(fs, entry.path);
|
|
55
55
|
return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
|
|
56
56
|
});
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service79;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service59;
|
|
60
|
+
const sessions = yield* Service29;
|
|
61
|
+
const agents = yield* Service67;
|
|
62
|
+
const subagents = yield* Service7;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin32 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID11.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|
|
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
|
|
|
204
204
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
205
205
|
var shellRegex = /!`([^`]+)`/g;
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { Plugin24, exports_command };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./model-ff251rbv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service14
|
|
9
|
+
} from "./model-41k1h118.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service6
|
|
12
|
+
} from "./model-30ezw4dz.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
15
|
} from "./model-hgz4x7wa.js";
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./model-
|
|
26
|
+
Service5
|
|
27
|
+
} from "./model-zmtn6p76.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./model-9rqn6x4v.js";
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input8,
|
|
36
|
+
Plugin: () => Plugin10,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name8,
|
|
39
|
+
toModelContent: () => toModelContent4
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name8 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input8 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin10 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service5;
|
|
62
|
+
const access = yield* Service14;
|
|
63
|
+
const sessionInstructions = yield* Service6;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service79;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name8,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input8,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -113,7 +113,7 @@ var Plugin40 = {
|
|
|
113
113
|
return { output: result.content, path: result.path };
|
|
114
114
|
}).pipe(Effect.map((result) => ({
|
|
115
115
|
output: result.output,
|
|
116
|
-
content:
|
|
116
|
+
content: toModelContent4(result.path, input.offset, result.output),
|
|
117
117
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
118
118
|
})), Effect.mapError((error) => {
|
|
119
119
|
if (error instanceof ToolFailure)
|
|
@@ -146,7 +146,7 @@ ${suggestions.join(`
|
|
|
146
146
|
});
|
|
147
147
|
})
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var toModelContent4 = (path, offset, output) => {
|
|
150
150
|
if (output.type === "file" && output.encoding === "base64")
|
|
151
151
|
return [
|
|
152
152
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -182,4 +182,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
182
182
|
`);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
export {
|
|
185
|
+
export { name8, Input8, Plugin10, toModelContent4, exports_read };
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./model-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./model-
|
|
6
|
+
} from "./model-my4zabxr.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./model-
|
|
9
|
+
} from "./model-1gpb38yh.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./model-
|
|
13
|
+
} from "./model-s8d7rejh.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./model-c1fqxshp.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./model-
|
|
20
|
+
} from "./model-hkffa77z.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./model-
|
|
25
|
+
} from "./model-n1n192bv.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./model-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load5,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|