@opencode/core 0.0.0-dev-64 → 0.0.0-dev-70
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/{location-services-k7g3tdkn.js → usage-limits-00r869yd.js} +19 -19
- package/dist/chunks/usage-limits-00ve6mdn.js +18 -0
- package/dist/chunks/{location-services-034tev2y.js → usage-limits-034tev2y.js} +2 -2
- package/dist/chunks/{location-services-wvv7736z.js → usage-limits-059hwyma.js} +22 -22
- package/dist/chunks/{location-services-b1xakg4t.js → usage-limits-06ezgrzy.js} +8 -8
- package/dist/chunks/{location-services-616zqkce.js → usage-limits-06x5j3v9.js} +13 -13
- package/dist/chunks/{location-services-dbpv404k.js → usage-limits-0bb4mtzd.js} +68 -54
- package/dist/chunks/{location-services-47m4w8nw.js → usage-limits-0cf3qb1d.js} +15 -15
- package/dist/chunks/{location-services-ap5257e6.js → usage-limits-0ge7qw4j.js} +17 -17
- package/dist/chunks/{location-services-pe5cp1q8.js → usage-limits-0n7bgjdx.js} +18 -18
- package/dist/chunks/{location-services-70jyngdv.js → usage-limits-13j1gyyz.js} +6 -6
- package/dist/chunks/{location-services-8kvtxzpx.js → usage-limits-19xpstvy.js} +10 -10
- package/dist/chunks/{location-services-dmssmyv3.js → usage-limits-1bfdjpda.js} +8 -8
- package/dist/chunks/{location-services-t3wrh3sj.js → usage-limits-1e3bsmzs.js} +32 -32
- package/dist/chunks/{location-services-1ep2p91f.js → usage-limits-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-services-s1q3ndg4.js → usage-limits-1r6zs68c.js} +11 -11
- package/dist/chunks/{location-services-qsekswpw.js → usage-limits-1vbd3ct4.js} +14 -14
- package/dist/chunks/{location-services-1x2knyw4.js → usage-limits-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-services-r8a8jxpt.js → usage-limits-1ygfc7z1.js} +11 -11
- package/dist/chunks/{location-services-v9ez2kgh.js → usage-limits-1yq9hg58.js} +5 -5
- package/dist/chunks/{location-services-204s3925.js → usage-limits-204s3925.js} +1 -1
- package/dist/chunks/{location-services-6xqtwe1r.js → usage-limits-2250626v.js} +15 -15
- package/dist/chunks/{location-services-zgmk89q5.js → usage-limits-26t6c0aa.js} +9 -9
- package/dist/chunks/{location-services-td7x002b.js → usage-limits-2syb7k54.js} +22 -22
- package/dist/chunks/{location-services-6v72x2ed.js → usage-limits-2vtmagdy.js} +11 -11
- package/dist/chunks/{location-services-rfz97rvx.js → usage-limits-2wbaybnj.js} +10 -10
- package/dist/chunks/{location-services-g219a0kq.js → usage-limits-32hdwgrf.js} +23 -23
- package/dist/chunks/{location-services-rhg5jmsx.js → usage-limits-367w5d4y.js} +23 -23
- package/dist/chunks/usage-limits-38s79n5z.js +257 -0
- package/dist/chunks/{location-services-k88b30qa.js → usage-limits-3d32z0b5.js} +5 -5
- package/dist/chunks/{location-services-3hepkmqq.js → usage-limits-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-services-3j1m3tq4.js → usage-limits-3j1m3tq4.js} +2 -2
- package/dist/chunks/{location-services-3nnrz6f6.js → usage-limits-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-services-nr97w2wj.js → usage-limits-3qx04rj6.js} +11 -11
- package/dist/chunks/{location-services-8rg72s59.js → usage-limits-3satg4qm.js} +13 -13
- package/dist/chunks/{location-services-cj2b2j51.js → usage-limits-3vgbrff8.js} +27 -27
- package/dist/chunks/{location-services-g208md38.js → usage-limits-40akqw83.js} +5 -5
- package/dist/chunks/{location-services-w2eysc6j.js → usage-limits-40za9wsf.js} +9 -9
- package/dist/chunks/{location-services-agnbv5zk.js → usage-limits-4ab74nqr.js} +7 -7
- package/dist/chunks/{location-services-mvh1rx9p.js → usage-limits-4b10zywb.js} +12 -12
- package/dist/chunks/{location-services-w7ddawfh.js → usage-limits-4bge5fn5.js} +19 -19
- package/dist/chunks/{location-services-wgvnftve.js → usage-limits-4h11cdqv.js} +8 -8
- package/dist/chunks/{location-services-y4q5gvzk.js → usage-limits-4pd4gjsb.js} +13 -13
- package/dist/chunks/{location-services-4pyp9zr9.js → usage-limits-4pyp9zr9.js} +1 -1
- package/dist/chunks/{location-services-4v008n1t.js → usage-limits-4v008n1t.js} +1 -1
- package/dist/chunks/{location-services-q8bjp0w9.js → usage-limits-5388d1ez.js} +21 -21
- package/dist/chunks/{location-services-rwnw28mr.js → usage-limits-57e756py.js} +22 -22
- package/dist/chunks/{location-services-5hqsswq2.js → usage-limits-5h1f88xp.js} +12 -12
- package/dist/chunks/{location-services-5m9w47nd.js → usage-limits-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-services-ehz01n6z.js → usage-limits-63wjmrmh.js} +11 -11
- package/dist/chunks/{location-services-6esdw8yj.js → usage-limits-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-services-ct6n0aec.js → usage-limits-6h925atx.js} +30 -30
- package/dist/chunks/{location-services-szcgc7h4.js → usage-limits-6y263vp8.js} +5 -5
- package/dist/chunks/{location-services-x2hxr1sc.js → usage-limits-70kwrepz.js} +29 -29
- package/dist/chunks/{location-services-p3bccnsq.js → usage-limits-74mxhga0.js} +24 -24
- package/dist/chunks/{location-services-ekas1cck.js → usage-limits-75jy3yfa.js} +4 -4
- package/dist/chunks/{location-services-w8qtt4th.js → usage-limits-76cb1hcw.js} +4 -4
- package/dist/chunks/{location-services-770pw0s1.js → usage-limits-770pw0s1.js} +1 -1
- package/dist/chunks/{location-services-jg7yw0kp.js → usage-limits-786a3n23.js} +16 -16
- package/dist/chunks/{location-services-ndb69tfa.js → usage-limits-7b0w3yex.js} +33 -33
- package/dist/chunks/{location-services-7bmhse3q.js → usage-limits-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-services-zc22tp4z.js → usage-limits-7ftegz34.js} +14 -14
- package/dist/chunks/{location-services-pgd0patt.js → usage-limits-7g056v1e.js} +28 -28
- package/dist/chunks/{location-services-7sdtxe0n.js → usage-limits-7sdtxe0n.js} +2 -2
- package/dist/chunks/{location-services-tqx9c315.js → usage-limits-7tpyp9vw.js} +8 -8
- package/dist/chunks/{location-services-1h8sxmja.js → usage-limits-7vafrntb.js} +11 -11
- package/dist/chunks/{location-services-2qje8jvz.js → usage-limits-7vfaawec.js} +15 -15
- package/dist/chunks/{location-services-7w2ypzdf.js → usage-limits-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-services-dvxg9xas.js → usage-limits-7zxkwed9.js} +16 -16
- package/dist/chunks/{location-services-x48bv8h6.js → usage-limits-8ctydw00.js} +5 -5
- package/dist/chunks/{location-services-pwa1a8rs.js → usage-limits-8etj86g3.js} +12 -12
- package/dist/chunks/{location-services-kdzrs2t4.js → usage-limits-8h3eyqr9.js} +38 -38
- package/dist/chunks/{location-services-pfswwbj2.js → usage-limits-8k57k3bn.js} +3 -3
- package/dist/chunks/{location-services-4v34atpz.js → usage-limits-8nmxnxpt.js} +16 -16
- package/dist/chunks/{location-services-e6ytsf2b.js → usage-limits-8q6dc6x3.js} +11 -11
- package/dist/chunks/{location-services-2fngxkhk.js → usage-limits-8qvrfxnx.js} +26 -26
- package/dist/chunks/{location-services-w2ga2e0k.js → usage-limits-8rpj8j5d.js} +27 -27
- package/dist/chunks/{location-services-a33a86vx.js → usage-limits-8tzh5xhm.js} +47 -47
- package/dist/chunks/{location-services-8wtp7s3z.js → usage-limits-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-services-kjaj9yp1.js → usage-limits-8x7yjdeb.js} +20 -20
- package/dist/chunks/{location-services-90zstvax.js → usage-limits-90zstvax.js} +1 -1
- package/dist/chunks/{location-services-hxq68qpv.js → usage-limits-91x1x3by.js} +16 -16
- package/dist/chunks/{location-services-mkr15vrz.js → usage-limits-99xv457n.js} +21 -21
- package/dist/chunks/{location-services-9cx9sm2q.js → usage-limits-9cx9sm2q.js} +1 -1
- package/dist/chunks/{location-services-c1zy16x8.js → usage-limits-9hsg88rw.js} +10 -10
- package/dist/chunks/{location-services-1dx49z0n.js → usage-limits-9j3r59h4.js} +9 -9
- package/dist/chunks/{location-services-tdx723hm.js → usage-limits-9mw2y3qc.js} +1 -1
- package/dist/chunks/{location-services-kzzr1kfy.js → usage-limits-9t0fkpz6.js} +4 -4
- package/dist/chunks/{location-services-hyxwtr16.js → usage-limits-9vpabdem.js} +11 -11
- package/dist/chunks/{location-services-wnnvpqyk.js → usage-limits-a2kck2qj.js} +36 -36
- package/dist/chunks/{location-services-yjw1qs8k.js → usage-limits-ajwh8a2m.js} +25 -25
- package/dist/chunks/{location-services-0h8fm2ww.js → usage-limits-aksnr6dh.js} +18 -18
- package/dist/chunks/{location-services-h59wt0w5.js → usage-limits-ap6zazkg.js} +3 -3
- package/dist/chunks/{location-services-agwgn61j.js → usage-limits-as3mfafy.js} +16 -16
- package/dist/chunks/{location-services-ncmn4rz0.js → usage-limits-av7r0xpy.js} +28 -28
- package/dist/chunks/{location-services-xn4shan3.js → usage-limits-axay07fs.js} +9 -9
- package/dist/chunks/{location-services-ayjs7tqn.js → usage-limits-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-services-yk5vm8dr.js → usage-limits-aytgjwzw.js} +13 -13
- package/dist/chunks/{location-services-9whep7e0.js → usage-limits-b0snh2yy.js} +5 -5
- package/dist/chunks/{location-services-8cw3p3pm.js → usage-limits-b105tghx.js} +30 -30
- package/dist/chunks/{location-services-x82dhhxf.js → usage-limits-b1q5yrpf.js} +4 -4
- package/dist/chunks/{location-services-nbmqhqas.js → usage-limits-b3scgw80.js} +26 -26
- package/dist/chunks/{location-services-2hj7awb8.js → usage-limits-b3t6hfc1.js} +5 -5
- package/dist/chunks/{location-services-hw7ke7j2.js → usage-limits-b5gyc1qt.js} +35 -35
- package/dist/chunks/{location-services-b6vsg801.js → usage-limits-b6vsg801.js} +2 -2
- package/dist/chunks/{location-services-r26r40ph.js → usage-limits-bcg4scw3.js} +12 -12
- package/dist/chunks/{location-services-4j7592es.js → usage-limits-bh1et42v.js} +6 -6
- package/dist/chunks/{location-services-vm24w91z.js → usage-limits-bsany5rs.js} +9 -9
- package/dist/chunks/{location-services-bstexjd6.js → usage-limits-bstexjd6.js} +1 -1
- package/dist/chunks/{location-services-r8nzqyhk.js → usage-limits-btqfhcy7.js} +12 -12
- package/dist/chunks/{location-services-gbp88eyx.js → usage-limits-bv81hr7f.js} +17 -17
- package/dist/chunks/{location-services-d1mr7tcc.js → usage-limits-bxvxsyd1.js} +5 -5
- package/dist/chunks/{location-services-mfr0p1x9.js → usage-limits-c4etfrww.js} +11 -11
- package/dist/chunks/{location-services-0eq01nmm.js → usage-limits-cb54j1zr.js} +9 -9
- package/dist/chunks/{location-services-za8t0eh5.js → usage-limits-cdy86q22.js} +21 -21
- package/dist/chunks/{location-services-ppf126py.js → usage-limits-cew0p5np.js} +4 -4
- package/dist/chunks/{location-services-qn81gd5b.js → usage-limits-cg685ae2.js} +8 -8
- package/dist/chunks/{location-services-d95c94hx.js → usage-limits-ch2c3pcq.js} +36 -36
- package/dist/chunks/{location-services-cwrgdav8.js → usage-limits-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-services-5vms8twd.js → usage-limits-cwzdksg6.js} +32 -32
- package/dist/chunks/{location-services-qfkfn7d5.js → usage-limits-cyv36v60.js} +32 -32
- package/dist/chunks/{location-services-d4v9tmah.js → usage-limits-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-services-rha71f46.js → usage-limits-d77k1mxa.js} +4 -4
- package/dist/chunks/{location-services-f09z3f4w.js → usage-limits-d83ky4yz.js} +17 -17
- package/dist/chunks/{location-services-atqmvsxd.js → usage-limits-dcz5q70b.js} +3 -3
- package/dist/chunks/{location-services-x9jb8dde.js → usage-limits-dhf7nd60.js} +39 -39
- package/dist/chunks/{location-services-6jrjvs1q.js → usage-limits-djjzzs3c.js} +6 -6
- package/dist/chunks/{location-services-y2wrmdpy.js → usage-limits-dkqneb2t.js} +16 -16
- package/dist/chunks/{location-services-1c8tzkk0.js → usage-limits-dsz7xbts.js} +46 -46
- package/dist/chunks/{location-services-dt77769w.js → usage-limits-dt77769w.js} +1 -1
- package/dist/chunks/{location-services-pyk1f59v.js → usage-limits-dtsc222h.js} +4 -4
- package/dist/chunks/{location-services-891xbxsq.js → usage-limits-dw7w55f6.js} +14 -14
- package/dist/chunks/{location-services-yhzm8hpj.js → usage-limits-e0f2mwz6.js} +38 -38
- package/dist/chunks/{location-services-kf7yd5ke.js → usage-limits-e2v23dw8.js} +32 -32
- package/dist/chunks/{location-services-krdv4tqx.js → usage-limits-e5tgfjjc.js} +8 -8
- package/dist/chunks/{location-services-e834z07m.js → usage-limits-e834z07m.js} +1 -1
- package/dist/chunks/{location-services-qnz6w04z.js → usage-limits-edttvenx.js} +9 -9
- package/dist/chunks/{location-services-kesvm3k7.js → usage-limits-ehztmq8g.js} +8 -8
- package/dist/chunks/{location-services-q5wj7mv8.js → usage-limits-esmvgmdv.js} +19 -19
- package/dist/chunks/{location-services-06qvkc6e.js → usage-limits-ety99mph.js} +14 -14
- package/dist/chunks/{location-services-yggeett8.js → usage-limits-ex9nt9rj.js} +17 -17
- package/dist/chunks/{location-services-6mdzwzg7.js → usage-limits-f46hmq5v.js} +4 -4
- package/dist/chunks/{location-services-evf857tp.js → usage-limits-f9hn68yc.js} +6 -6
- package/dist/chunks/{location-services-k8vhdvpr.js → usage-limits-fa1x4yc8.js} +23 -23
- package/dist/chunks/{location-services-2rb4wbj4.js → usage-limits-fahhp9re.js} +4 -4
- package/dist/chunks/{location-services-fffv3p7h.js → usage-limits-fffv3p7h.js} +1 -1
- package/dist/chunks/{location-services-prq7xxp2.js → usage-limits-fg9p65nk.js} +6 -6
- package/dist/chunks/usage-limits-fsr9be33.js +26 -0
- package/dist/chunks/{location-services-dhs69mq4.js → usage-limits-g1rb9a0a.js} +23 -23
- package/dist/chunks/{location-services-x9c7wxgr.js → usage-limits-g3ywshqd.js} +26 -26
- package/dist/chunks/{location-services-xdas633g.js → usage-limits-g45kgctv.js} +1 -1
- package/dist/chunks/{location-services-ah09kpwr.js → usage-limits-ge02ssgj.js} +16 -16
- package/dist/chunks/{location-services-gg8p9cgs.js → usage-limits-gg8p9cgs.js} +3 -3
- package/dist/chunks/{location-services-e0vq96z9.js → usage-limits-gmkqvwcx.js} +17 -17
- package/dist/chunks/{location-services-nwvs9qq5.js → usage-limits-gp56a94q.js} +13 -13
- package/dist/chunks/{location-services-97wtqrge.js → usage-limits-gsp20hk1.js} +11 -11
- package/dist/chunks/{location-services-xt0z8zst.js → usage-limits-gtn9c16a.js} +4 -4
- package/dist/chunks/{location-services-n8m0q05k.js → usage-limits-gvgqw8vw.js} +7 -7
- package/dist/chunks/{location-services-jpwp8mx7.js → usage-limits-gw72g5rd.js} +52 -52
- package/dist/chunks/{location-services-9gx11wxw.js → usage-limits-gxjy5xbg.js} +4 -4
- package/dist/chunks/{location-services-7efvqzhd.js → usage-limits-h04a6mba.js} +18 -18
- package/dist/chunks/{location-services-hdfrs5mg.js → usage-limits-hdfrs5mg.js} +2 -2
- package/dist/chunks/{location-services-jtjptmzv.js → usage-limits-hfzn2qcz.js} +9 -9
- package/dist/chunks/{location-services-9437wt4d.js → usage-limits-hhw78a7m.js} +5 -5
- package/dist/chunks/{location-services-hpg1pkwy.js → usage-limits-hpg1pkwy.js} +1 -1
- package/dist/chunks/{location-services-zmzyb0q8.js → usage-limits-j391q72e.js} +9 -9
- package/dist/chunks/{location-services-1a0b8wew.js → usage-limits-j84x0xy0.js} +22 -22
- package/dist/chunks/{location-services-mz1832ks.js → usage-limits-j8br37jf.js} +15 -15
- package/dist/chunks/{location-services-jfaecv01.js → usage-limits-jfaecv01.js} +1 -1
- package/dist/chunks/{location-services-pnqyn77n.js → usage-limits-jpk5pzfk.js} +3 -3
- package/dist/chunks/{location-services-6h2pa11h.js → usage-limits-js09a8a4.js} +15 -15
- package/dist/chunks/{location-services-jtnps1zs.js → usage-limits-jtnps1zs.js} +2 -2
- package/dist/chunks/{location-services-189c2z7w.js → usage-limits-jvsyf4b3.js} +20 -20
- package/dist/chunks/{location-services-k814nvkf.js → usage-limits-k814nvkf.js} +1 -1
- package/dist/chunks/{location-services-edmv2p4j.js → usage-limits-k8wsz496.js} +54 -54
- package/dist/chunks/{location-services-e884at7j.js → usage-limits-k99fe09b.js} +5 -5
- package/dist/chunks/{location-services-h8yn74hc.js → usage-limits-kagxkfz2.js} +28 -28
- package/dist/chunks/{location-services-qft8hb75.js → usage-limits-kd4chd64.js} +4 -4
- package/dist/chunks/{location-services-mhcbn2s9.js → usage-limits-kgxq6z42.js} +6 -6
- package/dist/chunks/{location-services-rcvjkgve.js → usage-limits-kmybc97f.js} +27 -27
- package/dist/chunks/{location-services-kt3bjfbg.js → usage-limits-kt3bjfbg.js} +1 -1
- package/dist/chunks/{location-services-fb3jk243.js → usage-limits-kx1md14a.js} +18 -18
- package/dist/chunks/{location-services-7av4j0s6.js → usage-limits-m0c6s6tz.js} +19 -19
- package/dist/chunks/{location-services-m1714858.js → usage-limits-m1714858.js} +1 -1
- package/dist/chunks/{location-services-h0bc8af7.js → usage-limits-m7npqwrv.js} +18 -18
- package/dist/chunks/{location-services-m9w0rfyh.js → usage-limits-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-services-d3ajd33x.js → usage-limits-mfbcmhq0.js} +27 -27
- package/dist/chunks/{location-services-6pgz6wzq.js → usage-limits-mj7yjr2g.js} +35 -35
- package/dist/chunks/{location-services-arv3g562.js → usage-limits-mrns0e6x.js} +4 -4
- package/dist/chunks/{location-services-ba07h9gm.js → usage-limits-my4zabxr.js} +3 -3
- package/dist/chunks/{location-services-yymxgp8s.js → usage-limits-n1fzseg3.js} +82 -82
- package/dist/chunks/{location-services-pbbktnbz.js → usage-limits-nf3nsvxh.js} +4 -4
- package/dist/chunks/{location-services-zfmjcdad.js → usage-limits-nkxegb0x.js} +35 -35
- package/dist/chunks/{location-services-ng098k0q.js → usage-limits-nm192nfe.js} +24 -24
- package/dist/chunks/{location-services-nk85174p.js → usage-limits-nqdvj0z2.js} +34 -34
- package/dist/chunks/{location-services-866wf2vs.js → usage-limits-nw38f88x.js} +8 -8
- package/dist/chunks/{location-services-m45h31ff.js → usage-limits-ny2pcf7q.js} +18 -18
- package/dist/chunks/{location-services-p015t6z3.js → usage-limits-p015t6z3.js} +2 -2
- package/dist/chunks/{location-services-9nkjg9qd.js → usage-limits-p580ev26.js} +6 -6
- package/dist/chunks/{location-services-yqveydy6.js → usage-limits-p76me67c.js} +4 -4
- package/dist/chunks/{location-services-1rs2921g.js → usage-limits-pb2rct2b.js} +20 -20
- package/dist/chunks/{location-services-pknna89w.js → usage-limits-pknna89w.js} +1 -1
- package/dist/chunks/usage-limits-pm1qawqd.js +517 -0
- package/dist/chunks/{location-services-91c7zjyq.js → usage-limits-pv9367se.js} +8 -8
- package/dist/chunks/{location-services-3tv0ny9f.js → usage-limits-q4cdx3an.js} +47 -47
- package/dist/chunks/{location-services-yewtq9yt.js → usage-limits-q6ygxmey.js} +16 -16
- package/dist/chunks/{location-services-znwbrpr9.js → usage-limits-qdaz62qt.js} +20 -20
- package/dist/chunks/{location-services-mqe7nf5n.js → usage-limits-qkqjbc48.js} +3 -3
- package/dist/chunks/{location-services-qp7r0hxv.js → usage-limits-qp7r0hxv.js} +1 -1
- package/dist/chunks/{location-services-2xw6dmz5.js → usage-limits-qtks3bwj.js} +18 -18
- package/dist/chunks/{location-services-zxaz8gg5.js → usage-limits-qvdrcrn5.js} +27 -27
- package/dist/chunks/{location-services-bgg6fpfq.js → usage-limits-qz087kyw.js} +8 -8
- package/dist/chunks/{location-services-r0yr0wbs.js → usage-limits-r0yr0wbs.js} +1 -1
- package/dist/chunks/{location-services-r542h3bh.js → usage-limits-r542h3bh.js} +1 -1
- package/dist/chunks/{location-services-dtdkt915.js → usage-limits-r5as2gek.js} +4 -4
- package/dist/chunks/{location-services-ghh93d0s.js → usage-limits-rafkt0z2.js} +8 -8
- package/dist/chunks/{location-services-rb9dy4dg.js → usage-limits-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-services-cdev0qw6.js → usage-limits-rdt1yync.js} +2 -2
- package/dist/chunks/{location-services-z97c6djt.js → usage-limits-rhf62axg.js} +12 -12
- package/dist/chunks/{location-services-j41s2q6a.js → usage-limits-rrqctmxv.js} +40 -40
- package/dist/chunks/{location-services-rt5dr6hb.js → usage-limits-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-services-7wj339t1.js → usage-limits-s2p21v8b.js} +14 -14
- package/dist/chunks/{location-services-mmx1mfjr.js → usage-limits-s7kyse9r.js} +4 -4
- package/dist/chunks/{location-services-mrng6hna.js → usage-limits-s9xyq0y3.js} +16 -16
- package/dist/chunks/{location-services-sa3fpqfw.js → usage-limits-sa3fpqfw.js} +2 -2
- package/dist/chunks/{location-services-hfpnh8b8.js → usage-limits-scg71y9j.js} +196 -196
- package/dist/chunks/{location-services-7vzj9awm.js → usage-limits-shhvmp99.js} +5 -5
- package/dist/chunks/{location-services-8xsxqfj0.js → usage-limits-smjdpk56.js} +43 -43
- package/dist/chunks/{location-services-e07q2w5p.js → usage-limits-snb901t2.js} +4 -4
- package/dist/chunks/{location-services-sqjzf8x2.js → usage-limits-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-services-d2887f8n.js → usage-limits-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-services-svcy3p9a.js → usage-limits-svcy3p9a.js} +1 -1
- package/dist/chunks/{location-services-v8xpr2tt.js → usage-limits-sxejvmn7.js} +11 -11
- package/dist/chunks/{location-services-ygm5nzp7.js → usage-limits-sxgesv0v.js} +12 -12
- package/dist/chunks/{location-services-kdsywe1g.js → usage-limits-sz3bvagv.js} +4 -4
- package/dist/chunks/{location-services-tczq8hjw.js → usage-limits-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-services-dqepyj8z.js → usage-limits-thgmw4ka.js} +39 -39
- package/dist/chunks/{location-services-2y81gh79.js → usage-limits-tqx1028s.js} +16 -16
- package/dist/chunks/{location-services-qbhn9ys7.js → usage-limits-tvet7cwg.js} +10 -10
- package/dist/chunks/{location-services-twssxy5n.js → usage-limits-twssxy5n.js} +2 -2
- package/dist/chunks/{location-services-fqpk86s2.js → usage-limits-txcap7gk.js} +7 -7
- package/dist/chunks/{location-services-24tsn34s.js → usage-limits-v1thstnx.js} +21 -21
- package/dist/chunks/{location-services-v2r1d0zg.js → usage-limits-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-services-veqvce7d.js → usage-limits-veqvce7d.js} +1 -1
- package/dist/chunks/{location-services-3dbex3rz.js → usage-limits-vgycp8t5.js} +13 -13
- package/dist/chunks/{location-services-5m3p3r5s.js → usage-limits-vhjvjnd9.js} +29 -29
- package/dist/chunks/{location-services-v6ghzfeb.js → usage-limits-vnwmzs4a.js} +5 -5
- package/dist/chunks/{location-services-p1fvmphk.js → usage-limits-vrbg4km8.js} +11 -11
- package/dist/chunks/{location-services-8x9y3wj0.js → usage-limits-vrcsa8qx.js} +9 -9
- package/dist/chunks/{location-services-75qg15m1.js → usage-limits-w11nh16z.js} +20 -20
- package/dist/chunks/{location-services-020zpnm4.js → usage-limits-w2kjqv84.js} +2 -2
- package/dist/chunks/{location-services-w3wsvvr9.js → usage-limits-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-services-8wawps64.js → usage-limits-w5meh1vk.js} +5 -5
- package/dist/chunks/{location-services-wr3re1en.js → usage-limits-w687dnns.js} +4 -4
- package/dist/chunks/{location-services-ygt5wh47.js → usage-limits-w6zhfv8b.js} +59 -59
- package/dist/chunks/{location-services-d00ag3b5.js → usage-limits-w8egg4wb.js} +5 -5
- package/dist/chunks/{location-services-wakvkjy4.js → usage-limits-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-services-ycegergq.js → usage-limits-wd34wntp.js} +27 -27
- package/dist/chunks/{location-services-wd87259q.js → usage-limits-wd87259q.js} +1 -1
- package/dist/chunks/{location-services-jze27bva.js → usage-limits-whe60mvx.js} +11 -11
- package/dist/chunks/{location-services-5j8pr5g9.js → usage-limits-wqp5dnfd.js} +10 -10
- package/dist/chunks/{location-services-11hfp36g.js → usage-limits-x8nvjgx0.js} +4 -4
- package/dist/chunks/{location-services-vpk136tn.js → usage-limits-xmdfq1wa.js} +35 -35
- package/dist/chunks/{location-services-xnh55p1t.js → usage-limits-xnh55p1t.js} +1 -1
- package/dist/chunks/{location-services-3f6yms39.js → usage-limits-xywbwddt.js} +23 -23
- package/dist/chunks/{location-services-vj669030.js → usage-limits-y07922sz.js} +6 -6
- package/dist/chunks/{location-services-cwmfzxax.js → usage-limits-y8e37kep.js} +21 -21
- package/dist/chunks/{location-services-rth2557w.js → usage-limits-y9z93sbb.js} +8 -8
- package/dist/chunks/{location-services-yara3q77.js → usage-limits-yara3q77.js} +2 -2
- package/dist/chunks/{location-services-yb20nhc3.js → usage-limits-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-services-gy2j584d.js → usage-limits-ybzz5s2a.js} +17 -17
- package/dist/chunks/{location-services-ph1jffse.js → usage-limits-yrkvt850.js} +34 -34
- package/dist/chunks/{location-services-nym9wyb3.js → usage-limits-ywm7vzgw.js} +6 -6
- package/dist/chunks/{location-services-1jzce7ba.js → usage-limits-yyfxd43e.js} +15 -15
- package/dist/chunks/{location-services-z0bkrqjs.js → usage-limits-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-services-z38nccrw.js → usage-limits-z38nccrw.js} +1 -1
- package/dist/chunks/{location-services-ydwqkrat.js → usage-limits-z8tv1fw9.js} +1 -1
- package/dist/chunks/{location-services-d1v2vbzt.js → usage-limits-zba5tm1j.js} +4 -4
- package/dist/chunks/{location-services-10698rvb.js → usage-limits-zbkb7r2x.js} +25 -25
- package/dist/chunks/{location-services-361hcc7j.js → usage-limits-zebz0vxm.js} +85 -85
- package/dist/chunks/{location-services-e6ma8sks.js → usage-limits-zervchyf.js} +6 -6
- package/dist/chunks/{location-services-zgd8t41s.js → usage-limits-zgd8t41s.js} +2 -2
- package/dist/chunks/{location-services-zgkm4kzm.js → usage-limits-zgkm4kzm.js} +3 -3
- package/dist/chunks/{location-services-rz9cdrn3.js → usage-limits-zkd2ntwy.js} +29 -29
- package/dist/chunks/{location-services-331p6xjh.js → usage-limits-zmwx25fz.js} +2 -2
- package/dist/chunks/{location-services-p0a3b8hq.js → usage-limits-zrp243k2.js} +25 -25
- package/dist/chunks/{location-services-w074k2xe.js → usage-limits-zstc4kax.js} +25 -25
- package/dist/chunks/{location-services-2b9k209b.js → usage-limits-zweene6d.js} +16 -16
- package/dist/chunks/{location-services-cy5ef8hm.js → usage-limits-zympt6nt.js} +11 -11
- 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 +113 -113
- 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 +1 -1
- 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/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/location-services-7n5d83wd.js +0 -257
- package/dist/chunks/location-services-9p9wbndj.js +0 -26
- package/dist/chunks/location-services-a610t88q.js +0 -18
- package/dist/chunks/location-services-r497nngn.js +0 -517
- /package/dist/chunks/{location-services-0qkdqm5v.js → usage-limits-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-services-0zkw76rk.js → usage-limits-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-services-17cy0kzp.js → usage-limits-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-services-1cnp2v09.js → usage-limits-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-services-1jakw16s.js → usage-limits-1jakw16s.js} +0 -0
- /package/dist/chunks/{location-services-24dcb14g.js → usage-limits-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-services-2710q6r3.js → usage-limits-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-services-2bv980vf.js → usage-limits-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-services-2c3vjs8z.js → usage-limits-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-services-359p4xyc.js → usage-limits-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-services-3asan66x.js → usage-limits-3asan66x.js} +0 -0
- /package/dist/chunks/{location-services-3v8g72cx.js → usage-limits-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-services-3wcehsnq.js → usage-limits-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-services-43n2bw4t.js → usage-limits-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-services-4knz6hnm.js → usage-limits-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-services-4m86bj6y.js → usage-limits-4m86bj6y.js} +0 -0
- /package/dist/chunks/{location-services-4vcrnpx2.js → usage-limits-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-services-4y7fprxs.js → usage-limits-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-services-53557ph1.js → usage-limits-53557ph1.js} +0 -0
- /package/dist/chunks/{location-services-550bvhaj.js → usage-limits-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-services-5w3e23ze.js → usage-limits-5w3e23ze.js} +0 -0
- /package/dist/chunks/{location-services-6prwharc.js → usage-limits-6prwharc.js} +0 -0
- /package/dist/chunks/{location-services-6q2bdcd1.js → usage-limits-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-services-7akdwqpd.js → usage-limits-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-services-7m9af43g.js → usage-limits-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-services-822emrt2.js → usage-limits-822emrt2.js} +0 -0
- /package/dist/chunks/{location-services-84wd9syh.js → usage-limits-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-services-88xbtdfr.js → usage-limits-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-services-8n3pysct.js → usage-limits-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-services-8wj87zfr.js → usage-limits-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-services-9a4afbnw.js → usage-limits-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-services-9rqn6x4v.js → usage-limits-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-services-a058387c.js → usage-limits-a058387c.js} +0 -0
- /package/dist/chunks/{location-services-a6k6eb26.js → usage-limits-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-services-af5trqkr.js → usage-limits-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-services-afrmfg78.js → usage-limits-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-services-aqzs7mqg.js → usage-limits-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-services-atq7p7m5.js → usage-limits-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-services-beh6qq61.js → usage-limits-beh6qq61.js} +0 -0
- /package/dist/chunks/{location-services-bkyjaxrp.js → usage-limits-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-services-bmr6ed5q.js → usage-limits-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-services-cf4snx6d.js → usage-limits-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-services-cqv5kn06.js → usage-limits-cqv5kn06.js} +0 -0
- /package/dist/chunks/{location-services-cvy3z8tj.js → usage-limits-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-services-d9fn303g.js → usage-limits-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-services-d9jj8t3e.js → usage-limits-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-services-dajrwvna.js → usage-limits-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-services-dap0rakb.js → usage-limits-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-services-df08tz66.js → usage-limits-df08tz66.js} +0 -0
- /package/dist/chunks/{location-services-dy18nga0.js → usage-limits-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-services-e5kj55wp.js → usage-limits-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-services-e73j6tqm.js → usage-limits-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-services-ec1grn59.js → usage-limits-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-services-eh3zwz77.js → usage-limits-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-services-emrn6kk6.js → usage-limits-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-services-f0mxakyp.js → usage-limits-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-services-f6n9ztr4.js → usage-limits-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-services-faypxj3z.js → usage-limits-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-services-fd410y7t.js → usage-limits-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-services-fkpq3x5p.js → usage-limits-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{location-services-g4wezp1m.js → usage-limits-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-services-g86h250q.js → usage-limits-g86h250q.js} +0 -0
- /package/dist/chunks/{location-services-gebd4c9n.js → usage-limits-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-services-gftt206x.js → usage-limits-gftt206x.js} +0 -0
- /package/dist/chunks/{location-services-hcxmzztb.js → usage-limits-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-services-hk9envan.js → usage-limits-hk9envan.js} +0 -0
- /package/dist/chunks/{location-services-j2ntwpah.js → usage-limits-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-services-j5zkgpj8.js → usage-limits-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-services-jjkms2e6.js → usage-limits-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-services-jr7sbwjy.js → usage-limits-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-services-jwfs4k6c.js → usage-limits-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-services-jwr30sdr.js → usage-limits-jwr30sdr.js} +0 -0
- /package/dist/chunks/{location-services-jze0r7bz.js → usage-limits-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-services-jzg6c2d5.js → usage-limits-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-services-m18g726c.js → usage-limits-m18g726c.js} +0 -0
- /package/dist/chunks/{location-services-mp448xyj.js → usage-limits-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-services-msx8hqn2.js → usage-limits-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-services-n05xt0ee.js → usage-limits-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-services-n3j8tn72.js → usage-limits-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-services-ncqqe42p.js → usage-limits-ncqqe42p.js} +0 -0
- /package/dist/chunks/{location-services-njntx4h6.js → usage-limits-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-services-p71gwv9c.js → usage-limits-p71gwv9c.js} +0 -0
- /package/dist/chunks/{location-services-q3sfg36h.js → usage-limits-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-services-q74kybfr.js → usage-limits-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-services-qaymkmh1.js → usage-limits-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-services-qb87gjwd.js → usage-limits-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-services-qfa1cgps.js → usage-limits-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-services-qg3g05ea.js → usage-limits-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-services-qrg20bc0.js → usage-limits-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-services-rcb2kzg1.js → usage-limits-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-services-sdp7kfr6.js → usage-limits-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-services-ssg3fenm.js → usage-limits-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-services-ve7vex1e.js → usage-limits-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-services-w803qqfp.js → usage-limits-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-services-wc3fc9cn.js → usage-limits-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-services-wer8tq1h.js → usage-limits-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-services-wtztk69x.js → usage-limits-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-services-x0ckcb58.js → usage-limits-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-services-x61499pn.js → usage-limits-x61499pn.js} +0 -0
- /package/dist/chunks/{location-services-y44na4kk.js → usage-limits-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-services-y8f7s663.js → usage-limits-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-services-ygaqb7jw.js → usage-limits-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-services-ym463w8f.js → usage-limits-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-services-z5v4ffb3.js → usage-limits-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-services-z9919s4g.js → usage-limits-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service83
|
|
9
|
+
} from "./usage-limits-06x5j3v9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service81
|
|
12
|
+
} from "./usage-limits-74mxhga0.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service80
|
|
15
|
+
} from "./usage-limits-m7npqwrv.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./usage-limits-e2v23dw8.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service64
|
|
24
|
+
} from "./usage-limits-rrqctmxv.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service19
|
|
27
|
+
} from "./usage-limits-ajwh8a2m.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input2,
|
|
37
|
+
Output: () => Output2,
|
|
38
|
+
Plugin: () => Plugin19,
|
|
39
|
+
name: () => name2,
|
|
40
|
+
toModelContent: () => toModelContent2
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name2 = "glob";
|
|
46
|
+
var Input2 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input13 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output2 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent2 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin19 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service81;
|
|
70
|
+
const ripgrep = yield* Service80;
|
|
71
|
+
const location = yield* Service83;
|
|
72
|
+
const access = yield* Service19;
|
|
73
|
+
const permission = yield* Service64;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name2,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input2,
|
|
79
|
+
output: Output2,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name2,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin15 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent2(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name2, Input2, Output2, toModelContent2, Plugin19, exports_glob };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service69
|
|
3
|
+
} from "./usage-limits-qtks3bwj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./usage-limits-06x5j3v9.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service68
|
|
9
|
+
} from "./usage-limits-q4cdx3an.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-gtn9c16a.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
File2,
|
|
15
|
+
Service48
|
|
16
|
+
} from "./usage-limits-zbkb7r2x.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin36
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -31,17 +31,17 @@ import { sameDirectory } from "@opencode/util/path";
|
|
|
31
31
|
import path, { dirname, join } from "path";
|
|
32
32
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
33
33
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
34
|
-
var
|
|
34
|
+
var Plugin36 = define({
|
|
35
35
|
id: "opencode.config.instruction",
|
|
36
36
|
effect: Effect.fn(function* (ctx) {
|
|
37
|
-
const discovery = yield*
|
|
37
|
+
const discovery = yield* Service48;
|
|
38
38
|
yield* Effect.gen(function* () {
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service68;
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
42
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
43
|
-
const location = yield*
|
|
44
|
-
const watcher = yield*
|
|
43
|
+
const location = yield* Service83;
|
|
44
|
+
const watcher = yield* Service69;
|
|
45
45
|
const changes = yield* PubSub.sliding(1);
|
|
46
46
|
const watches = yield* FiberMap.make();
|
|
47
47
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -66,13 +66,13 @@ var Plugin24 = define({
|
|
|
66
66
|
yield* updates.pipe(Stream.runForEach(publish), Effect.forkScoped({ startImmediately: true }));
|
|
67
67
|
}
|
|
68
68
|
const read = Effect.fn("ConfigInstructionPlugin.read")(function* (filepath) {
|
|
69
|
-
return yield* fs.readFileString(filepath).pipe(Effect.map((content) => new
|
|
69
|
+
return yield* fs.readFileString(filepath).pipe(Effect.map((content) => new File2({ path: filepath, content })), Effect.catchIf((error) => error.reason._tag === "NotFound" || FSUtil.isAccessDenied(error), (error) => Effect.logDebug("instruction file skipped", { path: filepath, reason: error.reason._tag }).pipe(Effect.as(error.reason._tag === "NotFound" ? undefined : "denied"))));
|
|
70
70
|
});
|
|
71
71
|
const globalSource = Effect.fn("ConfigInstructionPlugin.globalSource")(function* () {
|
|
72
72
|
if (!discovery.global || !(yield* fs.isFile(globalFile)))
|
|
73
73
|
return [];
|
|
74
74
|
const file = yield* read(globalFile);
|
|
75
|
-
return file instanceof
|
|
75
|
+
return file instanceof File2 ? [file] : [];
|
|
76
76
|
});
|
|
77
77
|
const projectSource = Effect.fn("ConfigInstructionPlugin.projectSource")(function* () {
|
|
78
78
|
if (!project)
|
|
@@ -82,7 +82,7 @@ var Plugin24 = define({
|
|
|
82
82
|
const files = yield* Effect.forEach(discovered, read, { concurrency: "unbounded" });
|
|
83
83
|
if (files.some((file) => file === undefined))
|
|
84
84
|
return unavailable3;
|
|
85
|
-
return files.filter((file) => file instanceof
|
|
85
|
+
return files.filter((file) => file instanceof File2);
|
|
86
86
|
});
|
|
87
87
|
const match = Effect.fn("ConfigInstructionPlugin.match")(function* (source) {
|
|
88
88
|
const expanded = source.startsWith("~/") ? path.join(global.home, source.slice(2)) : source;
|
|
@@ -117,7 +117,7 @@ var Plugin24 = define({
|
|
|
117
117
|
continue;
|
|
118
118
|
watched.add(resolved);
|
|
119
119
|
const file = yield* read(resolved);
|
|
120
|
-
if (file instanceof
|
|
120
|
+
if (file instanceof File2)
|
|
121
121
|
files.push(file);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -136,7 +136,7 @@ var Plugin24 = define({
|
|
|
136
136
|
const reconfigure = Effect.fn("ConfigInstructionPlugin.reconfigure")(function* () {
|
|
137
137
|
const entries = yield* config.entries();
|
|
138
138
|
const sources = Array.from(new Set(entries.flatMap((entry) => entry.type === "document" ? entry.info.instructions ?? [] : [])));
|
|
139
|
-
const fetched = yield* Effect.forEach(sources.filter(isUrl), (url) => HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.text), Effect.timeout("5 seconds"), Effect.map((content) => new
|
|
139
|
+
const fetched = yield* Effect.forEach(sources.filter(isUrl), (url) => HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.text), Effect.timeout("5 seconds"), Effect.map((content) => new File2({ path: url, content })), Effect.catchCause((cause) => Effect.logWarning("failed to fetch instruction url", { url, cause }).pipe(Effect.as(configured.remote.get(url))))), { concurrency: 4 });
|
|
140
140
|
configured.sources = sources;
|
|
141
141
|
configured.remote = new Map(fetched.filter((file) => file !== undefined).map((file) => [file.path, file]));
|
|
142
142
|
}, (effect) => lock.withPermit(effect));
|
|
@@ -180,4 +180,4 @@ function isUrl(source) {
|
|
|
180
180
|
return URL.canParse(source) && /^https?:$/.test(new URL(source).protocol);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { Plugin36, exports_instruction };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-gvgqw8vw.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-9mw2y3qc.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -20,7 +20,7 @@ class EffectSQLiteDatabase2 extends SQLiteEffectDatabase2 {
|
|
|
20
20
|
static [entityKind] = "EffectSQLiteDatabase";
|
|
21
21
|
}
|
|
22
22
|
var DefaultServices2 = Layer.merge(EffectCache.Default, EffectLogger.Default);
|
|
23
|
-
var
|
|
23
|
+
var make24 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
24
24
|
const client = yield* SqlClient;
|
|
25
25
|
const cache = yield* EffectCache;
|
|
26
26
|
const logger = yield* EffectLogger;
|
|
@@ -37,6 +37,6 @@ var make25 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
|
37
37
|
db.$cache.invalidate = cache.onMutate;
|
|
38
38
|
return db;
|
|
39
39
|
});
|
|
40
|
-
var makeWithDefaults2 = (config = {}) =>
|
|
40
|
+
var makeWithDefaults2 = (config = {}) => make24(config).pipe(Effect.provide(DefaultServices2));
|
|
41
41
|
|
|
42
|
-
export { EffectSQLiteDatabase2, DefaultServices2,
|
|
42
|
+
export { EffectSQLiteDatabase2, DefaultServices2, make24, makeWithDefaults2 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service68
|
|
4
|
+
} from "./usage-limits-q4cdx3an.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./usage-limits-hpg1pkwy.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service64
|
|
10
|
+
} from "./usage-limits-rrqctmxv.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/todo.ts
|
|
16
16
|
var exports_todo = {};
|
|
17
17
|
__export(exports_todo, {
|
|
18
18
|
Info: () => Info2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
Output: () =>
|
|
21
|
-
Plugin: () =>
|
|
19
|
+
Input: () => Input13,
|
|
20
|
+
Output: () => Output9,
|
|
21
|
+
Plugin: () => Plugin32,
|
|
22
22
|
TodoTool: () => exports_todo,
|
|
23
|
-
name: () =>
|
|
23
|
+
name: () => name13,
|
|
24
24
|
summarize: () => summarize2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
@@ -37,17 +37,17 @@ Use it proactively when a task has 3 or more distinct steps, or when the user gi
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
// src/tool/plugin/todo.ts
|
|
40
|
-
var
|
|
40
|
+
var name13 = "todowrite";
|
|
41
41
|
var Info2 = Schema.Struct({
|
|
42
42
|
content: Schema.String.annotate({ description: "Brief description of the task" }),
|
|
43
43
|
status: Schema.Literals(["pending", "in_progress", "completed", "cancelled"]).annotate({
|
|
44
44
|
description: "Current status of the task: pending, in_progress, completed, cancelled"
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var Input13 = Schema.Struct({
|
|
48
48
|
todos: Schema.Array(Info2).annotate({ description: "The updated todo list" })
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Output9 = Schema.Struct({
|
|
51
51
|
todos: Schema.Array(Info2)
|
|
52
52
|
});
|
|
53
53
|
var summarize2 = (todos) => {
|
|
@@ -61,24 +61,24 @@ var summarize2 = (todos) => {
|
|
|
61
61
|
const active = todos.filter((todo) => todo.status === "in_progress").map((todo) => JSON.stringify(todo.content));
|
|
62
62
|
return `Todos updated: ${counts}${active.length ? `. In progress: ${active.join(", ")}` : ""}`;
|
|
63
63
|
};
|
|
64
|
-
var
|
|
64
|
+
var Plugin32 = {
|
|
65
65
|
id: "opencode.tool.todo",
|
|
66
66
|
effect: Effect.fn("TodoTool.Plugin")(function* (ctx) {
|
|
67
|
-
const config = yield*
|
|
68
|
-
const permission = yield*
|
|
67
|
+
const config = yield* Service68;
|
|
68
|
+
const permission = yield* Service64;
|
|
69
69
|
const loaded = yield* observe2(config, ctx.event, ctx.tool.reload());
|
|
70
70
|
const enabled = () => latest2(loaded.entries, "experimental")?.todo === true;
|
|
71
71
|
yield* ctx.tool.transform((editor) => {
|
|
72
72
|
if (!enabled())
|
|
73
73
|
return;
|
|
74
74
|
editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name13,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: todowrite_default,
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input13,
|
|
79
|
+
output: Output9,
|
|
80
80
|
execute: (input, context) => permission.assert({
|
|
81
|
-
action:
|
|
81
|
+
action: name13,
|
|
82
82
|
resources: ["*"],
|
|
83
83
|
save: ["*"],
|
|
84
84
|
sessionID: context.sessionID,
|
|
@@ -94,4 +94,4 @@ var Plugin7 = {
|
|
|
94
94
|
})
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
export {
|
|
97
|
+
export { name13, Info2, Input13, Output9, summarize2, Plugin32, exports_todo };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make22,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-gtn9c16a.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./usage-limits-fffv3p7h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
17
|
var exports_instructions5 = {};
|
|
18
18
|
__export(exports_instructions5, {
|
|
19
19
|
CodeModeInstructions: () => exports_instructions5,
|
|
20
|
-
make: () =>
|
|
20
|
+
make: () => make17,
|
|
21
21
|
render: () => render3,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
@@ -111,9 +111,9 @@ ${render3(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make17 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make22({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
@@ -125,4 +125,4 @@ var make16 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render3, update3,
|
|
128
|
+
export { render3, update3, make17, exports_instructions5 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTable2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-034tev2y.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/project/icon.ts
|
|
9
9
|
var exports_icon = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-8k57k3bn.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./usage-limits-b1q5yrpf.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service83,
|
|
11
|
+
node87
|
|
12
|
+
} from "./usage-limits-06x5j3v9.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
synthetics2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-axay07fs.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/session/instructions.ts
|
|
24
24
|
var exports_instructions = {};
|
|
25
25
|
__export(exports_instructions, {
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service7,
|
|
27
27
|
SessionInstructions: () => exports_instructions,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node9
|
|
29
29
|
});
|
|
30
30
|
import { relative } from "path";
|
|
31
31
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -35,13 +35,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
35
35
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service7 extends Context.Service()("@opencode/SessionInstructions") {
|
|
39
39
|
}
|
|
40
|
-
var layer = Layer.effect(
|
|
40
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
41
41
|
const bus = yield* Service86;
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const db = (yield* Service87).db;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service83;
|
|
45
45
|
const root = yield* fs.resolve(location.project.directory);
|
|
46
46
|
const inFlight = yield* Ref.make(new Map);
|
|
47
47
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -87,7 +87,7 @@ ${file.content}`).join(`
|
|
|
87
87
|
return next;
|
|
88
88
|
})));
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service7.of({ load });
|
|
91
91
|
}));
|
|
92
92
|
function previouslyInjected(db, sessionID) {
|
|
93
93
|
return Effect.gen(function* () {
|
|
@@ -98,10 +98,10 @@ function previouslyInjected(db, sessionID) {
|
|
|
98
98
|
function describePath(root, path) {
|
|
99
99
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
100
100
|
}
|
|
101
|
-
var
|
|
101
|
+
var node9 = makeLocationNode({
|
|
102
102
|
name: "session-instructions",
|
|
103
103
|
layer,
|
|
104
|
-
deps: [node90, node91, FSUtil.node,
|
|
104
|
+
deps: [node90, node91, FSUtil.node, node87]
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
export {
|
|
107
|
+
export { Service7, node9, exports_instructions };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-b1q5yrpf.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./usage-limits-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service83,
|
|
10
|
+
node87
|
|
11
|
+
} from "./usage-limits-06x5j3v9.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service47,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
node51
|
|
16
|
+
} from "./usage-limits-2syb7k54.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
|
-
CreateInput: () =>
|
|
25
|
-
Event: () =>
|
|
24
|
+
CreateInput: () => CreateInput3,
|
|
25
|
+
Event: () => Event7,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID4,
|
|
28
|
+
Info: () => Info7,
|
|
29
|
+
NotFoundError: () => NotFoundError6,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service46,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node50
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event7 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var ID4 = Pty.ID;
|
|
43
|
+
var Info7 = Pty.Info;
|
|
44
|
+
var CreateInput3 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError6 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID4
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID4
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service46 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service86;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
61
|
+
const location = yield* Service83;
|
|
62
|
+
const shell = yield* Service47;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID4.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service46.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node50 = makeLocationNode({
|
|
273
|
+
service: Service46,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node90,
|
|
275
|
+
deps: [node90, node87, node51]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID4, Info7, CreateInput3, UpdateInput2, NotFoundError6, ExitedError2, Service46, node50, exports_pty, Event7 };
|