@opencode-ai/core 0.0.0-dev-19229 → 0.0.0-dev-19231
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 +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/catalog.js +83 -83
- package/dist/chunks/{pty-8yr65315.js → model-08a41fs6.js} +4 -4
- package/dist/chunks/{pty-0e0xafbb.js → model-0e0xafbb.js} +2 -2
- package/dist/chunks/{pty-gxae5phx.js → model-0hkavbtz.js} +10 -10
- package/dist/chunks/{pty-fawa5e74.js → model-0m09scw9.js} +15 -15
- package/dist/chunks/{pty-0paq2nw3.js → model-0paq2nw3.js} +1 -1
- package/dist/chunks/{pty-0q0f95c6.js → model-0q0f95c6.js} +1 -1
- package/dist/chunks/{pty-0s9ayhjt.js → model-0s9ayhjt.js} +1 -1
- package/dist/chunks/{pty-6sbnbvmk.js → model-0wsjpnd7.js} +25 -25
- package/dist/chunks/{pty-vg2y9t9r.js → model-12xqvb1b.js} +34 -34
- package/dist/chunks/{pty-759pz1a2.js → model-15q8ja5w.js} +8 -8
- package/dist/chunks/{pty-yp2x3t23.js → model-1acjjqhc.js} +4 -4
- package/dist/chunks/{pty-3dkp8r4p.js → model-1aq8506p.js} +10 -10
- package/dist/chunks/{pty-1ct4r87x.js → model-1ct4r87x.js} +1 -1
- package/dist/chunks/{pty-n8177zz8.js → model-1hx9wcgw.js} +11 -11
- package/dist/chunks/{pty-erhqyaxy.js → model-1n0jv9g4.js} +22 -22
- package/dist/chunks/{pty-9d4vrqc0.js → model-1n116cmy.js} +9 -9
- package/dist/chunks/{pty-s0gfpzhy.js → model-1q2kyrwf.js} +8 -8
- package/dist/chunks/{pty-4vp46et4.js → model-1tqw8fve.js} +6 -6
- package/dist/chunks/{pty-dx66qyny.js → model-1z5csfzm.js} +11 -11
- package/dist/chunks/{pty-7dfpr722.js → model-20gc94b8.js} +26 -26
- package/dist/chunks/{pty-0bdpkccw.js → model-20z6knkr.js} +24 -24
- package/dist/chunks/{pty-21r38tys.js → model-21r38tys.js} +1 -1
- package/dist/chunks/{pty-hzraneqh.js → model-22qpfc77.js} +15 -15
- package/dist/chunks/{pty-rbp2bqea.js → model-22sqsb66.js} +22 -22
- package/dist/chunks/{pty-gmxhbycn.js → model-26bs89kh.js} +11 -11
- package/dist/chunks/{pty-2a5m3afh.js → model-2a5m3afh.js} +1 -1
- package/dist/chunks/{pty-qspbgrbh.js → model-2aqypk65.js} +23 -23
- package/dist/chunks/{pty-qs8bcfem.js → model-2bd93ybk.js} +15 -15
- package/dist/chunks/{pty-0gaj4617.js → model-2d57kztd.js} +6 -6
- package/dist/chunks/{pty-qe902fgv.js → model-2g6n1n99.js} +36 -36
- package/dist/chunks/{pty-2ht70gj7.js → model-2ht70gj7.js} +1 -1
- package/dist/chunks/{pty-7dqw4kz8.js → model-2k8khapm.js} +5 -5
- package/dist/chunks/{pty-sb910js5.js → model-2m4g9ewj.js} +20 -20
- package/dist/chunks/{pty-cznc2qrv.js → model-2x4t10gv.js} +9 -9
- package/dist/chunks/{pty-efcq2w3s.js → model-2yy704e6.js} +39 -39
- package/dist/chunks/{pty-dbqqhdnr.js → model-2zabfrna.js} +15 -15
- package/dist/chunks/{pty-33w4ejhs.js → model-33w4ejhs.js} +2 -2
- package/dist/chunks/model-35chk74t.js +4 -0
- package/dist/chunks/{pty-a4rgs0hc.js → model-36vsdr69.js} +6 -6
- package/dist/chunks/{pty-3fc6dm20.js → model-3fc6dm20.js} +1 -1
- package/dist/chunks/{pty-3hepkmqq.js → model-3hepkmqq.js} +1 -1
- package/dist/chunks/{pty-gy57ja53.js → model-3p8pzw3s.js} +12 -12
- package/dist/chunks/{pty-3qzbfqsy.js → model-3qzbfqsy.js} +2 -2
- package/dist/chunks/{pty-3smtnn6g.js → model-3smtnn6g.js} +1 -1
- package/dist/chunks/{pty-3tvqynh2.js → model-3tvqynh2.js} +1 -1
- package/dist/chunks/{pty-3wx44s71.js → model-3v8a3rwp.js} +9 -9
- package/dist/chunks/model-3w2vsq6v.js +247 -0
- package/dist/chunks/{pty-t3jgv66k.js → model-3zha5fxe.js} +11 -11
- package/dist/chunks/{pty-7w3s9kd0.js → model-4541pte3.js} +5 -5
- package/dist/chunks/{pty-454k5vzh.js → model-454k5vzh.js} +1 -1
- package/dist/chunks/{pty-3zhxwkvq.js → model-4f0zhtze.js} +4 -4
- package/dist/chunks/{pty-4r2nyarf.js → model-4r2nyarf.js} +1 -1
- package/dist/chunks/{pty-4krtzqk5.js → model-4tz3xrar.js} +4 -4
- package/dist/chunks/{pty-pjdhfn7p.js → model-4v8ksd8z.js} +32 -32
- package/dist/chunks/{pty-c08189m0.js → model-4v90mgzs.js} +11 -11
- package/dist/chunks/{pty-xc46y3dk.js → model-4z2r4bge.js} +10 -10
- package/dist/chunks/{pty-tdt6s1r3.js → model-52bfwkce.js} +9 -4
- package/dist/chunks/{pty-5daktx2q.js → model-5daktx2q.js} +1 -1
- package/dist/chunks/{pty-yfj9ye14.js → model-5e201kr9.js} +2 -2
- package/dist/chunks/{pty-5fmxt4p5.js → model-5fmxt4p5.js} +1 -1
- package/dist/chunks/{pty-t0v4ch2z.js → model-5fpej9df.js} +20 -20
- package/dist/chunks/{pty-5jvc5tg2.js → model-5jvc5tg2.js} +1 -1
- package/dist/chunks/{pty-mgbhega2.js → model-5t4bbjxh.js} +34 -34
- package/dist/chunks/{pty-z70g020t.js → model-68bdepn2.js} +8 -8
- package/dist/chunks/{pty-97f5v037.js → model-6e958v7x.js} +4 -4
- package/dist/chunks/{pty-qmwe3ze8.js → model-6gm23603.js} +4 -4
- package/dist/chunks/{pty-6h73sxmp.js → model-6h73sxmp.js} +1 -1
- package/dist/chunks/{pty-kerhshr9.js → model-6vq97qmv.js} +5 -5
- package/dist/chunks/{pty-hy60paza.js → model-6y3p39e9.js} +23 -23
- package/dist/chunks/{pty-711hfp6y.js → model-711hfp6y.js} +2 -2
- package/dist/chunks/{pty-72nftnjy.js → model-72nftnjy.js} +2 -2
- package/dist/chunks/{pty-kdm6jke6.js → model-772mfqr9.js} +17 -17
- package/dist/chunks/{pty-2ddeeh7p.js → model-78904rmc.js} +13 -13
- package/dist/chunks/{pty-7bmhse3q.js → model-7bmhse3q.js} +1 -1
- package/dist/chunks/{pty-sf50aah2.js → model-7df1gwaw.js} +10 -10
- package/dist/chunks/{pty-8q6tmnwr.js → model-7kytx31a.js} +15 -15
- package/dist/chunks/{pty-y4s8p0xv.js → model-7ms3akfe.js} +9 -9
- package/dist/chunks/{pty-ty6v1d9r.js → model-7wemxnfn.js} +9 -9
- package/dist/chunks/{pty-577gck9x.js → model-89cfd633.js} +1 -1
- package/dist/chunks/{pty-tcezcvh9.js → model-89znhe33.js} +4 -4
- package/dist/chunks/{pty-3jzbymb5.js → model-8jaccy6q.js} +3 -3
- package/dist/chunks/{pty-2wkcjqsg.js → model-8tq3sb4p.js} +1 -1
- package/dist/chunks/{pty-r7dsrs90.js → model-8wyd8by6.js} +28 -28
- package/dist/chunks/{pty-f9sfmbx4.js → model-90qcaj3z.js} +9 -9
- package/dist/chunks/{pty-bby1yxzv.js → model-92md29x6.js} +9 -9
- package/dist/chunks/{pty-93a8yfjt.js → model-93a8yfjt.js} +2 -2
- package/dist/chunks/{pty-qs70785c.js → model-98qe2c0c.js} +16 -16
- package/dist/chunks/{pty-zbqrk12b.js → model-995k5939.js} +21 -21
- package/dist/chunks/{pty-qvbcabdc.js → model-9qm9egsn.js} +2 -2
- package/dist/chunks/{pty-p3ds9s6g.js → model-9vw7vcdh.js} +1 -1
- package/dist/chunks/{pty-qs7zdahm.js → model-9z6xj13s.js} +1 -1
- package/dist/chunks/{pty-vp07xytb.js → model-a57vvxs4.js} +36 -36
- package/dist/chunks/{pty-cxrffcy9.js → model-a6b1at7w.js} +13 -13
- package/dist/chunks/{pty-t58ewwpp.js → model-a8q7jsk4.js} +10 -10
- package/dist/chunks/{pty-aaet6srn.js → model-aaet6srn.js} +2 -2
- package/dist/chunks/{pty-yg7sb877.js → model-ajtjthsy.js} +2 -2
- package/dist/chunks/{pty-782hb7rq.js → model-an3ztjaf.js} +11 -11
- package/dist/chunks/{pty-4qpmcwxv.js → model-anvw4htd.js} +11 -11
- package/dist/chunks/{pty-fsx1nawq.js → model-apkghgcr.js} +28 -28
- package/dist/chunks/{pty-cp01dnm5.js → model-ass8tta6.js} +25 -25
- package/dist/chunks/{pty-gjmr4gz7.js → model-ax1zgaab.js} +20 -20
- package/dist/chunks/{pty-kec10mhb.js → model-b24jctxr.js} +7 -7
- package/dist/chunks/{pty-b6gygkdw.js → model-b6gygkdw.js} +2 -2
- package/dist/chunks/{pty-b9wsbatv.js → model-b9wsbatv.js} +1 -1
- package/dist/chunks/{pty-bcezcar3.js → model-bcezcar3.js} +2 -2
- package/dist/chunks/{pty-9hq8x1wg.js → model-bd9qw0pz.js} +4 -4
- package/dist/chunks/{pty-t33fapxs.js → model-bhe758x2.js} +11 -11
- package/dist/chunks/{pty-gngv63rf.js → model-byzqm6pm.js} +11 -11
- package/dist/chunks/{pty-5meqwk0k.js → model-c3q04h22.js} +6 -6
- package/dist/chunks/{pty-g8s9endd.js → model-c4266wzm.js} +5 -5
- package/dist/chunks/{pty-rj2dy46x.js → model-c79hchf2.js} +10 -10
- package/dist/chunks/{pty-9j9x4q1b.js → model-c7j5b865.js} +8 -8
- package/dist/chunks/{pty-hdyt65fn.js → model-cm1e0p4f.js} +61 -61
- package/dist/chunks/{pty-6kzqb55n.js → model-crtth3kn.js} +1 -1
- package/dist/chunks/{pty-zbab1cyk.js → model-cs5ax58j.js} +35 -35
- package/dist/chunks/{pty-313d55j7.js → model-d21f35rx.js} +17 -17
- package/dist/chunks/{pty-g2gt0w0k.js → model-d72308c8.js} +2 -2
- package/dist/chunks/{pty-d6grxaaw.js → model-d7bd21nn.js} +5 -5
- package/dist/chunks/{pty-783p8az6.js → model-dar8hhem.js} +43 -43
- package/dist/chunks/{pty-amb2dgbz.js → model-dfgxnd7s.js} +5 -5
- package/dist/chunks/{pty-ynsekjh4.js → model-dj1refs3.js} +16 -16
- package/dist/chunks/{pty-yca9m8pm.js → model-dk4sqe21.js} +44 -44
- package/dist/chunks/{pty-j54kfte4.js → model-e4dk5v2p.js} +294 -294
- package/dist/chunks/{pty-wmp3ywfp.js → model-e7xv4shy.js} +11 -11
- package/dist/chunks/{pty-gqy5b3zq.js → model-e8beyqjk.js} +23 -23
- package/dist/chunks/{pty-wg50y0d7.js → model-ej1cjmmj.js} +4 -4
- package/dist/chunks/{pty-hj9w58t8.js → model-eqmx9x5a.js} +17 -17
- package/dist/chunks/{pty-7tyy48z3.js → model-esnkyg5n.js} +172 -172
- package/dist/chunks/{pty-ssqhww7x.js → model-etppe4am.js} +38 -38
- package/dist/chunks/{pty-4nc7k1rh.js → model-f0htrw7h.js} +8 -8
- package/dist/chunks/{pty-04ws37x2.js → model-f644k4g9.js} +4 -4
- package/dist/chunks/{pty-h5th8w0s.js → model-fbba3783.js} +7 -7
- package/dist/chunks/{pty-k1j94ffd.js → model-fecs8fat.js} +20 -20
- package/dist/chunks/{pty-f3x8qm6h.js → model-fjsjs8gs.js} +1 -1
- package/dist/chunks/{pty-mcz3mdrd.js → model-fkt4x44k.js} +24 -24
- package/dist/chunks/{pty-d9staddt.js → model-fpgmcc84.js} +9 -9
- package/dist/chunks/{pty-rj9m8b0p.js → model-fq2b0bhp.js} +16 -16
- package/dist/chunks/{pty-fxbjtjnd.js → model-fxbjtjnd.js} +1 -1
- package/dist/chunks/{pty-fxypknc8.js → model-fxypknc8.js} +1 -1
- package/dist/chunks/{pty-zckdcmqe.js → model-g2q0em8t.js} +52 -52
- package/dist/chunks/{pty-p92k0peb.js → model-g6g4xadg.js} +10 -10
- package/dist/chunks/{pty-jysfrgga.js → model-g77vssk4.js} +2 -2
- package/dist/chunks/{pty-bjz2p863.js → model-gbe54f77.js} +32 -32
- package/dist/chunks/{pty-37gqmzmx.js → model-gc7v1t3k.js} +90 -90
- package/dist/chunks/{pty-gd4qta3r.js → model-gd4qta3r.js} +1 -1
- package/dist/chunks/{pty-ea3aq44s.js → model-ge4nsmv7.js} +8 -8
- package/dist/chunks/{pty-efa01jjy.js → model-gerjwk2s.js} +10 -10
- package/dist/chunks/{pty-008qgtj7.js → model-gqnddd1j.js} +10 -10
- package/dist/chunks/{pty-e1qz7z1t.js → model-gsb6489n.js} +18 -18
- package/dist/chunks/{pty-7mx0sbrp.js → model-gv2x7g13.js} +11 -11
- package/dist/chunks/{pty-rhrwrhed.js → model-h1b949hm.js} +9 -9
- package/dist/chunks/{pty-pgzg68km.js → model-h32abm0a.js} +12 -12
- package/dist/chunks/{pty-fr4822z7.js → model-h4hy9j5m.js} +32 -32
- package/dist/chunks/{pty-jv6tbxxe.js → model-h58xcwpy.js} +8 -8
- package/dist/chunks/{pty-h6vf3j39.js → model-h6vf3j39.js} +1 -1
- package/dist/chunks/{pty-z843syy3.js → model-h8adth36.js} +28 -28
- package/dist/chunks/{pty-1hvsz6d3.js → model-he6ej3nv.js} +28 -28
- package/dist/chunks/{pty-heyhwy2w.js → model-heyhwy2w.js} +1 -1
- package/dist/chunks/{pty-g2dy4bvs.js → model-hrvm11jt.js} +3 -3
- package/dist/chunks/{pty-p9j9asx5.js → model-hsrdd0hb.js} +6 -6
- package/dist/chunks/{pty-kvsjn1dr.js → model-hw4pv20g.js} +2 -2
- package/dist/chunks/{pty-qepd2pkj.js → model-j2823k0a.js} +2 -2
- package/dist/chunks/{pty-2484jmj1.js → model-j58f2tsb.js} +16 -16
- package/dist/chunks/{pty-8a8365eh.js → model-j66dydsc.js} +43 -43
- package/dist/chunks/{pty-bct739vz.js → model-j83byb14.js} +4 -4
- package/dist/chunks/{pty-ktffyxsn.js → model-j8mwdyn8.js} +23 -23
- package/dist/chunks/{pty-pk9c5e8x.js → model-jbsy1hv5.js} +28 -28
- package/dist/chunks/{pty-g8d3gcyj.js → model-jfqtm2ew.js} +7 -7
- package/dist/chunks/{pty-9avzg735.js → model-js8yvnrt.js} +16 -16
- package/dist/chunks/{pty-6vpfhv95.js → model-jt4mc51p.js} +20 -20
- package/dist/chunks/{pty-dpkg50ah.js → model-jwcy2c2z.js} +4 -4
- package/dist/chunks/{pty-zkpmw5vh.js → model-k0ya8bme.js} +9 -9
- package/dist/chunks/{pty-vadapd1k.js → model-k1dsz6y7.js} +15 -15
- package/dist/chunks/{pty-9y3z1s6a.js → model-k1qjaw27.js} +9 -9
- package/dist/chunks/{pty-k4bwy1x5.js → model-k4bwy1x5.js} +1 -1
- package/dist/chunks/{pty-zq8b9kne.js → model-k4e9abdp.js} +3 -3
- package/dist/chunks/{pty-bkpep2vd.js → model-kd7gz9m8.js} +12 -12
- package/dist/chunks/{pty-64cwafvq.js → model-kf4gvk3d.js} +19 -19
- package/dist/chunks/{pty-kg06axw8.js → model-kg06axw8.js} +1 -1
- package/dist/chunks/{pty-eab9zk3a.js → model-kwt6vw2b.js} +1 -1
- package/dist/chunks/{pty-qazyzvt1.js → model-m26n2wbd.js} +30 -30
- package/dist/chunks/{pty-m9w0rfyh.js → model-m9w0rfyh.js} +1 -1
- package/dist/chunks/{pty-qcm9e7mh.js → model-menpcf49.js} +28 -28
- package/dist/chunks/{pty-mhkvc446.js → model-mhkvc446.js} +1 -1
- package/dist/chunks/{pty-80dxa4k8.js → model-mjzw1bzx.js} +9 -9
- package/dist/chunks/{pty-hctfpb5b.js → model-mmcfgxhp.js} +15 -15
- package/dist/chunks/{pty-e8qk6bfz.js → model-mrzgejwd.js} +6 -6
- package/dist/chunks/{pty-efd04m0z.js → model-mzhs6qzf.js} +20 -20
- package/dist/chunks/{pty-s3pjgy5b.js → model-n60t1am9.js} +32 -32
- package/dist/chunks/{pty-1ydgq2r4.js → model-n95nq84g.js} +5 -5
- package/dist/chunks/{pty-z468ybv7.js → model-nann6xwg.js} +7 -7
- package/dist/chunks/{pty-g6sn775a.js → model-nb9230rg.js} +25 -25
- package/dist/chunks/{pty-z78tg67p.js → model-ncdrabr4.js} +5 -5
- package/dist/chunks/{pty-hjt4xg1x.js → model-nhy5jxhy.js} +4 -4
- package/dist/chunks/{pty-pj9g9jn9.js → model-nka1ygzk.js} +9 -9
- package/dist/chunks/{pty-pavxtxna.js → model-nnbt60j6.js} +28 -28
- package/dist/chunks/{pty-4v76mm5w.js → model-npbwjnhv.js} +46 -46
- package/dist/chunks/{pty-cxd5pse7.js → model-nv215pf8.js} +35 -35
- package/dist/chunks/{pty-9s9nhjw5.js → model-p5eeq8s5.js} +20 -20
- package/dist/chunks/{pty-7pfa80tx.js → model-p7vjq3nf.js} +8 -8
- package/dist/chunks/{pty-j935v87r.js → model-paphc93g.js} +2 -2
- package/dist/chunks/{pty-31hgssyn.js → model-pcgwdn4c.js} +26 -26
- package/dist/chunks/{pty-sxqgp07b.js → model-pf26xcw4.js} +15 -15
- package/dist/chunks/model-phz3h32g.js +18 -0
- package/dist/chunks/{pty-pjvnvgmy.js → model-pjvnvgmy.js} +1 -1
- package/dist/chunks/{pty-pknna89w.js → model-pknna89w.js} +1 -1
- package/dist/chunks/{pty-ak81qg5h.js → model-pw9bssgq.js} +13 -13
- package/dist/chunks/{pty-6ryfpt65.js → model-q0k9rffs.js} +2 -2
- package/dist/chunks/{pty-0v90h9aj.js → model-q1q8shnw.js} +3 -3
- package/dist/chunks/{pty-en5z9xq9.js → model-q26vpf5j.js} +37 -37
- package/dist/chunks/{pty-e9z8h0rr.js → model-q7rahdyn.js} +48 -48
- package/dist/chunks/{pty-s2bsqmqa.js → model-qdeb1fbd.js} +17 -17
- package/dist/chunks/{pty-kn27nyen.js → model-qkczmewf.js} +28 -28
- package/dist/chunks/{pty-eb56tdfp.js → model-qkfetj8f.js} +11 -11
- package/dist/chunks/{pty-4fj3kv51.js → model-qmhfvwmz.js} +20 -20
- package/dist/chunks/{pty-n5gsaee6.js → model-qpxz7w97.js} +89 -89
- package/dist/chunks/{pty-qsdy395h.js → model-qsdy395h.js} +1 -1
- package/dist/chunks/{pty-v5b2djhb.js → model-r1h4hq3z.js} +8 -8
- package/dist/chunks/{pty-r8dhm0tv.js → model-r8dhm0tv.js} +1 -1
- package/dist/chunks/{pty-6my8ebcr.js → model-r9szvb63.js} +4 -4
- package/dist/chunks/{pty-qw7f0bey.js → model-r9vh2myd.js} +18 -18
- package/dist/chunks/{pty-sbk29tnb.js → model-rd5rc3qn.js} +11 -11
- package/dist/chunks/{pty-m1e4fd8e.js → model-rm3yzcsd.js} +4 -4
- package/dist/chunks/{pty-cq8wrtqn.js → model-rnswsqfz.js} +9 -9
- package/dist/chunks/{pty-j68ej5p1.js → model-rqwsnytn.js} +15 -15
- package/dist/chunks/{pty-11j2pf0e.js → model-rv07xpn4.js} +26 -26
- package/dist/chunks/{pty-7xjwb2wc.js → model-rw70w6rh.js} +17 -17
- package/dist/chunks/{pty-fyzy9awj.js → model-s0gpr7nd.js} +1 -1
- package/dist/chunks/{pty-wbz7qeky.js → model-s7jh2mzx.js} +16 -16
- package/dist/chunks/{pty-sba4qhjf.js → model-sba4qhjf.js} +1 -1
- package/dist/chunks/{pty-q04ns22w.js → model-sc3g53k4.js} +32 -32
- package/dist/chunks/{pty-5496546h.js → model-scnwyzvg.js} +27 -27
- package/dist/chunks/{pty-ytrgf914.js → model-sehh868t.js} +9 -9
- package/dist/chunks/{pty-gc46ge9f.js → model-sggw9g71.js} +9 -9
- package/dist/chunks/{pty-vg046jzb.js → model-ss534pec.js} +34 -34
- package/dist/chunks/{pty-4x2rz8aw.js → model-sxnqxy4r.js} +24 -24
- package/dist/chunks/{pty-0tx0adwb.js → model-t1twmhvk.js} +42 -42
- package/dist/chunks/{pty-3yqrwd3c.js → model-t21e1kny.js} +59 -59
- package/dist/chunks/{pty-tazgh4e4.js → model-tazgh4e4.js} +1 -1
- package/dist/chunks/{pty-tjykrgmx.js → model-tjykrgmx.js} +1 -1
- package/dist/chunks/{pty-2r7k3mcn.js → model-tvqsjz16.js} +13 -13
- package/dist/chunks/{pty-fqathm57.js → model-tygggdg2.js} +48 -48
- package/dist/chunks/{pty-rp0x3qp0.js → model-tyqynq3b.js} +2 -2
- package/dist/chunks/{pty-bj2c3eqn.js → model-v8zj3nvd.js} +9 -9
- package/dist/chunks/{pty-6mdfharv.js → model-vcj948wx.js} +31 -31
- package/dist/chunks/{pty-tcbp8xmm.js → model-vdp3h7a0.js} +8 -8
- package/dist/chunks/{pty-e5d8p3ek.js → model-venh0awk.js} +27 -27
- package/dist/chunks/{pty-mbxr96qs.js → model-vjyhv8pr.js} +14 -14
- package/dist/chunks/{pty-44xh2db3.js → model-vnzc40bj.js} +2 -2
- package/dist/chunks/{pty-3jj6bjb6.js → model-w0k1he6w.js} +5 -5
- package/dist/chunks/{pty-n1gk9b32.js → model-w0tjg5nm.js} +21 -21
- package/dist/chunks/{pty-w3wsvvr9.js → model-w3wsvvr9.js} +1 -1
- package/dist/chunks/model-w9fhryfq.js +22 -0
- package/dist/chunks/{pty-2dag43m9.js → model-wb0bd551.js} +24 -24
- package/dist/chunks/{pty-wd87259q.js → model-wd87259q.js} +1 -1
- package/dist/chunks/{pty-2xfyk68w.js → model-we3wm8yq.js} +9 -9
- package/dist/chunks/{pty-ythy6836.js → model-wefnnxbq.js} +1 -1
- package/dist/chunks/{pty-5nt034rp.js → model-wjg3wkh7.js} +31 -31
- package/dist/chunks/{pty-x1ezjp6w.js → model-x1ezjp6w.js} +1 -1
- package/dist/chunks/{pty-k0zpnkm5.js → model-x3e0yjas.js} +6 -6
- package/dist/chunks/{pty-0ywnm299.js → model-x845ardq.js} +10 -10
- package/dist/chunks/{pty-2vqvv9q6.js → model-xbrn1wah.js} +17 -17
- package/dist/chunks/{pty-0mvbe19h.js → model-xcvhrv29.js} +29 -29
- package/dist/chunks/{pty-4x0nmcjx.js → model-xr5vwsd4.js} +9 -9
- package/dist/chunks/{pty-1wbp7xjh.js → model-xz6hzd2e.js} +4 -4
- package/dist/chunks/{pty-y1fvbwt7.js → model-y1fvbwt7.js} +1 -1
- package/dist/chunks/{pty-5sa6p9bm.js → model-y9sdwjr5.js} +18 -18
- package/dist/chunks/{pty-yfbd16n1.js → model-yfbd16n1.js} +2 -2
- package/dist/chunks/{pty-ktjrcgzc.js → model-ym2xh4m5.js} +41 -41
- package/dist/chunks/{pty-fk423tcf.js → model-ytjjskze.js} +6 -6
- package/dist/chunks/{pty-z1k01bn4.js → model-z1k01bn4.js} +2 -2
- package/dist/chunks/{pty-rgnb5s7e.js → model-z40ea0h8.js} +4 -4
- package/dist/chunks/{pty-29x78va6.js → model-z63w68vq.js} +6 -6
- package/dist/chunks/{pty-06x8he3q.js → model-zav06jzw.js} +4 -4
- package/dist/chunks/{pty-hhv3cd3z.js → model-ztxeb84j.js} +1 -1
- package/dist/chunks/{pty-62gk5m9w.js → model-zvp72z8e.js} +64 -64
- package/dist/chunks/{pty-dtd9rmq8.js → model-zx72dege.js} +13 -13
- package/dist/chunks/{pty-zxq2ej10.js → model-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +79 -79
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +115 -115
- package/dist/config/plugin/command.js +204 -204
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +96 -96
- package/dist/config/plugin/skill.js +133 -133
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +115 -115
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- 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 +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +79 -79
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +359 -359
- 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 +86 -86
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +88 -88
- 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 +72 -72
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -91
- package/dist/git.js +5 -5
- 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 +3 -3
- 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/id/id.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 +350 -350
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -84
- package/dist/job.js +75 -75
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +130 -130
- package/dist/location-mutation.js +81 -81
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +347 -347
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +121 -121
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +8 -8
- package/dist/models-dev.js +86 -86
- 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 +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +96 -96
- package/dist/plugin/command.js +94 -94
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +321 -321
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +96 -96
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +130 -130
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +340 -340
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +3 -3
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +122 -122
- package/dist/session/context.js +146 -146
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +147 -147
- package/dist/session/history.js +14 -14
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +91 -91
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +112 -112
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +125 -125
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +99 -99
- package/dist/session/revert.js +85 -85
- 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 +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +120 -120
- package/dist/session/runner/to-llm-message.js +1 -1
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +168 -168
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +97 -97
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -202
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +150 -150
- package/dist/session/to-session-error.js +106 -106
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- 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 +15 -15
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +99 -99
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +88 -88
- 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 +118 -118
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +119 -119
- package/dist/tool/plugin/grep.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +97 -97
- package/dist/tool/plugin/read.js +120 -120
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +101 -101
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +102 -102
- package/dist/tool/plugin/websearch.js +106 -106
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +72 -72
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- 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 +7 -7
- package/dist/worktree/refresh.js +339 -339
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +7 -7
- package/dist/chunks/pty-1pds8yh5.js +0 -22
- package/dist/chunks/pty-1x11rq2a.js +0 -18
- package/dist/chunks/pty-9zwhrd2p.js +0 -4
- package/dist/chunks/pty-hvbsrnf8.js +0 -247
- /package/dist/chunks/{pty-0fabt78z.js → model-0fabt78z.js} +0 -0
- /package/dist/chunks/{pty-0qkdqm5v.js → model-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{pty-0zkw76rk.js → model-0zkw76rk.js} +0 -0
- /package/dist/chunks/{pty-17cy0kzp.js → model-17cy0kzp.js} +0 -0
- /package/dist/chunks/{pty-1cnp2v09.js → model-1cnp2v09.js} +0 -0
- /package/dist/chunks/{pty-1kg9ymc8.js → model-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{pty-2710q6r3.js → model-2710q6r3.js} +0 -0
- /package/dist/chunks/{pty-2axfhc9x.js → model-2axfhc9x.js} +0 -0
- /package/dist/chunks/{pty-2c3vjs8z.js → model-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{pty-359p4xyc.js → model-359p4xyc.js} +0 -0
- /package/dist/chunks/{pty-3asan66x.js → model-3asan66x.js} +0 -0
- /package/dist/chunks/{pty-3t738kvx.js → model-3t738kvx.js} +0 -0
- /package/dist/chunks/{pty-3v8g72cx.js → model-3v8g72cx.js} +0 -0
- /package/dist/chunks/{pty-3wcehsnq.js → model-3wcehsnq.js} +0 -0
- /package/dist/chunks/{pty-41nvscxy.js → model-41nvscxy.js} +0 -0
- /package/dist/chunks/{pty-43n2bw4t.js → model-43n2bw4t.js} +0 -0
- /package/dist/chunks/{pty-4knz6hnm.js → model-4knz6hnm.js} +0 -0
- /package/dist/chunks/{pty-4y7fprxs.js → model-4y7fprxs.js} +0 -0
- /package/dist/chunks/{pty-53557ph1.js → model-53557ph1.js} +0 -0
- /package/dist/chunks/{pty-550bvhaj.js → model-550bvhaj.js} +0 -0
- /package/dist/chunks/{pty-6prwharc.js → model-6prwharc.js} +0 -0
- /package/dist/chunks/{pty-7akdwqpd.js → model-7akdwqpd.js} +0 -0
- /package/dist/chunks/{pty-7m9af43g.js → model-7m9af43g.js} +0 -0
- /package/dist/chunks/{pty-822emrt2.js → model-822emrt2.js} +0 -0
- /package/dist/chunks/{pty-88xbtdfr.js → model-88xbtdfr.js} +0 -0
- /package/dist/chunks/{pty-8n3pysct.js → model-8n3pysct.js} +0 -0
- /package/dist/chunks/{pty-982e01ww.js → model-982e01ww.js} +0 -0
- /package/dist/chunks/{pty-9a4afbnw.js → model-9a4afbnw.js} +0 -0
- /package/dist/chunks/{pty-9rqn6x4v.js → model-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-a1tpkmh4.js → model-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{pty-af5trqkr.js → model-af5trqkr.js} +0 -0
- /package/dist/chunks/{pty-afrmfg78.js → model-afrmfg78.js} +0 -0
- /package/dist/chunks/{pty-aqzs7mqg.js → model-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{pty-atq7p7m5.js → model-atq7p7m5.js} +0 -0
- /package/dist/chunks/{pty-bkyjaxrp.js → model-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{pty-bmr6ed5q.js → model-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{pty-cf4snx6d.js → model-cf4snx6d.js} +0 -0
- /package/dist/chunks/{pty-cvy3z8tj.js → model-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{pty-d9fn303g.js → model-d9fn303g.js} +0 -0
- /package/dist/chunks/{pty-d9jj8t3e.js → model-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{pty-dajrwvna.js → model-dajrwvna.js} +0 -0
- /package/dist/chunks/{pty-dap0rakb.js → model-dap0rakb.js} +0 -0
- /package/dist/chunks/{pty-df08tz66.js → model-df08tz66.js} +0 -0
- /package/dist/chunks/{pty-dy18nga0.js → model-dy18nga0.js} +0 -0
- /package/dist/chunks/{pty-e5kj55wp.js → model-e5kj55wp.js} +0 -0
- /package/dist/chunks/{pty-e73j6tqm.js → model-e73j6tqm.js} +0 -0
- /package/dist/chunks/{pty-eh3zwz77.js → model-eh3zwz77.js} +0 -0
- /package/dist/chunks/{pty-emrn6kk6.js → model-emrn6kk6.js} +0 -0
- /package/dist/chunks/{pty-f0mxakyp.js → model-f0mxakyp.js} +0 -0
- /package/dist/chunks/{pty-f6n9ztr4.js → model-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{pty-faypxj3z.js → model-faypxj3z.js} +0 -0
- /package/dist/chunks/{pty-fd410y7t.js → model-fd410y7t.js} +0 -0
- /package/dist/chunks/{pty-fxgpk5d8.js → model-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{pty-g4wezp1m.js → model-g4wezp1m.js} +0 -0
- /package/dist/chunks/{pty-g86h250q.js → model-g86h250q.js} +0 -0
- /package/dist/chunks/{pty-gebd4c9n.js → model-gebd4c9n.js} +0 -0
- /package/dist/chunks/{pty-hk9envan.js → model-hk9envan.js} +0 -0
- /package/dist/chunks/{pty-j2ntwpah.js → model-j2ntwpah.js} +0 -0
- /package/dist/chunks/{pty-j5zkgpj8.js → model-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{pty-jr7sbwjy.js → model-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{pty-jwfs4k6c.js → model-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{pty-jzg6c2d5.js → model-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{pty-mntxs535.js → model-mntxs535.js} +0 -0
- /package/dist/chunks/{pty-mp448xyj.js → model-mp448xyj.js} +0 -0
- /package/dist/chunks/{pty-msx8hqn2.js → model-msx8hqn2.js} +0 -0
- /package/dist/chunks/{pty-n05xt0ee.js → model-n05xt0ee.js} +0 -0
- /package/dist/chunks/{pty-n3j8tn72.js → model-n3j8tn72.js} +0 -0
- /package/dist/chunks/{pty-njntx4h6.js → model-njntx4h6.js} +0 -0
- /package/dist/chunks/{pty-p8qxwesx.js → model-p8qxwesx.js} +0 -0
- /package/dist/chunks/{pty-q3sfg36h.js → model-q3sfg36h.js} +0 -0
- /package/dist/chunks/{pty-q74kybfr.js → model-q74kybfr.js} +0 -0
- /package/dist/chunks/{pty-qaymkmh1.js → model-qaymkmh1.js} +0 -0
- /package/dist/chunks/{pty-qb87gjwd.js → model-qb87gjwd.js} +0 -0
- /package/dist/chunks/{pty-qfa1cgps.js → model-qfa1cgps.js} +0 -0
- /package/dist/chunks/{pty-qrg20bc0.js → model-qrg20bc0.js} +0 -0
- /package/dist/chunks/{pty-rcb2kzg1.js → model-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{pty-sdp7kfr6.js → model-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{pty-se0s1eqw.js → model-se0s1eqw.js} +0 -0
- /package/dist/chunks/{pty-sk3qaz4a.js → model-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{pty-ssg3fenm.js → model-ssg3fenm.js} +0 -0
- /package/dist/chunks/{pty-twg0f83k.js → model-twg0f83k.js} +0 -0
- /package/dist/chunks/{pty-w803qqfp.js → model-w803qqfp.js} +0 -0
- /package/dist/chunks/{pty-wer8tq1h.js → model-wer8tq1h.js} +0 -0
- /package/dist/chunks/{pty-wtztk69x.js → model-wtztk69x.js} +0 -0
- /package/dist/chunks/{pty-x0ckcb58.js → model-x0ckcb58.js} +0 -0
- /package/dist/chunks/{pty-x1b8g1yb.js → model-x1b8g1yb.js} +0 -0
- /package/dist/chunks/{pty-x61499pn.js → model-x61499pn.js} +0 -0
- /package/dist/chunks/{pty-y44na4kk.js → model-y44na4kk.js} +0 -0
- /package/dist/chunks/{pty-y8cydn3q.js → model-y8cydn3q.js} +0 -0
- /package/dist/chunks/{pty-ygaqb7jw.js → model-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{pty-z9919s4g.js → model-z9919s4g.js} +0 -0
- /package/dist/chunks/{pty-zbjnn3ac.js → model-zbjnn3ac.js} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-jwcy2c2z.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service73,
|
|
6
|
+
node77
|
|
7
|
+
} from "./model-js8yvnrt.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event17,
|
|
10
|
+
Service62,
|
|
11
|
+
node65
|
|
12
|
+
} from "./model-he6ej3nv.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service69,
|
|
15
|
+
node73
|
|
16
|
+
} from "./model-xbrn1wah.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
Service67,
|
|
19
19
|
node70
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./model-jt4mc51p.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID8,
|
|
23
|
+
Service56,
|
|
24
|
+
node59
|
|
25
|
+
} from "./model-20gc94b8.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./model-kg06axw8.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID7,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service55,
|
|
34
|
+
node58
|
|
35
|
+
} from "./model-scnwyzvg.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./model-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError2,
|
|
45
|
+
Options: () => Options2,
|
|
46
46
|
Prompt: () => Prompt2,
|
|
47
47
|
PromptArgument: () => PromptArgument2,
|
|
48
48
|
PromptMessage: () => PromptMessage2,
|
|
@@ -56,15 +56,15 @@ __export(exports_mcp4, {
|
|
|
56
56
|
ServerInfo: () => ServerInfo2,
|
|
57
57
|
ServerInstructions: () => ServerInstructions2,
|
|
58
58
|
ServerName: () => ServerName2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service26,
|
|
60
60
|
Status: () => Status2,
|
|
61
61
|
Tool: () => Tool3,
|
|
62
62
|
ToolCallError: () => ToolCallError2,
|
|
63
63
|
ToolResult: () => ToolResult2,
|
|
64
64
|
ToolResultContent: () => ToolResultContent2,
|
|
65
|
-
configured: () =>
|
|
66
|
-
layer: () =>
|
|
67
|
-
node: () =>
|
|
65
|
+
configured: () => configured2,
|
|
66
|
+
layer: () => layer12,
|
|
67
|
+
node: () => node30
|
|
68
68
|
});
|
|
69
69
|
import { Mcp } from "@opencode-ai/schema/mcp";
|
|
70
70
|
import { McpEvent } from "@opencode-ai/schema/mcp-event";
|
|
@@ -81,7 +81,7 @@ var Status2 = Mcp.Status;
|
|
|
81
81
|
class ServerInfo2 extends Schema.Class("MCP.ServerInfo")({
|
|
82
82
|
name: ServerName2,
|
|
83
83
|
status: Status2,
|
|
84
|
-
integrationID:
|
|
84
|
+
integrationID: ID7.pipe(Schema.optional)
|
|
85
85
|
}) {
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -147,7 +147,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
147
147
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
148
148
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
149
149
|
|
|
150
|
-
class
|
|
150
|
+
class NotFoundError2 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
151
151
|
server: ServerName2
|
|
152
152
|
}) {
|
|
153
153
|
get message() {
|
|
@@ -165,21 +165,21 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
165
165
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
166
166
|
var cloneConfig = (config) => structuredClone(config);
|
|
167
167
|
|
|
168
|
-
class
|
|
168
|
+
class Service26 extends Context.Service()("@opencode/MCP") {
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var Options2 = Schema.Struct({
|
|
171
171
|
clientInfo: Schema.optional(Schema.Struct({
|
|
172
172
|
name: Schema.String,
|
|
173
173
|
version: Schema.String
|
|
174
174
|
}))
|
|
175
175
|
});
|
|
176
|
-
var
|
|
177
|
-
const location = yield*
|
|
178
|
-
const environment = yield*
|
|
179
|
-
const bus = yield*
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
176
|
+
var layer12 = (options) => Layer.effect(Service26, Effect.gen(function* () {
|
|
177
|
+
const location = yield* Service69;
|
|
178
|
+
const environment = yield* Service67;
|
|
179
|
+
const bus = yield* Service73;
|
|
180
|
+
const forms = yield* Service56;
|
|
181
|
+
const integration = yield* Service55;
|
|
182
|
+
const credentials = yield* Service62;
|
|
183
183
|
const root = yield* Effect.scope;
|
|
184
184
|
const fork = yield* FiberSet.makeRuntime();
|
|
185
185
|
const entries = new Map;
|
|
@@ -191,7 +191,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
191
191
|
return;
|
|
192
192
|
const remote = entry.config;
|
|
193
193
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
194
|
-
const integrationID =
|
|
194
|
+
const integrationID = ID7.make(suffix);
|
|
195
195
|
entry.integrationID = integrationID;
|
|
196
196
|
owned.add(integrationID);
|
|
197
197
|
const methodID = MethodID2.make(suffix);
|
|
@@ -216,7 +216,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
216
216
|
const name = ServerName2.make(server);
|
|
217
217
|
const entry = entries.get(name);
|
|
218
218
|
if (!entry)
|
|
219
|
-
return yield* new
|
|
219
|
+
return yield* new NotFoundError2({ server: name });
|
|
220
220
|
return { name, entry };
|
|
221
221
|
});
|
|
222
222
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
@@ -315,7 +315,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
315
315
|
const elicitation = {
|
|
316
316
|
create: (input) => Effect.gen(function* () {
|
|
317
317
|
if (input.params.mode === "url") {
|
|
318
|
-
const formID =
|
|
318
|
+
const formID = ID8.create();
|
|
319
319
|
const key = input.server + "\x00" + input.params.elicitationId;
|
|
320
320
|
urlElicitations.set(key, formID);
|
|
321
321
|
return yield* forms.ask({
|
|
@@ -433,7 +433,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
433
433
|
entry.scope = scope;
|
|
434
434
|
const authProvider = yield* connectProvider(entry);
|
|
435
435
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
436
|
-
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
436
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service67, environment), Scope.provide(scope), Effect.exit);
|
|
437
437
|
if (Exit.isSuccess(result)) {
|
|
438
438
|
entry.client = result.value.connection;
|
|
439
439
|
entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
|
|
@@ -557,7 +557,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
557
557
|
yield* startServer(name, entry);
|
|
558
558
|
}).pipe(locks.withLock(name));
|
|
559
559
|
});
|
|
560
|
-
fork(bus.subscribe(
|
|
560
|
+
fork(bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
561
561
|
const state = create3({
|
|
562
562
|
name: "mcp",
|
|
563
563
|
initial: () => ({
|
|
@@ -587,7 +587,7 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
587
587
|
concurrency: "unbounded",
|
|
588
588
|
discard: true
|
|
589
589
|
}));
|
|
590
|
-
return
|
|
590
|
+
return Service26.of({
|
|
591
591
|
transform: state.transform,
|
|
592
592
|
reload: state.reload,
|
|
593
593
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -707,14 +707,14 @@ var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
|
707
707
|
})
|
|
708
708
|
});
|
|
709
709
|
}));
|
|
710
|
-
function
|
|
710
|
+
function configured2(options) {
|
|
711
711
|
return makeLocationNode({
|
|
712
|
-
service:
|
|
713
|
-
layer:
|
|
714
|
-
deps: [
|
|
712
|
+
service: Service26,
|
|
713
|
+
layer: layer12(options),
|
|
714
|
+
deps: [node73, node70, node77, node59, node58, node65]
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var node30 = configured2();
|
|
718
718
|
function toElicitationField(key, property, required) {
|
|
719
719
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
720
720
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -765,4 +765,4 @@ function toElicitationField(key, property, required) {
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool3, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
768
|
+
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool3, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError2, ToolCallError2, Service26, Options2, layer12, configured2, node30, exports_mcp4 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service69
|
|
6
|
+
} from "./model-xbrn1wah.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
13
13
|
__export(exports_discovery2, {
|
|
14
14
|
ConfigDiscovery: () => exports_discovery2,
|
|
15
15
|
discover: () => discover3,
|
|
16
|
-
names: () =>
|
|
16
|
+
names: () => names3
|
|
17
17
|
});
|
|
18
18
|
import path from "path";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
20
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
21
21
|
import { Global } from "@opencode-ai/util/global";
|
|
22
|
-
var
|
|
22
|
+
var names3 = ["opencode.json", "opencode.jsonc"];
|
|
23
23
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
24
24
|
const fs = yield* FSUtil.Service;
|
|
25
25
|
const global = yield* Global.Service;
|
|
26
|
-
const location = yield*
|
|
26
|
+
const location = yield* Service69;
|
|
27
27
|
const globalDirectory = AbsolutePath2.make(global.config);
|
|
28
28
|
const globalAgentsDirectory = AbsolutePath2.make(path.join(global.home, ".agents"));
|
|
29
29
|
const globalClaudeDirectory = AbsolutePath2.make(path.join(global.home, ".claude"));
|
|
@@ -31,10 +31,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
31
31
|
const directories = (yield* fs.resolve(location.directory)) === globalRoots[0] || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
|
|
32
32
|
const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
|
|
33
33
|
const parent = yield* fs.resolve(directory);
|
|
34
|
-
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...
|
|
34
|
+
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names3.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
|
|
35
35
|
})).pipe(Effect.map((items) => items.flat()), Effect.orDie);
|
|
36
36
|
const globalEnabled = options?.global !== false;
|
|
37
|
-
const globalFiles = yield* Effect.forEach(
|
|
37
|
+
const globalFiles = yield* Effect.forEach(names3, (name) => fs.resolve(path.join(globalDirectory, name)));
|
|
38
38
|
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
39
39
|
return {
|
|
40
40
|
global: globalEnabled ? globalDirectory : undefined,
|
|
@@ -56,4 +56,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
export {
|
|
59
|
+
export { names3, discover3, exports_discovery2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode-ai/schema/session";
|
|
3
3
|
import { Session } from "@opencode-ai/schema/session";
|
|
4
|
-
var
|
|
4
|
+
var ID12 = Session.ID;
|
|
5
5
|
var Info25 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID12, Info25, SessionSchema2 };
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-p8qxwesx.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
8
|
+
Service78,
|
|
9
9
|
node82
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-k0ya8bme.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service69,
|
|
13
|
+
node73
|
|
14
|
+
} from "./model-xbrn1wah.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./model-kg06axw8.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: () => Service27,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node31,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode-ai/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-ai/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode-ai/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID3 } from "@opencode-ai/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode-ai/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 Service27 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service78;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service69;
|
|
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,
|
|
@@ -122,25 +122,25 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
122
122
|
for (const [file, snapshot] of input.files) {
|
|
123
123
|
const absolute = path.resolve(worktree, file);
|
|
124
124
|
if (!FSUtil.contains(worktree, absolute))
|
|
125
|
-
return yield* new
|
|
125
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
126
126
|
files.set(file, TreeID2.make(snapshot));
|
|
127
127
|
}
|
|
128
128
|
return files;
|
|
129
129
|
});
|
|
130
130
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
131
131
|
if (!enabled())
|
|
132
|
-
return yield* new
|
|
132
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
133
133
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
134
134
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service27.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
137
137
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
138
|
-
var
|
|
139
|
-
service:
|
|
138
|
+
var node31 = makeLocationNode({
|
|
139
|
+
service: Service27,
|
|
140
140
|
layer,
|
|
141
|
-
deps: [FSUtil.node, node82, Global.node,
|
|
141
|
+
deps: [FSUtil.node, node82, Global.node, node73]
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var noopLayer2 = Layer.succeed(Service27, Service27.of({
|
|
144
144
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
145
145
|
reload: () => Effect.void,
|
|
146
146
|
capture: () => Effect.undefined,
|
|
@@ -149,13 +149,13 @@ var noopLayer3 = Layer.succeed(Service46, Service46.of({
|
|
|
149
149
|
restore: () => Effect.void
|
|
150
150
|
}));
|
|
151
151
|
function failure(operation, cause) {
|
|
152
|
-
if (cause instanceof
|
|
152
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
153
153
|
return cause;
|
|
154
|
-
return new
|
|
154
|
+
return new Error2({
|
|
155
155
|
operation,
|
|
156
156
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
157
157
|
cause
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export {
|
|
161
|
+
export { ID3, Error2, Service27, node31, noopLayer2, exports_snapshot2 };
|