@opencode/core 0.0.0-dev-235 → 0.0.0-dev-241
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 +100 -100
- package/dist/aisdk.js +106 -106
- package/dist/app.js +9 -9
- package/dist/bus.js +78 -78
- package/dist/chunks/{model-resolver-aj7mw0zk.js → form-034tev2y.js} +2 -2
- package/dist/chunks/{model-resolver-np47h428.js → form-06b0dpwc.js} +4 -4
- package/dist/chunks/form-08h3dm3g.js +257 -0
- package/dist/chunks/{model-resolver-r44vdp06.js → form-0a7n7kwt.js} +3 -3
- package/dist/chunks/{model-resolver-x6pyv2yz.js → form-0dfv01xh.js} +5 -5
- package/dist/chunks/{model-resolver-gj0tv93d.js → form-0geg3vaz.js} +10 -10
- package/dist/chunks/{model-resolver-w3d76d98.js → form-0kfnnbj0.js} +13 -13
- package/dist/chunks/{model-resolver-nttn14j9.js → form-0m9q59s6.js} +4 -4
- package/dist/chunks/{model-resolver-qf7wdzx4.js → form-0z8aj9nb.js} +78 -78
- package/dist/chunks/{model-resolver-2vxh8fhb.js → form-0zracm40.js} +43 -43
- package/dist/chunks/{model-resolver-4cb8ky4x.js → form-12ce349e.js} +11 -11
- package/dist/chunks/{model-resolver-657gm9p4.js → form-164bbpt7.js} +21 -21
- package/dist/chunks/{model-resolver-j8bdajc7.js → form-16twya52.js} +2 -2
- package/dist/chunks/{model-resolver-7x1geb87.js → form-17nembyj.js} +24 -24
- package/dist/chunks/{model-resolver-sew631bv.js → form-1ehhk9f8.js} +24 -24
- package/dist/chunks/{model-resolver-27w5k9zf.js → form-1ep2p91f.js} +2 -2
- package/dist/chunks/{model-resolver-cw59ztwq.js → form-1fy8p9jc.js} +14 -14
- package/dist/chunks/{model-resolver-9pk8dvwz.js → form-1hc4tfsd.js} +3 -3
- package/dist/chunks/form-1kh93h0h.js +26 -0
- package/dist/chunks/{model-resolver-1kn6jdkn.js → form-1kn6jdkn.js} +1 -1
- package/dist/chunks/{model-resolver-w6v5sxdw.js → form-1kyyf73t.js} +9 -9
- package/dist/chunks/{model-resolver-qr5k2are.js → form-1q3qkd77.js} +10 -10
- package/dist/chunks/{model-resolver-4p7w50sn.js → form-1rp9wec1.js} +4 -4
- package/dist/chunks/{model-resolver-kk4m6xpk.js → form-1vseb64s.js} +7 -7
- package/dist/chunks/{model-resolver-1x2knyw4.js → form-1x2knyw4.js} +1 -1
- package/dist/chunks/{model-resolver-1yq9hg58.js → form-1yq9hg58.js} +1 -1
- package/dist/chunks/{model-resolver-204s3925.js → form-204s3925.js} +1 -1
- package/dist/chunks/{model-resolver-a8x35daw.js → form-21aep2yn.js} +5 -5
- package/dist/chunks/{model-resolver-zbs0ay32.js → form-225yscb7.js} +19 -19
- package/dist/chunks/{model-resolver-25h84942.js → form-25h84942.js} +1 -1
- package/dist/chunks/{model-resolver-zg0jbn27.js → form-26x8chrq.js} +6 -6
- package/dist/chunks/{model-resolver-w2y2s0n1.js → form-2bgp64vn.js} +14 -14
- package/dist/chunks/{model-resolver-dgy090gd.js → form-2hz06pja.js} +5 -5
- package/dist/chunks/{model-resolver-1vhabajd.js → form-2t5drfwv.js} +11 -11
- package/dist/chunks/{model-resolver-jb1qvvx4.js → form-2zxqqy9n.js} +3 -3
- package/dist/chunks/{model-resolver-jvpt39xs.js → form-30ae49hf.js} +9 -9
- package/dist/chunks/{model-resolver-6kq6serr.js → form-344ymb5t.js} +42 -42
- package/dist/chunks/{model-resolver-e19czkbx.js → form-34czpf76.js} +34 -34
- package/dist/chunks/{model-resolver-terez3x2.js → form-3e3pzb31.js} +9 -9
- package/dist/chunks/{model-resolver-3hepkmqq.js → form-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-tmc7xdjs.js → form-3nnrz6f6.js} +4 -4
- package/dist/chunks/{model-resolver-pjtyxbjq.js → form-3ve3e0bk.js} +17 -17
- package/dist/chunks/{model-resolver-p1mde3sk.js → form-3yz3az2p.js} +153 -153
- package/dist/chunks/{model-resolver-tjvxx29a.js → form-44bj7geh.js} +13 -13
- package/dist/chunks/{model-resolver-pyw9tktf.js → form-47xk0geh.js} +17 -17
- package/dist/chunks/{model-resolver-b7x6vb0f.js → form-4e78z1nw.js} +12 -12
- package/dist/chunks/{model-resolver-4pyp9zr9.js → form-4pyp9zr9.js} +1 -1
- package/dist/chunks/{model-resolver-4v008n1t.js → form-4v008n1t.js} +1 -1
- package/dist/chunks/{model-resolver-cqjy0jsh.js → form-4wc1e944.js} +32 -32
- package/dist/chunks/{model-resolver-c5m2a8vb.js → form-56xpzs9c.js} +8 -8
- package/dist/chunks/{model-resolver-35xw48cm.js → form-5a6cq72k.js} +36 -36
- package/dist/chunks/{model-resolver-5enarcya.js → form-5enarcya.js} +2 -2
- package/dist/chunks/{model-resolver-8jwdfq57.js → form-5gahmjy1.js} +9 -9
- package/dist/chunks/{model-resolver-8tcsqa0t.js → form-5gse0r5n.js} +6 -6
- package/dist/chunks/{model-resolver-07ws46e7.js → form-5m24a4sd.js} +22 -22
- package/dist/chunks/{model-resolver-5m9w47nd.js → form-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-b6vsg801.js → form-5nnwax6m.js} +5 -5
- package/dist/chunks/{model-resolver-8rsr0xkw.js → form-5qjz8kxn.js} +14 -14
- package/dist/chunks/{model-resolver-5pmynce3.js → form-5w6nd1s8.js} +1 -1
- package/dist/chunks/{model-resolver-g7e31nf0.js → form-69vbzxa1.js} +35 -35
- package/dist/chunks/{model-resolver-6esdw8yj.js → form-6esdw8yj.js} +1 -1
- package/dist/chunks/{model-resolver-2q3gj68p.js → form-6wmf2q20.js} +14 -14
- package/dist/chunks/{model-resolver-9s06frge.js → form-6xqtcmxs.js} +5 -5
- package/dist/chunks/form-6zjm2phc.js +18 -0
- package/dist/chunks/{model-resolver-w8qtt4th.js → form-76cb1hcw.js} +4 -4
- package/dist/chunks/{model-resolver-w7d7mz6q.js → form-7bcs6f94.js} +9 -9
- package/dist/chunks/{model-resolver-7bmhse3q.js → form-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-kkq9589k.js → form-7e0vrbjb.js} +57 -57
- package/dist/chunks/{model-resolver-yeyfr6zk.js → form-7fy0h8rf.js} +11 -11
- package/dist/chunks/{model-resolver-6c3vfjz9.js → form-7r72dc1g.js} +14 -14
- package/dist/chunks/{model-resolver-7w2ypzdf.js → form-7w2ypzdf.js} +1 -1
- package/dist/chunks/{model-resolver-ebw1bbd1.js → form-80d2zcb4.js} +83 -83
- package/dist/chunks/{model-resolver-pp0pn87f.js → form-885474ts.js} +11 -11
- package/dist/chunks/form-8azpkpgk.js +535 -0
- package/dist/chunks/{model-resolver-mkw2jwqb.js → form-8cbkaxar.js} +1 -1
- package/dist/chunks/{model-resolver-8jztxfpf.js → form-8jztxfpf.js} +1 -1
- package/dist/chunks/{model-resolver-sfh5xs5y.js → form-8pyh3h24.js} +27 -27
- package/dist/chunks/{model-resolver-5n0y2fx9.js → form-8q7qvvvm.js} +16 -16
- package/dist/chunks/{model-resolver-8wtp7s3z.js → form-8wtp7s3z.js} +1 -1
- package/dist/chunks/{model-resolver-tkbmyhb4.js → form-8xqhc33s.js} +9 -9
- package/dist/chunks/{model-resolver-90zstvax.js → form-90zstvax.js} +1 -1
- package/dist/chunks/{model-resolver-cfcqqf1a.js → form-9aqddysx.js} +4 -4
- package/dist/chunks/{model-resolver-92c52cwg.js → form-9f6y0syf.js} +5 -5
- package/dist/chunks/{model-resolver-xeg3jkwn.js → form-9mesydma.js} +15 -15
- package/dist/chunks/{model-resolver-k17w2jj8.js → form-9x2ynd3b.js} +15 -15
- package/dist/chunks/{model-resolver-5m5zgeb0.js → form-a2yfqhnm.js} +25 -25
- package/dist/chunks/{model-resolver-3smabe4s.js → form-a44gt5xs.js} +6 -6
- package/dist/chunks/{model-resolver-p2hg2bey.js → form-a5qbrk1x.js} +12 -12
- package/dist/chunks/{model-resolver-5qp8d7cx.js → form-a97jh5ay.js} +9 -9
- package/dist/chunks/{model-resolver-7sdtxe0n.js → form-agqd6nxz.js} +4 -4
- package/dist/chunks/{model-resolver-3vb79mvp.js → form-apsqrt3t.js} +41 -41
- package/dist/chunks/{model-resolver-3cbjf1nt.js → form-ayjs7tqn.js} +2 -2
- package/dist/chunks/{model-resolver-ssfehs1z.js → form-b1pn0vxn.js} +4 -4
- package/dist/chunks/{model-resolver-fb0ffggm.js → form-bd58n5m3.js} +18 -18
- package/dist/chunks/{model-resolver-0m6n6j4y.js → form-bmp8ftgp.js} +11 -11
- package/dist/chunks/{model-resolver-0vfcpktn.js → form-bn194m36.js} +11 -11
- package/dist/chunks/{model-resolver-4s29f17y.js → form-bnrmard3.js} +13 -13
- package/dist/chunks/{model-resolver-sy8vd0m2.js → form-bpmnncyw.js} +8 -8
- package/dist/chunks/{model-resolver-bstexjd6.js → form-bstexjd6.js} +1 -1
- package/dist/chunks/{model-resolver-wd1xcya7.js → form-bxsgj37y.js} +15 -15
- package/dist/chunks/{model-resolver-0ydkeekf.js → form-bzgcjp3p.js} +5 -5
- package/dist/chunks/{model-resolver-6p643g3y.js → form-c2t3ry2c.js} +16 -16
- package/dist/chunks/{model-resolver-br0kkpnn.js → form-c6x7d2ts.js} +7 -7
- package/dist/chunks/{model-resolver-pvp6fg14.js → form-c7b37yvv.js} +12 -12
- package/dist/chunks/{model-resolver-bx2chj7s.js → form-c8w8hrxy.js} +20 -20
- package/dist/chunks/{model-resolver-fvz2a291.js → form-c9cgbm0j.js} +9 -9
- package/dist/chunks/{model-resolver-32ss13k6.js → form-caxfsg60.js} +17 -17
- package/dist/chunks/{model-resolver-ve4251vb.js → form-cecnk0g5.js} +21 -21
- package/dist/chunks/{model-resolver-bkccqnab.js → form-cegg4nag.js} +24 -24
- package/dist/chunks/{model-resolver-1fmezaeg.js → form-cj0rt5w2.js} +9 -9
- package/dist/chunks/{model-resolver-jcf07173.js → form-ckrm4vaz.js} +19 -19
- package/dist/chunks/{model-resolver-9k0vd1xz.js → form-cnac7q8x.js} +20 -20
- package/dist/chunks/{model-resolver-r4h5gr85.js → form-cq4y0zvs.js} +17 -17
- package/dist/chunks/{model-resolver-cwrgdav8.js → form-cwrgdav8.js} +2 -2
- package/dist/chunks/{model-resolver-2g0sbjxs.js → form-d0nww1bx.js} +3 -3
- package/dist/chunks/{model-resolver-gn8tkhbf.js → form-d4v9tmah.js} +2 -2
- package/dist/chunks/{model-resolver-kmjd8e1b.js → form-d4z67fwt.js} +14 -14
- package/dist/chunks/{model-resolver-whz0tbn3.js → form-d877pmrn.js} +16 -16
- package/dist/chunks/{model-resolver-mwz57098.js → form-dbn5ca56.js} +4 -4
- package/dist/chunks/{model-resolver-qjd35q55.js → form-dmb95mhx.js} +12 -12
- package/dist/chunks/{model-resolver-y6scp2pe.js → form-dpb98s6z.js} +43 -43
- package/dist/chunks/{model-resolver-g0287tj7.js → form-dpd69dnd.js} +4 -4
- package/dist/chunks/{model-resolver-dt77769w.js → form-dt77769w.js} +1 -1
- package/dist/chunks/{model-resolver-gf94v7ds.js → form-dtg3e95z.js} +12 -12
- package/dist/chunks/{model-resolver-e834z07m.js → form-e834z07m.js} +1 -1
- package/dist/chunks/{model-resolver-r3n6xbzs.js → form-e865fpdn.js} +8 -8
- package/dist/chunks/{model-resolver-zh7bbm8x.js → form-e8jekyry.js} +9 -9
- package/dist/chunks/{model-resolver-77zj4qhz.js → form-e9fqtmvn.js} +6 -6
- package/dist/chunks/{model-resolver-m0qw3cnp.js → form-ebc2yafe.js} +5 -5
- package/dist/chunks/{model-resolver-7xgdsbra.js → form-eeejwcqn.js} +12 -12
- package/dist/chunks/{model-resolver-7atzhzg1.js → form-emk1tmq0.js} +8 -8
- package/dist/chunks/{model-resolver-zpxk6q5d.js → form-epbdechd.js} +21 -21
- package/dist/chunks/{model-resolver-tjbktcma.js → form-eq53d4e8.js} +22 -22
- package/dist/chunks/{model-resolver-dq8p8g98.js → form-ertcz5s1.js} +11 -11
- package/dist/chunks/{model-resolver-8fbg0anr.js → form-ex68cs9x.js} +33 -33
- package/dist/chunks/{model-resolver-srpyah9m.js → form-eydhdpnx.js} +45 -45
- package/dist/chunks/{model-resolver-v54nvb2h.js → form-f01y088k.js} +5 -5
- package/dist/chunks/{model-resolver-xzj8w313.js → form-f0q877ce.js} +16 -16
- package/dist/chunks/{model-resolver-fffv3p7h.js → form-fffv3p7h.js} +1 -1
- package/dist/chunks/{model-resolver-fg9p65nk.js → form-fg9p65nk.js} +2 -2
- package/dist/chunks/{model-resolver-0v7r2g4g.js → form-fn32zha6.js} +13 -13
- package/dist/chunks/{model-resolver-mehbn690.js → form-fq8z76yw.js} +3 -3
- package/dist/chunks/{model-resolver-np3f7rt0.js → form-fypmhnps.js} +2 -2
- package/dist/chunks/{model-resolver-515dar09.js → form-g1hcq0g8.js} +9 -9
- package/dist/chunks/{model-resolver-bzneqfrw.js → form-g450zyfk.js} +30 -30
- package/dist/chunks/{model-resolver-2eaj99b9.js → form-g85b9q37.js} +10 -10
- package/dist/chunks/{model-resolver-v7h6andt.js → form-g8a7cptb.js} +21 -21
- package/dist/chunks/{model-resolver-j97kzcev.js → form-gbh3tqmh.js} +10 -10
- package/dist/chunks/{model-resolver-b1b4s2tq.js → form-gd8sx287.js} +4 -4
- package/dist/chunks/{model-resolver-9kxateg7.js → form-gdn6yz18.js} +25 -25
- package/dist/chunks/{model-resolver-xgew9n4h.js → form-gx6q6d4a.js} +8 -8
- package/dist/chunks/{model-resolver-1becz5h9.js → form-h9mc95dv.js} +33 -33
- package/dist/chunks/{model-resolver-pp05edzg.js → form-hcawp3ym.js} +4 -4
- package/dist/chunks/{model-resolver-bb1pme7h.js → form-hef4msp3.js} +20 -20
- package/dist/chunks/{model-resolver-ngbjhm7w.js → form-hh288azd.js} +25 -25
- package/dist/chunks/{model-resolver-hh7kjqtw.js → form-hh7kjqtw.js} +1 -1
- package/dist/chunks/{model-resolver-wnb85yzk.js → form-hh8z0h5r.js} +11 -11
- package/dist/chunks/{model-resolver-haawhqgr.js → form-hjhf5s4p.js} +25 -25
- package/dist/chunks/{model-resolver-vja3zs8n.js → form-hnb1qy4e.js} +7 -7
- package/dist/chunks/{model-resolver-hpg1pkwy.js → form-hpg1pkwy.js} +1 -1
- package/dist/chunks/{model-resolver-2zp5a6yg.js → form-hqxkkta1.js} +3 -3
- package/dist/chunks/{model-resolver-68qqfsms.js → form-hsdtatpb.js} +2 -2
- package/dist/chunks/{model-resolver-mqtbfpst.js → form-j0ft87f1.js} +18 -18
- package/dist/chunks/{model-resolver-hckvh4sv.js → form-j3ahjss5.js} +33 -33
- package/dist/chunks/{model-resolver-jfaecv01.js → form-jfaecv01.js} +1 -1
- package/dist/chunks/{model-resolver-eyejk55r.js → form-jhc11j6v.js} +5 -5
- package/dist/chunks/{model-resolver-nma643tt.js → form-jheynnxb.js} +9 -9
- package/dist/chunks/{model-resolver-4695y15q.js → form-jnndjjbg.js} +32 -32
- package/dist/chunks/{model-resolver-jtnps1zs.js → form-jtnps1zs.js} +2 -2
- package/dist/chunks/{model-resolver-rx6q88jc.js → form-jvks6kr5.js} +19 -19
- package/dist/chunks/{model-resolver-3smfssvs.js → form-k5h0kew3.js} +37 -37
- package/dist/chunks/{model-resolver-n516hxxc.js → form-k67dv3fj.js} +36 -36
- package/dist/chunks/{model-resolver-k814nvkf.js → form-k814nvkf.js} +1 -1
- package/dist/chunks/{model-resolver-1k5rjxjy.js → form-k950nrad.js} +14 -14
- package/dist/chunks/{model-resolver-k9zkdd2y.js → form-k9zkdd2y.js} +1 -1
- package/dist/chunks/{model-resolver-p580ev26.js → form-ka01146j.js} +6 -6
- package/dist/chunks/{model-resolver-khm9g9rn.js → form-kjt9j6hq.js} +33 -33
- package/dist/chunks/{model-resolver-5tmges1f.js → form-kpgx0vyx.js} +5 -5
- package/dist/chunks/{model-resolver-yrgtjhcx.js → form-kqxn4pnr.js} +8 -8
- package/dist/chunks/{model-resolver-kt3bjfbg.js → form-kt3bjfbg.js} +1 -1
- package/dist/chunks/{model-resolver-m1714858.js → form-m1714858.js} +1 -1
- package/dist/chunks/{model-resolver-mekmjhn9.js → form-m34q2a8m.js} +22 -22
- package/dist/chunks/{model-resolver-xnh55p1t.js → form-m37sd98t.js} +5 -5
- package/dist/chunks/{model-resolver-8dfptpqb.js → form-m528r48h.js} +4 -4
- package/dist/chunks/{model-resolver-m9w0rfyh.js → form-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-313g21r6.js → form-maemcbqj.js} +18 -18
- package/dist/chunks/{model-resolver-8z6m94af.js → form-mb7mbhnz.js} +3 -3
- package/dist/chunks/{model-resolver-dgwg4nab.js → form-mdmwbg8j.js} +18 -18
- package/dist/chunks/{model-resolver-ds2f0rmb.js → form-mdz0js77.js} +3 -3
- package/dist/chunks/{model-resolver-mg356nz4.js → form-mg356nz4.js} +3 -3
- package/dist/chunks/{model-resolver-e5vm4r2z.js → form-mkcsvzvr.js} +3 -3
- package/dist/chunks/{model-resolver-ywp21z45.js → form-mp850hqc.js} +1 -1
- package/dist/chunks/{model-resolver-rae286de.js → form-n37g9rz2.js} +4 -4
- package/dist/chunks/{model-resolver-7ykpe2ae.js → form-n5jdsvnn.js} +32 -32
- package/dist/chunks/{model-resolver-rzex016b.js → form-n97mvkbq.js} +6 -6
- package/dist/chunks/{model-resolver-nah043kf.js → form-nah043kf.js} +1 -1
- package/dist/chunks/{model-resolver-qc0dffe1.js → form-nfkjwrxk.js} +16 -16
- package/dist/chunks/{model-resolver-s3gmcb39.js → form-ng3j8dj2.js} +7 -7
- package/dist/chunks/{model-resolver-mxynyzfm.js → form-nxbfjhca.js} +12 -12
- package/dist/chunks/{model-resolver-r3jnkjvn.js → form-nxpp7t5x.js} +47 -47
- package/dist/chunks/{model-resolver-69zkvrr3.js → form-nzbx2r18.js} +9 -9
- package/dist/chunks/{model-resolver-p015t6z3.js → form-p015t6z3.js} +2 -2
- package/dist/chunks/{model-resolver-pz4bxmc0.js → form-p2d6jc5h.js} +2 -2
- package/dist/chunks/{model-resolver-a8ts2hq9.js → form-p32m2zja.js} +29 -29
- package/dist/chunks/{model-resolver-78c837sc.js → form-pez63j8g.js} +17 -17
- package/dist/chunks/{model-resolver-pknna89w.js → form-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-tv7z3yt9.js → form-pq2gn7y4.js} +7 -7
- package/dist/chunks/{model-resolver-spbwh0fp.js → form-q1dg5ken.js} +21 -21
- package/dist/chunks/{model-resolver-h4ydfc35.js → form-qd0p20n5.js} +12 -12
- package/dist/chunks/{model-resolver-ghsy9na1.js → form-qekva0d7.js} +28 -28
- package/dist/chunks/{model-resolver-e3p762jb.js → form-qg4wfayj.js} +18 -18
- package/dist/chunks/{model-resolver-hjbr58an.js → form-qhwx0fdf.js} +20 -20
- package/dist/chunks/{model-resolver-w9w8mt4n.js → form-qkc3z5ds.js} +4 -4
- package/dist/chunks/{model-resolver-n3ms51k8.js → form-qnf47mt5.js} +4 -4
- package/dist/chunks/{model-resolver-qp7r0hxv.js → form-qp7r0hxv.js} +1 -1
- package/dist/chunks/{model-resolver-qqvy8y24.js → form-qqvy8y24.js} +1 -1
- package/dist/chunks/{model-resolver-31wms35x.js → form-qz087kyw.js} +8 -8
- package/dist/chunks/{model-resolver-x09jv9p1.js → form-r1r2wh37.js} +3 -3
- package/dist/chunks/{model-resolver-brzye0d0.js → form-r2z4j37j.js} +2 -2
- package/dist/chunks/{model-resolver-r542h3bh.js → form-r542h3bh.js} +1 -1
- package/dist/chunks/{model-resolver-75k6z3we.js → form-r5gq5fkx.js} +64 -64
- package/dist/chunks/{model-resolver-z4qcr8nf.js → form-ra4wx1p6.js} +23 -23
- package/dist/chunks/{model-resolver-rb9dy4dg.js → form-rb9dy4dg.js} +1 -1
- package/dist/chunks/{model-resolver-gxn61zhy.js → form-rs8acqz3.js} +2 -2
- package/dist/chunks/{model-resolver-rt5dr6hb.js → form-rt5dr6hb.js} +1 -1
- package/dist/chunks/{model-resolver-64qhrwmr.js → form-rva7ahw2.js} +11 -11
- package/dist/chunks/{model-resolver-v1tvskx9.js → form-rw00jzn7.js} +17 -17
- package/dist/chunks/{model-resolver-7j1pv54n.js → form-rwpnrpr8.js} +4 -4
- package/dist/chunks/{model-resolver-1vk60n2f.js → form-s3bc4aa5.js} +15 -15
- package/dist/chunks/{model-resolver-x5qgebf8.js → form-s8ecjhm6.js} +23 -23
- package/dist/chunks/{model-resolver-sa3fpqfw.js → form-sa3fpqfw.js} +2 -2
- package/dist/chunks/{model-resolver-caqz8vzx.js → form-saap6htg.js} +17 -17
- package/dist/chunks/{model-resolver-sqjzf8x2.js → form-sqjzf8x2.js} +1 -1
- package/dist/chunks/{model-resolver-svcy3p9a.js → form-svcy3p9a.js} +1 -1
- package/dist/chunks/{model-resolver-c2wdctvm.js → form-sxjfgefz.js} +46 -46
- package/dist/chunks/{model-resolver-xn46eh9z.js → form-sxramexz.js} +13 -13
- package/dist/chunks/{model-resolver-063c2dw3.js → form-syd5ygf3.js} +18 -18
- package/dist/chunks/{model-resolver-e42rb5nh.js → form-t4y2eqtb.js} +9 -9
- package/dist/chunks/{model-resolver-qqg00k1m.js → form-t925je5x.js} +6 -6
- package/dist/chunks/{model-resolver-tczq8hjw.js → form-tczq8hjw.js} +1 -1
- package/dist/chunks/{model-resolver-twssxy5n.js → form-twssxy5n.js} +2 -2
- package/dist/chunks/{model-resolver-v2r1d0zg.js → form-v2r1d0zg.js} +1 -1
- package/dist/chunks/{model-resolver-6et83057.js → form-vjcm0c6v.js} +21 -21
- package/dist/chunks/{model-resolver-08rawchj.js → form-vpm8vpz0.js} +3 -3
- package/dist/chunks/{model-resolver-11emykvz.js → form-vr3x69az.js} +12 -12
- package/dist/chunks/{model-resolver-r4pwrx75.js → form-vrcsa8qx.js} +9 -9
- package/dist/chunks/{model-resolver-mkg7mbq5.js → form-vzvvagw1.js} +33 -33
- package/dist/chunks/{model-resolver-z00f7qmg.js → form-w2jxje39.js} +26 -26
- package/dist/chunks/{model-resolver-9q8g9sv8.js → form-w35wzz9x.js} +4 -4
- package/dist/chunks/{model-resolver-w3wsvvr9.js → form-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-8anejt09.js → form-w5xp5sgq.js} +16 -16
- package/dist/chunks/{model-resolver-w687dnns.js → form-w687dnns.js} +1 -1
- package/dist/chunks/{model-resolver-wakvkjy4.js → form-wakvkjy4.js} +1 -1
- package/dist/chunks/{model-resolver-hwtwmcxj.js → form-wawq6c5s.js} +17 -17
- package/dist/chunks/{model-resolver-wd87259q.js → form-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-4yq7vp74.js → form-wdeh72fh.js} +9 -9
- package/dist/chunks/{model-resolver-6ckjvz5e.js → form-wewy9wfm.js} +12 -12
- package/dist/chunks/{model-resolver-5mvx2mvy.js → form-wg881gmg.js} +4 -4
- package/dist/chunks/{model-resolver-wnhgecwx.js → form-wnhgecwx.js} +1 -1
- package/dist/chunks/{model-resolver-jv2xnyk0.js → form-wwgpyqzb.js} +9 -9
- package/dist/chunks/{model-resolver-g60d9pja.js → form-wxknf58s.js} +6 -6
- package/dist/chunks/{model-resolver-02dx1ydf.js → form-wy3fx33q.js} +23 -23
- package/dist/chunks/{model-resolver-11dc3axx.js → form-x1wbs47z.js} +17 -17
- package/dist/chunks/{model-resolver-95sp4hdf.js → form-xk2zn0cv.js} +4 -4
- package/dist/chunks/{model-resolver-tc5b1bny.js → form-xq6beh0s.js} +21 -21
- package/dist/chunks/{model-resolver-t3tgzswk.js → form-xwhcj832.js} +20 -20
- package/dist/chunks/{model-resolver-x32t5qxa.js → form-y02zb68m.js} +8 -8
- package/dist/chunks/{model-resolver-7azjgpqp.js → form-y984veh1.js} +9 -9
- package/dist/chunks/{model-resolver-pxtfkpje.js → form-yara3q77.js} +2 -2
- package/dist/chunks/{model-resolver-yb20nhc3.js → form-yb20nhc3.js} +1 -1
- package/dist/chunks/{model-resolver-0gbb59p9.js → form-yc4xwjk4.js} +9 -9
- package/dist/chunks/{model-resolver-7vyv40s2.js → form-yckvrk0f.js} +6 -6
- package/dist/chunks/{model-resolver-9fttyw1y.js → form-yd39j0pc.js} +11 -11
- package/dist/chunks/{model-resolver-hy8c1z76.js → form-ydsespw1.js} +8 -8
- package/dist/chunks/{model-resolver-chyqkg4j.js → form-yewpp7ak.js} +11 -11
- package/dist/chunks/{model-resolver-1ffmcay5.js → form-yjhf0rgk.js} +40 -40
- package/dist/chunks/{model-resolver-hskmxh3h.js → form-yk6ggz05.js} +9 -9
- package/dist/chunks/{model-resolver-k07k3amx.js → form-ymtvagr8.js} +21 -21
- package/dist/chunks/{model-resolver-vf9vzdpy.js → form-ymvwqgy0.js} +36 -36
- package/dist/chunks/{model-resolver-ymz7p2c9.js → form-ymz7p2c9.js} +3 -3
- package/dist/chunks/{model-resolver-rnndk4m8.js → form-yn3pvg3g.js} +48 -48
- package/dist/chunks/{model-resolver-2ggryvv9.js → form-ynk496q3.js} +7 -7
- package/dist/chunks/{model-resolver-3g5sjqyx.js → form-yp23a5z4.js} +24 -24
- package/dist/chunks/{model-resolver-a7hpf3a9.js → form-yp7f7fzt.js} +8 -8
- package/dist/chunks/{model-resolver-0xgy9r8e.js → form-ypzz06n9.js} +8 -8
- package/dist/chunks/{model-resolver-5vtcv6tm.js → form-ywk1qbwj.js} +4 -4
- package/dist/chunks/{model-resolver-cxstdmn9.js → form-yykjbrqt.js} +17 -17
- package/dist/chunks/{model-resolver-em9d63hf.js → form-yzfcgkx8.js} +25 -25
- package/dist/chunks/{model-resolver-z38nccrw.js → form-z38nccrw.js} +1 -1
- package/dist/chunks/{model-resolver-8wcv8eb0.js → form-za8zk8x5.js} +18 -18
- package/dist/chunks/{model-resolver-1trhz39y.js → form-zf08ma9p.js} +45 -45
- package/dist/chunks/{model-resolver-b9npwed2.js → form-zrzd6936.js} +22 -22
- package/dist/chunks/{model-resolver-d6t4gzf8.js → form-zwt99n69.js} +16 -16
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +94 -94
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +110 -110
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +222 -222
- package/dist/config/plugin/compaction.js +165 -165
- package/dist/config/plugin/compatibility.js +145 -145
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +125 -125
- package/dist/config/plugin/image.js +124 -124
- package/dist/config/plugin/instruction.js +124 -124
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +126 -126
- package/dist/config/plugin/provider.js +125 -125
- package/dist/config/plugin/reference.js +126 -126
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +141 -141
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +146 -146
- package/dist/config/plugin/snapshot.js +124 -124
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +126 -126
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- 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 +75 -75
- 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/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/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration.gen.js +58 -58
- package/dist/database/migration.js +60 -60
- 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 +103 -103
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +383 -383
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +104 -104
- 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 +79 -79
- package/dist/file-access.js +151 -151
- package/dist/file-mutation.js +105 -105
- 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 +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +237 -237
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +106 -106
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +111 -111
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +98 -98
- package/dist/generate.js +118 -118
- 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 +110 -110
- 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/notice.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 +379 -379
- package/dist/instruction-discovery.js +93 -93
- package/dist/instructions/builtins.js +96 -96
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +98 -98
- package/dist/job.js +85 -85
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +82 -82
- package/dist/location-activity.js +163 -163
- package/dist/location-lifecycle.js +145 -145
- package/dist/location-service-map.js +93 -93
- package/dist/location-services.js +376 -376
- package/dist/location.js +100 -100
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +102 -102
- package/dist/mcp/index.js +114 -114
- package/dist/mcp/instructions.js +165 -165
- package/dist/mcp/oauth.js +87 -87
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +101 -101
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +110 -110
- package/dist/model-resolver.js +110 -110
- package/dist/model-retry.js +1 -1
- package/dist/model.js +101 -101
- 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 +91 -91
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +148 -148
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +99 -99
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +84 -84
- package/dist/plugin/agent.js +83 -83
- package/dist/plugin/command.js +111 -111
- package/dist/plugin/goal.js +3 -3
- 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 +349 -349
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +108 -108
- package/dist/plugin/module.js +126 -126
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +141 -141
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +102 -102
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +124 -124
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/configured.js +120 -120
- package/dist/plugin/provider/credential-settings.js +83 -83
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +104 -104
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +106 -106
- package/dist/plugin/provider/gitlab.js +105 -105
- package/dist/plugin/provider/google-vertex.js +121 -121
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +87 -87
- package/dist/plugin/provider/lmstudio.js +133 -133
- package/dist/plugin/provider/local.js +130 -130
- package/dist/plugin/provider/modal.js +103 -103
- 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 +101 -101
- package/dist/plugin/provider/openai.js +124 -124
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +102 -102
- package/dist/plugin/provider/poe.js +88 -88
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +102 -102
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +123 -123
- package/dist/plugin/provider/vllm.js +133 -133
- package/dist/plugin/provider/xai.js +102 -102
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -175
- package/dist/plugin/sdk.js +83 -83
- 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 +365 -365
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +97 -97
- package/dist/plugin/vcs/hg.js +97 -97
- package/dist/plugin/verbosity.js +104 -104
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- 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 +233 -233
- 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 +101 -101
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +107 -107
- package/dist/reference/instructions.js +99 -99
- package/dist/reference.js +97 -97
- package/dist/repository-cache.js +91 -91
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +104 -104
- package/dist/rpc.js +97 -97
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +230 -230
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +123 -123
- package/dist/session/command.js +83 -83
- package/dist/session/compaction.js +165 -165
- package/dist/session/context.js +189 -189
- package/dist/session/diff.js +99 -99
- 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 +232 -232
- package/dist/session/execution.js +157 -157
- package/dist/session/generate.js +193 -193
- package/dist/session/history.js +130 -130
- package/dist/session/inbox.js +141 -141
- 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 +135 -135
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +154 -154
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +157 -157
- package/dist/session/projector.js +137 -137
- package/dist/session/prompt.js +143 -143
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +133 -133
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +242 -242
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +111 -111
- package/dist/session/runner/publish-llm-event.js +144 -144
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +157 -157
- package/dist/session/runner/to-llm-message.js +131 -131
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +175 -175
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +144 -144
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +82 -82
- package/dist/session/store.js +136 -136
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +222 -222
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +193 -193
- package/dist/session/to-session-error.js +143 -143
- package/dist/session/transfer.js +230 -230
- package/dist/session/usage.js +1 -1
- package/dist/session.js +226 -226
- 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 +9 -9
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +146 -146
- package/dist/skill.js +145 -145
- package/dist/snapshot.js +104 -104
- 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 +162 -162
- package/dist/tool/plugin/edit.js +159 -159
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +163 -163
- package/dist/tool/plugin/grep.js +163 -163
- package/dist/tool/plugin/image-generate.js +230 -230
- package/dist/tool/plugin/mcp-resource.js +157 -157
- package/dist/tool/plugin/opencode.js +156 -156
- package/dist/tool/plugin/patch.js +161 -161
- package/dist/tool/plugin/question.js +139 -139
- package/dist/tool/plugin/read.js +164 -164
- package/dist/tool/plugin/schedule.js +222 -222
- package/dist/tool/plugin/shell.js +225 -225
- package/dist/tool/plugin/skill.js +150 -150
- package/dist/tool/plugin/subagent.js +229 -229
- package/dist/tool/plugin/todo.js +148 -148
- package/dist/tool/plugin/webfetch.js +150 -150
- package/dist/tool/plugin/websearch.js +146 -146
- package/dist/tool/plugin/write.js +161 -161
- 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 +16 -16
- package/dist/usage-limits.js +92 -92
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +103 -103
- package/dist/v1/config/permission.js +3 -3
- 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 +102 -102
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +96 -96
- package/dist/voice.js +95 -95
- package/dist/websearch.js +89 -89
- package/dist/wellknown/plugin.js +83 -83
- package/dist/wellknown.js +88 -88
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +89 -89
- 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 +100 -100
- package/dist/worktree.js +109 -109
- package/package.json +8 -8
- package/dist/chunks/model-resolver-qs8a0pvz.js +0 -535
- package/dist/chunks/model-resolver-rb7the7a.js +0 -257
- package/dist/chunks/model-resolver-s9kkzxe3.js +0 -26
- package/dist/chunks/model-resolver-z7bdqmx5.js +0 -18
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → form-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → form-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → form-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → form-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kah00gy.js → form-1kah00gy.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → form-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → form-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2bv980vf.js → form-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → form-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → form-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → form-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → form-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → form-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → form-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → form-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → form-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → form-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → form-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → form-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-5w3e23ze.js → form-5w3e23ze.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → form-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → form-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → form-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → form-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-7stb81gk.js → form-7stb81gk.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → form-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-84wd9syh.js → form-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → form-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → form-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → form-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → form-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → form-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a058387c.js → form-a058387c.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → form-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → form-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → form-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → form-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → form-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-beh6qq61.js → form-beh6qq61.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → form-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → form-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → form-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cqv5kn06.js → form-cqv5kn06.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → form-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → form-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → form-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → form-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → form-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → form-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → form-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → form-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → form-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → form-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → form-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → form-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → form-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → form-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → form-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → form-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-fkpq3x5p.js → form-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → form-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → form-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → form-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → form-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hcxmzztb.js → form-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → form-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → form-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → form-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → form-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → form-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → form-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jwr30sdr.js → form-jwr30sdr.js} +0 -0
- /package/dist/chunks/{model-resolver-jze0r7bz.js → form-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → form-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-m18g726c.js → form-m18g726c.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → form-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → form-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → form-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → form-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-ncqqe42p.js → form-ncqqe42p.js} +0 -0
- /package/dist/chunks/{model-resolver-nh4v3znn.js → form-nh4v3znn.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → form-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-p71gwv9c.js → form-p71gwv9c.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → form-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → form-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → form-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → form-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → form-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → form-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qgfkghh1.js → form-qgfkghh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → form-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → form-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → form-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → form-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-ty7weeps.js → form-ty7weeps.js} +0 -0
- /package/dist/chunks/{model-resolver-ve7vex1e.js → form-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → form-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → form-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → form-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → form-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → form-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → form-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → form-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → form-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → form-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → form-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → form-z9919s4g.js} +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref3,
|
|
3
3
|
Service78
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./form-a97jh5ay.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service69
|
|
7
|
+
} from "./form-eydhdpnx.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./form-hpg1pkwy.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service75
|
|
13
|
+
} from "./form-cegg4nag.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessage2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./form-gftt206x.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service66
|
|
19
|
+
} from "./form-zf08ma9p.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service21
|
|
22
|
+
} from "./form-1ehhk9f8.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service22
|
|
25
|
+
} from "./form-8pyh3h24.js";
|
|
26
26
|
import {
|
|
27
27
|
text3
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./form-25h84942.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service61
|
|
31
|
+
} from "./form-6wmf2q20.js";
|
|
32
32
|
import {
|
|
33
33
|
detect2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./form-4pyp9zr9.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
36
|
+
Service25
|
|
37
|
+
} from "./form-80d2zcb4.js";
|
|
38
38
|
import {
|
|
39
39
|
collectBoundedResponseBody2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./form-3v8g72cx.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./form-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/tool/plugin/image-generate.ts
|
|
46
46
|
var exports_image_generate = {};
|
|
47
47
|
__export(exports_image_generate, {
|
|
48
48
|
ImageGenerateTool: () => exports_image_generate,
|
|
49
|
-
Input: () =>
|
|
49
|
+
Input: () => Input8,
|
|
50
50
|
MAX_INPUT_BYTES: () => MAX_INPUT_BYTES2,
|
|
51
|
-
Output: () =>
|
|
52
|
-
Plugin: () =>
|
|
51
|
+
Output: () => Output6,
|
|
52
|
+
Plugin: () => Plugin44,
|
|
53
53
|
defaultModel: () => defaultModel2,
|
|
54
54
|
description: () => description5,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name8
|
|
56
56
|
});
|
|
57
57
|
import path from "path";
|
|
58
58
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
@@ -60,7 +60,7 @@ import { Identifier } from "@opencode/schema/identifier";
|
|
|
60
60
|
import { Global } from "@opencode/util/global";
|
|
61
61
|
import { Duration, Effect, Schema, Scope, Stream } from "effect";
|
|
62
62
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
63
|
-
var
|
|
63
|
+
var name8 = "image_generate";
|
|
64
64
|
var MAX_INPUT_BYTES2 = 20 * 1024 * 1024;
|
|
65
65
|
var DOWNLOAD_TIMEOUT = Duration.seconds(30);
|
|
66
66
|
var GENERATE_TIMEOUT = Duration.minutes(30);
|
|
@@ -80,7 +80,7 @@ var description5 = [
|
|
|
80
80
|
"Don't repeat a request unless the user asks."
|
|
81
81
|
].join(`
|
|
82
82
|
`);
|
|
83
|
-
var
|
|
83
|
+
var Input8 = Schema.Struct({
|
|
84
84
|
prompt: Schema.String.check(Schema.isMinLength(1)).annotate({
|
|
85
85
|
description: "What to create, or for edits, what to change. Be specific about subject, style, composition and any text that should appear in the image."
|
|
86
86
|
}),
|
|
@@ -94,25 +94,25 @@ var Input12 = Schema.Struct({
|
|
|
94
94
|
description: "Where to save the image, relative to the session directory or absolute. The extension is replaced with the image's real format, and an existing file is overwritten. Defaults to a new file in the session's temp folder."
|
|
95
95
|
})
|
|
96
96
|
});
|
|
97
|
-
var
|
|
97
|
+
var Output6 = Schema.Struct({
|
|
98
98
|
id: Schema.String.annotate({ description: "The image job's ID, repeated in its completion notice" }),
|
|
99
99
|
path: Schema.String.annotate({ description: "Where the image is saved, without its extension" }),
|
|
100
100
|
model: Schema.String.annotate({ description: "providerID/modelID" })
|
|
101
101
|
});
|
|
102
|
-
var
|
|
102
|
+
var Plugin44 = {
|
|
103
103
|
id: "opencode.tool.image-generate",
|
|
104
104
|
effect: Effect.fn("ImageGenerateTool.Plugin")(function* (ctx) {
|
|
105
|
-
const access = yield*
|
|
106
|
-
const environment = yield*
|
|
107
|
-
const generate = yield*
|
|
105
|
+
const access = yield* Service21;
|
|
106
|
+
const environment = yield* Service75;
|
|
107
|
+
const generate = yield* Service22;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
109
|
const http = yield* HttpClient.HttpClient;
|
|
110
|
-
const config = yield*
|
|
111
|
-
const jobs = yield*
|
|
110
|
+
const config = yield* Service69;
|
|
111
|
+
const jobs = yield* Service61;
|
|
112
112
|
const scope = yield* Scope.Scope;
|
|
113
|
-
const sessions = yield*
|
|
113
|
+
const sessions = yield* Service25;
|
|
114
114
|
const models = yield* Service78;
|
|
115
|
-
const permission = yield*
|
|
115
|
+
const permission = yield* Service66;
|
|
116
116
|
const resolveModel = Effect.fn("ImageGenerateTool.resolveModel")(function* (input, sessionID, images) {
|
|
117
117
|
const available = yield* models.available(["image"]);
|
|
118
118
|
if (!input) {
|
|
@@ -193,7 +193,7 @@ var Plugin49 = {
|
|
|
193
193
|
state: info.status,
|
|
194
194
|
body: info.status === "completed" ? info.output ?? "" : info.status === "error" ? info.error ?? `Image request failed for ${input.file}.` : `Image request for ${input.file} was cancelled.`
|
|
195
195
|
}),
|
|
196
|
-
metadata: { source:
|
|
196
|
+
metadata: { source: name8, jobID: input.id, state: info.status, path: input.file }
|
|
197
197
|
});
|
|
198
198
|
yield* jobs.completeBackground(input.notificationID);
|
|
199
199
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
@@ -212,11 +212,11 @@ var Plugin49 = {
|
|
|
212
212
|
if (!enabled || !optedIn(loaded.entries))
|
|
213
213
|
return;
|
|
214
214
|
editor.add({
|
|
215
|
-
name:
|
|
215
|
+
name: name8,
|
|
216
216
|
options: { codemode: false },
|
|
217
217
|
description: description5,
|
|
218
|
-
input:
|
|
219
|
-
output:
|
|
218
|
+
input: Input8,
|
|
219
|
+
output: Output6,
|
|
220
220
|
execute: (input, context) => Effect.gen(function* () {
|
|
221
221
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
222
222
|
const resolved = yield* resolveModel(input.model, context.sessionID, input.images !== undefined);
|
|
@@ -226,7 +226,7 @@ var Plugin49 = {
|
|
|
226
226
|
const target = input.path ? yield* access.resolve({ path: input.path, kind: "file" }) : undefined;
|
|
227
227
|
const stem = target ? target.absolute.slice(0, target.absolute.length - path.extname(target.absolute).length) : path.join(global.tmp, "images", context.sessionID, `image_${Identifier.create(false)}`);
|
|
228
228
|
yield* permission.assert({
|
|
229
|
-
action:
|
|
229
|
+
action: name8,
|
|
230
230
|
resources: [ref],
|
|
231
231
|
save: ["*"],
|
|
232
232
|
metadata: { ...input, model: ref },
|
|
@@ -294,7 +294,7 @@ Use the read tool on this path to view the image.`;
|
|
|
294
294
|
yield* jobs.start({
|
|
295
295
|
id,
|
|
296
296
|
notificationID,
|
|
297
|
-
type:
|
|
297
|
+
type: name8,
|
|
298
298
|
title: input.prompt,
|
|
299
299
|
metadata: { sessionID: context.sessionID, path: stem, model: ref },
|
|
300
300
|
recovery: { kind: "image", sessionID: context.sessionID, path: stem, model: ref },
|
|
@@ -337,4 +337,4 @@ function acceptsImages(model) {
|
|
|
337
337
|
return model.capabilities.input.some((item) => item.startsWith("image"));
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
export {
|
|
340
|
+
export { name8, MAX_INPUT_BYTES2, description5, Input8, Output6, Plugin44, defaultModel2, exports_image_generate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-dmb95mhx.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make5 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make3 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make5();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make5, LMStudioPlugin2 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./form-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./form-8jztxfpf.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_TOTAL_PATCH_BYTES2,
|
|
10
10
|
emptyPatch2,
|
|
11
11
|
chunksByFile2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./form-rb9dy4dg.js";
|
|
13
13
|
import {
|
|
14
14
|
gitExecutable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./form-sa3fpqfw.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./form-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/git.ts
|
|
21
21
|
var exports_git3 = {};
|
|
@@ -24,11 +24,11 @@ __export(exports_git3, {
|
|
|
24
24
|
Git: () => exports_git3,
|
|
25
25
|
OperationError: () => OperationError3,
|
|
26
26
|
Repository: () => Repository2,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service82,
|
|
28
28
|
TreeID: () => TreeID2,
|
|
29
29
|
Worktree: () => Worktree2,
|
|
30
30
|
WorktreeError: () => WorktreeError2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node86
|
|
32
32
|
});
|
|
33
33
|
import os from "os";
|
|
34
34
|
import path from "path";
|
|
@@ -109,9 +109,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
109
109
|
}) {
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
class
|
|
112
|
+
class Service82 extends Context.Service()("@opencode/Git") {
|
|
113
113
|
}
|
|
114
|
-
var layer = Layer.effect(
|
|
114
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
115
115
|
const fs = yield* FSUtil.Service;
|
|
116
116
|
const proc = yield* AppProcess.Service;
|
|
117
117
|
const locks = makeUnsafe2();
|
|
@@ -834,7 +834,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
|
|
|
834
834
|
kind: index === 0 ? "main" : "linked"
|
|
835
835
|
}));
|
|
836
836
|
});
|
|
837
|
-
return
|
|
837
|
+
return Service82.of({
|
|
838
838
|
repo: { discover, fingerprint, clone, create },
|
|
839
839
|
remote: { get: remote },
|
|
840
840
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -851,7 +851,7 @@ var layer = Layer.effect(Service85, Effect.gen(function* () {
|
|
|
851
851
|
objects: { pack: packObjects }
|
|
852
852
|
});
|
|
853
853
|
}));
|
|
854
|
-
var
|
|
854
|
+
var node86 = makeGlobalNode({ service: Service82, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
855
855
|
function run(cwd, proc, args) {
|
|
856
856
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
857
857
|
}
|
|
@@ -918,4 +918,4 @@ function resolvePath(cwd, value) {
|
|
|
918
918
|
return path.resolve(cwd, normalized);
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
export { Repository2, TreeID2, OperationError3, CommandError2, Worktree2, WorktreeError2,
|
|
921
|
+
export { Repository2, TreeID2, OperationError3, CommandError2, Worktree2, WorktreeError2, Service82, node86, exports_git3 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-ywk1qbwj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID18,
|
|
6
6
|
Event19,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service84
|
|
8
|
+
} from "./form-xwhcj832.js";
|
|
9
9
|
import {
|
|
10
10
|
ID14
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./form-yykjbrqt.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./form-qnf47mt5.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* Service84;
|
|
47
47
|
const bus = yield* Service86;
|
|
48
48
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
49
49
|
return;
|
|
@@ -68,7 +68,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
68
68
|
]));
|
|
69
69
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
70
70
|
const connection = yield* ctx.integration.connection.active(ID14.googleVertex);
|
|
71
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
71
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID18.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 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./form-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service4,
|
|
13
|
+
node: () => node5
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service4 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service4.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node5 = makeLocationNode({ service: Service4, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service4, node5, exports_location_watcher_policy };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error5,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
13
|
make: () => make22,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node80,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error5 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node80 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make22, RegistryService2, registry2, registryNode2, node80, exports_driver };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveModel2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./form-agqd6nxz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./form-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/identity.ts
|
|
9
9
|
var exports_identity = {};
|
|
10
10
|
__export(exports_identity, {
|
|
11
11
|
IdentityPlugin: () => exports_identity,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin34,
|
|
13
13
|
identity: () => identity2
|
|
14
14
|
});
|
|
15
15
|
import { SystemPart } from "@opencode/ai/effect";
|
|
@@ -24,7 +24,7 @@ function identity2(model) {
|
|
|
24
24
|
].join(`
|
|
25
25
|
`);
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Plugin34 = define({
|
|
28
28
|
id: "opencode.prompt.identity",
|
|
29
29
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
30
30
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -37,4 +37,4 @@ var Plugin31 = define({
|
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
export { identity2,
|
|
40
|
+
export { identity2, Plugin34, exports_identity };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service70
|
|
3
|
+
} from "./form-mdmwbg8j.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service69
|
|
6
|
+
} from "./form-eydhdpnx.js";
|
|
7
7
|
import {
|
|
8
8
|
parse2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./form-1rp9wec1.js";
|
|
10
10
|
import {
|
|
11
11
|
ignore2,
|
|
12
12
|
scan2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./form-nah043kf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./form-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/config/plugin/compatibility.ts
|
|
19
19
|
var exports_compatibility = {};
|
|
20
20
|
__export(exports_compatibility, {
|
|
21
21
|
ConfigCompatibilityPlugin: () => exports_compatibility,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin8
|
|
23
23
|
});
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
25
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
26
26
|
import path from "path";
|
|
27
27
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
28
|
-
var
|
|
28
|
+
var Plugin8 = define({
|
|
29
29
|
id: "opencode.config.compatibility",
|
|
30
30
|
effect: Effect.fn(function* (ctx) {
|
|
31
|
-
const config = yield*
|
|
31
|
+
const config = yield* Service69;
|
|
32
32
|
const fs = yield* FSUtil.Service;
|
|
33
|
-
const watcher = yield*
|
|
33
|
+
const watcher = yield* Service70;
|
|
34
34
|
const watches = yield* FiberMap.make();
|
|
35
35
|
const changes = yield* PubSub.sliding(1);
|
|
36
36
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -81,4 +81,4 @@ function isCompatibilitySource(roots, file) {
|
|
|
81
81
|
return sourceDirectories.some((name) => path.basename(file) === name) || [...roots.claude, ...roots.agents].some((root) => FSUtil.contains(root, file));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export {
|
|
84
|
+
export { Plugin8, exports_compatibility };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service39
|
|
3
|
+
} from "./form-yp23a5z4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service57
|
|
6
|
+
} from "./form-ka01146j.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./form-6zjm2phc.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./form-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,10 +19,10 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
22
|
+
const instances = yield* Service57;
|
|
23
23
|
yield* Effect.gen(function* () {
|
|
24
24
|
yield* awaitActivation2;
|
|
25
|
-
const commands = yield*
|
|
25
|
+
const commands = yield* Service39;
|
|
26
26
|
yield* commands.execute({
|
|
27
27
|
name: input.command,
|
|
28
28
|
invocation: {
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./form-2zxqqy9n.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./form-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./form-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
NotFoundError: () =>
|
|
16
|
+
ID: () => ID9,
|
|
17
|
+
Info: () => Info14,
|
|
18
|
+
NotFoundError: () => NotFoundError10,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service67,
|
|
21
|
+
node: () => node70
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { isSqlError } from "effect/sql/SqlError";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID9 = PermissionSaved.ID;
|
|
29
|
+
var Info14 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
32
|
-
id:
|
|
31
|
+
class NotFoundError10 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
|
+
id: ID9
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
37
|
-
id:
|
|
37
|
+
id: ID9,
|
|
38
38
|
action: Schema.String,
|
|
39
39
|
resource: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service67 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
46
46
|
const db = (yield* Service87).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
52
52
|
if (!input.resources.length)
|
|
53
53
|
return;
|
|
54
54
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
55
|
-
id:
|
|
55
|
+
id: ID9.create(),
|
|
56
56
|
project_id: input.projectID,
|
|
57
57
|
action: input.action,
|
|
58
58
|
resource
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
61
61
|
const update = Effect.fn("PermissionSaved.update")(function* (input) {
|
|
62
62
|
const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
|
|
63
63
|
if (!current)
|
|
64
|
-
return yield* new
|
|
64
|
+
return yield* new NotFoundError10({ id: input.id });
|
|
65
65
|
const action = input.action ?? current.action;
|
|
66
66
|
const resource = input.resource ?? current.resource;
|
|
67
67
|
const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
|
|
68
68
|
if (!updated)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError10({ id: input.id });
|
|
70
70
|
return info(updated);
|
|
71
71
|
});
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service67.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node70 = makeGlobalNode({ service: Service67, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { ID9, Info14, NotFoundError10, ConflictError2, Service67, node70, exports_saved };
|