@opencode/core 0.0.0-dev-70 → 0.0.0-dev-75
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 +89 -89
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{usage-limits-w2kjqv84.js → location-services-020zpnm4.js} +2 -2
- package/dist/chunks/{usage-limits-034tev2y.js → location-services-034tev2y.js} +2 -2
- package/dist/chunks/{usage-limits-ety99mph.js → location-services-06qvkc6e.js} +14 -14
- package/dist/chunks/{usage-limits-cb54j1zr.js → location-services-0eq01nmm.js} +9 -9
- package/dist/chunks/{usage-limits-aksnr6dh.js → location-services-0h8fm2ww.js} +18 -18
- package/dist/chunks/{usage-limits-zbkb7r2x.js → location-services-10698rvb.js} +25 -25
- package/dist/chunks/{usage-limits-x8nvjgx0.js → location-services-11hfp36g.js} +4 -4
- package/dist/chunks/{usage-limits-kagxkfz2.js → location-services-123t004t.js} +28 -28
- package/dist/chunks/{usage-limits-rhf62axg.js → location-services-17z6k6fn.js} +12 -12
- package/dist/chunks/{usage-limits-jvsyf4b3.js → location-services-189c2z7w.js} +20 -20
- package/dist/chunks/{usage-limits-dsz7xbts.js → location-services-1c8tzkk0.js} +46 -46
- package/dist/chunks/{usage-limits-9j3r59h4.js → location-services-1dx49z0n.js} +9 -9
- package/dist/chunks/{usage-limits-1ep2p91f.js → location-services-1ep2p91f.js} +2 -2
- package/dist/chunks/{usage-limits-7vafrntb.js → location-services-1h8sxmja.js} +11 -11
- package/dist/chunks/{usage-limits-pb2rct2b.js → location-services-1rs2921g.js} +20 -20
- package/dist/chunks/{usage-limits-1x2knyw4.js → location-services-1x2knyw4.js} +1 -1
- package/dist/chunks/{usage-limits-b3t6hfc1.js → location-services-1z1y3x2j.js} +5 -5
- package/dist/chunks/{usage-limits-204s3925.js → location-services-204s3925.js} +1 -1
- package/dist/chunks/{usage-limits-gw72g5rd.js → location-services-23vb62x2.js} +52 -52
- package/dist/chunks/{usage-limits-v1thstnx.js → location-services-24tsn34s.js} +21 -21
- package/dist/chunks/{usage-limits-zweene6d.js → location-services-2b9k209b.js} +16 -16
- package/dist/chunks/{usage-limits-9vpabdem.js → location-services-2czdh2k0.js} +11 -11
- package/dist/chunks/{usage-limits-8qvrfxnx.js → location-services-2fngxkhk.js} +26 -26
- package/dist/chunks/{usage-limits-7vfaawec.js → location-services-2qje8jvz.js} +15 -15
- package/dist/chunks/{usage-limits-fahhp9re.js → location-services-2rb4wbj4.js} +4 -4
- package/dist/chunks/{usage-limits-qtks3bwj.js → location-services-2xw6dmz5.js} +18 -18
- package/dist/chunks/{usage-limits-zmwx25fz.js → location-services-331p6xjh.js} +2 -2
- package/dist/chunks/{usage-limits-xywbwddt.js → location-services-3f6yms39.js} +23 -23
- package/dist/chunks/{usage-limits-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{usage-limits-3j1m3tq4.js → location-services-3j1m3tq4.js} +2 -2
- package/dist/chunks/{usage-limits-0bb4mtzd.js → location-services-3jhf9wm6.js} +41 -41
- package/dist/chunks/{usage-limits-3nnrz6f6.js → location-services-3nnrz6f6.js} +1 -1
- package/dist/chunks/{usage-limits-q4cdx3an.js → location-services-3tv0ny9f.js} +47 -47
- package/dist/chunks/{usage-limits-0cf3qb1d.js → location-services-47m4w8nw.js} +15 -15
- package/dist/chunks/{usage-limits-bh1et42v.js → location-services-4j7592es.js} +6 -6
- package/dist/chunks/{usage-limits-j84x0xy0.js → location-services-4ky4c703.js} +22 -22
- package/dist/chunks/{usage-limits-4pyp9zr9.js → location-services-4pyp9zr9.js} +1 -1
- package/dist/chunks/{usage-limits-4v008n1t.js → location-services-4v008n1t.js} +1 -1
- package/dist/chunks/{usage-limits-8nmxnxpt.js → location-services-4v34atpz.js} +16 -16
- package/dist/chunks/{usage-limits-5h1f88xp.js → location-services-5hqsswq2.js} +12 -12
- package/dist/chunks/{usage-limits-wqp5dnfd.js → location-services-5j8pr5g9.js} +10 -10
- package/dist/chunks/{usage-limits-vhjvjnd9.js → location-services-5m3p3r5s.js} +29 -29
- package/dist/chunks/{usage-limits-5m9w47nd.js → location-services-5m9w47nd.js} +1 -1
- package/dist/chunks/{usage-limits-cwzdksg6.js → location-services-5vms8twd.js} +32 -32
- package/dist/chunks/{usage-limits-06x5j3v9.js → location-services-616zqkce.js} +13 -13
- package/dist/chunks/{usage-limits-6esdw8yj.js → location-services-6esdw8yj.js} +1 -1
- package/dist/chunks/{usage-limits-js09a8a4.js → location-services-6h2pa11h.js} +15 -15
- package/dist/chunks/{usage-limits-f46hmq5v.js → location-services-6mdzwzg7.js} +4 -4
- package/dist/chunks/{usage-limits-mj7yjr2g.js → location-services-6pgz6wzq.js} +35 -35
- package/dist/chunks/{usage-limits-2vtmagdy.js → location-services-6v72x2ed.js} +11 -11
- package/dist/chunks/{usage-limits-2250626v.js → location-services-6xqtwe1r.js} +15 -15
- package/dist/chunks/{usage-limits-13j1gyyz.js → location-services-70jyngdv.js} +6 -6
- package/dist/chunks/{usage-limits-w11nh16z.js → location-services-75qg15m1.js} +20 -20
- package/dist/chunks/{usage-limits-770pw0s1.js → location-services-770pw0s1.js} +1 -1
- package/dist/chunks/{usage-limits-zebz0vxm.js → location-services-776exhek.js} +85 -85
- package/dist/chunks/{usage-limits-m0c6s6tz.js → location-services-7av4j0s6.js} +19 -19
- package/dist/chunks/{usage-limits-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{usage-limits-h04a6mba.js → location-services-7efvqzhd.js} +18 -18
- package/dist/chunks/location-services-7g1sw78h.js +224 -0
- package/dist/chunks/{usage-limits-7sdtxe0n.js → location-services-7sdtxe0n.js} +2 -2
- package/dist/chunks/{usage-limits-shhvmp99.js → location-services-7vzj9awm.js} +5 -5
- package/dist/chunks/{usage-limits-7w2ypzdf.js → location-services-7w2ypzdf.js} +1 -1
- package/dist/chunks/{usage-limits-s2p21v8b.js → location-services-7wj339t1.js} +14 -14
- package/dist/chunks/{usage-limits-nw38f88x.js → location-services-866wf2vs.js} +8 -8
- package/dist/chunks/{usage-limits-dw7w55f6.js → location-services-891xbxsq.js} +14 -14
- package/dist/chunks/{usage-limits-dcz5q70b.js → location-services-8jry49zj.js} +3 -3
- package/dist/chunks/{usage-limits-19xpstvy.js → location-services-8kvtxzpx.js} +10 -10
- package/dist/chunks/{usage-limits-3satg4qm.js → location-services-8rg72s59.js} +13 -13
- package/dist/chunks/{usage-limits-w5meh1vk.js → location-services-8wawps64.js} +5 -5
- package/dist/chunks/{usage-limits-8wtp7s3z.js → location-services-8wtp7s3z.js} +1 -1
- package/dist/chunks/{usage-limits-vrcsa8qx.js → location-services-8x9y3wj0.js} +9 -9
- package/dist/chunks/{usage-limits-90zstvax.js → location-services-90zstvax.js} +1 -1
- package/dist/chunks/{usage-limits-pv9367se.js → location-services-91c7zjyq.js} +8 -8
- package/dist/chunks/{usage-limits-hhw78a7m.js → location-services-9437wt4d.js} +5 -5
- package/dist/chunks/{usage-limits-gsp20hk1.js → location-services-97wtqrge.js} +11 -11
- package/dist/chunks/location-services-9aqem1v4.js +257 -0
- package/dist/chunks/{usage-limits-gxjy5xbg.js → location-services-9gx11wxw.js} +4 -4
- package/dist/chunks/{usage-limits-p580ev26.js → location-services-9nkjg9qd.js} +6 -6
- package/dist/chunks/location-services-9p9wbndj.js +26 -0
- package/dist/chunks/{usage-limits-b0snh2yy.js → location-services-9whep7e0.js} +5 -5
- package/dist/chunks/{usage-limits-8tzh5xhm.js → location-services-a33a86vx.js} +47 -47
- package/dist/chunks/location-services-a610t88q.js +18 -0
- package/dist/chunks/{usage-limits-as3mfafy.js → location-services-agwgn61j.js} +16 -16
- package/dist/chunks/{usage-limits-ge02ssgj.js → location-services-ah09kpwr.js} +16 -16
- package/dist/chunks/{usage-limits-0ge7qw4j.js → location-services-ap5257e6.js} +17 -17
- package/dist/chunks/{usage-limits-mrns0e6x.js → location-services-arv3g562.js} +4 -4
- package/dist/chunks/{usage-limits-ayjs7tqn.js → location-services-ayjs7tqn.js} +2 -2
- package/dist/chunks/{usage-limits-06ezgrzy.js → location-services-b1xakg4t.js} +8 -8
- package/dist/chunks/{usage-limits-b6vsg801.js → location-services-b6vsg801.js} +2 -2
- package/dist/chunks/{usage-limits-my4zabxr.js → location-services-ba07h9gm.js} +3 -3
- package/dist/chunks/{usage-limits-n1fzseg3.js → location-services-bdphs8ne.js} +82 -82
- package/dist/chunks/{usage-limits-vgycp8t5.js → location-services-bfg3b742.js} +13 -13
- package/dist/chunks/{usage-limits-qz087kyw.js → location-services-bgg6fpfq.js} +8 -8
- package/dist/chunks/{usage-limits-bstexjd6.js → location-services-bstexjd6.js} +1 -1
- package/dist/chunks/{usage-limits-9hsg88rw.js → location-services-c1zy16x8.js} +10 -10
- package/dist/chunks/{usage-limits-rdt1yync.js → location-services-cdev0qw6.js} +2 -2
- package/dist/chunks/{usage-limits-6h925atx.js → location-services-ct6n0aec.js} +30 -30
- package/dist/chunks/{usage-limits-y8e37kep.js → location-services-cwmfzxax.js} +21 -21
- package/dist/chunks/{usage-limits-cwrgdav8.js → location-services-cwrgdav8.js} +2 -2
- package/dist/chunks/{usage-limits-zympt6nt.js → location-services-cy5ef8hm.js} +11 -11
- package/dist/chunks/{usage-limits-w8egg4wb.js → location-services-d00ag3b5.js} +5 -5
- package/dist/chunks/{usage-limits-bxvxsyd1.js → location-services-d1mr7tcc.js} +5 -5
- package/dist/chunks/{usage-limits-zba5tm1j.js → location-services-d1v2vbzt.js} +4 -4
- package/dist/chunks/{usage-limits-ssfehs1z.js → location-services-d2887f8n.js} +4 -4
- package/dist/chunks/{usage-limits-mfbcmhq0.js → location-services-d3ajd33x.js} +27 -27
- package/dist/chunks/{usage-limits-d4v9tmah.js → location-services-d4v9tmah.js} +2 -2
- package/dist/chunks/{usage-limits-ch2c3pcq.js → location-services-d95c94hx.js} +36 -36
- package/dist/chunks/{usage-limits-g1rb9a0a.js → location-services-dhs69mq4.js} +23 -23
- package/dist/chunks/{usage-limits-1bfdjpda.js → location-services-dmssmyv3.js} +8 -8
- package/dist/chunks/{usage-limits-dt77769w.js → location-services-dt77769w.js} +1 -1
- package/dist/chunks/{usage-limits-r5as2gek.js → location-services-dtdkt915.js} +4 -4
- package/dist/chunks/{usage-limits-7zxkwed9.js → location-services-dvxg9xas.js} +16 -16
- package/dist/chunks/{usage-limits-snb901t2.js → location-services-e07q2w5p.js} +4 -4
- package/dist/chunks/{usage-limits-zervchyf.js → location-services-e6ma8sks.js} +6 -6
- package/dist/chunks/{usage-limits-8q6dc6x3.js → location-services-e6ytsf2b.js} +11 -11
- package/dist/chunks/{usage-limits-e834z07m.js → location-services-e834z07m.js} +1 -1
- package/dist/chunks/{usage-limits-k99fe09b.js → location-services-e884at7j.js} +5 -5
- package/dist/chunks/{usage-limits-k8wsz496.js → location-services-edmv2p4j.js} +54 -54
- package/dist/chunks/{usage-limits-63wjmrmh.js → location-services-ehz01n6z.js} +11 -11
- package/dist/chunks/{usage-limits-75jy3yfa.js → location-services-ekas1cck.js} +4 -4
- package/dist/chunks/{usage-limits-f9hn68yc.js → location-services-evf857tp.js} +6 -6
- package/dist/chunks/{usage-limits-d83ky4yz.js → location-services-f09z3f4w.js} +17 -17
- package/dist/chunks/{usage-limits-kx1md14a.js → location-services-fb3jk243.js} +18 -18
- package/dist/chunks/{usage-limits-fffv3p7h.js → location-services-fffv3p7h.js} +1 -1
- package/dist/chunks/{usage-limits-txcap7gk.js → location-services-fqpk86s2.js} +7 -7
- package/dist/chunks/{usage-limits-smjdpk56.js → location-services-g05b3k58.js} +43 -43
- package/dist/chunks/{usage-limits-40akqw83.js → location-services-g208md38.js} +5 -5
- package/dist/chunks/{usage-limits-32hdwgrf.js → location-services-g219a0kq.js} +23 -23
- package/dist/chunks/{usage-limits-gg8p9cgs.js → location-services-gg8p9cgs.js} +3 -3
- package/dist/chunks/{usage-limits-rafkt0z2.js → location-services-ghh93d0s.js} +8 -8
- package/dist/chunks/{usage-limits-ybzz5s2a.js → location-services-gy2j584d.js} +17 -17
- package/dist/chunks/{usage-limits-m7npqwrv.js → location-services-h0bc8af7.js} +18 -18
- package/dist/chunks/{usage-limits-ap6zazkg.js → location-services-h59wt0w5.js} +3 -3
- package/dist/chunks/{usage-limits-hdfrs5mg.js → location-services-hdfrs5mg.js} +2 -2
- package/dist/chunks/{usage-limits-a2kck2qj.js → location-services-hk9sbkrn.js} +36 -36
- package/dist/chunks/{usage-limits-hpg1pkwy.js → location-services-hpg1pkwy.js} +1 -1
- package/dist/chunks/{usage-limits-bv81hr7f.js → location-services-hs2sf5yj.js} +17 -17
- package/dist/chunks/{usage-limits-b5gyc1qt.js → location-services-hw7ke7j2.js} +35 -35
- package/dist/chunks/{usage-limits-91x1x3by.js → location-services-hxq68qpv.js} +16 -16
- package/dist/chunks/{usage-limits-b105tghx.js → location-services-j3hxx2c6.js} +30 -30
- package/dist/chunks/{usage-limits-rrqctmxv.js → location-services-j41s2q6a.js} +40 -40
- package/dist/chunks/{usage-limits-jfaecv01.js → location-services-jfaecv01.js} +1 -1
- package/dist/chunks/{usage-limits-786a3n23.js → location-services-jg7yw0kp.js} +16 -16
- package/dist/chunks/{usage-limits-hfzn2qcz.js → location-services-jtjptmzv.js} +9 -9
- package/dist/chunks/{usage-limits-jtnps1zs.js → location-services-jtnps1zs.js} +2 -2
- package/dist/chunks/{usage-limits-whe60mvx.js → location-services-jze27bva.js} +11 -11
- package/dist/chunks/{usage-limits-00r869yd.js → location-services-k7g3tdkn.js} +19 -19
- package/dist/chunks/{usage-limits-k814nvkf.js → location-services-k814nvkf.js} +1 -1
- package/dist/chunks/{usage-limits-3d32z0b5.js → location-services-k88b30qa.js} +5 -5
- package/dist/chunks/{usage-limits-sz3bvagv.js → location-services-kdsywe1g.js} +4 -4
- package/dist/chunks/{usage-limits-ehztmq8g.js → location-services-kesvm3k7.js} +8 -8
- package/dist/chunks/{usage-limits-e2v23dw8.js → location-services-kf7yd5ke.js} +32 -32
- package/dist/chunks/{usage-limits-8x7yjdeb.js → location-services-kjaj9yp1.js} +20 -20
- package/dist/chunks/{usage-limits-e5tgfjjc.js → location-services-krdv4tqx.js} +8 -8
- package/dist/chunks/{usage-limits-kt3bjfbg.js → location-services-kt3bjfbg.js} +1 -1
- package/dist/chunks/{usage-limits-9t0fkpz6.js → location-services-kzzr1kfy.js} +4 -4
- package/dist/chunks/{usage-limits-m1714858.js → location-services-m1714858.js} +1 -1
- package/dist/chunks/{usage-limits-ny2pcf7q.js → location-services-m45h31ff.js} +18 -18
- package/dist/chunks/{usage-limits-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{usage-limits-c4etfrww.js → location-services-mfr0p1x9.js} +11 -11
- package/dist/chunks/{usage-limits-kgxq6z42.js → location-services-mhcbn2s9.js} +6 -6
- package/dist/chunks/{usage-limits-99xv457n.js → location-services-mkr15vrz.js} +21 -21
- package/dist/chunks/{usage-limits-s7kyse9r.js → location-services-mmx1mfjr.js} +4 -4
- package/dist/chunks/{usage-limits-qkqjbc48.js → location-services-mqe7nf5n.js} +3 -3
- package/dist/chunks/{usage-limits-s9xyq0y3.js → location-services-mrng6hna.js} +16 -16
- package/dist/chunks/{usage-limits-4b10zywb.js → location-services-mvh1rx9p.js} +12 -12
- package/dist/chunks/{usage-limits-j8br37jf.js → location-services-mz1832ks.js} +15 -15
- package/dist/chunks/{usage-limits-gvgqw8vw.js → location-services-n8m0q05k.js} +7 -7
- package/dist/chunks/location-services-n8rtnxtw.js +517 -0
- package/dist/chunks/{usage-limits-b3scgw80.js → location-services-nbmqhqas.js} +26 -26
- package/dist/chunks/{usage-limits-av7r0xpy.js → location-services-ncmn4rz0.js} +28 -28
- package/dist/chunks/{usage-limits-7b0w3yex.js → location-services-ndb69tfa.js} +33 -33
- package/dist/chunks/{usage-limits-nm192nfe.js → location-services-ng098k0q.js} +24 -24
- package/dist/chunks/{usage-limits-nqdvj0z2.js → location-services-nk85174p.js} +34 -34
- package/dist/chunks/{usage-limits-3qx04rj6.js → location-services-nr97w2wj.js} +11 -11
- package/dist/chunks/{usage-limits-gp56a94q.js → location-services-nwvs9qq5.js} +13 -13
- package/dist/chunks/{usage-limits-ywm7vzgw.js → location-services-nym9wyb3.js} +6 -6
- package/dist/chunks/{usage-limits-p015t6z3.js → location-services-p015t6z3.js} +2 -2
- package/dist/chunks/{usage-limits-zrp243k2.js → location-services-p0a3b8hq.js} +25 -25
- package/dist/chunks/{usage-limits-vrbg4km8.js → location-services-p1fvmphk.js} +11 -11
- package/dist/chunks/{usage-limits-74mxhga0.js → location-services-p3bccnsq.js} +24 -24
- package/dist/chunks/{usage-limits-nf3nsvxh.js → location-services-pbbktnbz.js} +4 -4
- package/dist/chunks/{usage-limits-0n7bgjdx.js → location-services-pe5cp1q8.js} +18 -18
- package/dist/chunks/{usage-limits-w6zhfv8b.js → location-services-pfbg06sq.js} +59 -59
- package/dist/chunks/{usage-limits-8k57k3bn.js → location-services-pfswwbj2.js} +3 -3
- package/dist/chunks/{usage-limits-7g056v1e.js → location-services-pgd0patt.js} +28 -28
- package/dist/chunks/{usage-limits-yrkvt850.js → location-services-ph1jffse.js} +34 -34
- package/dist/chunks/{usage-limits-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{usage-limits-jpk5pzfk.js → location-services-pnqyn77n.js} +3 -3
- package/dist/chunks/{usage-limits-cew0p5np.js → location-services-ppf126py.js} +4 -4
- package/dist/chunks/{usage-limits-fg9p65nk.js → location-services-prq7xxp2.js} +6 -6
- package/dist/chunks/{usage-limits-8etj86g3.js → location-services-pwa1a8rs.js} +12 -12
- package/dist/chunks/{usage-limits-dtsc222h.js → location-services-pyk1f59v.js} +4 -4
- package/dist/chunks/{usage-limits-e0f2mwz6.js → location-services-q2merdcy.js} +115 -66
- package/dist/chunks/{usage-limits-esmvgmdv.js → location-services-q5wj7mv8.js} +19 -19
- package/dist/chunks/{usage-limits-5388d1ez.js → location-services-q8bjp0w9.js} +21 -21
- package/dist/chunks/{usage-limits-70kwrepz.js → location-services-q9y3y3qn.js} +29 -29
- package/dist/chunks/{usage-limits-tvet7cwg.js → location-services-qbhn9ys7.js} +10 -10
- package/dist/chunks/{usage-limits-cyv36v60.js → location-services-qfkfn7d5.js} +32 -32
- package/dist/chunks/{usage-limits-kd4chd64.js → location-services-qft8hb75.js} +4 -4
- package/dist/chunks/{usage-limits-cg685ae2.js → location-services-qn81gd5b.js} +8 -8
- package/dist/chunks/{usage-limits-edttvenx.js → location-services-qnz6w04z.js} +9 -9
- package/dist/chunks/{usage-limits-qp7r0hxv.js → location-services-qp7r0hxv.js} +1 -1
- package/dist/chunks/{usage-limits-1vbd3ct4.js → location-services-qsekswpw.js} +14 -14
- package/dist/chunks/{usage-limits-scg71y9j.js → location-services-qsvndp6j.js} +203 -197
- package/dist/chunks/{usage-limits-r0yr0wbs.js → location-services-r0yr0wbs.js} +1 -1
- package/dist/chunks/{usage-limits-bcg4scw3.js → location-services-r26r40ph.js} +12 -12
- package/dist/chunks/{usage-limits-r542h3bh.js → location-services-r542h3bh.js} +1 -1
- package/dist/chunks/{usage-limits-1ygfc7z1.js → location-services-r8a8jxpt.js} +11 -11
- package/dist/chunks/{usage-limits-btqfhcy7.js → location-services-r8nzqyhk.js} +12 -12
- package/dist/chunks/{usage-limits-rb9dy4dg.js → location-services-rb9dy4dg.js} +1 -1
- package/dist/chunks/{usage-limits-kmybc97f.js → location-services-rcvjkgve.js} +27 -27
- package/dist/chunks/{usage-limits-2wbaybnj.js → location-services-rfz97rvx.js} +10 -10
- package/dist/chunks/{usage-limits-d77k1mxa.js → location-services-rha71f46.js} +4 -4
- package/dist/chunks/{usage-limits-367w5d4y.js → location-services-rhg5jmsx.js} +23 -23
- package/dist/chunks/{usage-limits-yyfxd43e.js → location-services-rstsnj2j.js} +15 -15
- package/dist/chunks/{usage-limits-rt5dr6hb.js → location-services-rt5dr6hb.js} +1 -1
- package/dist/chunks/{usage-limits-y9z93sbb.js → location-services-rth2557w.js} +8 -8
- package/dist/chunks/{usage-limits-57e756py.js → location-services-rwnw28mr.js} +22 -22
- package/dist/chunks/{usage-limits-zkd2ntwy.js → location-services-rz9cdrn3.js} +29 -29
- package/dist/chunks/{usage-limits-1r6zs68c.js → location-services-s1q3ndg4.js} +11 -11
- package/dist/chunks/{usage-limits-sa3fpqfw.js → location-services-sa3fpqfw.js} +2 -2
- package/dist/chunks/{usage-limits-sqjzf8x2.js → location-services-sqjzf8x2.js} +1 -1
- package/dist/chunks/{usage-limits-svcy3p9a.js → location-services-svcy3p9a.js} +1 -1
- package/dist/chunks/{usage-limits-6y263vp8.js → location-services-szcgc7h4.js} +5 -5
- package/dist/chunks/{usage-limits-1e3bsmzs.js → location-services-t3wrh3sj.js} +32 -32
- package/dist/chunks/{usage-limits-tczq8hjw.js → location-services-tczq8hjw.js} +1 -1
- package/dist/chunks/{usage-limits-2syb7k54.js → location-services-td7x002b.js} +22 -22
- package/dist/chunks/{usage-limits-9mw2y3qc.js → location-services-tdx723hm.js} +1 -1
- package/dist/chunks/{usage-limits-7tpyp9vw.js → location-services-tqx9c315.js} +8 -8
- package/dist/chunks/{usage-limits-twssxy5n.js → location-services-twssxy5n.js} +2 -2
- package/dist/chunks/{usage-limits-8h3eyqr9.js → location-services-v1920fvr.js} +38 -38
- package/dist/chunks/{usage-limits-v2r1d0zg.js → location-services-v2r1d0zg.js} +1 -1
- package/dist/chunks/{usage-limits-vnwmzs4a.js → location-services-v6ghzfeb.js} +5 -5
- package/dist/chunks/{usage-limits-sxejvmn7.js → location-services-v8xpr2tt.js} +11 -11
- package/dist/chunks/{usage-limits-1yq9hg58.js → location-services-v9ez2kgh.js} +5 -5
- package/dist/chunks/{usage-limits-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{usage-limits-y07922sz.js → location-services-vj669030.js} +6 -6
- package/dist/chunks/{usage-limits-bsany5rs.js → location-services-vm24w91z.js} +9 -9
- package/dist/chunks/{usage-limits-xmdfq1wa.js → location-services-vpk136tn.js} +35 -35
- package/dist/chunks/{usage-limits-djjzzs3c.js → location-services-vzppetdn.js} +6 -6
- package/dist/chunks/{usage-limits-thgmw4ka.js → location-services-w06b5sd5.js} +39 -39
- package/dist/chunks/{usage-limits-zstc4kax.js → location-services-w074k2xe.js} +25 -25
- package/dist/chunks/{usage-limits-40za9wsf.js → location-services-w2eysc6j.js} +9 -9
- package/dist/chunks/{usage-limits-8rpj8j5d.js → location-services-w2ga2e0k.js} +27 -27
- package/dist/chunks/{usage-limits-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{usage-limits-76cb1hcw.js → location-services-w8qtt4th.js} +4 -4
- package/dist/chunks/{usage-limits-wakvkjy4.js → location-services-wakvkjy4.js} +1 -1
- package/dist/chunks/{usage-limits-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{usage-limits-3vgbrff8.js → location-services-wgsqw3r9.js} +41 -31
- package/dist/chunks/{usage-limits-4h11cdqv.js → location-services-wgvnftve.js} +8 -8
- package/dist/chunks/{usage-limits-9cx9sm2q.js → location-services-wnhgecwx.js} +34 -3
- package/dist/chunks/{usage-limits-w687dnns.js → location-services-wr3re1en.js} +4 -4
- package/dist/chunks/{usage-limits-4bge5fn5.js → location-services-wt7k060d.js} +19 -19
- package/dist/chunks/{usage-limits-059hwyma.js → location-services-wvv7736z.js} +22 -22
- package/dist/chunks/{usage-limits-8ctydw00.js → location-services-x48bv8h6.js} +5 -5
- package/dist/chunks/{usage-limits-b1q5yrpf.js → location-services-x82dhhxf.js} +4 -4
- package/dist/chunks/{usage-limits-g3ywshqd.js → location-services-x9c7wxgr.js} +26 -26
- package/dist/chunks/{usage-limits-dhf7nd60.js → location-services-x9jb8dde.js} +39 -39
- package/dist/chunks/{usage-limits-g45kgctv.js → location-services-xdas633g.js} +1 -1
- package/dist/chunks/{usage-limits-tqx1028s.js → location-services-xef9pswz.js} +16 -16
- package/dist/chunks/{usage-limits-axay07fs.js → location-services-xn4shan3.js} +9 -9
- package/dist/chunks/{usage-limits-xnh55p1t.js → location-services-xnh55p1t.js} +1 -1
- package/dist/chunks/{usage-limits-gtn9c16a.js → location-services-xt0z8zst.js} +4 -4
- package/dist/chunks/{usage-limits-gmkqvwcx.js → location-services-xw888kkr.js} +17 -17
- package/dist/chunks/{usage-limits-dkqneb2t.js → location-services-y2wrmdpy.js} +16 -16
- package/dist/chunks/{usage-limits-4pd4gjsb.js → location-services-y4q5gvzk.js} +13 -13
- package/dist/chunks/{usage-limits-yara3q77.js → location-services-yara3q77.js} +2 -2
- package/dist/chunks/{usage-limits-yb20nhc3.js → location-services-yb20nhc3.js} +1 -1
- package/dist/chunks/{usage-limits-wd34wntp.js → location-services-ycegergq.js} +27 -27
- package/dist/chunks/{usage-limits-z8tv1fw9.js → location-services-ydwqkrat.js} +1 -1
- package/dist/chunks/{usage-limits-q6ygxmey.js → location-services-yewtq9yt.js} +16 -16
- package/dist/chunks/{usage-limits-ex9nt9rj.js → location-services-yggeett8.js} +17 -17
- package/dist/chunks/{usage-limits-sxgesv0v.js → location-services-ygm5nzp7.js} +12 -12
- package/dist/chunks/{usage-limits-ajwh8a2m.js → location-services-yjw1qs8k.js} +25 -25
- package/dist/chunks/{usage-limits-aytgjwzw.js → location-services-yk5vm8dr.js} +13 -13
- package/dist/chunks/{usage-limits-p76me67c.js → location-services-yqveydy6.js} +4 -4
- package/dist/chunks/{usage-limits-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{usage-limits-z38nccrw.js → location-services-z38nccrw.js} +1 -1
- package/dist/chunks/{usage-limits-qvdrcrn5.js → location-services-z98eht19.js} +27 -27
- package/dist/chunks/{usage-limits-4ab74nqr.js → location-services-za7g5awc.js} +7 -7
- package/dist/chunks/{usage-limits-cdy86q22.js → location-services-za8t0eh5.js} +21 -21
- package/dist/chunks/{usage-limits-7ftegz34.js → location-services-zc22tp4z.js} +14 -14
- package/dist/chunks/{usage-limits-nkxegb0x.js → location-services-zfmjcdad.js} +35 -35
- package/dist/chunks/{usage-limits-zgd8t41s.js → location-services-zgd8t41s.js} +2 -2
- package/dist/chunks/{usage-limits-zgkm4kzm.js → location-services-zgkm4kzm.js} +3 -3
- package/dist/chunks/{usage-limits-26t6c0aa.js → location-services-zgmk89q5.js} +9 -9
- package/dist/chunks/{usage-limits-j391q72e.js → location-services-zmzyb0q8.js} +9 -9
- package/dist/chunks/{usage-limits-qdaz62qt.js → location-services-znwbrpr9.js} +20 -20
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +72 -72
- 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.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +93 -93
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +382 -382
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- 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 +83 -83
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -112
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +123 -115
- package/dist/git.js +7 -7
- 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 +107 -107
- 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 +373 -373
- package/dist/instruction-discovery.js +90 -90
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +163 -163
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +370 -370
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +168 -168
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +107 -107
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +4 -2
- package/dist/model.js +106 -106
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +143 -143
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -343
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- 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 +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +94 -94
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- 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 +228 -228
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +151 -151
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +236 -236
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +152 -152
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +186 -186
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +225 -225
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +146 -146
- package/dist/snapshot.js +97 -97
- 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 +167 -167
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +138 -138
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +143 -143
- package/dist/tool/plugin/websearch.js +145 -145
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/generate.d.ts +39 -7
- package/dist/types/model-resolver.d.ts +6 -1
- package/dist/types/model-retry.d.ts +2 -0
- package/dist/types/model.d.ts +3 -0
- package/dist/types/provider.d.ts +2 -0
- package/dist/usage-limits.js +95 -95
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +92 -92
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- 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 +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +8 -8
- package/dist/chunks/usage-limits-00ve6mdn.js +0 -18
- package/dist/chunks/usage-limits-38s79n5z.js +0 -257
- package/dist/chunks/usage-limits-fa1x4yc8.js +0 -82
- package/dist/chunks/usage-limits-fsr9be33.js +0 -26
- package/dist/chunks/usage-limits-pm1qawqd.js +0 -517
- /package/dist/chunks/{usage-limits-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{usage-limits-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{usage-limits-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{usage-limits-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{usage-limits-1jakw16s.js → location-services-1jakw16s.js} +0 -0
- /package/dist/chunks/{usage-limits-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{usage-limits-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{usage-limits-2bv980vf.js → location-services-2bv980vf.js} +0 -0
- /package/dist/chunks/{usage-limits-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{usage-limits-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{usage-limits-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{usage-limits-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{usage-limits-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{usage-limits-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{usage-limits-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{usage-limits-4m86bj6y.js → location-services-4m86bj6y.js} +0 -0
- /package/dist/chunks/{usage-limits-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{usage-limits-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{usage-limits-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{usage-limits-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{usage-limits-5w3e23ze.js → location-services-5w3e23ze.js} +0 -0
- /package/dist/chunks/{usage-limits-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{usage-limits-6q2bdcd1.js → location-services-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{usage-limits-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{usage-limits-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{usage-limits-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{usage-limits-84wd9syh.js → location-services-84wd9syh.js} +0 -0
- /package/dist/chunks/{usage-limits-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{usage-limits-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{usage-limits-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{usage-limits-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{usage-limits-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{usage-limits-a058387c.js → location-services-a058387c.js} +0 -0
- /package/dist/chunks/{usage-limits-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{usage-limits-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{usage-limits-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{usage-limits-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{usage-limits-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{usage-limits-beh6qq61.js → location-services-beh6qq61.js} +0 -0
- /package/dist/chunks/{usage-limits-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{usage-limits-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{usage-limits-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{usage-limits-cqv5kn06.js → location-services-cqv5kn06.js} +0 -0
- /package/dist/chunks/{usage-limits-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{usage-limits-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{usage-limits-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{usage-limits-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{usage-limits-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{usage-limits-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{usage-limits-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{usage-limits-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{usage-limits-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{usage-limits-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{usage-limits-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{usage-limits-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{usage-limits-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{usage-limits-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{usage-limits-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{usage-limits-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{usage-limits-fkpq3x5p.js → location-services-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{usage-limits-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{usage-limits-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{usage-limits-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{usage-limits-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{usage-limits-hcxmzztb.js → location-services-hcxmzztb.js} +0 -0
- /package/dist/chunks/{usage-limits-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{usage-limits-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{usage-limits-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{usage-limits-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{usage-limits-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{usage-limits-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{usage-limits-jwr30sdr.js → location-services-jwr30sdr.js} +0 -0
- /package/dist/chunks/{usage-limits-jze0r7bz.js → location-services-jze0r7bz.js} +0 -0
- /package/dist/chunks/{usage-limits-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{usage-limits-m18g726c.js → location-services-m18g726c.js} +0 -0
- /package/dist/chunks/{usage-limits-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{usage-limits-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{usage-limits-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{usage-limits-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{usage-limits-ncqqe42p.js → location-services-ncqqe42p.js} +0 -0
- /package/dist/chunks/{usage-limits-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{usage-limits-p71gwv9c.js → location-services-p71gwv9c.js} +0 -0
- /package/dist/chunks/{usage-limits-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{usage-limits-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{usage-limits-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{usage-limits-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{usage-limits-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{usage-limits-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{usage-limits-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{usage-limits-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{usage-limits-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{usage-limits-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{usage-limits-ve7vex1e.js → location-services-ve7vex1e.js} +0 -0
- /package/dist/chunks/{usage-limits-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{usage-limits-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{usage-limits-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{usage-limits-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{usage-limits-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{usage-limits-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{usage-limits-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{usage-limits-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{usage-limits-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{usage-limits-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{usage-limits-z5v4ffb3.js → location-services-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{usage-limits-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
deletePatch2,
|
|
8
8
|
countPatch2,
|
|
9
9
|
chunksByFile2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-services-rb9dy4dg.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service80
|
|
13
|
+
} from "./location-services-616zqkce.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-za8t0eh5.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin33,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,10 +30,10 @@ import { ChildProcess } from "effect/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin33 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
|
-
const location = yield*
|
|
36
|
+
const location = yield* Service80;
|
|
37
37
|
if (location.vcs && location.vcs.type !== "hg")
|
|
38
38
|
return;
|
|
39
39
|
const processes = yield* AppProcess.Service;
|
|
@@ -198,4 +198,4 @@ function makeHg(proc, worktree) {
|
|
|
198
198
|
return { status, diff, branch, ancestor, cat };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { Plugin33, exports_hg };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-034tev2y.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-tczq8hjw.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-204s3925.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service41,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node44
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service41 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -121,7 +121,7 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
121
121
|
yield* fs.writeWithDirs(file, bytes).pipe(Effect.orDie);
|
|
122
122
|
return file;
|
|
123
123
|
});
|
|
124
|
-
return
|
|
124
|
+
return Service41.of({
|
|
125
125
|
transform: state.transform,
|
|
126
126
|
reload: state.reload,
|
|
127
127
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node44 = makeLocationNode({
|
|
143
|
+
service: Service41,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service41, node44, exports_tool_output2 };
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-x82dhhxf.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-bstexjd6.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-services-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service63,
|
|
17
|
+
node65
|
|
18
|
+
} from "./location-services-f09z3f4w.js";
|
|
19
19
|
import {
|
|
20
20
|
changes2,
|
|
21
21
|
create3
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-services-204s3925.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./location-services-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/reference.ts
|
|
28
28
|
var exports_reference2 = {};
|
|
29
29
|
__export(exports_reference2, {
|
|
30
|
-
Event: () =>
|
|
30
|
+
Event: () => Event6,
|
|
31
31
|
GitSource: () => GitSource2,
|
|
32
32
|
Info: () => Info9,
|
|
33
33
|
LocalSource: () => LocalSource2,
|
|
34
34
|
Reference: () => exports_reference2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service48,
|
|
36
36
|
Source: () => Source3,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node50
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
41
41
|
import { Reference } from "@opencode/schema/reference";
|
|
42
42
|
import { Global } from "@opencode/util/global";
|
|
43
|
-
import { Event as
|
|
43
|
+
import { Event as Event6 } from "@opencode/schema/reference";
|
|
44
44
|
var LocalSource2 = Reference.LocalSource;
|
|
45
45
|
var GitSource2 = Reference.GitSource;
|
|
46
46
|
var Source3 = Reference.Source;
|
|
47
47
|
var Info9 = Reference.Info;
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service48 extends Context.Service()("@opencode/Reference") {
|
|
50
50
|
}
|
|
51
|
-
var layer = Layer.effect(
|
|
51
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const bus = yield* Service86;
|
|
54
|
-
const cache = yield*
|
|
54
|
+
const cache = yield* Service63;
|
|
55
55
|
const scope = yield* Scope.Scope;
|
|
56
56
|
const list = (data = state.get()) => Array.from(data.sources).flatMap(([name, source]) => {
|
|
57
57
|
const info = {
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
107
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
108
|
-
return
|
|
108
|
+
return Service48.of({
|
|
109
109
|
transform: state.transform,
|
|
110
110
|
reload: state.reload,
|
|
111
111
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
}));
|
|
116
|
-
var
|
|
117
|
-
service:
|
|
116
|
+
var node50 = makeLocationNode({
|
|
117
|
+
service: Service48,
|
|
118
118
|
layer,
|
|
119
|
-
deps: [Global.node, node90,
|
|
119
|
+
deps: [Global.node, node90, node65]
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
export { LocalSource2, GitSource2, Source3, Info9,
|
|
122
|
+
export { LocalSource2, GitSource2, Source3, Info9, Service48, node50, exports_reference2, Event6 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-4j7592es.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthorizationError2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-services-pgd0patt.js";
|
|
8
8
|
import {
|
|
9
9
|
CorrectedError2,
|
|
10
10
|
BlockedError2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-j41s2q6a.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-q2merdcy.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-services-xw888kkr.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai/effect";
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-pfswwbj2.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-x82dhhxf.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service45,
|
|
11
|
+
node47
|
|
12
|
+
} from "./location-services-9nkjg9qd.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
18
|
Service84,
|
|
19
19
|
node88
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-jtjptmzv.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Ref4
|
|
23
|
+
} from "./location-services-616zqkce.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service72,
|
|
26
|
+
node75
|
|
27
|
+
} from "./location-services-p1fvmphk.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-services-gftt206x.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
NotFoundError6
|
|
33
|
+
} from "./location-services-4j7592es.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./location-services-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
Service43
|
|
39
|
+
} from "./location-services-yqveydy6.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./
|
|
41
|
+
Service54,
|
|
42
|
+
node56
|
|
43
|
+
} from "./location-services-ygm5nzp7.js";
|
|
44
44
|
import {
|
|
45
45
|
Item2,
|
|
46
46
|
serialized2,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Service44,
|
|
48
|
+
node46,
|
|
49
49
|
moveIDs2
|
|
50
|
-
} from "./
|
|
50
|
+
} from "./location-services-rhg5jmsx.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
52
|
+
Service42,
|
|
53
|
+
node45
|
|
54
|
+
} from "./location-services-hk9sbkrn.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./
|
|
56
|
+
node31
|
|
57
|
+
} from "./location-services-q5wj7mv8.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./location-services-9rqn6x4v.js";
|
|
61
61
|
|
|
62
62
|
// src/session/move.ts
|
|
63
63
|
var exports_move = {};
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service26,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node29
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,23 +83,23 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service26 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
91
|
const projects = yield* Service84;
|
|
92
|
-
const locations = yield*
|
|
93
|
-
const store = yield*
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
92
|
+
const locations = yield* Service72;
|
|
93
|
+
const store = yield* Service54;
|
|
94
|
+
const execution = yield* Service42;
|
|
95
|
+
const instances = yield* Service45;
|
|
96
|
+
const admission = yield* Service44;
|
|
97
97
|
const database = yield* Service87;
|
|
98
98
|
const bus = yield* Service86;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
100
100
|
const session = yield* store.get(sessionID);
|
|
101
101
|
if (!session)
|
|
102
|
-
return yield* new
|
|
102
|
+
return yield* new NotFoundError6({ sessionID });
|
|
103
103
|
return session;
|
|
104
104
|
});
|
|
105
105
|
const resolveDestination = Effect.fn("SessionMove.resolveDestination")(function* (session, input) {
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
115
115
|
return yield* new DestinationNotDirectoryError2({ directory });
|
|
116
116
|
const project = yield* projects.resolve(directory);
|
|
117
117
|
const destination = {
|
|
118
|
-
location:
|
|
118
|
+
location: Ref4.make({ directory, workspaceID: input.workspaceID }),
|
|
119
119
|
projectID: project.id,
|
|
120
120
|
subpath: RelativePath2.make(path.relative(project.directory, directory).replaceAll("\\", "/"))
|
|
121
121
|
};
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service43.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service26.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node29 = makeGlobalNode({
|
|
167
|
+
service: Service26,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
172
|
node88,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
node75,
|
|
174
|
+
node56,
|
|
175
|
+
node45,
|
|
176
|
+
node47,
|
|
177
|
+
node46,
|
|
178
178
|
node91,
|
|
179
179
|
node90,
|
|
180
|
-
|
|
180
|
+
node31
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service26, node29, exports_move };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-x82dhhxf.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/command.ts
|
|
14
14
|
var exports_command5 = {};
|
|
15
15
|
__export(exports_command5, {
|
|
16
16
|
Command: () => exports_command5,
|
|
17
|
-
Event: () =>
|
|
17
|
+
Event: () => Event14,
|
|
18
18
|
ExecutionError: () => ExecutionError2,
|
|
19
|
-
Info: () =>
|
|
20
|
-
NotFoundError: () =>
|
|
21
|
-
Service: () =>
|
|
22
|
-
layer: () =>
|
|
23
|
-
node: () =>
|
|
19
|
+
Info: () => Info20,
|
|
20
|
+
NotFoundError: () => NotFoundError9,
|
|
21
|
+
Service: () => Service67,
|
|
22
|
+
layer: () => layer25,
|
|
23
|
+
node: () => node69
|
|
24
24
|
});
|
|
25
25
|
import { Command } from "@opencode/schema/command";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
28
|
-
import { Event as
|
|
29
|
-
var
|
|
28
|
+
import { Event as Event14 } from "@opencode/schema/command";
|
|
29
|
+
var Info20 = Command.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class NotFoundError9 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
32
32
|
command: Schema.String,
|
|
33
33
|
message: Schema.String
|
|
34
34
|
}) {
|
|
@@ -40,11 +40,11 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service67 extends Context.Service()("@opencode/Command") {
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var layer25 = Layer.effect(Service67, Effect.gen(function* () {
|
|
46
46
|
const bus = yield* Service86;
|
|
47
|
-
const info = (definition) =>
|
|
47
|
+
const info = (definition) => Info20.make({
|
|
48
48
|
name: definition.name,
|
|
49
49
|
description: definition.description
|
|
50
50
|
});
|
|
@@ -56,7 +56,7 @@ var layer28 = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
56
56
|
}),
|
|
57
57
|
notify: changes2((commands) => Array.from(commands.values(), info), () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid))
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return Service67.of({
|
|
60
60
|
reload: state.reload,
|
|
61
61
|
transform: state.transform,
|
|
62
62
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -67,14 +67,14 @@ var layer28 = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
67
67
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
68
68
|
const definition = state.get().get(input.name);
|
|
69
69
|
if (!definition)
|
|
70
|
-
return yield* new
|
|
70
|
+
return yield* new NotFoundError9({ command: input.name, message: `Command not found: ${input.name}` });
|
|
71
71
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
}));
|
|
75
|
-
var
|
|
76
|
-
service:
|
|
77
|
-
layer:
|
|
75
|
+
var node69 = makeLocationNode({
|
|
76
|
+
service: Service67,
|
|
77
|
+
layer: layer25,
|
|
78
78
|
deps: [node90]
|
|
79
79
|
});
|
|
80
80
|
function errorMessage(error) {
|
|
@@ -87,4 +87,4 @@ function errorMessage(error) {
|
|
|
87
87
|
return "Command execution failed";
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export {
|
|
90
|
+
export { Info20, NotFoundError9, ExecutionError2, Service67, layer25, node69, exports_command5, Event14 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-pfswwbj2.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-services-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-services-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
16
|
ID: () => ID8,
|
|
17
|
-
Info: () =>
|
|
18
|
-
NotFoundError: () =>
|
|
17
|
+
Info: () => Info11,
|
|
18
|
+
NotFoundError: () => NotFoundError7,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service55,
|
|
21
|
+
node: () => node57
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
@@ -26,9 +26,9 @@ 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
28
|
var ID8 = PermissionSaved.ID;
|
|
29
|
-
var
|
|
29
|
+
var Info11 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class NotFoundError7 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
32
|
id: ID8
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
@@ -40,9 +40,9 @@ class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError
|
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service55 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service55, 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);
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service66, 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 NotFoundError7({ 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 NotFoundError7({ 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 Service55.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 node57 = makeGlobalNode({ service: Service55, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export { ID8,
|
|
95
|
+
export { ID8, Info11, NotFoundError7, ConflictError2, Service55, node57, exports_saved };
|