@opencode/core 0.0.0-dev-20684 → 0.0.0-dev-20686
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 +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{location-lifecycle-pyjrn7r3.js → file-retention-03ewy0w1.js} +20 -20
- package/dist/chunks/{location-lifecycle-6kgskxtw.js → file-retention-03xyy9gs.js} +8 -8
- package/dist/chunks/{location-lifecycle-swntjeps.js → file-retention-04b42xsk.js} +45 -45
- package/dist/chunks/{location-lifecycle-8jkabng0.js → file-retention-094k6nq6.js} +16 -16
- package/dist/chunks/{location-lifecycle-kwsqnjcj.js → file-retention-09fyqd88.js} +9 -9
- package/dist/chunks/{location-lifecycle-9xdh3x8b.js → file-retention-09hj56x9.js} +32 -32
- package/dist/chunks/{location-lifecycle-5jvwydpq.js → file-retention-0aneshm7.js} +20 -20
- package/dist/chunks/{location-lifecycle-yme16cyz.js → file-retention-0eb38e45.js} +28 -28
- package/dist/chunks/{location-lifecycle-0yac1820.js → file-retention-0f5x9ggt.js} +4 -4
- package/dist/chunks/{location-lifecycle-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-lifecycle-ezqzpjms.js → file-retention-0pgs73yf.js} +39 -39
- package/dist/chunks/{location-lifecycle-ze9cz0xh.js → file-retention-0q5g7n77.js} +22 -22
- package/dist/chunks/{location-lifecycle-0vbcp93d.js → file-retention-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-lifecycle-xc20pkzj.js → file-retention-13e7bc6k.js} +11 -11
- package/dist/chunks/{location-lifecycle-c9n2nen5.js → file-retention-17sdckqj.js} +35 -35
- package/dist/chunks/{location-lifecycle-1ajx6rf5.js → file-retention-1ajx6rf5.js} +1 -1
- package/dist/chunks/{location-lifecycle-1dazxqgg.js → file-retention-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-lifecycle-1dvck2a7.js → file-retention-1dvck2a7.js} +2 -2
- package/dist/chunks/{location-lifecycle-yrx1a3r0.js → file-retention-1f0b6d85.js} +20 -20
- package/dist/chunks/{location-lifecycle-06r90ppk.js → file-retention-1ffbm2jk.js} +9 -9
- package/dist/chunks/{location-lifecycle-wysxdp34.js → file-retention-1m3hxyx8.js} +51 -51
- package/dist/chunks/{location-lifecycle-337zht14.js → file-retention-1n632r5x.js} +3 -3
- package/dist/chunks/{location-lifecycle-y4a37d1e.js → file-retention-1ph8kh9q.js} +44 -44
- package/dist/chunks/{location-lifecycle-8g3g94ah.js → file-retention-205pr9zd.js} +48 -48
- package/dist/chunks/{location-lifecycle-bw3ab5h2.js → file-retention-23kkzav6.js} +15 -15
- package/dist/chunks/{location-lifecycle-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-lifecycle-rt1b0z2g.js → file-retention-2c25w9p0.js} +4 -4
- package/dist/chunks/{location-lifecycle-z7rvg8nx.js → file-retention-2e6ycnq2.js} +4 -4
- package/dist/chunks/{location-lifecycle-3ex7axyr.js → file-retention-2ma8f05f.js} +18 -18
- package/dist/chunks/{location-lifecycle-qqqy3pvs.js → file-retention-2pbjjxkv.js} +10 -10
- package/dist/chunks/{location-lifecycle-35ec284s.js → file-retention-2x9pw9ke.js} +13 -13
- package/dist/chunks/{location-lifecycle-sza4v6bf.js → file-retention-2ymj8j9z.js} +8 -8
- package/dist/chunks/{location-lifecycle-gs3s1a1g.js → file-retention-30846h32.js} +8 -8
- package/dist/chunks/{location-lifecycle-by37hsaf.js → file-retention-33kqnb84.js} +17 -17
- package/dist/chunks/{location-lifecycle-mfqp6xfm.js → file-retention-33w4ejhs.js} +9 -9
- package/dist/chunks/{location-lifecycle-ex7zhkfb.js → file-retention-34x5nqhx.js} +7 -7
- package/dist/chunks/{location-lifecycle-8dqzgcf3.js → file-retention-37p191wt.js} +2 -2
- package/dist/chunks/{location-lifecycle-npwy0cf6.js → file-retention-3bc8czyk.js} +5 -5
- package/dist/chunks/{location-lifecycle-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-lifecycle-075nkgpd.js → file-retention-3g8j9he4.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-v5m63bep.js → file-retention-3qhw393j.js} +26 -26
- package/dist/chunks/{location-lifecycle-6xcdvqxh.js → file-retention-3rndcht0.js} +89 -89
- package/dist/chunks/{location-lifecycle-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-lifecycle-j0957gea.js → file-retention-3ss2yntf.js} +13 -13
- package/dist/chunks/{location-lifecycle-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-lifecycle-n0yjf684.js → file-retention-3yef2cta.js} +8 -8
- package/dist/chunks/{location-lifecycle-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-lifecycle-v6vkzzt1.js → file-retention-46gkjvds.js} +56 -56
- package/dist/chunks/{location-lifecycle-djdtsz5x.js → file-retention-473qxj02.js} +15 -15
- package/dist/chunks/{location-lifecycle-mc094nv4.js → file-retention-4ffr5ypj.js} +28 -28
- package/dist/chunks/{location-lifecycle-y0c4c2h5.js → file-retention-4j03jpg8.js} +3 -3
- package/dist/chunks/{location-lifecycle-nm2f9wrr.js → file-retention-4jvpaqy4.js} +32 -32
- package/dist/chunks/{location-lifecycle-4ts7tf6z.js → file-retention-4ts7tf6z.js} +2 -2
- package/dist/chunks/{location-lifecycle-s08b3w1e.js → file-retention-4y79czg2.js} +13 -13
- package/dist/chunks/{location-lifecycle-226eh3y5.js → file-retention-50fv3yjs.js} +21 -21
- package/dist/chunks/{location-lifecycle-54ma36ye.js → file-retention-54ma36ye.js} +1 -1
- package/dist/chunks/{location-lifecycle-1pxz8ven.js → file-retention-57myy5jh.js} +5 -5
- package/dist/chunks/{location-lifecycle-3p8ay4bf.js → file-retention-5a9zanfr.js} +38 -38
- package/dist/chunks/{location-lifecycle-w4zz6nd0.js → file-retention-5bvv5wt0.js} +12 -12
- package/dist/chunks/{location-lifecycle-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
- package/dist/chunks/{location-lifecycle-mfgthqa8.js → file-retention-5dxg2j8v.js} +9 -9
- package/dist/chunks/{location-lifecycle-xs12am9p.js → file-retention-5kw0n2ma.js} +5 -5
- package/dist/chunks/{location-lifecycle-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-lifecycle-9r2jpf9t.js → file-retention-5ryzkr0h.js} +20 -20
- package/dist/chunks/{location-lifecycle-5t3nmthw.js → file-retention-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-lifecycle-9yb256cm.js → file-retention-5xrkpdm9.js} +27 -27
- package/dist/chunks/{location-lifecycle-hdr6pzp4.js → file-retention-64dv7wa4.js} +13 -13
- package/dist/chunks/{location-lifecycle-5qnej2js.js → file-retention-64yxt7jn.js} +13 -13
- package/dist/chunks/{location-lifecycle-7hdckppd.js → file-retention-6cj95z3h.js} +33 -33
- package/dist/chunks/{location-lifecycle-kdp23qt0.js → file-retention-6ny0zgt8.js} +15 -15
- package/dist/chunks/{location-lifecycle-eztpkhjq.js → file-retention-6r09hpxq.js} +23 -23
- package/dist/chunks/{location-lifecycle-6xb47vfp.js → file-retention-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-lifecycle-fz63517n.js → file-retention-6ykcajx2.js} +30 -30
- package/dist/chunks/{location-lifecycle-1jnd0kpw.js → file-retention-70he5k1a.js} +18 -18
- package/dist/chunks/{location-lifecycle-71az546q.js → file-retention-71az546q.js} +2 -2
- package/dist/chunks/{location-lifecycle-ys0rdjsq.js → file-retention-750g53k3.js} +34 -34
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-1w4qtqrn.js → file-retention-7c5mdn1c.js} +9 -9
- package/dist/chunks/{location-lifecycle-2xmwdb14.js → file-retention-7jc2cdj1.js} +12 -12
- package/dist/chunks/{location-lifecycle-pf32sebb.js → file-retention-7qnnmmsd.js} +3 -3
- package/dist/chunks/{location-lifecycle-6y9gnpfg.js → file-retention-820kspmq.js} +20 -20
- package/dist/chunks/{location-lifecycle-10cxwvde.js → file-retention-83wsadg5.js} +16 -16
- package/dist/chunks/{location-lifecycle-89znhe33.js → file-retention-89znhe33.js} +1 -1
- package/dist/chunks/{location-lifecycle-8d7r5vzw.js → file-retention-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-lifecycle-yv3x7tkh.js → file-retention-8h3wwz5z.js} +8 -8
- package/dist/chunks/{location-lifecycle-bspqpb0c.js → file-retention-8qyxgmca.js} +12 -12
- package/dist/chunks/{location-lifecycle-zfs8ae4p.js → file-retention-8rg5szvb.js} +4 -4
- package/dist/chunks/{location-lifecycle-mhd024zz.js → file-retention-8sy4spaq.js} +45 -45
- package/dist/chunks/{location-lifecycle-b4twkq7r.js → file-retention-8sze2n9a.js} +2 -2
- package/dist/chunks/{location-lifecycle-hhqxc54w.js → file-retention-904an80t.js} +14 -14
- package/dist/chunks/{location-lifecycle-s19wcxkc.js → file-retention-938z0aze.js} +23 -23
- package/dist/chunks/{location-lifecycle-9e5bzkjp.js → file-retention-9e5bzkjp.js} +3 -3
- package/dist/chunks/{location-lifecycle-cbcehkva.js → file-retention-9fyy27dk.js} +26 -26
- package/dist/chunks/{location-lifecycle-8jsp840a.js → file-retention-9jwk2z16.js} +26 -26
- package/dist/chunks/{location-lifecycle-3f8vzngw.js → file-retention-9qrc8kph.js} +5 -5
- package/dist/chunks/{location-lifecycle-zfsa101a.js → file-retention-9ye852qw.js} +5 -5
- package/dist/chunks/{location-lifecycle-87af0jnx.js → file-retention-a1dq5efv.js} +7 -7
- package/dist/chunks/{location-lifecycle-sz15h4sp.js → file-retention-a1ekkk6g.js} +10 -10
- package/dist/chunks/{location-lifecycle-0zkygwfx.js → file-retention-a2x2qtap.js} +32 -32
- package/dist/chunks/{location-lifecycle-t95mj38p.js → file-retention-a8skskqr.js} +35 -35
- package/dist/chunks/{location-lifecycle-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
- package/dist/chunks/{location-lifecycle-05gsqr97.js → file-retention-acw72k0x.js} +9 -9
- package/dist/chunks/{location-lifecycle-3egv5ypg.js → file-retention-ae3ekk0y.js} +21 -21
- package/dist/chunks/{location-lifecycle-dgma0v0g.js → file-retention-arz7hw7x.js} +3 -3
- package/dist/chunks/{location-lifecycle-s8b189qv.js → file-retention-at46jfrx.js} +19 -19
- package/dist/chunks/{location-lifecycle-wecqtg5s.js → file-retention-b3f8fkhc.js} +5 -5
- package/dist/chunks/{location-lifecycle-b674v2dg.js → file-retention-b674v2dg.js} +2 -2
- package/dist/chunks/{location-lifecycle-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-lifecycle-26ye3vwj.js → file-retention-b929sp55.js} +8 -8
- package/dist/chunks/{location-lifecycle-20h11dtt.js → file-retention-bcb25nnb.js} +21 -21
- package/dist/chunks/{location-lifecycle-apzzd3ax.js → file-retention-be4ddzaj.js} +20 -20
- package/dist/chunks/{location-lifecycle-edm9s4jn.js → file-retention-bfzhmb2g.js} +23 -23
- package/dist/chunks/{location-lifecycle-9vbq82tv.js → file-retention-bgapsv9a.js} +73 -73
- package/dist/chunks/{location-lifecycle-5pjp1k1g.js → file-retention-cd4hwype.js} +50 -50
- package/dist/chunks/{location-lifecycle-2vbg8t8g.js → file-retention-cpqeyayh.js} +6 -6
- package/dist/chunks/{location-lifecycle-5bcb55yf.js → file-retention-crgh4fce.js} +6 -6
- package/dist/chunks/{location-lifecycle-hafepx0m.js → file-retention-cstv7mkv.js} +12 -12
- package/dist/chunks/{location-lifecycle-g6q9qykm.js → file-retention-cwa6csj7.js} +9 -9
- package/dist/chunks/{location-lifecycle-hpp5kapg.js → file-retention-d1wgwwpz.js} +31 -31
- package/dist/chunks/{location-lifecycle-9ng1f03y.js → file-retention-d3r92nc5.js} +16 -16
- package/dist/chunks/{location-lifecycle-5hx7d1d6.js → file-retention-d9wzmzc3.js} +5 -5
- package/dist/chunks/{location-lifecycle-jmcmn6kx.js → file-retention-dagpcw60.js} +11 -11
- package/dist/chunks/{location-lifecycle-wxc0khkc.js → file-retention-dhxjrn4z.js} +9 -9
- package/dist/chunks/{location-lifecycle-3b8j6ss7.js → file-retention-dktpvhqt.js} +36 -36
- package/dist/chunks/{location-lifecycle-nxm207yx.js → file-retention-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-lifecycle-wa0hznzt.js → file-retention-dpw5yek7.js} +5 -5
- package/dist/chunks/{location-lifecycle-nraamc83.js → file-retention-dzbjpkzp.js} +6 -6
- package/dist/chunks/{location-lifecycle-ytr85qwh.js → file-retention-edexehs9.js} +26 -26
- package/dist/chunks/{location-lifecycle-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-lifecycle-etq0c3wd.js → file-retention-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-lifecycle-4c5kx5jf.js → file-retention-ey888tbp.js} +15 -15
- package/dist/chunks/{location-lifecycle-mxbg3ygs.js → file-retention-ey8ksrh3.js} +38 -38
- package/dist/chunks/{location-lifecycle-8paq7gnc.js → file-retention-f5gy8qwh.js} +8 -8
- package/dist/chunks/{location-lifecycle-sfn58asn.js → file-retention-f76zd4y3.js} +25 -25
- package/dist/chunks/{location-lifecycle-spbjn7pa.js → file-retention-f9nevmwk.js} +11 -11
- package/dist/chunks/{location-lifecycle-s612q12g.js → file-retention-fa14k2vq.js} +4 -4
- package/dist/chunks/{location-lifecycle-kcbhgjfd.js → file-retention-fa9q739j.js} +14 -14
- package/dist/chunks/{location-lifecycle-txk44qj0.js → file-retention-fda9q8n1.js} +27 -27
- package/dist/chunks/{location-lifecycle-2hvzr5ar.js → file-retention-fqy13z6k.js} +7 -7
- package/dist/chunks/{location-lifecycle-tcth2cmk.js → file-retention-g0wmaxy9.js} +27 -27
- package/dist/chunks/{location-lifecycle-mmtzy2cx.js → file-retention-g2arkee0.js} +1 -1
- package/dist/chunks/{location-lifecycle-k7wh6m2v.js → file-retention-g7bg1e3j.js} +4 -4
- package/dist/chunks/{location-lifecycle-qgc4rrcj.js → file-retention-g8pw0xsb.js} +18 -18
- package/dist/chunks/{location-lifecycle-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-lifecycle-6b1rhtd5.js → file-retention-gd9q1fb3.js} +11 -11
- package/dist/chunks/{location-lifecycle-vtkehqnv.js → file-retention-gdgxkkph.js} +16 -16
- package/dist/chunks/{location-lifecycle-gh5z95q3.js → file-retention-gh5z95q3.js} +2 -2
- package/dist/chunks/{location-lifecycle-b8agvgd6.js → file-retention-gj10t9en.js} +33 -33
- package/dist/chunks/{location-lifecycle-ztne98yc.js → file-retention-gq1kxapj.js} +22 -22
- package/dist/chunks/{location-lifecycle-h2b79v29.js → file-retention-h2b79v29.js} +2 -2
- package/dist/chunks/{location-lifecycle-q1h3h95e.js → file-retention-h41w6thw.js} +18 -18
- package/dist/chunks/{location-lifecycle-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-lifecycle-yez4jscq.js → file-retention-he1kwnjy.js} +24 -24
- package/dist/chunks/{location-lifecycle-02khppbe.js → file-retention-hes1j7ga.js} +9 -9
- package/dist/chunks/{location-lifecycle-w98pcy5g.js → file-retention-hh66qvd1.js} +32 -32
- package/dist/chunks/{location-lifecycle-bvydwcnj.js → file-retention-hkw265ex.js} +83 -83
- package/dist/chunks/{location-lifecycle-51g1atb3.js → file-retention-hm31tfx1.js} +1 -1
- package/dist/chunks/{location-lifecycle-vjm1nyv7.js → file-retention-hwgkyev7.js} +10 -10
- package/dist/chunks/{location-lifecycle-063h6gxx.js → file-retention-hwm35mvz.js} +5 -5
- package/dist/chunks/{location-lifecycle-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
- package/dist/chunks/{location-lifecycle-rykbmd5h.js → file-retention-j57qcdj3.js} +18 -18
- package/dist/chunks/{location-lifecycle-m1edx7vx.js → file-retention-j7ektg2c.js} +50 -50
- package/dist/chunks/{location-lifecycle-0vmmsz07.js → file-retention-j8d73t99.js} +47 -47
- package/dist/chunks/{location-lifecycle-hvvc8a2w.js → file-retention-jahc66mj.js} +12 -12
- package/dist/chunks/{location-lifecycle-mxw8m4vv.js → file-retention-jantjze8.js} +182 -182
- package/dist/chunks/{location-lifecycle-n7nkg0mk.js → file-retention-jbtmhr82.js} +11 -11
- package/dist/chunks/{location-lifecycle-2ahzvgw1.js → file-retention-jrpn6x2x.js} +12 -12
- package/dist/chunks/{location-lifecycle-ddt2bs9e.js → file-retention-jvf3yq6v.js} +4 -4
- package/dist/chunks/{location-lifecycle-qb5a6frm.js → file-retention-jvm6vmtm.js} +12 -12
- package/dist/chunks/{location-lifecycle-6bvm89f4.js → file-retention-k0v1pxzb.js} +24 -24
- package/dist/chunks/{location-lifecycle-e6cvegzg.js → file-retention-kd48n5vs.js} +9 -9
- package/dist/chunks/{location-lifecycle-sj78244k.js → file-retention-kjwsf0xt.js} +15 -15
- package/dist/chunks/{location-lifecycle-k9hdpf1d.js → file-retention-kqx66hb9.js} +27 -27
- package/dist/chunks/{location-lifecycle-rk51z9mh.js → file-retention-kr41r1s2.js} +46 -46
- package/dist/chunks/{location-lifecycle-8f67g1dm.js → file-retention-krp44vcd.js} +36 -36
- package/dist/chunks/{location-lifecycle-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-lifecycle-d94vkxnx.js → file-retention-m7g7tjth.js} +20 -20
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-zmc286va.js → file-retention-mbf8d5kt.js} +12 -12
- package/dist/chunks/{location-lifecycle-0wpwzxxn.js → file-retention-mbt5cw93.js} +13 -13
- package/dist/chunks/{location-lifecycle-hjdfbhvj.js → file-retention-mdyte87w.js} +4 -4
- package/dist/chunks/{location-lifecycle-a1gpj94z.js → file-retention-mhkvc446.js} +3 -3
- package/dist/chunks/{location-lifecycle-50mzsvk4.js → file-retention-mjymc32g.js} +4 -4
- package/dist/chunks/{location-lifecycle-wa80y0bh.js → file-retention-mna3rst0.js} +11 -11
- package/dist/chunks/{location-lifecycle-531cyra5.js → file-retention-mv92nc0c.js} +27 -27
- package/dist/chunks/{location-lifecycle-zw2hpfmh.js → file-retention-mxvxcxwy.js} +4 -4
- package/dist/chunks/{location-lifecycle-jnzzg47p.js → file-retention-myekv2e1.js} +15 -15
- package/dist/chunks/{location-lifecycle-c35597j6.js → file-retention-n1n192bv.js} +4 -4
- package/dist/chunks/{location-lifecycle-a89e0tac.js → file-retention-n2srvep7.js} +4 -4
- package/dist/chunks/{location-lifecycle-ftjf86m5.js → file-retention-n37c4crj.js} +9 -9
- package/dist/chunks/{location-lifecycle-26a57194.js → file-retention-n7m69k8w.js} +9 -9
- package/dist/chunks/{location-lifecycle-32psh0q2.js → file-retention-na6tqg4t.js} +19 -19
- package/dist/chunks/{location-lifecycle-brk5xemp.js → file-retention-nqxj0yn4.js} +2 -2
- package/dist/chunks/{location-lifecycle-qyt1w9k6.js → file-retention-nxb06eb5.js} +11 -11
- package/dist/chunks/{location-lifecycle-ccaf0804.js → file-retention-pasrzgnm.js} +11 -11
- package/dist/chunks/{location-lifecycle-vfjhn2wd.js → file-retention-pgp1nwjn.js} +4 -4
- package/dist/chunks/{location-lifecycle-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-lifecycle-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-y3c20489.js → file-retention-pmzay1jn.js} +39 -39
- package/dist/chunks/{location-lifecycle-sahbbq5s.js → file-retention-ptx056q3.js} +20 -20
- package/dist/chunks/{location-lifecycle-b0dt9z8w.js → file-retention-pvr6cp49.js} +4 -4
- package/dist/chunks/{location-lifecycle-2s7ybbgh.js → file-retention-q0n3fxgm.js} +3 -3
- package/dist/chunks/{location-lifecycle-q0xm7vwc.js → file-retention-q0xm7vwc.js} +2 -2
- package/dist/chunks/file-retention-q4txbv8h.js +507 -0
- package/dist/chunks/file-retention-q509s3k3.js +18 -0
- package/dist/chunks/{location-lifecycle-0jwsre1p.js → file-retention-qgn6gcr1.js} +5 -5
- package/dist/chunks/{location-lifecycle-qnc92qwc.js → file-retention-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-lifecycle-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/file-retention-qssvdjk7.js +26 -0
- package/dist/chunks/{location-lifecycle-pngk9xk6.js → file-retention-qykya8vg.js} +33 -33
- package/dist/chunks/file-retention-r199w3eq.js +253 -0
- package/dist/chunks/{location-lifecycle-hbp9e5gh.js → file-retention-r6pqrcmr.js} +31 -31
- package/dist/chunks/{location-lifecycle-hz5tq5t5.js → file-retention-r6qhg5cx.js} +16 -16
- package/dist/chunks/{location-lifecycle-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-lifecycle-xcmk6yw7.js → file-retention-rf6cmkn1.js} +11 -11
- package/dist/chunks/{location-lifecycle-1acjjqhc.js → file-retention-rhraev7y.js} +4 -4
- package/dist/chunks/{location-lifecycle-78cd284a.js → file-retention-rjk8fnxb.js} +30 -30
- package/dist/chunks/{location-lifecycle-2rvp7s7b.js → file-retention-rzwhqm3a.js} +3 -3
- package/dist/chunks/{location-lifecycle-4ckeh75z.js → file-retention-s609sw4r.js} +13 -13
- package/dist/chunks/{location-lifecycle-mx2aqj59.js → file-retention-s6d08xqn.js} +8 -8
- package/dist/chunks/{location-lifecycle-s8d7rejh.js → file-retention-s8d7rejh.js} +1 -1
- package/dist/chunks/{location-lifecycle-4qjpxqqa.js → file-retention-srm8s2qm.js} +11 -11
- package/dist/chunks/{location-lifecycle-41pxaskz.js → file-retention-srq67sk8.js} +5 -5
- package/dist/chunks/{location-lifecycle-d216944b.js → file-retention-sxz6gkc3.js} +4 -4
- package/dist/chunks/{location-lifecycle-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-lifecycle-tdstcens.js → file-retention-tdstcens.js} +1 -1
- package/dist/chunks/{location-lifecycle-fpecnkgp.js → file-retention-tg7bkhef.js} +5 -5
- package/dist/chunks/{location-lifecycle-d9sgy5v4.js → file-retention-tx92n959.js} +4 -4
- package/dist/chunks/{location-lifecycle-aw1j1f4r.js → file-retention-v71jy9y0.js} +11 -11
- package/dist/chunks/{location-lifecycle-9y5b0gtx.js → file-retention-vbpjx0bg.js} +5 -5
- package/dist/chunks/{location-lifecycle-xj71rk50.js → file-retention-vczt2j2e.js} +3 -3
- package/dist/chunks/{location-lifecycle-d1mtykxg.js → file-retention-ve6nm2s5.js} +6 -6
- package/dist/chunks/{location-lifecycle-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{location-lifecycle-ws6ndszr.js → file-retention-vnn4j5gh.js} +9 -9
- package/dist/chunks/{location-lifecycle-48hq3w28.js → file-retention-vr81r1wp.js} +8 -8
- package/dist/chunks/{location-lifecycle-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-lifecycle-gtbprh07.js → file-retention-w14eggg5.js} +17 -17
- package/dist/chunks/{location-lifecycle-w1eejvng.js → file-retention-w1eejvng.js} +1 -1
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-bh0zzf2s.js → file-retention-w49382pb.js} +8 -8
- package/dist/chunks/{location-lifecycle-9xssfh81.js → file-retention-w9c6j00y.js} +27 -27
- package/dist/chunks/{location-lifecycle-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-4hkjffgj.js → file-retention-wknvrshc.js} +13 -13
- package/dist/chunks/{location-lifecycle-60jf5vcr.js → file-retention-wmns5nf0.js} +4 -4
- package/dist/chunks/{location-lifecycle-5ngaw42y.js → file-retention-wsb67xeh.js} +10 -10
- package/dist/chunks/{location-lifecycle-6svbk6pm.js → file-retention-wtdswasp.js} +7 -7
- package/dist/chunks/{location-lifecycle-6d8pmp5n.js → file-retention-wtqemd4y.js} +9 -9
- package/dist/chunks/{location-lifecycle-dnezdd38.js → file-retention-x0r517r6.js} +14 -14
- package/dist/chunks/{location-lifecycle-etyaes4m.js → file-retention-x9hm1kyg.js} +24 -24
- package/dist/chunks/{location-lifecycle-wye7nvcy.js → file-retention-x9qn77dj.js} +35 -35
- package/dist/chunks/{location-lifecycle-et3fks45.js → file-retention-xe9nhgdy.js} +32 -32
- package/dist/chunks/{location-lifecycle-g5w8qwbj.js → file-retention-xfkkasph.js} +4 -4
- package/dist/chunks/{location-lifecycle-dmqcgk4z.js → file-retention-xkntkrq7.js} +5 -5
- package/dist/chunks/{location-lifecycle-2zk65mq5.js → file-retention-xnj07x5h.js} +19 -19
- package/dist/chunks/{location-lifecycle-0w1gqsy8.js → file-retention-xsgjgyxe.js} +4 -4
- package/dist/chunks/{location-lifecycle-qxjc9qry.js → file-retention-xyafkbt0.js} +3 -3
- package/dist/chunks/{location-lifecycle-3a2m6res.js → file-retention-y072d9hw.js} +5 -5
- package/dist/chunks/{location-lifecycle-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-lifecycle-3f1961x7.js → file-retention-y5chagx8.js} +27 -27
- package/dist/chunks/{location-lifecycle-2bfa9kaw.js → file-retention-y5nh7e22.js} +11 -11
- package/dist/chunks/{location-lifecycle-bm7qbsac.js → file-retention-yb1jef8c.js} +11 -11
- package/dist/chunks/{location-lifecycle-1tkxjym4.js → file-retention-ybqw3e3v.js} +3 -3
- package/dist/chunks/{location-lifecycle-gd6d6gzq.js → file-retention-ygrct2xs.js} +29 -29
- package/dist/chunks/{location-lifecycle-86a9aqm7.js → file-retention-yq3jnmtb.js} +5 -5
- package/dist/chunks/{location-lifecycle-9sgp6b5z.js → file-retention-ytkq3k3g.js} +6 -6
- package/dist/chunks/{location-lifecycle-4sa8jbrs.js → file-retention-yvgnd6da.js} +5 -5
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-tbmkjjbj.js → file-retention-zafm009k.js} +4 -4
- package/dist/chunks/{location-lifecycle-mz0r50hh.js → file-retention-zcs7pzqw.js} +21 -21
- package/dist/chunks/{location-lifecycle-nm0wvxtq.js → file-retention-zm4ck3vc.js} +15 -15
- package/dist/chunks/{location-lifecycle-zzk5q109.js → file-retention-znqtm8yx.js} +13 -13
- package/dist/chunks/{location-lifecycle-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-lifecycle-t62pw5c1.js → file-retention-zwrdb9pw.js} +18 -18
- package/dist/chunks/{location-lifecycle-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-lifecycle-dkbtsjnq.js → file-retention-zz29563v.js} +24 -24
- package/dist/chunks/{location-lifecycle-ej6h7vq7.js → file-retention-zzmbjfh5.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- 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 +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- 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 +125 -125
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- 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 +115 -115
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +100 -100
- package/dist/form.js +76 -76
- 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 +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- 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 +351 -351
- 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 +127 -127
- 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 +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +74 -74
- package/dist/plugin/command.js +102 -102
- 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 +1 -1
- package/dist/plugin/internal.js +326 -326
- 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/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 +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- 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/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -341
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +84 -84
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- 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 +95 -95
- 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 +135 -135
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +125 -125
- 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 +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- 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 +73 -73
- package/dist/session/store.js +85 -85
- 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 +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +93 -93
- 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 +128 -128
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- 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 +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- 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 +14 -14
- 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 +3 -3
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- 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/location-lifecycle-55bz3zr2.js +0 -253
- package/dist/chunks/location-lifecycle-5fxk43wy.js +0 -507
- package/dist/chunks/location-lifecycle-9zdhvgqs.js +0 -18
- package/dist/chunks/location-lifecycle-js13ey7k.js +0 -26
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3t0ybcrp.js → file-retention-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3w5fmr99.js → file-retention-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5qd3pb7m.js → file-retention-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-a1ekkk6g.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-33w4ejhs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin17,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint3
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint3 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin17 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin24 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint3, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin24 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint3, Plugin17, exports_firecrawl };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-33w4ejhs.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin16,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
13
|
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin16 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export { endpoint2,
|
|
83
|
+
export { endpoint2, Plugin16, exports_exa };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-vczt2j2e.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service82,
|
|
10
|
+
node86
|
|
11
|
+
} from "./file-retention-7jc2cdj1.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-retention-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-arz7hw7x.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-retention-9e5bzkjp.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/session/inbox.ts
|
|
30
30
|
var exports_inbox = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info8,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service44,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -50,7 +50,7 @@ __export(exports_inbox, {
|
|
|
50
50
|
make: () => make18,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node47,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info8,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,12 +151,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service44 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
156
|
var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
157
|
const database = yield* Service84;
|
|
158
158
|
const db = database.db;
|
|
159
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service82;
|
|
160
160
|
const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
|
|
161
161
|
const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
|
|
162
162
|
if (existing === undefined)
|
|
@@ -173,7 +173,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info8.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -227,8 +227,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var layer17 = Layer.effect(
|
|
231
|
-
var
|
|
230
|
+
var layer17 = Layer.effect(Service44, make18());
|
|
231
|
+
var node47 = makeGlobalNode({ service: Service44, layer: layer17, deps: [node88, node86] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info8, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service44, make18, layer17, node47, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-y8cydn3q.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service56,
|
|
3
|
+
node59
|
|
4
|
+
} from "./file-retention-70he5k1a.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service78,
|
|
7
|
+
node82
|
|
8
|
+
} from "./file-retention-fa9q739j.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service55,
|
|
11
|
+
node58
|
|
12
|
+
} from "./file-retention-0pgs73yf.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service9,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer6,
|
|
28
|
+
node: () => node11
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service9 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service55;
|
|
40
|
+
const watcher = yield* Service56;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service78;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service9.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node11 = makeLocationNode({
|
|
74
|
+
service: Service9,
|
|
75
|
+
layer: layer6,
|
|
76
|
+
deps: [node58, FSUtil.node, node59, node82]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service9,
|
|
80
|
+
layer: Layer.succeed(Service9, Service9.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service9, layer6, node11, empty2, exports_source };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service76,
|
|
6
|
+
node79
|
|
7
|
+
} from "./file-retention-zz29563v.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service59,
|
|
17
|
+
node: () => node62,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service59 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service76;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service59.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node62 = makeLocationNode({ service: Service59, layer, deps: [node79] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service59, readText2, syncTextBom2, node62, exports_file_mutation };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-vczt2j2e.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
8
|
make21,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-retention-s8d7rejh.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-retention-9e5bzkjp.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info4,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service23,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node27,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info4 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,7 +56,7 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service23 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service84;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service23.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node27 = makeLocationNode({ service: Service23, layer, deps: [node88] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info4, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service23, node27, exports_instruction_entry };
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service80,
|
|
9
|
+
node84
|
|
10
|
+
} from "./file-retention-cstv7mkv.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service78,
|
|
13
|
+
node82
|
|
14
|
+
} from "./file-retention-fa9q739j.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-retention-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-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: () => ID4,
|
|
27
|
+
Service: () => Service33,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node36,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
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 ID4 } 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 Service33 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service80;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service78;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service72, 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(Service72, 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(Service72, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID4.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(Service72, 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 Service33.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node36 = makeLocationNode({
|
|
144
|
+
service: Service33,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node84, Global.node, node82]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer2 = Layer.succeed(Service33, Service33.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service72, Service72.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 { ID4, Error2, Service33, node36, noopLayer2, exports_snapshot2 };
|