@opencode/core 0.0.0-dev-20483 → 0.0.0-dev-20485
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/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +1 -1
- package/dist/bus.js +73 -73
- package/dist/chunks/{file-retention-299t90wb.js → model-038wgxtv.js} +23 -23
- package/dist/chunks/{file-retention-1tt22aw3.js → model-07e3556j.js} +20 -20
- package/dist/chunks/{file-retention-py5x8axh.js → model-08ths63p.js} +11 -11
- package/dist/chunks/{file-retention-n37c4crj.js → model-0996nyz8.js} +2 -2
- package/dist/chunks/{file-retention-pb2egvkv.js → model-09pc141r.js} +9 -9
- package/dist/chunks/{file-retention-2fcdk11z.js → model-0agwad7d.js} +58 -58
- package/dist/chunks/{file-retention-nx5d6twc.js → model-0etz39gn.js} +43 -43
- package/dist/chunks/{file-retention-tj5rcesx.js → model-0j5k85vb.js} +32 -32
- package/dist/chunks/{file-retention-eqkxs06z.js → model-0jkw1j53.js} +6 -6
- package/dist/chunks/{file-retention-0paq2nw3.js → model-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-retention-0r3c1bmw.js → model-0r3c1bmw.js} +2 -2
- package/dist/chunks/{file-retention-a8fr1h6x.js → model-0sgs1mbc.js} +174 -174
- package/dist/chunks/{file-retention-0vbcp93d.js → model-0vbcp93d.js} +2 -2
- package/dist/chunks/{file-retention-b1059kqh.js → model-0x8512f9.js} +28 -28
- package/dist/chunks/{file-retention-gmyr53yh.js → model-12rxm3gg.js} +15 -15
- package/dist/chunks/{file-retention-ynx963a9.js → model-17prjfpm.js} +12 -12
- package/dist/chunks/{file-retention-rhraev7y.js → model-1acjjqhc.js} +4 -4
- package/dist/chunks/{file-retention-cmwkp3r5.js → model-1ajx6rf5.js} +8 -8
- package/dist/chunks/{file-retention-1dazxqgg.js → model-1dazxqgg.js} +2 -2
- package/dist/chunks/{file-retention-xevbb3dk.js → model-1df8azz5.js} +24 -24
- package/dist/chunks/{file-retention-84h8c373.js → model-1dvck2a7.js} +2 -2
- package/dist/chunks/{file-retention-e7fybsm5.js → model-1hzrc3tk.js} +1 -1
- package/dist/chunks/{file-retention-0pdpn3pq.js → model-1phc8qeg.js} +13 -13
- package/dist/chunks/{file-retention-6yz0wx8n.js → model-1pxz8ven.js} +5 -5
- package/dist/chunks/{file-retention-1856z5gp.js → model-219g1411.js} +36 -36
- package/dist/chunks/{file-retention-g7b432k9.js → model-29k7ew3e.js} +6 -6
- package/dist/chunks/{file-retention-2a5m3afh.js → model-2a5m3afh.js} +1 -1
- package/dist/chunks/{file-retention-qwvc2n28.js → model-2ccvtpy8.js} +25 -25
- package/dist/chunks/{file-retention-8bx78z2w.js → model-2cw2ysd6.js} +11 -11
- package/dist/chunks/{file-retention-gpvbq4ra.js → model-2hq8kthn.js} +24 -24
- package/dist/chunks/{file-retention-fcrkznn8.js → model-2k8khapm.js} +5 -5
- package/dist/chunks/{file-retention-ymxbsbk4.js → model-2q50h12w.js} +5 -5
- package/dist/chunks/{file-retention-msgz7vnx.js → model-2sznx2p4.js} +19 -19
- package/dist/chunks/{file-retention-1q0jybjw.js → model-2zybwwx3.js} +27 -27
- package/dist/chunks/{file-retention-1ygqh575.js → model-33w4ejhs.js} +6 -6
- package/dist/chunks/{file-retention-knp96k5g.js → model-37sfe3bm.js} +10 -10
- package/dist/chunks/{file-retention-4kx9erc0.js → model-3ab3fmem.js} +17 -17
- package/dist/chunks/{file-retention-3fc6dm20.js → model-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-retention-3hepkmqq.js → model-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-3smtnn6g.js → model-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-retention-3tvqynh2.js → model-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-retention-n69ahfa0.js → model-3y4agpkd.js} +15 -15
- package/dist/chunks/{file-retention-3zsf4n22.js → model-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-retention-ypw91m64.js → model-44dr8ap3.js} +8 -8
- package/dist/chunks/{file-retention-24y4cr83.js → model-47het4ez.js} +24 -24
- package/dist/chunks/{file-retention-6y6b3v79.js → model-4fzxpz0x.js} +49 -49
- package/dist/chunks/{file-retention-4mat50dd.js → model-4p7fae02.js} +18 -18
- package/dist/chunks/{file-retention-4ts7tf6z.js → model-4ts7tf6z.js} +2 -2
- package/dist/chunks/{file-retention-f3md509a.js → model-4txtbyef.js} +16 -16
- package/dist/chunks/{file-retention-b47w6h91.js → model-501ysnmm.js} +13 -13
- package/dist/chunks/{file-retention-y1tbwvmr.js → model-51s6es2h.js} +19 -19
- package/dist/chunks/{file-retention-54ma36ye.js → model-54ma36ye.js} +1 -1
- package/dist/chunks/{file-retention-qsr9synt.js → model-5697fheg.js} +5 -5
- package/dist/chunks/{file-retention-yygvcae8.js → model-5crtsp9b.js} +9 -9
- package/dist/chunks/{file-retention-5daktx2q.js → model-5daktx2q.js} +1 -1
- package/dist/chunks/{file-retention-kgfzxw26.js → model-5g7rexsp.js} +10 -10
- package/dist/chunks/{file-retention-63b3jkh8.js → model-5j4dmmsv.js} +22 -22
- package/dist/chunks/{file-retention-7t9r5z7t.js → model-5jp7hb67.js} +6 -6
- package/dist/chunks/{file-retention-8xf2390s.js → model-5jpjgy91.js} +11 -11
- package/dist/chunks/{file-retention-5t3nmthw.js → model-5t3nmthw.js} +2 -2
- package/dist/chunks/{file-retention-tnwsy8nb.js → model-5v18ah2v.js} +94 -94
- package/dist/chunks/{file-retention-2b07cd18.js → model-60a34fq7.js} +23 -23
- package/dist/chunks/{file-retention-669tq793.js → model-669tq793.js} +1 -1
- package/dist/chunks/{file-retention-9z7evyec.js → model-697r6qsh.js} +24 -24
- package/dist/chunks/{file-retention-pm3syzdj.js → model-6fvrsfkg.js} +25 -25
- package/dist/chunks/{file-retention-7r0r50e5.js → model-6vq97qmv.js} +5 -5
- package/dist/chunks/{file-retention-1pd86f1r.js → model-6xeymcnr.js} +10 -10
- package/dist/chunks/{file-retention-f75zav2x.js → model-71az546q.js} +2 -2
- package/dist/chunks/{file-retention-1qa1mw2k.js → model-71hbha9p.js} +50 -50
- package/dist/chunks/{file-retention-672hp4zj.js → model-71ryw543.js} +8 -8
- package/dist/chunks/{file-retention-a1gpj94z.js → model-73tb2d7t.js} +3 -3
- package/dist/chunks/{file-retention-cb03yeca.js → model-75ex3r9z.js} +19 -19
- package/dist/chunks/{file-retention-r6km2j76.js → model-75zxyf1y.js} +20 -20
- package/dist/chunks/{file-retention-e7rehdhe.js → model-76kesw26.js} +73 -73
- package/dist/chunks/{file-retention-7bmhse3q.js → model-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-twwzjqdf.js → model-7dy85ahw.js} +6 -6
- package/dist/chunks/{file-retention-5fffgman.js → model-7h5hgt6k.js} +62 -62
- package/dist/chunks/{file-retention-emjm3mg5.js → model-7hz7r7dy.js} +20 -20
- package/dist/chunks/{file-retention-rfx500q8.js → model-7sb9v7px.js} +47 -47
- package/dist/chunks/{file-retention-da5crynx.js → model-7vk99ank.js} +5 -5
- package/dist/chunks/{file-retention-dqdxhkv7.js → model-7wcjkrs0.js} +6 -6
- package/dist/chunks/{file-retention-9ymnkqa3.js → model-813jgmaw.js} +22 -22
- package/dist/chunks/{file-retention-xh27xnk0.js → model-86qjnnqk.js} +11 -11
- package/dist/chunks/{file-retention-63r88w2b.js → model-88c09w79.js} +11 -11
- package/dist/chunks/{file-retention-19m1yqgd.js → model-89enqms3.js} +32 -32
- package/dist/chunks/{file-retention-tcezcvh9.js → model-89znhe33.js} +4 -4
- package/dist/chunks/{file-retention-tctwkzpn.js → model-8cy6v4vd.js} +35 -35
- package/dist/chunks/{file-retention-8d7r5vzw.js → model-8d7r5vzw.js} +1 -1
- package/dist/chunks/{file-retention-zn9rd40w.js → model-8dgstwvc.js} +33 -33
- package/dist/chunks/{file-retention-9cgh24rp.js → model-8f10j8es.js} +27 -27
- package/dist/chunks/{file-retention-kxvjk49k.js → model-8h2gr9vp.js} +5 -5
- package/dist/chunks/{file-retention-gzfdgjtf.js → model-8n6ayns8.js} +15 -15
- package/dist/chunks/{file-retention-b4twkq7r.js → model-8sze2n9a.js} +2 -2
- package/dist/chunks/{file-retention-99z2e8tf.js → model-90zqj351.js} +25 -25
- package/dist/chunks/{file-retention-7np80qm3.js → model-9bxzc1hn.js} +2 -2
- package/dist/chunks/{file-retention-kb9j3d72.js → model-9e5bzkjp.js} +3 -3
- package/dist/chunks/{file-retention-2qasw89v.js → model-9mw9xj7j.js} +5 -5
- package/dist/chunks/{file-retention-8gszwhhd.js → model-a48zkktv.js} +7 -7
- package/dist/chunks/{file-retention-aaet6srn.js → model-aaet6srn.js} +2 -2
- package/dist/chunks/{file-retention-db2wf4at.js → model-addxnjmp.js} +4 -4
- package/dist/chunks/{file-retention-e4n08x2a.js → model-aghzj44m.js} +6 -6
- package/dist/chunks/{file-retention-xasyx0as.js → model-as7cf5zz.js} +4 -4
- package/dist/chunks/{file-retention-fwyzff2k.js → model-at4c9pms.js} +12 -12
- package/dist/chunks/{file-retention-rk1r2hx8.js → model-b69jv39p.js} +1 -1
- package/dist/chunks/{file-retention-b6gygkdw.js → model-b6gygkdw.js} +2 -2
- package/dist/chunks/{file-retention-enpnrszd.js → model-bdg5fp48.js} +22 -22
- package/dist/chunks/{file-retention-44ak30pa.js → model-btbmdjwj.js} +4 -4
- package/dist/chunks/{file-retention-4sq4r2t8.js → model-bz9s2dkj.js} +3 -3
- package/dist/chunks/{file-retention-drvshtg5.js → model-c72vdqf6.js} +24 -24
- package/dist/chunks/{file-retention-htp67ewe.js → model-cd2w4432.js} +9 -9
- package/dist/chunks/{file-retention-byxd618f.js → model-cfc6ste8.js} +24 -24
- package/dist/chunks/{file-retention-q6e5294y.js → model-cg80w4wg.js} +38 -38
- package/dist/chunks/{file-retention-ntg2j34t.js → model-ck0ahkdp.js} +6 -6
- package/dist/chunks/{file-retention-9phb3768.js → model-crsxn195.js} +17 -17
- package/dist/chunks/{file-retention-tfwaqret.js → model-cs8mpvx0.js} +8 -8
- package/dist/chunks/{file-retention-4dhdfeb8.js → model-cvtzrr9c.js} +9 -9
- package/dist/chunks/{file-retention-cwa6csj7.js → model-cwa6csj7.js} +2 -2
- package/dist/chunks/{file-retention-8p4jk4hz.js → model-d31ggzr5.js} +16 -16
- package/dist/chunks/{file-retention-y43kper9.js → model-d7eq7yry.js} +30 -30
- package/dist/chunks/{file-retention-dqetav0t.js → model-d9smpnnn.js} +3 -3
- package/dist/chunks/{file-retention-vzgh18wv.js → model-daz5sg0c.js} +5 -5
- package/dist/chunks/{file-retention-gt8adb52.js → model-dgjsd0ga.js} +8 -8
- package/dist/chunks/{file-retention-6479pxty.js → model-dqkxv1e7.js} +5 -5
- package/dist/chunks/{file-retention-rqa1jxse.js → model-drnf6xwf.js} +2 -2
- package/dist/chunks/{file-retention-0r90g8yp.js → model-dvh3phbs.js} +22 -22
- package/dist/chunks/{file-retention-2e17eh3v.js → model-dwjfp2rp.js} +4 -4
- package/dist/chunks/{file-retention-m2fmqjsg.js → model-e1prbm9r.js} +26 -26
- package/dist/chunks/{file-retention-ehy2g33m.js → model-e22ewehh.js} +22 -22
- package/dist/chunks/{file-retention-qjz171mj.js → model-e699czct.js} +11 -11
- package/dist/chunks/{file-retention-2pvxx6w1.js → model-ecec8gfh.js} +5 -5
- package/dist/chunks/{file-retention-ef5x83kb.js → model-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-retention-91150f7p.js → model-efzthefc.js} +22 -22
- package/dist/chunks/{file-retention-c4rc6qkb.js → model-em3h5ktn.js} +4 -4
- package/dist/chunks/{file-retention-xvrdsv0z.js → model-esvm55dh.js} +8 -8
- package/dist/chunks/{file-retention-etq0c3wd.js → model-etq0c3wd.js} +1 -1
- package/dist/chunks/model-ewexgy4e.js +253 -0
- package/dist/chunks/{file-retention-qkpjj9ac.js → model-ex7a17jg.js} +11 -11
- package/dist/chunks/model-exn3fdxy.js +26 -0
- package/dist/chunks/{file-retention-2s45n8cs.js → model-f0qvdz3k.js} +6 -6
- package/dist/chunks/{file-retention-3v6j8f05.js → model-f3w8yar8.js} +10 -10
- package/dist/chunks/{file-retention-22s53sjq.js → model-f69b8y66.js} +10 -10
- package/dist/chunks/{file-retention-916ecn31.js → model-f6bgm0fy.js} +23 -23
- package/dist/chunks/{file-retention-cmp6hdh9.js → model-f6pqa65c.js} +13 -13
- package/dist/chunks/{file-retention-a2c5gk3p.js → model-fc674bdp.js} +3 -3
- package/dist/chunks/{file-retention-r5zhkawj.js → model-fm4gx2wh.js} +4 -4
- package/dist/chunks/{file-retention-g2y161wv.js → model-fp97dk2y.js} +8 -8
- package/dist/chunks/{file-retention-4mp36x47.js → model-g7n7v10r.js} +9 -9
- package/dist/chunks/{file-retention-pf3jdx00.js → model-g9mrszkn.js} +5 -5
- package/dist/chunks/{file-retention-cc9f4jmy.js → model-gb8ekxdy.js} +9 -9
- package/dist/chunks/{file-retention-gd4qta3r.js → model-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-retention-3kbc11ry.js → model-gdv5h7q7.js} +11 -11
- package/dist/chunks/{file-retention-8a6ws7jr.js → model-gh5z95q3.js} +9 -9
- package/dist/chunks/{file-retention-gr6b6mj1.js → model-gr6b6mj1.js} +1 -1
- package/dist/chunks/{file-retention-p4qz04xc.js → model-gt9pfhey.js} +48 -48
- package/dist/chunks/{file-retention-664q6xrj.js → model-gvzvf8z9.js} +21 -21
- package/dist/chunks/{file-retention-18k9cajk.js → model-gy71bdfa.js} +4 -4
- package/dist/chunks/{file-retention-3cegwx68.js → model-h2b79v29.js} +2 -2
- package/dist/chunks/{file-retention-4v3k5exv.js → model-h5mvh91p.js} +33 -33
- package/dist/chunks/{file-retention-h6vf3j39.js → model-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-retention-jnk7qm89.js → model-hj8xqgxx.js} +10 -10
- package/dist/chunks/{file-retention-cs1ase73.js → model-hpw55k04.js} +18 -18
- package/dist/chunks/{file-retention-89qfpw9h.js → model-hrmk24qx.js} +22 -22
- package/dist/chunks/{file-retention-j56e64zr.js → model-j56e64zr.js} +1 -1
- package/dist/chunks/{file-retention-6517zxh1.js → model-j8vpeap7.js} +12 -12
- package/dist/chunks/{file-retention-v81vxjx2.js → model-jez0550v.js} +11 -11
- package/dist/chunks/{file-retention-cy54bjc2.js → model-jh3gssky.js} +8 -8
- package/dist/chunks/{file-retention-hz0q9sdq.js → model-jpgzdbsd.js} +8 -8
- package/dist/chunks/{file-retention-q5asdkn4.js → model-k76fn4kw.js} +4 -4
- package/dist/chunks/{file-retention-xqs03zex.js → model-k9c08k2d.js} +30 -30
- package/dist/chunks/{file-retention-dyrnqeff.js → model-kgy301q9.js} +18 -18
- package/dist/chunks/{file-retention-5cj6t5k8.js → model-kjbb6xsn.js} +8 -8
- package/dist/chunks/{file-retention-e9rrx8nb.js → model-km6wx086.js} +17 -17
- package/dist/chunks/{file-retention-1tz386xc.js → model-kr4dq3rv.js} +32 -32
- package/dist/chunks/{file-retention-6g0d6zmv.js → model-kw2aa91g.js} +14 -14
- package/dist/chunks/{file-retention-qvp3ayyr.js → model-m24h2fcb.js} +4 -4
- package/dist/chunks/{file-retention-m3fdjcah.js → model-m3fdjcah.js} +1 -1
- package/dist/chunks/{file-retention-24etr8ym.js → model-m8tjn3n8.js} +17 -17
- package/dist/chunks/{file-retention-m9w0rfyh.js → model-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-tezq3vq8.js → model-mckd0gz6.js} +32 -32
- package/dist/chunks/{file-retention-50mzsvk4.js → model-mjymc32g.js} +4 -4
- package/dist/chunks/{file-retention-cn1yc8yx.js → model-mk6maazp.js} +36 -36
- package/dist/chunks/{file-retention-hb0k09dj.js → model-mvy7k6n2.js} +11 -11
- package/dist/chunks/{file-retention-rya9vxen.js → model-mxt3es3f.js} +33 -33
- package/dist/chunks/{file-retention-48kw51zw.js → model-my4zabxr.js} +3 -3
- package/dist/chunks/{file-retention-h6wrxb9q.js → model-n5yrxb74.js} +28 -28
- package/dist/chunks/{file-retention-xxz7chtq.js → model-n97n1pdx.js} +29 -29
- package/dist/chunks/{file-retention-86qzxe6p.js → model-nb9p6b26.js} +4 -4
- package/dist/chunks/{file-retention-r8ngcrxq.js → model-nnsez8tv.js} +54 -54
- package/dist/chunks/{file-retention-v1gfxk1h.js → model-p05qy2sb.js} +8 -8
- package/dist/chunks/{file-retention-jqp48237.js → model-p3n0f46f.js} +35 -35
- package/dist/chunks/{file-retention-q3wbtnjt.js → model-pgphf0kf.js} +9 -9
- package/dist/chunks/model-phvtb2qf.js +507 -0
- package/dist/chunks/{file-retention-pjvnvgmy.js → model-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-retention-pknna89w.js → model-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-yhws0ggv.js → model-pm611pbk.js} +10 -10
- package/dist/chunks/{file-retention-dc2qckmf.js → model-ppthwm7w.js} +15 -15
- package/dist/chunks/{file-retention-njg0144m.js → model-pzqdc8ks.js} +11 -11
- package/dist/chunks/{file-retention-q0xm7vwc.js → model-q0xm7vwc.js} +2 -2
- package/dist/chunks/model-q509s3k3.js +18 -0
- package/dist/chunks/{file-retention-mh3pfvhs.js → model-qgtd49nm.js} +3 -3
- package/dist/chunks/{file-retention-qnc92qwc.js → model-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-retention-qsdy395h.js → model-qsdy395h.js} +1 -1
- package/dist/chunks/{file-retention-w3x9v1nk.js → model-qvb3nf84.js} +8 -8
- package/dist/chunks/{file-retention-d0z5e1mn.js → model-qvct5ygj.js} +28 -28
- package/dist/chunks/{file-retention-xyafkbt0.js → model-qxjc9qry.js} +3 -3
- package/dist/chunks/{file-retention-dgk23zpj.js → model-r0fcwqjf.js} +30 -30
- package/dist/chunks/{file-retention-nc9ket9e.js → model-r3bdtpme.js} +7 -7
- package/dist/chunks/{file-retention-evhxnv2q.js → model-r6p7ac2e.js} +13 -13
- package/dist/chunks/{file-retention-1f27qpcc.js → model-rbhr2x85.js} +39 -39
- package/dist/chunks/{file-retention-rdw6cm16.js → model-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-retention-eaj1djv9.js → model-rhjbct0v.js} +8 -8
- package/dist/chunks/{file-retention-19wbe0f4.js → model-rn0hsr98.js} +19 -19
- package/dist/chunks/{file-retention-zcf427st.js → model-rn8xq1a1.js} +37 -37
- package/dist/chunks/{file-retention-26a94np2.js → model-rvd4wa3q.js} +45 -45
- package/dist/chunks/{file-retention-jx0q4spf.js → model-rytdy19x.js} +20 -20
- package/dist/chunks/{file-retention-wnk9exdz.js → model-rzfprt5n.js} +6 -6
- package/dist/chunks/{file-retention-rmzxb8wx.js → model-s0p3rwnk.js} +40 -40
- package/dist/chunks/{file-retention-1yxhyg8n.js → model-sajnc0bs.js} +12 -12
- package/dist/chunks/{file-retention-b3f8fkhc.js → model-scgrse2b.js} +5 -5
- package/dist/chunks/{file-retention-r4mw293q.js → model-scqzz155.js} +22 -22
- package/dist/chunks/{file-retention-taazwa2m.js → model-sgz4afxd.js} +16 -16
- package/dist/chunks/{file-retention-khtp5qmv.js → model-st7vrkqj.js} +20 -20
- package/dist/chunks/{file-retention-8tx99sfv.js → model-styw8a6f.js} +25 -25
- package/dist/chunks/{file-retention-bkb94af5.js → model-szdtaxh1.js} +42 -42
- package/dist/chunks/{file-retention-qw26wqbf.js → model-szsh9msw.js} +11 -11
- package/dist/chunks/{file-retention-tazgh4e4.js → model-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-retention-5nsj1v3b.js → model-tb71966t.js} +4 -4
- package/dist/chunks/{file-retention-tdstcens.js → model-tdstcens.js} +1 -1
- package/dist/chunks/{file-retention-ceb9zpqz.js → model-tfwg41v3.js} +9 -9
- package/dist/chunks/{file-retention-ratrq7cm.js → model-tkmwgdpd.js} +7 -7
- package/dist/chunks/{file-retention-j1516eyq.js → model-tnn50rwz.js} +22 -22
- package/dist/chunks/{file-retention-010svtsv.js → model-twqkm6qv.js} +26 -26
- package/dist/chunks/{file-retention-23ydc1ae.js → model-tx7sz9e4.js} +17 -17
- package/dist/chunks/{file-retention-v0es1rhs.js → model-v0es1rhs.js} +2 -2
- package/dist/chunks/{file-retention-s78w3mx6.js → model-v0qcg2ew.js} +32 -32
- package/dist/chunks/{file-retention-2dyhgb9n.js → model-v0qypzh8.js} +12 -12
- package/dist/chunks/{file-retention-6pxgffms.js → model-v21rmwhw.js} +10 -10
- package/dist/chunks/{file-retention-j4s13nb2.js → model-v5w5twdg.js} +13 -13
- package/dist/chunks/{file-retention-z421k0xb.js → model-v7ppr8mj.js} +15 -15
- package/dist/chunks/{file-retention-veqvce7d.js → model-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-nvebafbr.js → model-vg2w4f0q.js} +13 -13
- package/dist/chunks/{file-retention-k5zhfa84.js → model-vn8yg3r1.js} +30 -30
- package/dist/chunks/{file-retention-q717ea4v.js → model-vz45eem2.js} +3 -3
- package/dist/chunks/{file-retention-vzcthcp8.js → model-vzcthcp8.js} +1 -1
- package/dist/chunks/{file-retention-vzs5sf6e.js → model-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-retention-w1eejvng.js → model-w1eejvng.js} +1 -1
- package/dist/chunks/{file-retention-w3wsvvr9.js → model-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-retention-t3dkts0r.js → model-w644rytb.js} +11 -11
- package/dist/chunks/{file-retention-ez2gdk13.js → model-w9rw661y.js} +20 -20
- package/dist/chunks/{file-retention-wd87259q.js → model-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-2x8x7t3a.js → model-wqfjjqax.js} +36 -36
- package/dist/chunks/{file-retention-6akfc5px.js → model-wyh91q6x.js} +24 -24
- package/dist/chunks/{file-retention-x1ezjp6w.js → model-x1ezjp6w.js} +1 -1
- package/dist/chunks/{file-retention-w2bejqka.js → model-x5yxy9ce.js} +22 -22
- package/dist/chunks/{file-retention-et5g45k6.js → model-xdwtyvvm.js} +11 -11
- package/dist/chunks/{file-retention-g5w8qwbj.js → model-xfkkasph.js} +4 -4
- package/dist/chunks/{file-retention-xkntkrq7.js → model-xkntkrq7.js} +2 -2
- package/dist/chunks/{file-retention-y1fvbwt7.js → model-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-retention-qeajncbp.js → model-y2xq9eg3.js} +16 -16
- package/dist/chunks/{file-retention-a39dgx1a.js → model-y6z2hynk.js} +8 -8
- package/dist/chunks/{file-retention-dpkg50ah.js → model-y71avatq.js} +4 -4
- package/dist/chunks/{file-retention-9ma816y3.js → model-y9xwgxxz.js} +25 -25
- package/dist/chunks/{file-retention-wvj3jknz.js → model-ybbb90ez.js} +96 -96
- package/dist/chunks/{file-retention-9wpkv8d5.js → model-yc1ky4es.js} +1 -1
- package/dist/chunks/{file-retention-cxpvh0dz.js → model-yjkcqmhb.js} +13 -13
- package/dist/chunks/{file-retention-f29mbr7f.js → model-yrcj3v3g.js} +4 -4
- package/dist/chunks/{file-retention-yrhqyw5v.js → model-yrhqyw5v.js} +1 -1
- package/dist/chunks/{file-retention-dj02fe1d.js → model-yt7zdmr1.js} +34 -34
- package/dist/chunks/{file-retention-jc1gpg60.js → model-yxdaryky.js} +5 -5
- package/dist/chunks/{file-retention-nmpbqy18.js → model-yzyc98yn.js} +6 -6
- package/dist/chunks/{file-retention-z0bkrqjs.js → model-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-s9xxw18e.js → model-z7f9qxd7.js} +9 -9
- package/dist/chunks/{file-retention-kn16ews1.js → model-z93rnxyq.js} +17 -17
- package/dist/chunks/{file-retention-7kc72sy1.js → model-zf1pj567.js} +18 -18
- package/dist/chunks/{file-retention-d9y2dced.js → model-zkzvq0vc.js} +37 -37
- package/dist/chunks/{file-retention-zr2ceqn5.js → model-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-retention-62e165w1.js → model-zscw2c1w.js} +19 -19
- package/dist/chunks/{file-retention-zxq2ej10.js → model-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +104 -104
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -355
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +70 -70
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +114 -114
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/instance/service.d.ts +2 -2
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/location-service-map.d.ts +3 -3
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/diff.d.ts +2 -2
- package/dist/types/session/generate.d.ts +3 -2
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/session/revert.d.ts +2 -2
- package/dist/types/session/runner/index.d.ts +2 -1
- package/dist/types/session/session.d.ts +4 -4
- package/dist/types/session/shell.d.ts +1 -1
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session.d.ts +5 -4
- package/dist/types/worktree.d.ts +2 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/file-retention-16e93gk9.js +0 -507
- package/dist/chunks/file-retention-1bmzne1w.js +0 -26
- package/dist/chunks/file-retention-9sh4wc5j.js +0 -18
- package/dist/chunks/file-retention-kdgzr6za.js +0 -252
- /package/dist/chunks/{file-retention-0qkdqm5v.js → model-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → model-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → model-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → model-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-1kg9ymc8.js → model-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-retention-24dcb14g.js → model-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → model-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2axfhc9x.js → model-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → model-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-34c7v6d4.js → model-34c7v6d4.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → model-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → model-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → model-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3w5fmr99.js → model-3w5fmr99.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → model-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → model-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → model-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → model-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → model-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → model-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → model-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-5qd3pb7m.js → model-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → model-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → model-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → model-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → model-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → model-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → model-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-8wj87zfr.js → model-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → model-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → model-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → model-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → model-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → model-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → model-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → model-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → model-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → model-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → model-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → model-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → model-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → model-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → model-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → model-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → model-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → model-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → model-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → model-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → model-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → model-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → model-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → model-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → model-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → model-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → model-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-fxgpk5d8.js → model-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → model-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → model-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → model-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → model-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hjbc5kem.js → model-hjbc5kem.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → model-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → model-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → model-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-jjkms2e6.js → model-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → model-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → model-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → model-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → model-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → model-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → model-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → model-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → model-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → model-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → model-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → model-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → model-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → model-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qg3g05ea.js → model-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → model-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → model-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → model-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-sk3qaz4a.js → model-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → model-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → model-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wc3fc9cn.js → model-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → model-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → model-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → model-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → model-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → model-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8cydn3q.js → model-y8cydn3q.js} +0 -0
- /package/dist/chunks/{file-retention-y8f7s663.js → model-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → model-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → model-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z5v4ffb3.js → model-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → model-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service83,
|
|
9
|
+
node86
|
|
10
|
+
} from "./model-17prjfpm.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service75,
|
|
13
|
+
node78
|
|
14
|
+
} from "./model-kw2aa91g.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./model-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./model-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error2,
|
|
26
|
+
ID: () => ID3,
|
|
27
|
+
Service: () => Service29,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node32,
|
|
30
30
|
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID3 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error2 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service29 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service75;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID3.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service29.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node32 = makeLocationNode({
|
|
144
|
+
service: Service29,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node86, Global.node, node78]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer2 = Layer.succeed(
|
|
148
|
+
var noopLayer2 = Layer.succeed(Service29, Service29.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service46, Service46.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error2({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID3, Error2, Service29, node32, noopLayer2, exports_snapshot2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service76,
|
|
3
|
+
node79
|
|
4
|
+
} from "./model-e1prbm9r.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
@@ -12,22 +12,22 @@ __export(exports_location, {
|
|
|
12
12
|
Info: () => Info27,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service75,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node78,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { Info as Info27, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service75 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node78 = LayerNode.unbound(Service75, tags.values.location);
|
|
27
|
+
var layer = (ref) => Layer.effect(Service75, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service76;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory);
|
|
30
|
-
return
|
|
30
|
+
return Service75.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref) => Layer.effect(Service80, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service75,
|
|
39
39
|
layer: layer(ref),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node79]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export { Info27, Ref4, response2,
|
|
43
|
+
export { Info27, Ref4, response2, Service75, node78, boundNode2, exports_location };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-8cy6v4vd.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-h5mvh91p.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./model-c72vdqf6.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info9
|
|
9
|
+
} from "./model-esvm55dh.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-m24h2fcb.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service45
|
|
16
|
+
} from "./model-4fzxpz0x.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-5daktx2q.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./model-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/config/plugin/agent.ts
|
|
25
25
|
var exports_agent2 = {};
|
|
26
26
|
__export(exports_agent2, {
|
|
27
27
|
ConfigAgentPlugin: () => exports_agent2,
|
|
28
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin35
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info9);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
|
-
var
|
|
47
|
+
var Plugin35 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service45;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin48 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID9.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID9.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -161,4 +161,4 @@ function decode(file, content) {
|
|
|
161
161
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { Plugin35, exports_agent2 };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
orderSelectedFields2,
|
|
5
5
|
mapUpdateSet2,
|
|
6
6
|
getTableLikeName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-emrn6kk6.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/update.ts
|
|
10
10
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-2a5m3afh.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service75
|
|
9
|
+
} from "./model-kw2aa91g.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service66
|
|
12
|
+
} from "./model-697r6qsh.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service65
|
|
16
|
+
} from "./model-kgy301q9.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./model-0x8512f9.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service58
|
|
26
|
+
} from "./model-0agwad7d.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service13
|
|
29
|
+
} from "./model-3ab3fmem.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./model-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/grep.ts
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
38
|
+
Input: () => Input7,
|
|
39
39
|
Output: () => Output6,
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
40
|
+
Plugin: () => Plugin7,
|
|
41
|
+
name: () => name7,
|
|
42
|
+
toModelContent: () => toModelContent4
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name7 = "grep";
|
|
48
|
+
var Input7 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -66,7 +66,7 @@ var Input8 = Schema.Struct({
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
var Output6 = Schema.Array(Match2);
|
|
69
|
-
var
|
|
69
|
+
var toModelContent4 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent5 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin7 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service66;
|
|
90
|
+
const ripgrep = yield* Service65;
|
|
91
|
+
const location = yield* Service75;
|
|
92
|
+
const access = yield* Service13;
|
|
93
|
+
const permission = yield* Service58;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name7,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
98
|
+
input: Input7,
|
|
99
99
|
output: Output6,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name7,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin25 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent4(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin25 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name7, Input7, Output6, toModelContent4, Plugin7, exports_grep };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
6
|
var exports_permission = {};
|
|
7
7
|
__export(exports_permission, {
|
|
8
8
|
Action: () => Action2,
|
|
9
9
|
ConfigPermissionV1: () => exports_permission,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info11,
|
|
11
11
|
Object: () => Object2,
|
|
12
12
|
Rule: () => Rule2
|
|
13
13
|
});
|
|
@@ -33,9 +33,9 @@ var InputObject = Schema.StructWithRest(Schema.Struct({
|
|
|
33
33
|
}), [Schema.Record(Schema.String, Rule2)]);
|
|
34
34
|
var InputSchema = Schema.Union([Action2, InputObject]);
|
|
35
35
|
var normalizeInput = (input) => typeof input === "string" ? { "*": input } : input;
|
|
36
|
-
var
|
|
36
|
+
var Info11 = InputSchema.pipe(Schema.decodeTo(InputObject, {
|
|
37
37
|
decode: SchemaGetter.transform(normalizeInput),
|
|
38
38
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
39
39
|
})).annotate({ identifier: "PermissionConfig" });
|
|
40
40
|
|
|
41
|
-
export { Action2, Object2, Rule2,
|
|
41
|
+
export { Action2, Object2, Rule2, Info11, exports_permission };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node87
|
|
4
|
+
} from "./model-2cw2ysd6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service77,
|
|
7
|
+
node80
|
|
8
|
+
} from "./model-4txtbyef.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./model-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
|
+
ID: () => ID16,
|
|
25
|
+
Info: () => Info26,
|
|
26
|
+
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service74,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node77
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID16 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event20 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID16,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service74 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
54
|
-
const db = (yield*
|
|
55
|
-
const bus = yield*
|
|
53
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
54
|
+
const db = (yield* Service84).db;
|
|
55
|
+
const bus = yield* Service77;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info26({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service74.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id: input.id ??
|
|
79
|
+
const credential = new Info26({
|
|
80
|
+
id: input.id ?? ID16.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -108,9 +108,9 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
108
108
|
type: credential.value.type,
|
|
109
109
|
active: activated
|
|
110
110
|
});
|
|
111
|
-
yield* bus.publish(
|
|
111
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
112
112
|
if (activated)
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
114
114
|
return credential;
|
|
115
115
|
}),
|
|
116
116
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
130
130
|
})), Effect.orDie);
|
|
131
131
|
if (integrationID) {
|
|
132
132
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
133
|
-
yield* bus.publish(
|
|
133
|
+
yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
|
|
134
134
|
}
|
|
135
135
|
}),
|
|
136
136
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -162,7 +162,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
162
162
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
163
163
|
});
|
|
164
164
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
165
|
-
yield* bus.publish(
|
|
165
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
166
166
|
}),
|
|
167
167
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
168
168
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -195,12 +195,12 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
195
195
|
active: removed.switched,
|
|
196
196
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
197
197
|
});
|
|
198
|
-
yield* bus.publish(
|
|
198
|
+
yield* bus.publish(Event20.Updated, {}, { global: true });
|
|
199
199
|
if (removed.switched)
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
203
|
}));
|
|
204
|
-
var
|
|
204
|
+
var node77 = makeGlobalNode({ service: Service74, layer, deps: [node87, node80] });
|
|
205
205
|
|
|
206
|
-
export {
|
|
206
|
+
export { ID16, OAuth3, Key4, Value2, Event20, Info26, Service74, node77, exports_credential };
|