@opencode/core 0.0.0-dev-189 → 0.0.0-dev-192
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 +90 -90
- package/dist/aisdk-native.js +98 -98
- package/dist/aisdk.js +104 -104
- package/dist/app.js +9 -9
- package/dist/bus.js +76 -76
- package/dist/chunks/{repository-z6y50tdx.js → command-00mjjsd1.js} +9 -9
- package/dist/chunks/{repository-a7jkxg7e.js → command-01b4dp20.js} +22 -22
- package/dist/chunks/{repository-6pzctp9a.js → command-07b35671.js} +31 -31
- package/dist/chunks/{repository-a44gt5xs.js → command-0821qhef.js} +6 -6
- package/dist/chunks/{repository-etamvy03.js → command-0md8jbwq.js} +11 -11
- package/dist/chunks/{repository-abs1shnw.js → command-0rq6zj2e.js} +40 -40
- package/dist/chunks/{repository-pnwsrq7c.js → command-0xgy9r8e.js} +7 -7
- package/dist/chunks/{repository-y21mv437.js → command-10z2q35a.js} +20 -20
- package/dist/chunks/{repository-ycywz2xw.js → command-16xbxjgz.js} +9 -9
- package/dist/chunks/{repository-pg5757gf.js → command-1v0kgbst.js} +25 -25
- package/dist/chunks/{repository-1x2knyw4.js → command-1x2knyw4.js} +1 -1
- package/dist/chunks/{repository-1yq9hg58.js → command-1yq9hg58.js} +1 -1
- package/dist/chunks/{repository-204s3925.js → command-204s3925.js} +1 -1
- package/dist/chunks/{repository-vaq1yek0.js → command-26x8chrq.js} +6 -6
- package/dist/chunks/{repository-1ep2p91f.js → command-27w5k9zf.js} +2 -2
- package/dist/chunks/{repository-cbtp3bm0.js → command-28ac1jrk.js} +55 -55
- package/dist/chunks/{repository-vb2gkw1m.js → command-29ph2m0n.js} +31 -31
- package/dist/chunks/{repository-d68w9w8c.js → command-29t3wztw.js} +32 -32
- package/dist/chunks/{repository-hez1w8bb.js → command-2bnkmtyn.js} +34 -34
- package/dist/chunks/{repository-s0dcwz21.js → command-2n3kxmrb.js} +3 -3
- package/dist/chunks/{repository-9yvzdddr.js → command-2rysqmgp.js} +20 -20
- package/dist/chunks/{repository-mjyzwzry.js → command-2t58wk4f.js} +11 -11
- package/dist/chunks/{repository-jgcte78g.js → command-2v2p2rpz.js} +2 -2
- package/dist/chunks/{repository-4esa3dv6.js → command-30bemqd7.js} +28 -28
- package/dist/chunks/{repository-ektnw284.js → command-3268pdg4.js} +16 -16
- package/dist/chunks/{repository-xj7pfj7j.js → command-33p3rw4f.js} +21 -21
- package/dist/chunks/{repository-84k97wh8.js → command-34z95qkg.js} +40 -40
- package/dist/chunks/{repository-jkfm927m.js → command-36y1bd58.js} +12 -12
- package/dist/chunks/{repository-ayjs7tqn.js → command-3cbjf1nt.js} +2 -2
- package/dist/chunks/{repository-3hepkmqq.js → command-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-0hkk56st.js → command-3j1x65zx.js} +190 -190
- package/dist/chunks/{repository-ym290evk.js → command-3mxdezre.js} +12 -12
- package/dist/chunks/{repository-vs1fx8n5.js → command-3nthtgk6.js} +30 -30
- package/dist/chunks/{repository-wrf4qw91.js → command-3qrv10r6.js} +23 -23
- package/dist/chunks/{repository-qqg9c0kv.js → command-3ryz99p0.js} +4 -4
- package/dist/chunks/{repository-pkvxjntv.js → command-3zj1xpaw.js} +30 -30
- package/dist/chunks/{repository-r41sfy63.js → command-40za9wsf.js} +6 -6
- package/dist/chunks/{repository-182gebkv.js → command-438nppkm.js} +33 -33
- package/dist/chunks/{repository-k93f34r6.js → command-455g72dc.js} +14 -14
- package/dist/chunks/{repository-9n4yzf43.js → command-4c6kfn9z.js} +7 -7
- package/dist/chunks/{repository-72gawy4v.js → command-4d51p485.js} +23 -23
- package/dist/chunks/{repository-0evha2wn.js → command-4mpvz957.js} +32 -32
- package/dist/chunks/{repository-4pyp9zr9.js → command-4pyp9zr9.js} +1 -1
- package/dist/chunks/{repository-2kzkh518.js → command-4rc4c6p6.js} +45 -45
- package/dist/chunks/{repository-swv5h1tw.js → command-4rm62t2b.js} +16 -16
- package/dist/chunks/{repository-4v008n1t.js → command-4v008n1t.js} +1 -1
- package/dist/chunks/{repository-dh9dmr4q.js → command-4vy9vv05.js} +323 -323
- package/dist/chunks/{repository-swe5sap9.js → command-5043ej2r.js} +30 -30
- package/dist/chunks/{repository-8r2xb3b3.js → command-515hc563.js} +19 -19
- package/dist/chunks/{repository-vz9e3ctc.js → command-5851zxg9.js} +4 -4
- package/dist/chunks/{repository-ptht14fh.js → command-5dnzaf1y.js} +43 -43
- package/dist/chunks/{repository-5kgs3fk1.js → command-5kbev7nh.js} +6 -6
- package/dist/chunks/{repository-5m9w47nd.js → command-5m9w47nd.js} +1 -1
- package/dist/chunks/{repository-g9b1jkrx.js → command-5nx4wf47.js} +30 -30
- package/dist/chunks/{repository-nf4jh0jx.js → command-5qsq6d1y.js} +23 -23
- package/dist/chunks/{repository-dz5kpwyf.js → command-6bz7qnk4.js} +24 -24
- package/dist/chunks/{repository-6esdw8yj.js → command-6esdw8yj.js} +1 -1
- package/dist/chunks/{repository-qcb8jahv.js → command-6etkam66.js} +36 -36
- package/dist/chunks/{repository-sjnxn81j.js → command-6jkh4qsb.js} +6 -6
- package/dist/chunks/{repository-7g779wd2.js → command-6n9ky129.js} +17 -17
- package/dist/chunks/{repository-ataenv19.js → command-6sffq8p7.js} +4 -4
- package/dist/chunks/{repository-m0hczx0h.js → command-6xr9vfwh.js} +13 -13
- package/dist/chunks/{repository-13r1xmr6.js → command-6xrdpfmf.js} +38 -38
- package/dist/chunks/{repository-5r0vxddc.js → command-70wrqntk.js} +9 -9
- package/dist/chunks/{repository-76cb1hcw.js → command-76cb1hcw.js} +1 -1
- package/dist/chunks/{repository-2rgppjw0.js → command-7bd1zx9q.js} +17 -17
- package/dist/chunks/{repository-7bmhse3q.js → command-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-za5evj2v.js → command-7g4ceemv.js} +3 -3
- package/dist/chunks/{repository-ydpqsc0x.js → command-7hmy122c.js} +15 -15
- package/dist/chunks/{repository-037k7tff.js → command-7tgj3thq.js} +23 -23
- package/dist/chunks/{repository-7w2ypzdf.js → command-7w2ypzdf.js} +1 -1
- package/dist/chunks/{repository-3t73xeyv.js → command-7yect7x1.js} +2 -2
- package/dist/chunks/{repository-mkc3d31y.js → command-86s92ra1.js} +43 -43
- package/dist/chunks/{repository-1apn0a4c.js → command-8at4k5nj.js} +21 -21
- package/dist/chunks/{repository-11hfp36g.js → command-8jztxfpf.js} +4 -4
- package/dist/chunks/{repository-yckfh1kh.js → command-8kggrr3e.js} +13 -13
- package/dist/chunks/{repository-8wtp7s3z.js → command-8wtp7s3z.js} +1 -1
- package/dist/chunks/command-8x060fmy.js +18 -0
- package/dist/chunks/{repository-90zstvax.js → command-90zstvax.js} +1 -1
- package/dist/chunks/{repository-5jv51wq9.js → command-93ee6ynz.js} +26 -26
- package/dist/chunks/{repository-wde7vnje.js → command-9h1y6hg7.js} +28 -28
- package/dist/chunks/{repository-9q8g9sv8.js → command-9q8g9sv8.js} +1 -1
- package/dist/chunks/{repository-hs9b4b47.js → command-9r0x1bva.js} +9 -9
- package/dist/chunks/{repository-dbmp929s.js → command-9s06frge.js} +5 -5
- package/dist/chunks/{repository-e8rkqp2f.js → command-9tvh7z9g.js} +49 -49
- package/dist/chunks/{repository-ce8850xx.js → command-9wzjb77v.js} +5 -5
- package/dist/chunks/{repository-nhs8pjpx.js → command-9y6y4p5q.js} +86 -86
- package/dist/chunks/{repository-zgd8t41s.js → command-9z9tayqc.js} +9 -9
- package/dist/chunks/{repository-wdmx20pv.js → command-a7s1nr2m.js} +9 -9
- package/dist/chunks/{repository-034tev2y.js → command-aj7mw0zk.js} +2 -2
- package/dist/chunks/{repository-9nzgnp4r.js → command-atzg8zb1.js} +34 -34
- package/dist/chunks/{repository-k1qkeqm0.js → command-ay2wbdds.js} +11 -11
- package/dist/chunks/{repository-c2zjjdcb.js → command-ayf3m2d5.js} +17 -17
- package/dist/chunks/{repository-ye2mws6y.js → command-azw5wzd7.js} +25 -25
- package/dist/chunks/{repository-1w79wwhg.js → command-b277gfsp.js} +31 -31
- package/dist/chunks/{repository-zw4pk1bw.js → command-b29mbqx6.js} +5 -5
- package/dist/chunks/{repository-3j1m3tq4.js → command-b4vpdc8n.js} +5 -5
- package/dist/chunks/{repository-b6vsg801.js → command-b6vsg801.js} +2 -2
- package/dist/chunks/{repository-61ennm6n.js → command-bjhzkqyk.js} +4 -4
- package/dist/chunks/{repository-bstexjd6.js → command-bstexjd6.js} +1 -1
- package/dist/chunks/{repository-w1j2qcct.js → command-bz229hd6.js} +24 -24
- package/dist/chunks/{repository-esd0f7sy.js → command-c3tj1nfn.js} +16 -16
- package/dist/chunks/{repository-gadvwfpz.js → command-cbkde0jd.js} +21 -21
- package/dist/chunks/{repository-bda3vcj5.js → command-cby6psbp.js} +9 -9
- package/dist/chunks/{repository-gvvhvz2q.js → command-cdq1pcjt.js} +16 -16
- package/dist/chunks/{repository-0av5441t.js → command-chx6yw2v.js} +16 -16
- package/dist/chunks/{repository-56ae33c2.js → command-cmx0zgd5.js} +27 -27
- package/dist/chunks/{repository-jcrsb2we.js → command-cn1mgj56.js} +9 -9
- package/dist/chunks/{repository-6x6r8n8f.js → command-cn79fdx8.js} +17 -17
- package/dist/chunks/{repository-nf3nsvxh.js → command-cpgbtk9c.js} +4 -4
- package/dist/chunks/{repository-cwrgdav8.js → command-cwrgdav8.js} +2 -2
- package/dist/chunks/{repository-ectwy8nt.js → command-czkk2md7.js} +5 -5
- package/dist/chunks/{repository-fnn8wx3k.js → command-dq1vsfnp.js} +12 -12
- package/dist/chunks/{repository-3fa3xdsy.js → command-dsbck6v3.js} +11 -11
- package/dist/chunks/{repository-dt77769w.js → command-dt77769w.js} +1 -1
- package/dist/chunks/{repository-d96fxdz4.js → command-dy0rdwyn.js} +7 -7
- package/dist/chunks/{repository-nwyfjcs7.js → command-e71bb87j.js} +8 -8
- package/dist/chunks/{repository-qbcktyw0.js → command-e79z1jvy.js} +19 -19
- package/dist/chunks/{repository-e834z07m.js → command-e834z07m.js} +1 -1
- package/dist/chunks/{repository-nscwgnf9.js → command-e9nx9dch.js} +65 -65
- package/dist/chunks/{repository-g4wje5yf.js → command-ebj3rvtd.js} +11 -11
- package/dist/chunks/{repository-kjrf1av9.js → command-ec66vark.js} +25 -25
- package/dist/chunks/{repository-pyv44sw6.js → command-eehpsxwd.js} +22 -22
- package/dist/chunks/{repository-p91eqx64.js → command-eexq3avs.js} +7 -7
- package/dist/chunks/{repository-5w0ghgtj.js → command-egzpwr9w.js} +5 -5
- package/dist/chunks/{repository-2ytvyz2d.js → command-em23s76k.js} +20 -20
- package/dist/chunks/{repository-gg8p9cgs.js → command-ep59zg61.js} +3 -3
- package/dist/chunks/{repository-5q3h0csw.js → command-etbjhst2.js} +7 -7
- package/dist/chunks/{repository-82zcwhsx.js → command-exfq29n4.js} +22 -22
- package/dist/chunks/{repository-98r3g1tv.js → command-ff597jm7.js} +29 -29
- package/dist/chunks/{repository-fffv3p7h.js → command-fffv3p7h.js} +1 -1
- package/dist/chunks/{repository-dsk9ctag.js → command-fft6kzd2.js} +3 -3
- package/dist/chunks/{repository-fg9p65nk.js → command-fg9p65nk.js} +2 -2
- package/dist/chunks/{repository-gbafzqgw.js → command-fgs47z99.js} +25 -25
- package/dist/chunks/{repository-3e05p5k6.js → command-fhazfch2.js} +45 -45
- package/dist/chunks/{repository-5z598wn3.js → command-frj2twk5.js} +15 -15
- package/dist/chunks/{repository-cm490s5r.js → command-fw1xdg81.js} +15 -15
- package/dist/chunks/{repository-33ae382d.js → command-gbkvsjtb.js} +31 -31
- package/dist/chunks/{repository-dsxmp27p.js → command-gdrsszk7.js} +14 -14
- package/dist/chunks/{repository-ywm3m9q2.js → command-gf3f1z7b.js} +9 -9
- package/dist/chunks/{repository-xck40x38.js → command-gf614vnd.js} +4 -4
- package/dist/chunks/{repository-d4v9tmah.js → command-gn8tkhbf.js} +2 -2
- package/dist/chunks/{repository-3t74rz0k.js → command-gtbct7qe.js} +10 -10
- package/dist/chunks/{repository-gtn9c16a.js → command-gtn9c16a.js} +1 -1
- package/dist/chunks/{repository-rnd635dt.js → command-h1ytfc0y.js} +11 -11
- package/dist/chunks/{repository-bqh84c2y.js → command-h2ry2ahb.js} +9 -9
- package/dist/chunks/{repository-eag44dyn.js → command-h9kvttc7.js} +1 -1
- package/dist/chunks/{repository-tgcnwcew.js → command-hf61y91y.js} +11 -11
- package/dist/chunks/{repository-m37sd98t.js → command-hfgk9wzg.js} +4 -4
- package/dist/chunks/{repository-5107fk2n.js → command-hnfbx6gz.js} +3 -3
- package/dist/chunks/{repository-hpg1pkwy.js → command-hpg1pkwy.js} +1 -1
- package/dist/chunks/{repository-2zp5a6yg.js → command-hqxkkta1.js} +3 -3
- package/dist/chunks/{repository-t6tqz55s.js → command-hr8ybq2q.js} +3 -3
- package/dist/chunks/{repository-12r92wk3.js → command-hvm8hq2z.js} +14 -14
- package/dist/chunks/{repository-3v8t9fvp.js → command-j12cv1sc.js} +25 -25
- package/dist/chunks/{repository-werc16xm.js → command-j2d02bpj.js} +15 -15
- package/dist/chunks/{repository-3njy631w.js → command-jf78x530.js} +13 -13
- package/dist/chunks/{repository-jfaecv01.js → command-jfaecv01.js} +1 -1
- package/dist/chunks/{repository-exd6sskf.js → command-jrye536t.js} +11 -11
- package/dist/chunks/{repository-jtnps1zs.js → command-jtnps1zs.js} +2 -2
- package/dist/chunks/{repository-agwv7dq2.js → command-jxqj52kg.js} +11 -11
- package/dist/chunks/{repository-0r3ejwj6.js → command-jzfm45zn.js} +5 -5
- package/dist/chunks/{repository-1mde9y8f.js → command-k0z9xgt2.js} +11 -11
- package/dist/chunks/{repository-k814nvkf.js → command-k814nvkf.js} +1 -1
- package/dist/chunks/{repository-r94gekwm.js → command-k9zkdd2y.js} +4 -4
- package/dist/chunks/{repository-ck8hq31j.js → command-km31c7kj.js} +21 -21
- package/dist/chunks/{repository-7tpyp9vw.js → command-kmzgegqq.js} +8 -8
- package/dist/chunks/{repository-j10bffxc.js → command-ksmsdsrm.js} +17 -17
- package/dist/chunks/{repository-kt3bjfbg.js → command-kt3bjfbg.js} +1 -1
- package/dist/chunks/{repository-97e8yvkm.js → command-kytj30gb.js} +11 -11
- package/dist/chunks/{repository-m1714858.js → command-m1714858.js} +1 -1
- package/dist/chunks/{repository-n4zn000z.js → command-m5gkvr4e.js} +4 -4
- package/dist/chunks/{repository-5vtqq6dj.js → command-m7h6p2mz.js} +15 -15
- package/dist/chunks/{repository-m9w0rfyh.js → command-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-qk7rmbj1.js → command-ma407v5y.js} +9 -9
- package/dist/chunks/{repository-c4bknmrm.js → command-mptdz56v.js} +33 -33
- package/dist/chunks/{repository-n7wnam13.js → command-msj7tqt3.js} +8 -8
- package/dist/chunks/{repository-a5jmwq8r.js → command-myvbtv3b.js} +1 -1
- package/dist/chunks/{repository-x62nhpqw.js → command-mz5czfjq.js} +26 -26
- package/dist/chunks/{repository-dpgr420w.js → command-n3bkb5q1.js} +8 -8
- package/dist/chunks/{repository-wkjtf16h.js → command-n6vpezgx.js} +21 -21
- package/dist/chunks/{repository-0hp4fr82.js → command-n9e6fwv2.js} +4 -4
- package/dist/chunks/{repository-770pw0s1.js → command-nah043kf.js} +4 -4
- package/dist/chunks/{repository-sdb8g23r.js → command-nfze187e.js} +15 -15
- package/dist/chunks/{repository-08rz5a36.js → command-njmdq0v4.js} +14 -14
- package/dist/chunks/{repository-k0h7zcy3.js → command-nzjp5m62.js} +8 -8
- package/dist/chunks/{repository-p015t6z3.js → command-p015t6z3.js} +2 -2
- package/dist/chunks/{repository-mh6czyn0.js → command-p1jpxsyv.js} +33 -33
- package/dist/chunks/{repository-g6dfma3d.js → command-p7f9amnf.js} +2 -2
- package/dist/chunks/{repository-6cv4a685.js → command-p7mdng8d.js} +10 -10
- package/dist/chunks/{repository-ssv9vbjn.js → command-p7n3nxvc.js} +16 -16
- package/dist/chunks/{repository-0rtm666e.js → command-p9ayhvdt.js} +21 -21
- package/dist/chunks/{repository-1aypnazc.js → command-pcr7gbpj.js} +13 -13
- package/dist/chunks/{repository-y50d8q8d.js → command-phtkj9qf.js} +5 -5
- package/dist/chunks/{repository-pknna89w.js → command-pknna89w.js} +1 -1
- package/dist/chunks/{repository-yara3q77.js → command-pxtfkpje.js} +2 -2
- package/dist/chunks/{repository-se71yjgd.js → command-q1v2rqx1.js} +30 -30
- package/dist/chunks/{repository-6pycad06.js → command-qcwk3ksp.js} +12 -12
- package/dist/chunks/{repository-qp7r0hxv.js → command-qp7r0hxv.js} +1 -1
- package/dist/chunks/{repository-qf65b5pw.js → command-qps2khjy.js} +39 -39
- package/dist/chunks/{repository-wvpmhz6e.js → command-qv2477tn.js} +17 -17
- package/dist/chunks/{repository-r0yr0wbs.js → command-r0yr0wbs.js} +1 -1
- package/dist/chunks/{repository-86g12mv6.js → command-r29jt39q.js} +22 -22
- package/dist/chunks/{repository-p16d4jds.js → command-r438avjf.js} +43 -43
- package/dist/chunks/{repository-r542h3bh.js → command-r542h3bh.js} +1 -1
- package/dist/chunks/{repository-bpa6my4e.js → command-r6drjba7.js} +12 -12
- package/dist/chunks/{repository-rb9dy4dg.js → command-rb9dy4dg.js} +1 -1
- package/dist/chunks/{repository-ms02w4bg.js → command-rsjmrn99.js} +5 -5
- package/dist/chunks/{repository-rt5dr6hb.js → command-rt5dr6hb.js} +1 -1
- package/dist/chunks/{repository-sv3cbmwn.js → command-rtn5n65h.js} +5 -5
- package/dist/chunks/{repository-1k4zgc1c.js → command-s1e3bnys.js} +25 -25
- package/dist/chunks/{repository-a792y6s0.js → command-s73byfaf.js} +20 -20
- package/dist/chunks/{repository-s7gmm2q3.js → command-s7gmm2q3.js} +3 -3
- package/dist/chunks/{repository-sa3fpqfw.js → command-sa3fpqfw.js} +2 -2
- package/dist/chunks/{repository-aytsh6n6.js → command-sbke1tyt.js} +5 -5
- package/dist/chunks/{repository-7n5hdcgz.js → command-sh3c00mc.js} +9 -9
- package/dist/chunks/{repository-xpx9qcwm.js → command-shanfhsz.js} +9 -9
- package/dist/chunks/{repository-ra34yqmw.js → command-sq4s6wq1.js} +6 -6
- package/dist/chunks/{repository-sqjzf8x2.js → command-sqjzf8x2.js} +1 -1
- package/dist/chunks/{repository-d2887f8n.js → command-ssfehs1z.js} +4 -4
- package/dist/chunks/{repository-svcy3p9a.js → command-svcy3p9a.js} +1 -1
- package/dist/chunks/{repository-vrcsa8qx.js → command-takvccra.js} +9 -9
- package/dist/chunks/{repository-tczq8hjw.js → command-tczq8hjw.js} +1 -1
- package/dist/chunks/{repository-k8sh24kp.js → command-tdjjjkq6.js} +30 -30
- package/dist/chunks/{repository-2080gwb7.js → command-tjre620e.js} +6 -6
- package/dist/chunks/{repository-kex0kwh3.js → command-tjt434kf.js} +18 -18
- package/dist/chunks/{repository-8enexpz6.js → command-tk7f1t18.js} +33 -33
- package/dist/chunks/{repository-3nnrz6f6.js → command-tmc7xdjs.js} +4 -4
- package/dist/chunks/{repository-nkwqs6wb.js → command-tvv0tn9w.js} +6 -6
- package/dist/chunks/{repository-twssxy5n.js → command-twssxy5n.js} +2 -2
- package/dist/chunks/{repository-0m9q59s6.js → command-tx91wa5k.js} +4 -4
- package/dist/chunks/{repository-x5kjwm05.js → command-tyaqfnq9.js} +12 -12
- package/dist/chunks/{repository-a23yrjc9.js → command-tzqrh5pq.js} +13 -13
- package/dist/chunks/{repository-sx391g08.js → command-v0q3mgw6.js} +12 -12
- package/dist/chunks/{repository-v2r1d0zg.js → command-v2r1d0zg.js} +1 -1
- package/dist/chunks/{repository-4nc3cf8h.js → command-v5brjje0.js} +15 -15
- package/dist/chunks/{repository-phy9rbgr.js → command-v6pfsmaj.js} +80 -80
- package/dist/chunks/{repository-qwcynr2z.js → command-v8d0t8r0.js} +33 -33
- package/dist/chunks/{repository-8hrfnhev.js → command-vc24ps4y.js} +21 -21
- package/dist/chunks/{repository-a4sx5s4k.js → command-vfybh93w.js} +50 -50
- package/dist/chunks/{repository-ts7mkfs9.js → command-vpm8vpz0.js} +3 -3
- package/dist/chunks/{repository-ems0zhva.js → command-vv0zpxc5.js} +10 -10
- package/dist/chunks/{repository-cdhs4fq1.js → command-vw06atv7.js} +8 -8
- package/dist/chunks/{repository-rw7j67zp.js → command-w1yz8y9w.js} +8 -8
- package/dist/chunks/{repository-we470cqt.js → command-w2arfqwz.js} +11 -11
- package/dist/chunks/{repository-w3wsvvr9.js → command-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-6z1wc5nc.js → command-w4re67rg.js} +3 -3
- package/dist/chunks/{repository-w687dnns.js → command-w687dnns.js} +1 -1
- package/dist/chunks/{repository-h1rcny21.js → command-w84a1txn.js} +11 -11
- package/dist/chunks/{repository-7kehrbx0.js → command-waamrcjf.js} +2 -2
- package/dist/chunks/{repository-wakvkjy4.js → command-wakvkjy4.js} +1 -1
- package/dist/chunks/{repository-wd87259q.js → command-wd87259q.js} +1 -1
- package/dist/chunks/{repository-tbkdp4xy.js → command-wgjkkrj2.js} +27 -27
- package/dist/chunks/{repository-aar8rcwj.js → command-wm2sanfk.js} +4 -4
- package/dist/chunks/{repository-wnhgecwx.js → command-wnhgecwx.js} +1 -1
- package/dist/chunks/{repository-v1vf4bjp.js → command-wxy4dqwa.js} +8 -8
- package/dist/chunks/{repository-y624qwvn.js → command-wzxekqyh.js} +9 -9
- package/dist/chunks/command-x17jgygk.js +26 -0
- package/dist/chunks/{repository-dvet5ash.js → command-x9szzvh5.js} +10 -10
- package/dist/chunks/{repository-jz3hgwrm.js → command-xjzmf0f0.js} +4 -4
- package/dist/chunks/{repository-2dv9mwt9.js → command-xkmmweqg.js} +17 -17
- package/dist/chunks/{repository-ehfhc1vp.js → command-xmsgn8wk.js} +11 -11
- package/dist/chunks/command-xxs30trs.js +257 -0
- package/dist/chunks/{repository-r5tkst50.js → command-y0gcdphe.js} +44 -44
- package/dist/chunks/{repository-xa7geska.js → command-y0z7xxr2.js} +22 -22
- package/dist/chunks/{repository-mpaxnys6.js → command-y57mav2x.js} +14 -14
- package/dist/chunks/{repository-gtbhcp1b.js → command-y6sqc5ks.js} +4 -4
- package/dist/chunks/{repository-dwmchd07.js → command-y7crk8z2.js} +13 -13
- package/dist/chunks/{repository-fcevtanz.js → command-yafp75j8.js} +11 -11
- package/dist/chunks/{repository-yb20nhc3.js → command-yb20nhc3.js} +1 -1
- package/dist/chunks/{repository-q9z0p7gh.js → command-yhdj4qa2.js} +14 -14
- package/dist/chunks/{repository-qdvp98ce.js → command-yjx9frm7.js} +5 -5
- package/dist/chunks/{repository-9n4vggc2.js → command-ymz7p2c9.js} +3 -3
- package/dist/chunks/{repository-qt5bw9qd.js → command-yp1yfw1j.js} +5 -5
- package/dist/chunks/{repository-rgzggw2r.js → command-yqhz1kx0.js} +2 -2
- package/dist/chunks/{repository-s5b0caas.js → command-yr0jtzyt.js} +11 -11
- package/dist/chunks/{repository-z38nccrw.js → command-z38nccrw.js} +1 -1
- package/dist/chunks/{repository-p9pswzjx.js → command-z6445x7a.js} +12 -12
- package/dist/chunks/{repository-zqeyh3pg.js → command-zf0kqan8.js} +4 -4
- package/dist/chunks/{repository-x9mcs5as.js → command-zjfjzrw7.js} +4 -4
- package/dist/chunks/{repository-ptkgc041.js → command-znhbtrmf.js} +15 -15
- package/dist/chunks/{repository-tsk01jw9.js → command-zrc3q1m0.js} +11 -11
- package/dist/chunks/{repository-snn1b1cz.js → command-zrjs9xec.js} +5 -5
- package/dist/chunks/{repository-yqveydy6.js → command-ztf6n3de.js} +4 -4
- package/dist/chunks/{repository-xgv24g03.js → command-zyy21h18.js} +27 -27
- package/dist/chunks/{repository-wmgx0dmg.js → command-zz7cy004.js} +12 -12
- 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 +90 -90
- package/dist/config/discovery.js +91 -91
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +108 -108
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +220 -220
- package/dist/config/plugin/compaction.js +163 -163
- package/dist/config/plugin/compatibility.js +143 -143
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +122 -122
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +139 -139
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +146 -146
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +123 -123
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -90
- package/dist/database/database.js +73 -73
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration.gen.js +56 -56
- package/dist/database/migration.js +58 -58
- 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 +101 -101
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +378 -378
- 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 +102 -102
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +104 -104
- 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 +77 -77
- package/dist/file-access.js +147 -147
- package/dist/file-mutation.js +103 -103
- 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/file-watch.js +84 -84
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +233 -233
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +108 -108
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +111 -111
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +96 -96
- package/dist/generate.js +116 -116
- package/dist/git.js +11 -11
- 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 +108 -108
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +369 -369
- package/dist/instruction-discovery.js +91 -91
- package/dist/instructions/builtins.js +94 -94
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +94 -94
- package/dist/job.js +83 -83
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +76 -76
- package/dist/location-activity.js +161 -161
- package/dist/location-lifecycle.js +143 -143
- package/dist/location-service-map.js +95 -95
- package/dist/location-services.js +366 -366
- package/dist/location.js +96 -96
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +100 -100
- package/dist/mcp/index.js +118 -118
- package/dist/mcp/instructions.js +167 -167
- package/dist/mcp/oauth.js +85 -85
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +99 -99
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +108 -108
- package/dist/model-resolver.js +106 -106
- package/dist/model-retry.js +1 -1
- package/dist/model.js +109 -109
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +113 -113
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +85 -85
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +140 -140
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +95 -95
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +82 -82
- package/dist/plugin/agent.js +81 -81
- package/dist/plugin/command.js +109 -109
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +228 -228
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +339 -339
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +106 -106
- package/dist/plugin/module.js +124 -124
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +139 -139
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +99 -99
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +122 -122
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +102 -102
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +104 -104
- package/dist/plugin/provider/gitlab.js +102 -102
- package/dist/plugin/provider/google-vertex.js +119 -119
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +85 -85
- package/dist/plugin/provider/lmstudio.js +129 -129
- package/dist/plugin/provider/local.js +128 -128
- package/dist/plugin/provider/modal.js +101 -101
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +131 -131
- package/dist/plugin/provider/openai-context-caps.js +99 -99
- package/dist/plugin/provider/openai.js +122 -122
- package/dist/plugin/provider/opencode.js +125 -125
- package/dist/plugin/provider/openrouter.js +100 -100
- package/dist/plugin/provider/poe.js +86 -86
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +100 -100
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/vllm.js +131 -131
- package/dist/plugin/provider/xai.js +100 -100
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +172 -172
- package/dist/plugin/sdk.js +81 -81
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +142 -142
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +358 -358
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +95 -95
- package/dist/plugin/vcs/hg.js +95 -95
- package/dist/plugin/verbosity.js +102 -102
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +237 -237
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +97 -97
- package/dist/provider.js +108 -108
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +105 -105
- package/dist/reference/instructions.js +97 -97
- package/dist/reference.js +95 -95
- package/dist/repository-cache.js +89 -89
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +104 -104
- package/dist/rpc.js +95 -95
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +228 -228
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/blob.js +121 -121
- package/dist/session/command.js +81 -81
- package/dist/session/compaction.js +163 -163
- package/dist/session/context.js +189 -189
- package/dist/session/diff.js +97 -97
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +226 -226
- package/dist/session/execution.js +155 -155
- package/dist/session/generate.js +189 -189
- package/dist/session/history.js +128 -128
- package/dist/session/inbox.js +139 -139
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +86 -86
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +133 -133
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +156 -156
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +157 -157
- package/dist/session/projector.js +135 -135
- package/dist/session/prompt.js +141 -141
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +131 -131
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +239 -239
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +109 -109
- package/dist/session/runner/publish-llm-event.js +142 -142
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +155 -155
- package/dist/session/runner/to-llm-message.js +129 -129
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +173 -173
- package/dist/session/shell.js +136 -136
- package/dist/session/skill.js +142 -142
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +80 -80
- package/dist/session/store.js +130 -130
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +220 -220
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +193 -193
- package/dist/session/to-session-error.js +141 -141
- package/dist/session/transfer.js +225 -225
- package/dist/session/usage.js +1 -1
- package/dist/session.js +224 -224
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +136 -136
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +144 -144
- package/dist/skill.js +141 -141
- package/dist/snapshot.js +102 -102
- 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 +166 -166
- package/dist/tool/plugin/edit.js +157 -157
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +161 -161
- package/dist/tool/plugin/grep.js +161 -161
- package/dist/tool/plugin/mcp-resource.js +155 -155
- package/dist/tool/plugin/opencode.js +154 -154
- package/dist/tool/plugin/patch.js +153 -153
- package/dist/tool/plugin/question.js +139 -139
- package/dist/tool/plugin/read.js +162 -162
- package/dist/tool/plugin/shell.js +225 -225
- package/dist/tool/plugin/skill.js +150 -150
- package/dist/tool/plugin/subagent.js +227 -227
- package/dist/tool/plugin/todo.js +146 -146
- package/dist/tool/plugin/webfetch.js +150 -150
- package/dist/tool/plugin/websearch.js +148 -148
- package/dist/tool/plugin/write.js +159 -159
- package/dist/tool/read-filesystem.js +109 -109
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/usage-limits.js +96 -96
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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/mcp.js +4 -4
- package/dist/v1/config/migrate.js +101 -101
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +100 -100
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +98 -98
- package/dist/voice.js +95 -95
- package/dist/websearch.js +91 -91
- package/dist/wellknown/plugin.js +83 -83
- package/dist/wellknown.js +86 -86
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +87 -87
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +98 -98
- package/dist/worktree.js +107 -107
- package/package.json +8 -8
- package/dist/chunks/repository-3ygt5d1v.js +0 -257
- package/dist/chunks/repository-dym6dez5.js +0 -26
- package/dist/chunks/repository-z7bdqmx5.js +0 -18
- /package/dist/chunks/{repository-0qkdqm5v.js → command-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-0zkw76rk.js → command-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-17cy0kzp.js → command-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-1cnp2v09.js → command-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-1jakw16s.js → command-1jakw16s.js} +0 -0
- /package/dist/chunks/{repository-24dcb14g.js → command-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-2710q6r3.js → command-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-2bv980vf.js → command-2bv980vf.js} +0 -0
- /package/dist/chunks/{repository-2c3vjs8z.js → command-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-359p4xyc.js → command-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-3asan66x.js → command-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-3v8g72cx.js → command-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-3wcehsnq.js → command-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-43n2bw4t.js → command-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-4knz6hnm.js → command-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-4vcrnpx2.js → command-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-4y7fprxs.js → command-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-53557ph1.js → command-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-550bvhaj.js → command-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-5w3e23ze.js → command-5w3e23ze.js} +0 -0
- /package/dist/chunks/{repository-6prwharc.js → command-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-6q2bdcd1.js → command-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{repository-7akdwqpd.js → command-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-7m9af43g.js → command-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-822emrt2.js → command-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-84wd9syh.js → command-84wd9syh.js} +0 -0
- /package/dist/chunks/{repository-88xbtdfr.js → command-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-8n3pysct.js → command-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-8wj87zfr.js → command-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-9a4afbnw.js → command-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-9rqn6x4v.js → command-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-a058387c.js → command-a058387c.js} +0 -0
- /package/dist/chunks/{repository-a6k6eb26.js → command-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-af5trqkr.js → command-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-afrmfg78.js → command-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-aqzs7mqg.js → command-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-atq7p7m5.js → command-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-beh6qq61.js → command-beh6qq61.js} +0 -0
- /package/dist/chunks/{repository-bkyjaxrp.js → command-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-bmr6ed5q.js → command-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cf4snx6d.js → command-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cqv5kn06.js → command-cqv5kn06.js} +0 -0
- /package/dist/chunks/{repository-cvy3z8tj.js → command-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-d9fn303g.js → command-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-d9jj8t3e.js → command-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-dajrwvna.js → command-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-dap0rakb.js → command-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-df08tz66.js → command-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-dy18nga0.js → command-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-e5kj55wp.js → command-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-e73j6tqm.js → command-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-ec1grn59.js → command-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-eh3zwz77.js → command-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-emrn6kk6.js → command-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-f0mxakyp.js → command-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-f6n9ztr4.js → command-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-faypxj3z.js → command-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-fd410y7t.js → command-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-fkpq3x5p.js → command-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{repository-g4wezp1m.js → command-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-g86h250q.js → command-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-gebd4c9n.js → command-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-gftt206x.js → command-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-hcxmzztb.js → command-hcxmzztb.js} +0 -0
- /package/dist/chunks/{repository-hk9envan.js → command-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-j2ntwpah.js → command-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-j5zkgpj8.js → command-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-jjkms2e6.js → command-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-jr7sbwjy.js → command-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-jwfs4k6c.js → command-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-jwr30sdr.js → command-jwr30sdr.js} +0 -0
- /package/dist/chunks/{repository-jze0r7bz.js → command-jze0r7bz.js} +0 -0
- /package/dist/chunks/{repository-jzg6c2d5.js → command-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-m18g726c.js → command-m18g726c.js} +0 -0
- /package/dist/chunks/{repository-mp448xyj.js → command-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-msx8hqn2.js → command-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-myztnk54.js → command-myztnk54.js} +0 -0
- /package/dist/chunks/{repository-n05xt0ee.js → command-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-n3j8tn72.js → command-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-ncqqe42p.js → command-ncqqe42p.js} +0 -0
- /package/dist/chunks/{repository-nh4v3znn.js → command-nh4v3znn.js} +0 -0
- /package/dist/chunks/{repository-njntx4h6.js → command-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-p71gwv9c.js → command-p71gwv9c.js} +0 -0
- /package/dist/chunks/{repository-q3sfg36h.js → command-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-q74kybfr.js → command-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-qaymkmh1.js → command-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-qb87gjwd.js → command-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-qfa1cgps.js → command-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-qg3g05ea.js → command-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-qrg20bc0.js → command-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-rcb2kzg1.js → command-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-sdp7kfr6.js → command-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-ssg3fenm.js → command-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-ve7vex1e.js → command-ve7vex1e.js} +0 -0
- /package/dist/chunks/{repository-w803qqfp.js → command-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-wc3fc9cn.js → command-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-wer8tq1h.js → command-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-wtztk69x.js → command-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-x0ckcb58.js → command-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-x61499pn.js → command-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-y44na4kk.js → command-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-y8f7s663.js → command-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-ygaqb7jw.js → command-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-z5v4ffb3.js → command-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-z9919s4g.js → command-z9919s4g.js} +0 -0
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
removed2,
|
|
4
4
|
make22,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-gtn9c16a.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./command-fffv3p7h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./command-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
17
|
+
var exports_instructions5 = {};
|
|
18
|
+
__export(exports_instructions5, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions5,
|
|
20
|
+
make: () => make15,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
@@ -111,7 +111,7 @@ ${render2(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make15 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
116
|
return make22({
|
|
117
117
|
key,
|
|
@@ -125,4 +125,4 @@ var make14 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3,
|
|
128
|
+
export { render2, update3, make15, exports_instructions5 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-k0z9xgt2.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
MAX_RESPONSE_BYTES2,
|
|
9
9
|
call2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./command-40za9wsf.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./command-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin7,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
20
|
endpoint: () => endpoint5
|
|
21
21
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin7 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -105,7 +105,7 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
105
105
|
}
|
|
106
106
|
}));
|
|
107
107
|
const response = yield* client.execute(request);
|
|
108
|
-
yield* collectBoundedResponseBody2(response,
|
|
108
|
+
yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`initialize response exceeded ${MAX_RESPONSE_BYTES2} bytes`));
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export { endpoint5,
|
|
123
|
+
export { endpoint5, Plugin7, exports_tinyfish };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service47,
|
|
10
|
+
node: () => node49
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service47 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node49 = LayerNode.unbound(Service47, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service47, node49, exports_service2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/run-coordinator.ts
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make18
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make18 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -79,4 +79,4 @@ var make17 = (options) => Effect.gen(function* () {
|
|
|
79
79
|
return { active: Effect.sync(() => new Set(executions.keys())), isActive, run, wake, interrupt, awaitIdle };
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { make18, exports_run_coordinator };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service6,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node7
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service6 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service6.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node7 = makeGlobalNode({ service: Service6, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service6, node7, exports_discovery };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./command-5851zxg9.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./command-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./command-bjhzkqyk.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID13,
|
|
14
|
+
Service77,
|
|
15
|
+
node81,
|
|
16
|
+
Event16
|
|
17
|
+
} from "./command-93ee6ynz.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service82,
|
|
20
|
+
node86
|
|
21
|
+
} from "./command-cdq1pcjt.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./command-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/provider.ts
|
|
27
27
|
var exports_provider3 = {};
|
|
@@ -31,13 +31,13 @@ __export(exports_provider3, {
|
|
|
31
31
|
Compaction: () => Compaction3,
|
|
32
32
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
33
33
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
34
|
-
Event: () =>
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
34
|
+
Event: () => Event15,
|
|
35
|
+
ID: () => ID12,
|
|
36
|
+
Info: () => Info22,
|
|
37
37
|
LoadError: () => LoadError3,
|
|
38
38
|
Provider: () => exports_provider3,
|
|
39
39
|
Request: () => Request3,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service75,
|
|
41
41
|
Settings: () => Settings2,
|
|
42
42
|
Transport: () => Transport2,
|
|
43
43
|
aisdk: () => aisdk2,
|
|
@@ -49,7 +49,7 @@ __export(exports_provider3, {
|
|
|
49
49
|
mergeOverlay: () => mergeOverlay2,
|
|
50
50
|
modelSettings: () => modelSettings2,
|
|
51
51
|
nativeSettings: () => nativeSettings2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node79,
|
|
53
53
|
packageName: () => packageName2,
|
|
54
54
|
timeout: () => timeout2,
|
|
55
55
|
timeouts: () => timeouts2
|
|
@@ -332,8 +332,8 @@ var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
|
332
332
|
var decode = Schema.decodeUnknownSync(Legacy);
|
|
333
333
|
|
|
334
334
|
// src/provider.ts
|
|
335
|
-
import { Event as
|
|
336
|
-
var
|
|
335
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
336
|
+
var ID12 = Provider.ID;
|
|
337
337
|
var AISDK_PREFIX2 = "aisdk:";
|
|
338
338
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
339
339
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -576,9 +576,9 @@ var Compaction3 = Provider.Compaction;
|
|
|
576
576
|
var Cache2 = Provider.Cache;
|
|
577
577
|
var Transport2 = Provider.Transport;
|
|
578
578
|
var Settings2 = Provider.Settings;
|
|
579
|
-
var
|
|
579
|
+
var Info22 = Provider.Info;
|
|
580
580
|
|
|
581
|
-
class
|
|
581
|
+
class Service75 extends Context.Service()("@opencode/Provider") {
|
|
582
582
|
}
|
|
583
583
|
var definitions = new WeakMap;
|
|
584
584
|
function index(providerID, models) {
|
|
@@ -591,10 +591,10 @@ function index(providerID, models) {
|
|
|
591
591
|
definitions.set(models, indexes);
|
|
592
592
|
return result;
|
|
593
593
|
}
|
|
594
|
-
var layer = Layer.effect(
|
|
594
|
+
var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
595
595
|
const bus = yield* Service85;
|
|
596
|
-
const integrations = yield*
|
|
597
|
-
const location = yield*
|
|
596
|
+
const integrations = yield* Service77;
|
|
597
|
+
const location = yield* Service82;
|
|
598
598
|
const state = create3({
|
|
599
599
|
name: "provider",
|
|
600
600
|
initial: () => new Map,
|
|
@@ -605,7 +605,7 @@ var layer = Layer.effect(Service78, Effect2.gen(function* () {
|
|
|
605
605
|
const current = records.get(id);
|
|
606
606
|
if (current)
|
|
607
607
|
return current;
|
|
608
|
-
const added = { provider:
|
|
608
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
609
609
|
records.set(id, added);
|
|
610
610
|
maps.add(added.models);
|
|
611
611
|
return added;
|
|
@@ -686,7 +686,7 @@ var layer = Layer.effect(Service78, Effect2.gen(function* () {
|
|
|
686
686
|
const available = Array.from(records.values()).filter((record) => {
|
|
687
687
|
if (record.provider.activation === "disabled")
|
|
688
688
|
return false;
|
|
689
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
689
|
+
const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
|
|
690
690
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
691
691
|
return false;
|
|
692
692
|
if (record.provider.activation === "enabled")
|
|
@@ -712,8 +712,8 @@ var layer = Layer.effect(Service78, Effect2.gen(function* () {
|
|
|
712
712
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
713
713
|
});
|
|
714
714
|
});
|
|
715
|
-
yield* bus.subscribe([
|
|
716
|
-
return
|
|
715
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
716
|
+
return Service75.of({
|
|
717
717
|
transform: state.transform,
|
|
718
718
|
reload: state.reload,
|
|
719
719
|
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -722,7 +722,7 @@ var layer = Layer.effect(Service78, Effect2.gen(function* () {
|
|
|
722
722
|
snapshot
|
|
723
723
|
});
|
|
724
724
|
}));
|
|
725
|
-
var
|
|
725
|
+
var node79 = makeLocationNode({ service: Service75, layer, deps: [node89, node81, node86] });
|
|
726
726
|
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
727
727
|
const module = yield* Effect2.tryPromise({
|
|
728
728
|
try: () => {
|
|
@@ -744,4 +744,4 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
744
744
|
return module;
|
|
745
745
|
});
|
|
746
746
|
|
|
747
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
747
|
+
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Cache2, Transport2, Settings2, Info22, Service75, node79, exports_provider3, Event15 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-eexq3avs.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./command-h9kvttc7.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -20,7 +20,7 @@ class EffectSQLiteDatabase2 extends SQLiteEffectDatabase2 {
|
|
|
20
20
|
static [entityKind] = "EffectSQLiteDatabase";
|
|
21
21
|
}
|
|
22
22
|
var DefaultServices2 = Layer.merge(EffectCache.Default, EffectLogger.Default);
|
|
23
|
-
var
|
|
23
|
+
var make24 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
24
24
|
const client = yield* SqlClient;
|
|
25
25
|
const cache = yield* EffectCache;
|
|
26
26
|
const logger = yield* EffectLogger;
|
|
@@ -37,6 +37,6 @@ var make23 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
|
37
37
|
db.$cache.invalidate = cache.onMutate;
|
|
38
38
|
return db;
|
|
39
39
|
});
|
|
40
|
-
var makeWithDefaults2 = (config = {}) =>
|
|
40
|
+
var makeWithDefaults2 = (config = {}) => make24(config).pipe(Effect.provide(DefaultServices2));
|
|
41
41
|
|
|
42
|
-
export { EffectSQLiteDatabase2, DefaultServices2,
|
|
42
|
+
export { EffectSQLiteDatabase2, DefaultServices2, make24, makeWithDefaults2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-5851zxg9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
5
|
+
ID14,
|
|
6
|
+
Event17,
|
|
7
|
+
Service78
|
|
8
|
+
} from "./command-30bemqd7.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID12
|
|
11
|
+
} from "./command-tdjjjkq6.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./command-6jkh4qsb.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
43
43
|
id: "opencode.provider.google.vertex",
|
|
44
44
|
effect: Effect.fn(function* (ctx) {
|
|
45
45
|
const fs = yield* FSUtil.Service;
|
|
46
|
-
const credentials = yield*
|
|
46
|
+
const credentials = yield* Service78;
|
|
47
47
|
const bus = yield* Service85;
|
|
48
48
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
49
49
|
return;
|
|
@@ -53,7 +53,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
53
53
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
54
54
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
55
55
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
56
|
-
const configured = (yield* configuredSettings2(
|
|
56
|
+
const configured = (yield* configuredSettings2(ID12.googleVertex)) ?? {};
|
|
57
57
|
const projects = Array.from(new Set([
|
|
58
58
|
resolveProject(configured),
|
|
59
59
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -67,8 +67,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
67
67
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
68
68
|
]));
|
|
69
69
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
70
|
-
const connection = yield* ctx.integration.connection.active(
|
|
71
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
70
|
+
const connection = yield* ctx.integration.connection.active(ID12.googleVertex);
|
|
71
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID14.make(connection.id)) : undefined;
|
|
72
72
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
73
73
|
return {};
|
|
74
74
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -76,15 +76,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
76
76
|
const selected = { settings: yield* load() };
|
|
77
77
|
const settingsFor = (provider) => ({
|
|
78
78
|
...provider.settings,
|
|
79
|
-
...(provider.integrationID ?? provider.id) ===
|
|
79
|
+
...(provider.integrationID ?? provider.id) === ID12.googleVertex ? selected.settings : {}
|
|
80
80
|
});
|
|
81
81
|
yield* ctx.integration.transform((editor) => {
|
|
82
82
|
editor.method.update({
|
|
83
|
-
integrationID:
|
|
83
|
+
integrationID: ID12.googleVertex,
|
|
84
84
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
85
85
|
});
|
|
86
86
|
editor.method.update({
|
|
87
|
-
integrationID:
|
|
87
|
+
integrationID: ID12.googleVertex,
|
|
88
88
|
method: {
|
|
89
89
|
id: ADC_METHOD,
|
|
90
90
|
type: "external",
|
|
@@ -122,7 +122,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
122
122
|
});
|
|
123
123
|
yield* ctx.provider.transform((evt) => {
|
|
124
124
|
for (const item of evt.list()) {
|
|
125
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
125
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
126
126
|
continue;
|
|
127
127
|
const settings = settingsFor(item.provider);
|
|
128
128
|
const project = resolveProject(settings);
|
|
@@ -141,7 +141,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
141
141
|
});
|
|
142
142
|
yield* ctx.model.transform((models) => {
|
|
143
143
|
for (const item of models.provider.list()) {
|
|
144
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
144
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID12.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
145
145
|
continue;
|
|
146
146
|
const settings = settingsFor(item.provider);
|
|
147
147
|
const project = resolveProject(settings);
|
|
@@ -159,7 +159,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
yield* bus.subscribe([
|
|
162
|
+
yield* bus.subscribe([Event17.Updated, Event17.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
163
163
|
const next = yield* load();
|
|
164
164
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
165
165
|
return;
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./command-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service84,
|
|
9
|
+
node88
|
|
10
|
+
} from "./command-3mxdezre.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service82,
|
|
13
|
+
node86
|
|
14
|
+
} from "./command-cdq1pcjt.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./command-204s3925.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./command-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: () => Error3,
|
|
26
|
+
ID: () => ID5,
|
|
27
|
+
Service: () => Service55,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node57,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Clock, 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 ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 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 Service55 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service84;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service82;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service40, 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 Error3({ 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)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID5.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service55.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node57 = makeLocationNode({
|
|
158
|
+
service: Service55,
|
|
159
159
|
layer,
|
|
160
|
-
deps: [FSUtil.node,
|
|
160
|
+
deps: [FSUtil.node, node88, Global.node, node86]
|
|
161
161
|
});
|
|
162
|
-
var
|
|
162
|
+
var noopLayer3 = Layer.succeed(Service55, Service55.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer2 = Layer.succeed(Service40, Service40.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error3({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { ID5, Error3, Service55, node57, noopLayer3, exports_snapshot2 };
|