@opencode/core 2.2.3 → 2.2.5
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 +92 -91
- package/dist/aisdk-native.js +102 -101
- package/dist/aisdk.js +108 -107
- package/dist/app.js +9 -9
- package/dist/artifact.js +267 -0
- package/dist/bus.js +84 -83
- package/dist/chunks/{usage-limits-034tev2y.js → location-034tev2y.js} +2 -2
- package/dist/chunks/{usage-limits-fjz66g9m.js → location-04s74fx7.js} +5 -5
- package/dist/chunks/{usage-limits-h7zpsm02.js → location-07m5epzk.js} +8 -8
- package/dist/chunks/{usage-limits-gqnkkt2t.js → location-0bxzm2zt.js} +25 -25
- package/dist/chunks/{usage-limits-bx8w4fye.js → location-0g38r5dn.js} +6 -6
- package/dist/chunks/{usage-limits-sqjzf8x2.js → location-0j7gp832.js} +4 -4
- package/dist/chunks/{usage-limits-qzk2n153.js → location-0mtp185z.js} +11 -11
- package/dist/chunks/{usage-limits-hkq0605p.js → location-0n47t93t.js} +19 -19
- package/dist/chunks/{usage-limits-m6e4v83y.js → location-0r9qm1b5.js} +13 -13
- package/dist/chunks/{usage-limits-hnsyj4wy.js → location-0te9php1.js} +6 -6
- package/dist/chunks/{usage-limits-cy8gb27n.js → location-0tnznt5m.js} +93 -92
- package/dist/chunks/{usage-limits-k4n5rdea.js → location-0v7dsvys.js} +28 -28
- package/dist/chunks/{usage-limits-k0dvq0p8.js → location-18aa7g5f.js} +2 -2
- package/dist/chunks/{usage-limits-1aqsckx4.js → location-1aqsckx4.js} +1 -1
- package/dist/chunks/{usage-limits-1ep2p91f.js → location-1ep2p91f.js} +2 -2
- package/dist/chunks/{usage-limits-a058387c.js → location-1pevy3nx.js} +11 -4
- package/dist/chunks/{usage-limits-qsrr0pb2.js → location-1rx1hnzt.js} +2 -2
- package/dist/chunks/{usage-limits-msd2a3qm.js → location-1v2g13eq.js} +4 -4
- package/dist/chunks/{usage-limits-zzr7ewsq.js → location-1ws9awgf.js} +3 -3
- package/dist/chunks/{usage-limits-1x2knyw4.js → location-1x2knyw4.js} +1 -1
- package/dist/chunks/{usage-limits-ypj1acmt.js → location-1x7bzasz.js} +4 -4
- package/dist/chunks/{usage-limits-p7vhpwh8.js → location-1yq9hg58.js} +5 -5
- package/dist/chunks/{usage-limits-9eh6sf6d.js → location-23kefcxh.js} +5 -5
- package/dist/chunks/{usage-limits-29g8zhjy.js → location-29q1ynsb.js} +11 -11
- package/dist/chunks/{usage-limits-zzyrkxde.js → location-2bhb5h7h.js} +21 -21
- package/dist/chunks/{usage-limits-388adpjt.js → location-2kt40n0h.js} +28 -28
- package/dist/chunks/{usage-limits-m219wbpy.js → location-2n49ywt8.js} +7 -7
- package/dist/chunks/{usage-limits-2p60zmnr.js → location-2p60zmnr.js} +2 -2
- package/dist/chunks/{usage-limits-3nnc7tm4.js → location-2vjw39cp.js} +31 -31
- package/dist/chunks/{usage-limits-8n2zw19c.js → location-2xfkfqe0.js} +3 -3
- package/dist/chunks/{usage-limits-7hxch2qy.js → location-308d3261.js} +2 -2
- package/dist/chunks/{usage-limits-2qxqxxnw.js → location-35jwj28y.js} +4 -4
- package/dist/chunks/{usage-limits-80vrve0e.js → location-36ccx1qg.js} +22 -22
- package/dist/chunks/{usage-limits-8srhw74s.js → location-38aws4xb.js} +7 -8
- package/dist/chunks/{usage-limits-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{usage-limits-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
- package/dist/chunks/{usage-limits-k20abjym.js → location-3qjct0tr.js} +21 -21
- package/dist/chunks/{usage-limits-e2rhb6tw.js → location-3x6qh80y.js} +8 -8
- package/dist/chunks/{usage-limits-40y6dtc2.js → location-40y6dtc2.js} +1 -1
- package/dist/chunks/{usage-limits-w2eysc6j.js → location-40za9wsf.js} +9 -9
- package/dist/chunks/{usage-limits-44pmzq9c.js → location-44pmzq9c.js} +2 -2
- package/dist/chunks/{usage-limits-0xzgxfq0.js → location-49ewxxyg.js} +12 -12
- package/dist/chunks/{usage-limits-474t0jp4.js → location-4cggrrsp.js} +1 -1
- package/dist/chunks/{usage-limits-y61545pt.js → location-4cm7qjrx.js} +11 -11
- package/dist/chunks/{usage-limits-4d2dtj2f.js → location-4d2dtj2f.js} +1 -1
- package/dist/chunks/{usage-limits-4dx1dgte.js → location-4dx1dgte.js} +1 -1
- package/dist/chunks/{usage-limits-r542h3bh.js → location-4f25tdd0.js} +5 -5
- package/dist/chunks/{usage-limits-k0sc0549.js → location-4g60rn0h.js} +41 -41
- package/dist/chunks/{usage-limits-tnn0wdmp.js → location-4gmq5zmz.js} +9 -9
- package/dist/chunks/{usage-limits-8ww20s18.js → location-4pqhsa69.js} +27 -27
- package/dist/chunks/{usage-limits-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
- package/dist/chunks/{usage-limits-4v008n1t.js → location-4v008n1t.js} +1 -1
- package/dist/chunks/{usage-limits-kh70vamz.js → location-51vbvb0m.js} +3 -3
- package/dist/chunks/{usage-limits-da6a8czh.js → location-525wwyj8.js} +9 -9
- package/dist/chunks/{usage-limits-htq0fyv1.js → location-53kbtjgk.js} +8 -8
- package/dist/chunks/{usage-limits-m027q5yz.js → location-5410tw2w.js} +5 -5
- package/dist/chunks/{usage-limits-7gp52k32.js → location-55vzv2z0.js} +19 -19
- package/dist/chunks/{usage-limits-d1vch9mx.js → location-59f8nn63.js} +4 -4
- package/dist/chunks/{usage-limits-en6c2g1y.js → location-59jdbvtx.js} +11 -11
- package/dist/chunks/{usage-limits-9daenajy.js → location-59m21zek.js} +23 -23
- package/dist/chunks/{usage-limits-cwz64wqk.js → location-5exj1349.js} +9 -9
- package/dist/chunks/{usage-limits-03mq5jdz.js → location-5g4e44xt.js} +19 -19
- package/dist/chunks/{usage-limits-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{usage-limits-nmbybfz1.js → location-5n8a870q.js} +13 -13
- package/dist/chunks/{usage-limits-ktf6v6ad.js → location-5nrmkrh9.js} +32 -32
- package/dist/chunks/{usage-limits-1w61pkx2.js → location-5tr0rk86.js} +20 -20
- package/dist/chunks/{usage-limits-4h9sjm86.js → location-5w0wh532.js} +31 -31
- package/dist/chunks/{usage-limits-668rppz5.js → location-5wzr0xmz.js} +11 -11
- package/dist/chunks/{usage-limits-9xnvtjrj.js → location-5z25cm6z.js} +10 -10
- package/dist/chunks/{usage-limits-84ce92z0.js → location-5zmy73z4.js} +43 -43
- package/dist/chunks/{usage-limits-stkk57rt.js → location-6agm2x70.js} +19 -0
- package/dist/chunks/{usage-limits-5a543fyv.js → location-6bg8krdj.js} +20 -20
- package/dist/chunks/{usage-limits-6esdw8yj.js → location-6esdw8yj.js} +1 -1
- package/dist/chunks/{usage-limits-902cdbxm.js → location-6rysv0em.js} +37 -37
- package/dist/chunks/{usage-limits-m0db3c0y.js → location-6w66fgr9.js} +6 -6
- package/dist/chunks/{usage-limits-vek77fn1.js → location-6xtjqz2m.js} +4 -4
- package/dist/chunks/{usage-limits-7ass9zk5.js → location-72cd9sja.js} +9 -9
- package/dist/chunks/{usage-limits-w8qtt4th.js → location-76cb1hcw.js} +4 -4
- package/dist/chunks/{usage-limits-775hqbnd.js → location-775hqbnd.js} +3 -3
- package/dist/chunks/{usage-limits-y5an59n2.js → location-7989c5m3.js} +35 -35
- package/dist/chunks/{usage-limits-q1nnka74.js → location-7bg5w1mh.js} +8 -8
- package/dist/chunks/{usage-limits-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{usage-limits-0weke1bx.js → location-7c77zw03.js} +19 -19
- package/dist/chunks/{usage-limits-mkvajvdj.js → location-7cszg9qg.js} +11 -11
- package/dist/chunks/{usage-limits-qqaph24h.js → location-7g1t08v3.js} +43 -43
- package/dist/chunks/{usage-limits-7kr66rt3.js → location-7kr66rt3.js} +1 -1
- package/dist/chunks/{usage-limits-rca9n2n2.js → location-7qtjan0s.js} +9 -9
- package/dist/chunks/{usage-limits-m979knme.js → location-7rrwvpx0.js} +6 -6
- package/dist/chunks/{usage-limits-161gdnzb.js → location-7v32djr5.js} +11 -11
- package/dist/chunks/{usage-limits-774q7b2v.js → location-7vrt23ax.js} +28 -28
- package/dist/chunks/{usage-limits-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
- package/dist/chunks/{usage-limits-89287pr7.js → location-89287pr7.js} +1 -1
- package/dist/chunks/{usage-limits-25h84942.js → location-8b3vzgkx.js} +4 -4
- package/dist/chunks/{usage-limits-94v1enck.js → location-8bdk3xv4.js} +15 -15
- package/dist/chunks/location-8bkeh70z.js +152 -0
- package/dist/chunks/{usage-limits-qv7a899h.js → location-8bpbrx89.js} +23 -23
- package/dist/chunks/{usage-limits-bpj7e5pf.js → location-8bw9rmyf.js} +12 -12
- package/dist/chunks/{usage-limits-3cn1nqds.js → location-8kmcapts.js} +22 -22
- package/dist/chunks/{usage-limits-ty5qxp0p.js → location-8pwhzr69.js} +16 -16
- package/dist/chunks/{usage-limits-xa14bxe7.js → location-8w0ebqqh.js} +13 -13
- package/dist/chunks/{usage-limits-y5r9v80f.js → location-8w57drsc.js} +3 -3
- package/dist/chunks/{usage-limits-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
- package/dist/chunks/{usage-limits-58h557c0.js → location-8wv7qc9x.js} +1 -1
- package/dist/chunks/{usage-limits-s4y30yy0.js → location-8yahp800.js} +19 -19
- package/dist/chunks/{usage-limits-90zstvax.js → location-90zstvax.js} +1 -1
- package/dist/chunks/{usage-limits-95sp4hdf.js → location-95sp4hdf.js} +1 -1
- package/dist/chunks/{usage-limits-b9a8fgmc.js → location-9cez4ha1.js} +85 -85
- package/dist/chunks/{usage-limits-7y2j04q1.js → location-9cr47wgy.js} +7 -7
- package/dist/chunks/{usage-limits-b41wgt7r.js → location-9d8vbkrs.js} +22 -22
- package/dist/chunks/{usage-limits-ccjxwn3d.js → location-9rh87f65.js} +4 -4
- package/dist/chunks/{usage-limits-dm1b1mmt.js → location-9sy1j1hj.js} +4 -4
- package/dist/chunks/{usage-limits-60mrzfj0.js → location-9tsmdv4c.js} +16 -16
- package/dist/chunks/{usage-limits-y1s46rby.js → location-9vy8452z.js} +3 -3
- package/dist/chunks/{usage-limits-9jq890y0.js → location-9xg8q822.js} +29 -29
- package/dist/chunks/{usage-limits-vgpm2vyx.js → location-9yb3zcdq.js} +17 -17
- package/dist/chunks/{usage-limits-9nkjg9qd.js → location-9yqjp86x.js} +6 -6
- package/dist/chunks/{usage-limits-mrpnjyvf.js → location-a5fx33f2.js} +2 -2
- package/dist/chunks/{usage-limits-npn7q6je.js → location-a605syc4.js} +11 -11
- package/dist/chunks/{usage-limits-z2xe5rth.js → location-aenn6vam.js} +7 -7
- package/dist/chunks/{usage-limits-a3v55ybv.js → location-ar1ykng7.js} +16 -16
- package/dist/chunks/{usage-limits-ayjs7tqn.js → location-ayjs7tqn.js} +2 -2
- package/dist/chunks/{usage-limits-j38jzfz7.js → location-b0mvxz9p.js} +6 -6
- package/dist/chunks/{usage-limits-2bsm227b.js → location-b1w7ct0q.js} +9 -9
- package/dist/chunks/{usage-limits-6wg1qg5c.js → location-b44mzvm2.js} +3 -3
- package/dist/chunks/{usage-limits-b6vsg801.js → location-b6vsg801.js} +2 -2
- package/dist/chunks/{usage-limits-49xxf483.js → location-bd2tgyqc.js} +22 -22
- package/dist/chunks/{usage-limits-s731tgr5.js → location-bj94m9aa.js} +25 -25
- package/dist/chunks/{usage-limits-hyc87431.js → location-bmaqsw9f.js} +21 -21
- package/dist/chunks/{usage-limits-1j0ttc0k.js → location-br0vy00v.js} +59 -34
- package/dist/chunks/{usage-limits-c4cws4p8.js → location-brzehw6d.js} +3 -3
- package/dist/chunks/{usage-limits-bstexjd6.js → location-bstexjd6.js} +1 -1
- package/dist/chunks/{usage-limits-0d2428b6.js → location-btd8fxqm.js} +22 -22
- package/dist/chunks/{usage-limits-k2m4hrdy.js → location-c33rx4fz.js} +92 -38
- package/dist/chunks/location-c63hjbxg.js +549 -0
- package/dist/chunks/{usage-limits-f6p21kdy.js → location-c8nm6r9n.js} +33 -33
- package/dist/chunks/{usage-limits-f5d5a401.js → location-c936wf6s.js} +8 -8
- package/dist/chunks/{usage-limits-2862kdgf.js → location-cdyxbmf6.js} +18 -18
- package/dist/chunks/{usage-limits-yy0ph7eq.js → location-cf3f13z6.js} +8 -8
- package/dist/chunks/{usage-limits-ymyp89gh.js → location-cma2wmmz.js} +11 -11
- package/dist/chunks/{usage-limits-ndw3w55s.js → location-cn293ev4.js} +11 -11
- package/dist/chunks/{usage-limits-gdaxappr.js → location-cp50ck8v.js} +41 -41
- package/dist/chunks/{usage-limits-cta89apb.js → location-cqpeez8k.js} +6 -6
- package/dist/chunks/{usage-limits-5n0rnk8e.js → location-cr4rfj9z.js} +4 -4
- package/dist/chunks/{usage-limits-cwrgdav8.js → location-cwrgdav8.js} +2 -2
- package/dist/chunks/{usage-limits-jwv04pkk.js → location-cx9aej0j.js} +3 -3
- package/dist/chunks/{usage-limits-e5r74ts4.js → location-d06vrnws.js} +11 -11
- package/dist/chunks/{usage-limits-d4v9tmah.js → location-d4v9tmah.js} +2 -2
- package/dist/chunks/{usage-limits-g8wef12p.js → location-dk52qdp1.js} +18 -18
- package/dist/chunks/{usage-limits-bmphwkmb.js → location-dmj8812b.js} +7 -7
- package/dist/chunks/{usage-limits-bypbe432.js → location-drmcc20n.js} +17 -17
- package/dist/chunks/{usage-limits-dt77769w.js → location-dt77769w.js} +1 -1
- package/dist/chunks/{usage-limits-egzae5dw.js → location-dtwq3btp.js} +22 -22
- package/dist/chunks/{usage-limits-f2kytvwy.js → location-dw7b814a.js} +7 -7
- package/dist/chunks/{usage-limits-qp5navez.js → location-dzrhv8qk.js} +12 -12
- package/dist/chunks/{usage-limits-7dz1b5qc.js → location-e0wvbr5s.js} +26 -26
- package/dist/chunks/{usage-limits-nmwft8kx.js → location-e6x1stkt.js} +8 -8
- package/dist/chunks/{usage-limits-e834z07m.js → location-e834z07m.js} +1 -1
- package/dist/chunks/{usage-limits-jnc77vb7.js → location-e8xs0hrs.js} +34 -34
- package/dist/chunks/{usage-limits-7a3ts1e5.js → location-eafxjg76.js} +21 -21
- package/dist/chunks/{usage-limits-0885wsjc.js → location-ed3xm8n8.js} +13 -13
- package/dist/chunks/{usage-limits-76mdcqjq.js → location-eggchsdy.js} +52 -49
- package/dist/chunks/{usage-limits-mw5z1gck.js → location-ehr8xgyf.js} +27 -27
- package/dist/chunks/{usage-limits-marjhpxb.js → location-ens3tcp1.js} +96 -35
- package/dist/chunks/{usage-limits-eqw4pqj1.js → location-eqw4pqj1.js} +2 -2
- package/dist/chunks/{usage-limits-d8nyttsp.js → location-ez4sqtdc.js} +3 -3
- package/dist/chunks/{usage-limits-dpqc1c18.js → location-f0dksw75.js} +25 -25
- package/dist/chunks/{usage-limits-pav9knxy.js → location-f14cyvgj.js} +56 -56
- package/dist/chunks/{usage-limits-941ns1g4.js → location-f3p7yfyn.js} +49 -31
- package/dist/chunks/{usage-limits-8r6p5f50.js → location-f5vcy7cw.js} +41 -41
- package/dist/chunks/{usage-limits-7fhwv4x0.js → location-f7y682yq.js} +13 -13
- package/dist/chunks/{usage-limits-qbh9qxse.js → location-fc5n2123.js} +29 -29
- package/dist/chunks/{usage-limits-h5zbxgdz.js → location-fd72j55m.js} +14 -14
- package/dist/chunks/{usage-limits-bzp09gqc.js → location-fezcm6md.js} +5 -5
- package/dist/chunks/{usage-limits-fffv3p7h.js → location-fffv3p7h.js} +1 -1
- package/dist/chunks/{usage-limits-fg9p65nk.js → location-fg9p65nk.js} +2 -2
- package/dist/chunks/{usage-limits-23yt1abd.js → location-frb1kcyz.js} +14 -14
- package/dist/chunks/{usage-limits-8v3021e0.js → location-fyexgk21.js} +185 -156
- package/dist/chunks/{usage-limits-xgtstc0b.js → location-fyrxvspy.js} +9 -9
- package/dist/chunks/{usage-limits-wr3re1en.js → location-fznmdakp.js} +4 -4
- package/dist/chunks/{usage-limits-gbjdnr5j.js → location-gbjdnr5j.js} +2 -2
- package/dist/chunks/location-gfyq7nf6.js +261 -0
- package/dist/chunks/{usage-limits-yepgas63.js → location-ghc591q0.js} +9 -9
- package/dist/chunks/{usage-limits-rf9654yx.js → location-ghq3p18c.js} +33 -33
- package/dist/chunks/{usage-limits-tg7s7b5t.js → location-gxs71cxp.js} +4 -4
- package/dist/chunks/{usage-limits-8rsvvp9m.js → location-gxwrqh3j.js} +20 -20
- package/dist/chunks/{usage-limits-k382atqt.js → location-h1mxyb9b.js} +27 -27
- package/dist/chunks/{usage-limits-dmwpx947.js → location-h9cmwr7b.js} +50 -17
- package/dist/chunks/{usage-limits-hh7kjqtw.js → location-hh7kjqtw.js} +1 -1
- package/dist/chunks/{usage-limits-feqecrca.js → location-hhmyrxbe.js} +54 -54
- package/dist/chunks/{usage-limits-z1n4r95z.js → location-hmtz2swc.js} +8 -8
- package/dist/chunks/{usage-limits-hpg1pkwy.js → location-hpg1pkwy.js} +1 -1
- package/dist/chunks/{usage-limits-evr76v84.js → location-hsnq1va6.js} +5 -5
- package/dist/chunks/{usage-limits-j9nxzz3g.js → location-j9nxzz3g.js} +3 -3
- package/dist/chunks/{usage-limits-j79p8763.js → location-jdvbwyx1.js} +33 -33
- package/dist/chunks/{usage-limits-694dpcrp.js → location-jjvvtnfs.js} +7 -7
- package/dist/chunks/{usage-limits-xmtg6xg5.js → location-jkjd442p.js} +18 -18
- package/dist/chunks/{usage-limits-whck4r0n.js → location-jmzabh9h.js} +4 -4
- package/dist/chunks/{usage-limits-114c099t.js → location-jmzwaa7b.js} +13 -13
- package/dist/chunks/{usage-limits-5k9ccchm.js → location-jn0kdwgr.js} +63 -59
- package/dist/chunks/{usage-limits-jtnps1zs.js → location-jtnps1zs.js} +2 -2
- package/dist/chunks/{usage-limits-qj1k32xn.js → location-jzy5v0rq.js} +16 -20
- package/dist/chunks/{usage-limits-k3cx6fhe.js → location-k3cx6fhe.js} +1 -1
- package/dist/chunks/{usage-limits-20pht57w.js → location-k46dd5bg.js} +4 -4
- package/dist/chunks/{usage-limits-mbr47c0q.js → location-k6wqmgb4.js} +8 -5
- package/dist/chunks/{usage-limits-q9sn4ddb.js → location-kpnbp2w1.js} +4 -4
- package/dist/chunks/{usage-limits-n9y0vfz9.js → location-kqmkex8x.js} +11 -11
- package/dist/chunks/{usage-limits-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
- package/dist/chunks/{usage-limits-vbttd8dk.js → location-kwh6gk3b.js} +30 -30
- package/dist/chunks/location-kz8k7fc4.js +494 -0
- package/dist/chunks/location-kzczzf4v.js +25 -0
- package/dist/chunks/{usage-limits-y3seyarw.js → location-m15ha2ry.js} +6 -6
- package/dist/chunks/{usage-limits-m1714858.js → location-m1714858.js} +1 -1
- package/dist/chunks/{usage-limits-e3hd0enn.js → location-m3732gr3.js} +11 -11
- package/dist/chunks/{usage-limits-ewezx4md.js → location-m428re2m.js} +15 -15
- package/dist/chunks/{usage-limits-8s96kadw.js → location-m4yf5w44.js} +4 -4
- package/dist/chunks/{usage-limits-8zqj3j1k.js → location-m6dftb9s.js} +14 -14
- package/dist/chunks/{usage-limits-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{usage-limits-mb7mbhnz.js → location-mb7mbhnz.js} +3 -3
- package/dist/chunks/{usage-limits-b9qn7d7q.js → location-mf7htz9g.js} +14 -14
- package/dist/chunks/{usage-limits-2q0ftwq8.js → location-mh8f761v.js} +15 -15
- package/dist/chunks/{usage-limits-b4zj633n.js → location-mqvrp24e.js} +20 -20
- package/dist/chunks/{usage-limits-jq3a00x6.js → location-n8868hmk.js} +16 -16
- package/dist/chunks/{usage-limits-nah043kf.js → location-nah043kf.js} +1 -1
- package/dist/chunks/{usage-limits-8hdxb4rm.js → location-nc6nx9yw.js} +14 -14
- package/dist/chunks/{usage-limits-d4ftrgr2.js → location-nw8h2gm9.js} +52 -47
- package/dist/chunks/{usage-limits-b0gnbynm.js → location-nza63h0f.js} +4 -4
- package/dist/chunks/{usage-limits-p015t6z3.js → location-p015t6z3.js} +2 -2
- package/dist/chunks/{usage-limits-5vty935g.js → location-p0bvm3mz.js} +1 -1
- package/dist/chunks/{usage-limits-0ek446ey.js → location-p3mcy6k9.js} +24 -24
- package/dist/chunks/{usage-limits-ar4q0bdv.js → location-p6asq4h2.js} +25 -25
- package/dist/chunks/{usage-limits-w6xtvkbn.js → location-pb9f2w3m.js} +21 -21
- package/dist/chunks/{usage-limits-c26bh0y8.js → location-pdcm1vsp.js} +13 -13
- package/dist/chunks/{usage-limits-8j99vdm2.js → location-pfajyap1.js} +33 -33
- package/dist/chunks/{usage-limits-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{usage-limits-693ajvae.js → location-pn0wtb08.js} +88 -88
- package/dist/chunks/{usage-limits-cx6jnjd2.js → location-pn5770m6.js} +8 -8
- package/dist/chunks/{usage-limits-eayabys9.js → location-pztrfj7m.js} +25 -25
- package/dist/chunks/{usage-limits-xcp7yafh.js → location-q59xwwww.js} +49 -48
- package/dist/chunks/{usage-limits-2y95b060.js → location-q997f3bj.js} +10 -10
- package/dist/chunks/{usage-limits-r0vy810z.js → location-qk1xf9tb.js} +14 -14
- package/dist/chunks/location-qmh7vbk2.js +18 -0
- package/dist/chunks/{usage-limits-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
- package/dist/chunks/{usage-limits-pcx93rbs.js → location-qqm6wpaa.js} +23 -18
- package/dist/chunks/{usage-limits-qqvy8y24.js → location-qqvy8y24.js} +1 -1
- package/dist/chunks/{usage-limits-zmnc4hw2.js → location-qvpjn6tt.js} +9 -9
- package/dist/chunks/{usage-limits-6ztqv1pd.js → location-qvy2ktv7.js} +15 -15
- package/dist/chunks/{usage-limits-m8tca5a1.js → location-qzzv0ezg.js} +7 -7
- package/dist/chunks/{usage-limits-04p08dea.js → location-r9wk52xc.js} +14 -14
- package/dist/chunks/{usage-limits-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
- package/dist/chunks/{usage-limits-yqveydy6.js → location-rbg54dp1.js} +4 -4
- package/dist/chunks/{usage-limits-6er5y2fs.js → location-re4vrxk1.js} +38 -38
- package/dist/chunks/{usage-limits-h075eahz.js → location-rh005vxs.js} +4 -4
- package/dist/chunks/{usage-limits-yax7g9mp.js → location-rmmekrxh.js} +9 -9
- package/dist/chunks/{usage-limits-vsqvcqta.js → location-rmv7fhs4.js} +6 -6
- package/dist/chunks/{usage-limits-rt5dr6hb.js → location-rt5dr6hb.js} +1 -1
- package/dist/chunks/{usage-limits-g9czakeh.js → location-rvrr51pc.js} +29 -29
- package/dist/chunks/{usage-limits-500yw4m2.js → location-rvyw04d8.js} +62 -29
- package/dist/chunks/{usage-limits-pf1y59er.js → location-s1jcxbke.js} +30 -30
- package/dist/chunks/{usage-limits-mqt5h58n.js → location-s5059prx.js} +5 -5
- package/dist/chunks/{usage-limits-sa3fpqfw.js → location-sa3fpqfw.js} +2 -2
- package/dist/chunks/{usage-limits-sbya78hr.js → location-sbya78hr.js} +1 -1
- package/dist/chunks/{usage-limits-vb80j1wh.js → location-sbz71ybr.js} +3 -3
- package/dist/chunks/{usage-limits-8g0jpqzw.js → location-sjve1hrn.js} +10 -10
- package/dist/chunks/{usage-limits-kzj6t2v8.js → location-ss4ezae1.js} +8 -8
- package/dist/chunks/{usage-limits-svcy3p9a.js → location-svcy3p9a.js} +1 -1
- package/dist/chunks/{usage-limits-xpgtv4k5.js → location-sw7cm3m7.js} +10 -10
- package/dist/chunks/{usage-limits-2bswbpgz.js → location-sx27c7qs.js} +7 -7
- package/dist/chunks/{usage-limits-szwm4crx.js → location-szwm4crx.js} +4 -4
- package/dist/chunks/{usage-limits-mz94qrfz.js → location-t0m0xjhg.js} +6 -6
- package/dist/chunks/{usage-limits-60a1dn3c.js → location-t1vkg21h.js} +3 -3
- package/dist/chunks/{usage-limits-67zhfnr5.js → location-t8erkws8.js} +5 -5
- package/dist/chunks/{usage-limits-tczq8hjw.js → location-tczq8hjw.js} +1 -1
- package/dist/chunks/{usage-limits-mam087a8.js → location-tdzhd1tj.js} +13 -13
- package/dist/chunks/{usage-limits-v5hpj9dd.js → location-tg1vr1qt.js} +8 -8
- package/dist/chunks/{usage-limits-mvt4g508.js → location-tpfxwea6.js} +6 -6
- package/dist/chunks/{usage-limits-tr8x705m.js → location-tr8x705m.js} +1 -1
- package/dist/chunks/{usage-limits-w370kc95.js → location-trys0hhd.js} +6 -6
- package/dist/chunks/{usage-limits-b7a7zv4d.js → location-tt0tynzx.js} +29 -29
- package/dist/chunks/{usage-limits-z7t8qjxt.js → location-tw2yfama.js} +13 -13
- package/dist/chunks/{usage-limits-ax5y7az6.js → location-tw9dengd.js} +21 -21
- package/dist/chunks/{usage-limits-twssxy5n.js → location-twssxy5n.js} +2 -2
- package/dist/chunks/{usage-limits-rp2cm5ts.js → location-ty4n1pvj.js} +9 -9
- package/dist/chunks/{usage-limits-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
- package/dist/chunks/{usage-limits-jj2gwtr5.js → location-vcz76rh0.js} +18 -18
- package/dist/chunks/{usage-limits-vfbg1mpw.js → location-vdpb76bs.js} +47 -47
- package/dist/chunks/{usage-limits-vjf35v1f.js → location-vjf35v1f.js} +1 -1
- package/dist/chunks/{usage-limits-bda3esj3.js → location-vp5718qz.js} +14 -14
- package/dist/chunks/{usage-limits-vrcsa8qx.js → location-vrcsa8qx.js} +2 -2
- package/dist/chunks/{usage-limits-vt2d6wap.js → location-vt2d6wap.js} +1 -1
- package/dist/chunks/{usage-limits-6h8vcvjm.js → location-vt4r9rmy.js} +9 -9
- package/dist/chunks/location-vtarvj67.js +60 -0
- package/dist/chunks/{usage-limits-4peydfvx.js → location-w31k6zpa.js} +26 -26
- package/dist/chunks/{usage-limits-5cwm0vrb.js → location-w33wmcn1.js} +11 -11
- package/dist/chunks/{usage-limits-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{usage-limits-w35wzz9x.js → location-w79nt68w.js} +4 -4
- package/dist/chunks/{usage-limits-wakvkjy4.js → location-wakvkjy4.js} +1 -1
- package/dist/chunks/{usage-limits-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{usage-limits-wegkxhrn.js → location-wegkxhrn.js} +2 -2
- package/dist/chunks/{usage-limits-6dtxpht2.js → location-wkv6j4jv.js} +6 -6
- package/dist/chunks/{usage-limits-j40zgs96.js → location-wmxj9np3.js} +5 -5
- package/dist/chunks/{usage-limits-wnhgecwx.js → location-wnhgecwx.js} +1 -1
- package/dist/chunks/{usage-limits-0z6v00n2.js → location-wpk92j9n.js} +18 -18
- package/dist/chunks/{usage-limits-nyxvvj5y.js → location-wvr8xscb.js} +4 -4
- package/dist/chunks/{usage-limits-kg6t11tp.js → location-x6d9rcep.js} +14 -14
- package/dist/chunks/{usage-limits-kb2zgvc1.js → location-xbm420df.js} +11 -11
- package/dist/chunks/{usage-limits-zpv6qa87.js → location-xd7a9yh4.js} +9 -9
- package/dist/chunks/{usage-limits-qkt7tgv5.js → location-xdfdathd.js} +22 -22
- package/dist/chunks/{usage-limits-b8mknwc7.js → location-xesr1eg5.js} +2 -2
- package/dist/chunks/{usage-limits-jcxymc27.js → location-xg030f4h.js} +24 -24
- package/dist/chunks/{usage-limits-qft8hb75.js → location-xmx7xj34.js} +7 -7
- package/dist/chunks/{usage-limits-9xe88z92.js → location-xr9nx1y7.js} +7 -7
- package/dist/chunks/{usage-limits-99yjq7qb.js → location-xwgbq1t0.js} +32 -32
- package/dist/chunks/location-y3p8t0qf.js +26 -0
- package/dist/chunks/{usage-limits-e8pm465n.js → location-y4n6pw34.js} +4 -4
- package/dist/chunks/{usage-limits-yara3q77.js → location-yara3q77.js} +2 -2
- package/dist/chunks/{usage-limits-yb20nhc3.js → location-yb20nhc3.js} +1 -1
- package/dist/chunks/{usage-limits-ejsdfd4v.js → location-ybbgrhzm.js} +7 -7
- package/dist/chunks/{usage-limits-5ekpk5gk.js → location-yd0acp5j.js} +21 -21
- package/dist/chunks/{usage-limits-0m8chefa.js → location-yk0zjskx.js} +12 -12
- package/dist/chunks/{usage-limits-e2btc9sx.js → location-ymq5jpz0.js} +18 -18
- package/dist/chunks/{usage-limits-yb21bz95.js → location-yq7xezqq.js} +11 -11
- package/dist/chunks/{usage-limits-sc35yb2g.js → location-yqt7189q.js} +15 -15
- package/dist/chunks/{usage-limits-yr705xyq.js → location-yr705xyq.js} +1 -1
- package/dist/chunks/{usage-limits-avg4aq00.js → location-yvm77818.js} +90 -27
- package/dist/chunks/{usage-limits-2ssyd3bd.js → location-z31anzw7.js} +11 -11
- package/dist/chunks/{usage-limits-68ps1td5.js → location-z3d87w74.js} +15 -15
- package/dist/chunks/{usage-limits-rhzn93nm.js → location-zcqhbe6c.js} +14 -14
- package/dist/chunks/{usage-limits-pc7ssjbc.js → location-zfpxzkh5.js} +11 -11
- package/dist/chunks/{usage-limits-k93tcc60.js → location-zjxfhs87.js} +44 -44
- package/dist/chunks/location-zpd68mwp.js +16 -0
- package/dist/chunks/{usage-limits-p2n9dgry.js → location-zr6vr9c2.js} +26 -26
- package/dist/chunks/{usage-limits-9cgtp5bz.js → location-zsdytve6.js} +48 -48
- package/dist/chunks/{usage-limits-zvgw15wn.js → location-zvgw15wn.js} +5 -5
- package/dist/chunks/{usage-limits-3a9e2hp9.js → location-zww72t5t.js} +27 -27
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +145 -144
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +151 -150
- package/dist/command.js +96 -95
- package/dist/config/discovery.js +97 -96
- package/dist/config/integration.js +5 -5
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +112 -111
- package/dist/config/plugin/agent.js +132 -131
- package/dist/config/plugin/command.js +231 -229
- package/dist/config/plugin/compaction.js +171 -170
- package/dist/config/plugin/compatibility.js +150 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +131 -130
- package/dist/config/plugin/image.js +130 -129
- package/dist/config/plugin/instruction.js +130 -129
- package/dist/config/plugin/location-watcher.js +130 -129
- package/dist/config/plugin/mcp.js +141 -140
- package/dist/config/plugin/policy.js +130 -129
- package/dist/config/plugin/provider.js +130 -129
- package/dist/config/plugin/reference.js +132 -131
- package/dist/config/plugin/shell.js +132 -131
- package/dist/config/plugin/skill-file.js +146 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +153 -152
- package/dist/config/plugin/snapshot.js +130 -129
- package/dist/config/plugin/source.js +133 -132
- package/dist/config/plugin/tool-output.js +131 -130
- package/dist/config/plugin/websearch.js +131 -130
- package/dist/config/plugin/worktree.js +132 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +135 -134
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -93
- package/dist/database/database.js +81 -80
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +6 -0
- package/dist/database/migration.gen.js +60 -59
- package/dist/database/migration.js +62 -61
- 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 +106 -105
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +429 -425
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +106 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +106 -105
- 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 +85 -84
- package/dist/file-access.js +156 -155
- package/dist/file-mutation.js +107 -106
- 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 +91 -90
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +243 -240
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +112 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +115 -114
- package/dist/form.js +93 -92
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +96 -95
- package/dist/generate.js +120 -119
- 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 +112 -111
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/notice.js +3 -3
- 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 +419 -415
- package/dist/instruction-discovery.js +95 -94
- package/dist/instructions/builtins.js +100 -99
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +92 -91
- package/dist/job/sql.js +7 -0
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -83
- package/dist/location-activity.js +175 -173
- package/dist/location-lifecycle.js +150 -149
- package/dist/location-service-map.js +99 -98
- package/dist/location-services.js +416 -412
- package/dist/location.js +96 -95
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +104 -103
- package/dist/mcp/index.js +122 -121
- package/dist/mcp/instructions.js +179 -178
- package/dist/mcp/oauth.js +89 -88
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +103 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +112 -111
- package/dist/model-resolver.js +112 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +105 -104
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +121 -120
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +93 -92
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +155 -154
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +103 -100
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -85
- package/dist/plugin/agent.js +87 -86
- package/dist/plugin/command.js +115 -114
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +236 -233
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +395 -391
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +110 -109
- package/dist/plugin/module.js +129 -128
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +146 -145
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +104 -103
- package/dist/plugin/provider/azure.js +130 -129
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +130 -129
- package/dist/plugin/provider/claude-agent/aisdk.js +117 -116
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +145 -144
- package/dist/plugin/provider/claude-agent/instructions.js +114 -113
- package/dist/plugin/provider/claude-agent/integration.js +111 -110
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +5 -5
- package/dist/plugin/provider/claude-agent/provider.js +110 -109
- package/dist/plugin/provider/claude-agent/session.js +112 -111
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +128 -127
- package/dist/plugin/provider/configured.js +126 -125
- package/dist/plugin/provider/credential-settings.js +85 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +106 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +108 -107
- package/dist/plugin/provider/gitlab.js +107 -106
- package/dist/plugin/provider/google-vertex.js +127 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -88
- package/dist/plugin/provider/lmstudio.js +139 -138
- package/dist/plugin/provider/local.js +136 -135
- package/dist/plugin/provider/modal.js +105 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +139 -138
- package/dist/plugin/provider/openai-context-caps.js +103 -102
- package/dist/plugin/provider/openai.js +130 -129
- package/dist/plugin/provider/opencode.js +132 -131
- package/dist/plugin/provider/openrouter.js +104 -103
- package/dist/plugin/provider/poe.js +90 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +104 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +129 -128
- package/dist/plugin/provider/vllm.js +139 -138
- package/dist/plugin/provider/xai.js +104 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +210 -209
- package/dist/plugin/sdk.js +87 -86
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +149 -148
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +407 -403
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -98
- package/dist/plugin/vcs/hg.js +99 -98
- package/dist/plugin/verbosity.js +106 -105
- package/dist/plugin/warming.js +128 -127
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- 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 +245 -242
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +10 -10
- package/dist/project/sql.js +4 -4
- package/dist/project.js +99 -98
- package/dist/provider.js +104 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -102
- package/dist/reference/instructions.js +99 -98
- package/dist/reference.js +103 -102
- package/dist/repository-cache.js +93 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +110 -109
- package/dist/rpc.js +99 -98
- package/dist/schedule/check.js +241 -238
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +247 -244
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +129 -128
- package/dist/session/command.js +85 -84
- package/dist/session/compaction.js +171 -170
- package/dist/session/context.js +198 -197
- package/dist/session/diff.js +101 -100
- 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 +273 -276
- package/dist/session/execution.js +165 -163
- package/dist/session/generate.js +200 -199
- package/dist/session/history.js +136 -135
- package/dist/session/inbox.js +147 -146
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +90 -89
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +143 -142
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +168 -167
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +165 -163
- package/dist/session/projector.js +143 -142
- package/dist/session/prompt.js +148 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +139 -138
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +250 -247
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -112
- package/dist/session/runner/publish-llm-event.js +149 -148
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +163 -162
- package/dist/session/runner/to-llm-message.js +137 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +181 -179
- package/dist/session/shell.js +144 -143
- package/dist/session/skill.js +147 -146
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +86 -85
- package/dist/session/store.js +142 -141
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +229 -227
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +202 -201
- package/dist/session/to-session-error.js +148 -147
- package/dist/session/transfer.js +240 -238
- package/dist/session/usage.js +3 -3
- package/dist/session.js +235 -233
- 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 +13 -13
- package/dist/shell.js +146 -145
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +151 -150
- package/dist/skill.js +156 -155
- package/dist/snapshot.js +106 -105
- 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 +180 -179
- package/dist/tool/plugin/artifact.js +241 -0
- package/dist/tool/plugin/edit.js +162 -161
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +168 -167
- package/dist/tool/plugin/grep.js +168 -167
- package/dist/tool/plugin/image-generate.js +239 -237
- package/dist/tool/plugin/mcp-resource.js +160 -159
- package/dist/tool/plugin/opencode.js +161 -160
- package/dist/tool/plugin/patch.js +166 -165
- package/dist/tool/plugin/question.js +150 -149
- package/dist/tool/plugin/read.js +169 -168
- package/dist/tool/plugin/schedule.js +247 -244
- package/dist/tool/plugin/shell.js +235 -233
- package/dist/tool/plugin/skill.js +155 -154
- package/dist/tool/plugin/subagent.js +236 -234
- package/dist/tool/plugin/todo.js +153 -152
- package/dist/tool/plugin/webfetch.js +157 -156
- package/dist/tool/plugin/websearch.js +155 -154
- package/dist/tool/plugin/write.js +166 -165
- package/dist/tool/read-filesystem.js +115 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +161 -160
- package/dist/types/artifact.d.ts +123 -0
- package/dist/types/database/migration/20261030054400_job.d.ts +3 -0
- package/dist/types/instance.d.ts +2 -1
- package/dist/types/job/sql.d.ts +215 -0
- package/dist/types/job.d.ts +5 -7
- package/dist/types/location-activity.d.ts +1 -1
- package/dist/types/permission.d.ts +2 -0
- package/dist/types/persistent-pty/daemon.d.ts +38 -11
- package/dist/types/persistent-pty/index.d.ts +6 -0
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/plugin/internal.d.ts +3 -2
- package/dist/types/schedule/check.d.ts +2 -2
- package/dist/types/schedule.d.ts +3 -2
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/tool/mcp.d.ts +1 -1
- package/dist/types/tool/plugin/artifact.d.ts +27 -0
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/image-generate.d.ts +1 -1
- package/dist/types/tool/plugin/read.d.ts +1 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/usage-limits.js +100 -99
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +105 -104
- 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 +106 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -101
- package/dist/voice.js +95 -94
- package/dist/websearch.js +95 -94
- package/dist/wellknown/plugin.js +85 -84
- package/dist/wellknown.js +92 -91
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -92
- 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 +102 -101
- package/dist/worktree.js +111 -110
- package/package.json +9 -9
- package/dist/chunks/usage-limits-5bcsk9b3.js +0 -257
- package/dist/chunks/usage-limits-a3r2a0ar.js +0 -539
- package/dist/chunks/usage-limits-ezna1kdx.js +0 -18
- package/dist/chunks/usage-limits-hv71va99.js +0 -26
- package/dist/chunks/usage-limits-jaq18jgp.js +0 -16
- /package/dist/chunks/{usage-limits-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{usage-limits-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{usage-limits-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{usage-limits-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{usage-limits-1kah00gy.js → location-1kah00gy.js} +0 -0
- /package/dist/chunks/{usage-limits-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{usage-limits-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{usage-limits-2bv980vf.js → location-2bv980vf.js} +0 -0
- /package/dist/chunks/{usage-limits-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{usage-limits-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{usage-limits-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{usage-limits-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{usage-limits-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{usage-limits-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{usage-limits-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{usage-limits-4qk9sjk2.js → location-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{usage-limits-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{usage-limits-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{usage-limits-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{usage-limits-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{usage-limits-5w3e23ze.js → location-5w3e23ze.js} +0 -0
- /package/dist/chunks/{usage-limits-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{usage-limits-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{usage-limits-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{usage-limits-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{usage-limits-7stb81gk.js → location-7stb81gk.js} +0 -0
- /package/dist/chunks/{usage-limits-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{usage-limits-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{usage-limits-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{usage-limits-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{usage-limits-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{usage-limits-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{usage-limits-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{usage-limits-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{usage-limits-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{usage-limits-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{usage-limits-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{usage-limits-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{usage-limits-beh6qq61.js → location-beh6qq61.js} +0 -0
- /package/dist/chunks/{usage-limits-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{usage-limits-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{usage-limits-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{usage-limits-cqv5kn06.js → location-cqv5kn06.js} +0 -0
- /package/dist/chunks/{usage-limits-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{usage-limits-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{usage-limits-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{usage-limits-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{usage-limits-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{usage-limits-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{usage-limits-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{usage-limits-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{usage-limits-ean2d8b5.js → location-ean2d8b5.js} +0 -0
- /package/dist/chunks/{usage-limits-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{usage-limits-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{usage-limits-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{usage-limits-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{usage-limits-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{usage-limits-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{usage-limits-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{usage-limits-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{usage-limits-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{usage-limits-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{usage-limits-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{usage-limits-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{usage-limits-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{usage-limits-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{usage-limits-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{usage-limits-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{usage-limits-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{usage-limits-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{usage-limits-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{usage-limits-jwr30sdr.js → location-jwr30sdr.js} +0 -0
- /package/dist/chunks/{usage-limits-jze0r7bz.js → location-jze0r7bz.js} +0 -0
- /package/dist/chunks/{usage-limits-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{usage-limits-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{usage-limits-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{usage-limits-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{usage-limits-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{usage-limits-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{usage-limits-nh4v3znn.js → location-nh4v3znn.js} +0 -0
- /package/dist/chunks/{usage-limits-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{usage-limits-p71gwv9c.js → location-p71gwv9c.js} +0 -0
- /package/dist/chunks/{usage-limits-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{usage-limits-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{usage-limits-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{usage-limits-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{usage-limits-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{usage-limits-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{usage-limits-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{usage-limits-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{usage-limits-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{usage-limits-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{usage-limits-t03h4f5z.js → location-t03h4f5z.js} +0 -0
- /package/dist/chunks/{usage-limits-ty7weeps.js → location-ty7weeps.js} +0 -0
- /package/dist/chunks/{usage-limits-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{usage-limits-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{usage-limits-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{usage-limits-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{usage-limits-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{usage-limits-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{usage-limits-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{usage-limits-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{usage-limits-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{usage-limits-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{usage-limits-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{usage-limits-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service88,
|
|
3
|
+
node91
|
|
4
|
+
} from "./location-n8868hmk.js";
|
|
5
|
+
import {
|
|
6
|
+
Service83,
|
|
7
|
+
node86
|
|
8
|
+
} from "./location-fezcm6md.js";
|
|
9
|
+
import {
|
|
10
|
+
changes2,
|
|
11
|
+
create4
|
|
12
|
+
} from "./location-40y6dtc2.js";
|
|
13
|
+
import {
|
|
14
|
+
Service86,
|
|
15
|
+
node89
|
|
16
|
+
} from "./location-0r9qm1b5.js";
|
|
17
|
+
import {
|
|
18
|
+
latest2,
|
|
19
|
+
Service76,
|
|
20
|
+
node79
|
|
21
|
+
} from "./location-hhmyrxbe.js";
|
|
22
|
+
import {
|
|
23
|
+
detect2
|
|
24
|
+
} from "./location-4pyp9zr9.js";
|
|
25
|
+
import {
|
|
26
|
+
Service30,
|
|
27
|
+
node33
|
|
28
|
+
} from "./location-0tnznt5m.js";
|
|
29
|
+
import {
|
|
30
|
+
__export
|
|
31
|
+
} from "./location-9rqn6x4v.js";
|
|
32
|
+
|
|
33
|
+
// src/artifact.ts
|
|
34
|
+
var exports_artifact2 = {};
|
|
35
|
+
__export(exports_artifact2, {
|
|
36
|
+
Artifact: () => exports_artifact2,
|
|
37
|
+
Capability: () => Capability2,
|
|
38
|
+
Content: () => Content2,
|
|
39
|
+
CreateInput: () => CreateInput5,
|
|
40
|
+
DisabledError: () => DisabledError4,
|
|
41
|
+
Event: () => Event7,
|
|
42
|
+
FileMissingError: () => FileMissingError2,
|
|
43
|
+
ID: () => ID8,
|
|
44
|
+
Info: () => Info9,
|
|
45
|
+
InvalidError: () => InvalidError3,
|
|
46
|
+
LocalProviderID: () => LocalProviderID2,
|
|
47
|
+
NotFoundError: () => NotFoundError5,
|
|
48
|
+
Provider: () => Provider3,
|
|
49
|
+
ProviderError: () => ProviderError2,
|
|
50
|
+
ProviderID: () => ProviderID2,
|
|
51
|
+
ProviderNotFoundError: () => ProviderNotFoundError3,
|
|
52
|
+
Service: () => Service29,
|
|
53
|
+
UpdateInput: () => UpdateInput3,
|
|
54
|
+
locate: () => locate2,
|
|
55
|
+
node: () => node32
|
|
56
|
+
});
|
|
57
|
+
import { randomUUID } from "node:crypto";
|
|
58
|
+
import fs from "node:fs/promises";
|
|
59
|
+
import path from "node:path";
|
|
60
|
+
import { lookup } from "mime-types";
|
|
61
|
+
import {
|
|
62
|
+
Capability as Capability2,
|
|
63
|
+
Content as Content2,
|
|
64
|
+
CreateInput as CreateInput5,
|
|
65
|
+
Event as Event7,
|
|
66
|
+
ID as ID8,
|
|
67
|
+
Info as Info9,
|
|
68
|
+
Provider as Provider3,
|
|
69
|
+
ProviderID as ProviderID2,
|
|
70
|
+
UpdateInput as UpdateInput3
|
|
71
|
+
} from "@opencode/schema/artifact";
|
|
72
|
+
import { Global } from "@opencode/util/global";
|
|
73
|
+
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
74
|
+
import { Clock, Context, Effect, Layer, Option, Schema } from "effect";
|
|
75
|
+
var LocalProviderID2 = ProviderID2.make("local");
|
|
76
|
+
var ItemPrefix = "artifact:item:";
|
|
77
|
+
|
|
78
|
+
class DisabledError4 extends Schema.TaggedError()("Artifact.DisabledError", {}) {
|
|
79
|
+
get message() {
|
|
80
|
+
return "Artifacts are disabled; set experimental.artifacts in config";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
class NotFoundError5 extends Schema.TaggedError()("Artifact.NotFoundError", {
|
|
85
|
+
artifactID: ID8
|
|
86
|
+
}) {
|
|
87
|
+
get message() {
|
|
88
|
+
return `Artifact not found: ${this.artifactID}`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
class FileMissingError2 extends Schema.TaggedError()("Artifact.FileMissingError", {
|
|
93
|
+
artifactID: ID8,
|
|
94
|
+
path: Schema.String
|
|
95
|
+
}) {
|
|
96
|
+
get message() {
|
|
97
|
+
return `Artifact file not found: ${this.path}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
class ProviderNotFoundError3 extends Schema.TaggedError()("Artifact.ProviderNotFoundError", {
|
|
102
|
+
providerID: ProviderID2
|
|
103
|
+
}) {
|
|
104
|
+
get message() {
|
|
105
|
+
return `Artifact provider not found: ${this.providerID}`;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
class InvalidError3 extends Schema.TaggedError()("Artifact.InvalidError", {
|
|
110
|
+
reason: Schema.String,
|
|
111
|
+
field: Schema.optional(Schema.String)
|
|
112
|
+
}) {
|
|
113
|
+
get message() {
|
|
114
|
+
return this.reason;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
class ProviderError2 extends Schema.TaggedError()("Artifact.ProviderError", {
|
|
119
|
+
providerID: ProviderID2,
|
|
120
|
+
cause: Schema.Defect()
|
|
121
|
+
}) {
|
|
122
|
+
get message() {
|
|
123
|
+
return this.cause instanceof Error && this.cause.message ? `Artifact provider ${this.providerID} failed: ${this.cause.message}` : `Artifact provider ${this.providerID} failed`;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
class Service29 extends Context.Service()("@opencode/Artifact") {
|
|
128
|
+
}
|
|
129
|
+
var StoredRecord = Schema.Struct({
|
|
130
|
+
info: Info9,
|
|
131
|
+
directory: Schema.String,
|
|
132
|
+
projectID: Schema.String
|
|
133
|
+
});
|
|
134
|
+
var decodeStoredRecord = Schema.decodeUnknownOption(StoredRecord);
|
|
135
|
+
var encodeStoredRecord = Schema.encodeSync(StoredRecord);
|
|
136
|
+
var encoder = new TextEncoder;
|
|
137
|
+
var locate2 = (kv, id) => kv.get(ItemPrefix + id).pipe(Effect.map((stored) => {
|
|
138
|
+
if (stored === undefined)
|
|
139
|
+
return;
|
|
140
|
+
const decoded = decodeStoredRecord(stored);
|
|
141
|
+
return Option.isSome(decoded) ? decoded.value.directory : undefined;
|
|
142
|
+
}));
|
|
143
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
144
|
+
const bus = yield* Service88;
|
|
145
|
+
const config = yield* Service76;
|
|
146
|
+
const global = yield* Global.Service;
|
|
147
|
+
const kv = yield* Service86;
|
|
148
|
+
const location = yield* Service83;
|
|
149
|
+
const sessions = yield* Service30;
|
|
150
|
+
const rootDir = path.join(global.data, "artifacts");
|
|
151
|
+
const itemDir = (id) => path.join(rootDir, id);
|
|
152
|
+
const localProvider = {
|
|
153
|
+
id: LocalProviderID2,
|
|
154
|
+
name: "Local",
|
|
155
|
+
capabilities: ["static"],
|
|
156
|
+
prompt: "Artifacts are served as HTML by this OpenCode server. Only people who can reach this server can open them.",
|
|
157
|
+
create: (input) => replaceDirectoryFiles(itemDir(input.id), input.files).pipe(Effect.as({ url: `/api/experimental/artifacts/${encodeURIComponent(input.id)}/view/` })),
|
|
158
|
+
read: (id) => readDirectoryFiles(itemDir(id)),
|
|
159
|
+
update: (id, input) => replaceDirectoryFiles(itemDir(id), input.files).pipe(Effect.as({ url: `/api/experimental/artifacts/${encodeURIComponent(id)}/view/` })),
|
|
160
|
+
delete: (id) => Effect.promise(() => fs.rm(itemDir(id), { recursive: true, force: true }))
|
|
161
|
+
};
|
|
162
|
+
const snapshotProviders = (data) => Array.from(data.providers.values(), (provider) => ({
|
|
163
|
+
id: provider.id,
|
|
164
|
+
name: provider.name,
|
|
165
|
+
capabilities: provider.capabilities,
|
|
166
|
+
selection: data.selection
|
|
167
|
+
})).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
168
|
+
const state = create4({
|
|
169
|
+
initial: () => ({
|
|
170
|
+
providers: new Map([[LocalProviderID2, localProvider]])
|
|
171
|
+
}),
|
|
172
|
+
editor: (draft) => ({
|
|
173
|
+
add: (provider) => {
|
|
174
|
+
draft.providers.set(provider.id, provider);
|
|
175
|
+
},
|
|
176
|
+
remove: (id) => {
|
|
177
|
+
if (id === LocalProviderID2)
|
|
178
|
+
return;
|
|
179
|
+
draft.providers.delete(id);
|
|
180
|
+
if (draft.selection === id)
|
|
181
|
+
draft.selection = undefined;
|
|
182
|
+
},
|
|
183
|
+
default: {
|
|
184
|
+
get: () => draft.selection,
|
|
185
|
+
set: (providerID) => {
|
|
186
|
+
draft.selection = providerID;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}),
|
|
190
|
+
notify: changes2(snapshotProviders, () => bus.publish(Event7.Updated, {}).pipe(Effect.asVoid))
|
|
191
|
+
});
|
|
192
|
+
const isEnabled = Effect.fn("Artifact.enabled")(function* () {
|
|
193
|
+
const entries = yield* config.entries();
|
|
194
|
+
return latest2(entries, "experimental")?.artifacts === true;
|
|
195
|
+
});
|
|
196
|
+
const requireEnabled = () => isEnabled().pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new DisabledError4)));
|
|
197
|
+
const activeDefaultID = () => {
|
|
198
|
+
const data = state.get();
|
|
199
|
+
return data.selection && data.providers.has(data.selection) ? data.selection : LocalProviderID2;
|
|
200
|
+
};
|
|
201
|
+
const resolveProvider = (requested) => {
|
|
202
|
+
const data = state.get();
|
|
203
|
+
const target = requested ?? activeDefaultID();
|
|
204
|
+
const found = data.providers.get(target);
|
|
205
|
+
return found ? Effect.succeed(found) : Effect.fail(new ProviderNotFoundError3({ providerID: target }));
|
|
206
|
+
};
|
|
207
|
+
const checkSession = (sessionID) => sessionID === undefined ? Effect.void : sessions.get(sessionID).pipe(Effect.asVoid);
|
|
208
|
+
return Service29.of({
|
|
209
|
+
transform: state.transform,
|
|
210
|
+
reload: state.reload,
|
|
211
|
+
enabled: isEnabled,
|
|
212
|
+
providers: Effect.fn("Artifact.providers")(function* () {
|
|
213
|
+
yield* requireEnabled();
|
|
214
|
+
const defaultID = activeDefaultID();
|
|
215
|
+
return Array.from(state.get().providers.values(), (provider) => Provider3.make({
|
|
216
|
+
id: provider.id,
|
|
217
|
+
name: provider.name,
|
|
218
|
+
capabilities: [...provider.capabilities],
|
|
219
|
+
default: provider.id === defaultID
|
|
220
|
+
})).toSorted((a, b) => Number(b.default) - Number(a.default) || a.name.localeCompare(b.name));
|
|
221
|
+
}),
|
|
222
|
+
prompts: Effect.fn("Artifact.prompts")(function* () {
|
|
223
|
+
const defaultID = activeDefaultID();
|
|
224
|
+
const defaultProvider = state.get().providers.get(defaultID) ?? localProvider;
|
|
225
|
+
const others = Array.from(state.get().providers.values()).filter((item) => item.id !== defaultProvider.id).toSorted((a, b) => a.name.localeCompare(b.name)).map((item) => ({ id: item.id, name: item.name, capabilities: item.capabilities }));
|
|
226
|
+
return {
|
|
227
|
+
defaultProvider: {
|
|
228
|
+
id: defaultProvider.id,
|
|
229
|
+
name: defaultProvider.name,
|
|
230
|
+
capabilities: defaultProvider.capabilities,
|
|
231
|
+
prompt: defaultProvider.prompt
|
|
232
|
+
},
|
|
233
|
+
others
|
|
234
|
+
};
|
|
235
|
+
}),
|
|
236
|
+
list: Effect.fn("Artifact.list")(function* (filter) {
|
|
237
|
+
yield* requireEnabled();
|
|
238
|
+
if (filter?.sessionID !== undefined)
|
|
239
|
+
yield* checkSession(filter.sessionID);
|
|
240
|
+
const items = yield* scanProjectInfos(kv, location.project.id);
|
|
241
|
+
return items.filter((item) => (filter?.sessionID === undefined || item.sessionID === filter.sessionID) && (filter?.provider === undefined || item.provider === filter.provider)).toSorted((a, b) => b.time.updated - a.time.updated || b.id.localeCompare(a.id));
|
|
242
|
+
}),
|
|
243
|
+
create: Effect.fn("Artifact.create")(function* (input) {
|
|
244
|
+
yield* requireEnabled();
|
|
245
|
+
yield* checkSession(input.sessionID);
|
|
246
|
+
const title = input.title.trim();
|
|
247
|
+
if (!title)
|
|
248
|
+
return yield* new InvalidError3({ reason: "Artifact title must not be empty", field: "title" });
|
|
249
|
+
const files = yield* normalizeFiles(encodeStringFiles(input.files));
|
|
250
|
+
const entry = yield* resolveEntry(files, input.entry);
|
|
251
|
+
const provider = yield* resolveProvider(input.provider);
|
|
252
|
+
const id = ID8.create();
|
|
253
|
+
const now = yield* Clock.currentTimeMillis;
|
|
254
|
+
const created = yield* provider.create({ id, title, entry, files, sessionID: input.sessionID }).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
255
|
+
const info = Info9.make({
|
|
256
|
+
id,
|
|
257
|
+
provider: provider.id,
|
|
258
|
+
...input.sessionID === undefined ? {} : { sessionID: input.sessionID },
|
|
259
|
+
title,
|
|
260
|
+
entry,
|
|
261
|
+
url: created.url ?? `/api/experimental/artifacts/${encodeURIComponent(id)}/view/`,
|
|
262
|
+
time: { created: now, updated: now }
|
|
263
|
+
});
|
|
264
|
+
yield* kv.set(ItemPrefix + id, encodeStoredRecord({
|
|
265
|
+
info,
|
|
266
|
+
directory: location.directory,
|
|
267
|
+
projectID: location.project.id
|
|
268
|
+
}));
|
|
269
|
+
return info;
|
|
270
|
+
}),
|
|
271
|
+
info: Effect.fn("Artifact.info")(function* (id) {
|
|
272
|
+
yield* requireEnabled();
|
|
273
|
+
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
274
|
+
if (!existing)
|
|
275
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
276
|
+
return existing.info;
|
|
277
|
+
}),
|
|
278
|
+
get: Effect.fn("Artifact.get")(function* (id) {
|
|
279
|
+
yield* requireEnabled();
|
|
280
|
+
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
281
|
+
if (!existing)
|
|
282
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
283
|
+
const provider = yield* resolveProvider(existing.info.provider);
|
|
284
|
+
const raw = yield* provider.read(id).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
285
|
+
return Content2.make({
|
|
286
|
+
info: existing.info,
|
|
287
|
+
files: decodeReadFiles(raw)
|
|
288
|
+
});
|
|
289
|
+
}),
|
|
290
|
+
update: Effect.fn("Artifact.update")(function* (id, input) {
|
|
291
|
+
yield* requireEnabled();
|
|
292
|
+
yield* checkSession(input.sessionID);
|
|
293
|
+
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
294
|
+
if (!existing)
|
|
295
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
296
|
+
const title = input.title === undefined ? existing.info.title : input.title.trim();
|
|
297
|
+
if (!title)
|
|
298
|
+
return yield* new InvalidError3({ reason: "Artifact title must not be empty", field: "title" });
|
|
299
|
+
const files = yield* normalizeFiles(encodeStringFiles(input.files));
|
|
300
|
+
const entry = yield* resolveEntry(files, input.entry ?? (files[existing.info.entry] ? existing.info.entry : undefined));
|
|
301
|
+
const provider = yield* resolveProvider(existing.info.provider);
|
|
302
|
+
const now = yield* Clock.currentTimeMillis;
|
|
303
|
+
const sessionID = input.sessionID ?? existing.info.sessionID;
|
|
304
|
+
const updated = yield* provider.update(id, { title, entry, files, sessionID }).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
305
|
+
const info = Info9.make({
|
|
306
|
+
id,
|
|
307
|
+
provider: existing.info.provider,
|
|
308
|
+
...sessionID === undefined ? {} : { sessionID },
|
|
309
|
+
title,
|
|
310
|
+
entry,
|
|
311
|
+
url: updated.url ?? existing.info.url,
|
|
312
|
+
time: { created: existing.info.time.created, updated: now }
|
|
313
|
+
});
|
|
314
|
+
yield* kv.set(ItemPrefix + id, encodeStoredRecord({
|
|
315
|
+
info,
|
|
316
|
+
directory: existing.directory,
|
|
317
|
+
projectID: existing.projectID
|
|
318
|
+
}));
|
|
319
|
+
return info;
|
|
320
|
+
}),
|
|
321
|
+
remove: Effect.fn("Artifact.remove")(function* (id) {
|
|
322
|
+
yield* requireEnabled();
|
|
323
|
+
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
324
|
+
if (!existing)
|
|
325
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
326
|
+
const provider = state.get().providers.get(existing.info.provider);
|
|
327
|
+
if (provider) {
|
|
328
|
+
yield* provider.delete(id).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
329
|
+
}
|
|
330
|
+
yield* kv.remove(ItemPrefix + id);
|
|
331
|
+
}),
|
|
332
|
+
readLocalFile: Effect.fn("Artifact.readLocalFile")(function* (id, subpath) {
|
|
333
|
+
yield* requireEnabled();
|
|
334
|
+
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
335
|
+
if (!existing)
|
|
336
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
337
|
+
if (existing.info.provider !== LocalProviderID2) {
|
|
338
|
+
return yield* new InvalidError3({
|
|
339
|
+
reason: `Artifact ${id} is hosted by provider "${existing.info.provider}", not the local server`,
|
|
340
|
+
field: "artifactID"
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
const requested = subpath?.trim() ? yield* normalizePath(subpath) : existing.info.entry;
|
|
344
|
+
const target = path.join(itemDir(id), ...requested.split("/"));
|
|
345
|
+
const exists = yield* Effect.promise(() => fs.stat(target).then((stat) => stat.isFile()).catch(() => false));
|
|
346
|
+
if (!exists)
|
|
347
|
+
return yield* new FileMissingError2({ artifactID: id, path: requested });
|
|
348
|
+
const bytes = yield* Effect.promise(() => fs.readFile(target).then((buf) => new Uint8Array(buf)));
|
|
349
|
+
return { bytes, mime: detectFileMime(requested, bytes) };
|
|
350
|
+
})
|
|
351
|
+
});
|
|
352
|
+
}));
|
|
353
|
+
var node32 = makeLocationNode({
|
|
354
|
+
service: Service29,
|
|
355
|
+
layer,
|
|
356
|
+
deps: [node91, node79, Global.node, node89, node86, node33]
|
|
357
|
+
});
|
|
358
|
+
function encodeStringFiles(files) {
|
|
359
|
+
return Object.fromEntries(Object.entries(files).map(([filePath, content]) => [filePath, encoder.encode(content)]));
|
|
360
|
+
}
|
|
361
|
+
function decodeReadFiles(files) {
|
|
362
|
+
const decoder = new TextDecoder;
|
|
363
|
+
return Object.fromEntries(Object.entries(files).map(([filePath, bytes]) => [filePath, decoder.decode(bytes)]));
|
|
364
|
+
}
|
|
365
|
+
function detectFileMime(filePath, bytes) {
|
|
366
|
+
const byName = lookup(filePath);
|
|
367
|
+
if (typeof byName === "string") {
|
|
368
|
+
return byName.startsWith("text/") || byName === "application/javascript" || byName === "application/json" ? `${byName}; charset=utf-8` : byName;
|
|
369
|
+
}
|
|
370
|
+
return detect2(bytes);
|
|
371
|
+
}
|
|
372
|
+
function normalizePath(raw) {
|
|
373
|
+
const trimmed = raw.replaceAll("\\", "/").replace(/^(?:\.\/)+/u, "").replace(/^\/+/u, "");
|
|
374
|
+
if (!trimmed || trimmed.includes("\x00")) {
|
|
375
|
+
return Effect.fail(new InvalidError3({ reason: `Invalid artifact file path: ${JSON.stringify(raw)}`, field: "files" }));
|
|
376
|
+
}
|
|
377
|
+
const segments = trimmed.split("/");
|
|
378
|
+
if (segments.some((part) => !part || part === "." || part === "..")) {
|
|
379
|
+
return Effect.fail(new InvalidError3({ reason: `Artifact file path must stay relative: ${JSON.stringify(raw)}`, field: "files" }));
|
|
380
|
+
}
|
|
381
|
+
return Effect.succeed(segments.join("/"));
|
|
382
|
+
}
|
|
383
|
+
function normalizeFiles(files) {
|
|
384
|
+
return Effect.gen(function* () {
|
|
385
|
+
const entries = Object.entries(files);
|
|
386
|
+
if (entries.length === 0) {
|
|
387
|
+
return yield* new InvalidError3({ reason: "Artifact must include at least one file", field: "files" });
|
|
388
|
+
}
|
|
389
|
+
const normalized = new Map;
|
|
390
|
+
for (const [rawPath, content] of entries) {
|
|
391
|
+
const clean = yield* normalizePath(rawPath);
|
|
392
|
+
normalized.set(clean, content);
|
|
393
|
+
}
|
|
394
|
+
return Object.fromEntries(normalized);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
function resolveEntry(files, requested) {
|
|
398
|
+
if (requested !== undefined) {
|
|
399
|
+
return normalizePath(requested).pipe(Effect.flatMap((clean) => files[clean] !== undefined ? Effect.succeed(clean) : Effect.fail(new InvalidError3({ reason: `Entry file not found in files: ${clean}`, field: "entry" }))));
|
|
400
|
+
}
|
|
401
|
+
if (files["index.html"] !== undefined)
|
|
402
|
+
return Effect.succeed("index.html");
|
|
403
|
+
if (files["index.md"] !== undefined)
|
|
404
|
+
return Effect.succeed("index.md");
|
|
405
|
+
const keys = Object.keys(files);
|
|
406
|
+
if (keys.length === 1 && keys[0] !== undefined)
|
|
407
|
+
return Effect.succeed(keys[0]);
|
|
408
|
+
return Effect.fail(new InvalidError3({
|
|
409
|
+
reason: 'Include "index.html" or "index.md", or specify "entry" when publishing multiple files',
|
|
410
|
+
field: "entry"
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
function loadProjectRecord(kv, id, projectID) {
|
|
414
|
+
return kv.get(ItemPrefix + id).pipe(Effect.map((stored) => {
|
|
415
|
+
if (stored === undefined)
|
|
416
|
+
return;
|
|
417
|
+
const decoded = Option.getOrUndefined(decodeStoredRecord(stored));
|
|
418
|
+
return decoded?.projectID === projectID ? decoded : undefined;
|
|
419
|
+
}));
|
|
420
|
+
}
|
|
421
|
+
function scanProjectInfos(kv, projectID) {
|
|
422
|
+
return Effect.gen(function* () {
|
|
423
|
+
const results = [];
|
|
424
|
+
let after;
|
|
425
|
+
while (true) {
|
|
426
|
+
const page = yield* kv.scan({ prefix: ItemPrefix, after, limit: 500 });
|
|
427
|
+
results.push(...page.entries.flatMap((entry) => {
|
|
428
|
+
const decoded = decodeStoredRecord(entry.value);
|
|
429
|
+
return Option.isSome(decoded) && decoded.value.projectID === projectID ? [decoded.value.info] : [];
|
|
430
|
+
}));
|
|
431
|
+
if (!page.next)
|
|
432
|
+
return results;
|
|
433
|
+
after = page.next;
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
function replaceDirectoryFiles(baseDir, files) {
|
|
438
|
+
return Effect.tryPromise(async () => {
|
|
439
|
+
const parent = path.dirname(baseDir);
|
|
440
|
+
await fs.mkdir(parent, { recursive: true });
|
|
441
|
+
const nonce = randomUUID();
|
|
442
|
+
const staging = `${baseDir}.staging-${nonce}`;
|
|
443
|
+
const backup = `${baseDir}.backup-${nonce}`;
|
|
444
|
+
try {
|
|
445
|
+
await fs.mkdir(staging, { recursive: true });
|
|
446
|
+
await Promise.all(Object.entries(files).map(async ([rel, bytes]) => {
|
|
447
|
+
const dest = path.join(staging, ...rel.split("/"));
|
|
448
|
+
await fs.mkdir(path.dirname(dest), { recursive: true });
|
|
449
|
+
await fs.writeFile(dest, bytes);
|
|
450
|
+
}));
|
|
451
|
+
const hadExisting = await fs.stat(baseDir).then(() => true).catch(() => false);
|
|
452
|
+
if (hadExisting)
|
|
453
|
+
await fs.rename(baseDir, backup);
|
|
454
|
+
try {
|
|
455
|
+
await fs.rename(staging, baseDir);
|
|
456
|
+
} catch (err) {
|
|
457
|
+
if (hadExisting)
|
|
458
|
+
await fs.rename(backup, baseDir).catch(() => {
|
|
459
|
+
return;
|
|
460
|
+
});
|
|
461
|
+
throw err;
|
|
462
|
+
}
|
|
463
|
+
if (hadExisting)
|
|
464
|
+
await fs.rm(backup, { recursive: true, force: true }).catch(() => {
|
|
465
|
+
return;
|
|
466
|
+
});
|
|
467
|
+
} catch (err) {
|
|
468
|
+
await fs.rm(staging, { recursive: true, force: true }).catch(() => {
|
|
469
|
+
return;
|
|
470
|
+
});
|
|
471
|
+
throw err;
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
function readDirectoryFiles(baseDir) {
|
|
476
|
+
return Effect.promise(async () => {
|
|
477
|
+
const out = {};
|
|
478
|
+
const walk = async (current, prefix) => {
|
|
479
|
+
const entries = await fs.readdir(current, { withFileTypes: true }).catch(() => []);
|
|
480
|
+
await Promise.all(entries.map(async (entry) => {
|
|
481
|
+
const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
|
|
482
|
+
const full = path.join(current, entry.name);
|
|
483
|
+
if (entry.isDirectory())
|
|
484
|
+
return walk(full, rel);
|
|
485
|
+
if (entry.isFile())
|
|
486
|
+
out[rel] = new Uint8Array(await fs.readFile(full));
|
|
487
|
+
}));
|
|
488
|
+
};
|
|
489
|
+
await walk(baseDir, "");
|
|
490
|
+
return out;
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export { Capability2, Content2, CreateInput5, Event7, ID8, Info9, Provider3, ProviderID2, UpdateInput3, LocalProviderID2, DisabledError4, NotFoundError5, FileMissingError2, ProviderNotFoundError3, InvalidError3, ProviderError2, Service29, locate2, node32, exports_artifact2 };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Timestamps2
|
|
3
|
+
} from "./location-qfa1cgps.js";
|
|
4
|
+
|
|
5
|
+
// src/job/sql.ts
|
|
6
|
+
import { index, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
7
|
+
var JobTable2 = sqliteTable("job", {
|
|
8
|
+
notification_id: text().$type().primaryKey(),
|
|
9
|
+
id: text().notNull(),
|
|
10
|
+
session_id: text().$type().notNull(),
|
|
11
|
+
child_session_id: text().$type(),
|
|
12
|
+
kind: text().notNull(),
|
|
13
|
+
title: text(),
|
|
14
|
+
status: text().$type().notNull(),
|
|
15
|
+
output: text(),
|
|
16
|
+
error: text(),
|
|
17
|
+
recovery: text({ mode: "json" }).$type().notNull(),
|
|
18
|
+
...Timestamps2
|
|
19
|
+
}, (table) => [
|
|
20
|
+
index("job_session_idx").on(table.session_id),
|
|
21
|
+
index("job_child_session_idx").on(table.child_session_id),
|
|
22
|
+
index("job_id_idx").on(table.id)
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export { JobTable2 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-2bv980vf.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service76
|
|
3
|
+
} from "./location-hhmyrxbe.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service12
|
|
6
|
+
} from "./location-vt4r9rmy.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-hpg1pkwy.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/location-watcher.ts
|
|
15
15
|
var exports_location_watcher2 = {};
|
|
16
16
|
__export(exports_location_watcher2, {
|
|
17
17
|
ConfigLocationWatcherPlugin: () => exports_location_watcher2,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin52
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin52 = define({
|
|
23
23
|
id: "opencode.config.location-watcher",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const policy = yield*
|
|
25
|
+
const config = yield* Service76;
|
|
26
|
+
const policy = yield* Service12;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, policy.reload());
|
|
28
28
|
yield* policy.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -35,4 +35,4 @@ var Plugin4 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin52, exports_location_watcher2 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorktreeError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-zvgw15wn.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service71
|
|
6
|
+
} from "./location-nw8h2gm9.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service17
|
|
9
|
+
} from "./location-bd2tgyqc.js";
|
|
10
10
|
import {
|
|
11
11
|
DirectoryUnavailableError2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-d4v9tmah.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Info7,
|
|
15
15
|
List2,
|
|
16
16
|
InvalidDirectoryError2,
|
|
17
17
|
StrategyUnavailableError2,
|
|
18
18
|
OperationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-cp50ck8v.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/tool/plugin/opencode.ts
|
|
25
25
|
var exports_opencode = {};
|
|
@@ -27,7 +27,7 @@ __export(exports_opencode, {
|
|
|
27
27
|
ModelsInput: () => ModelsInput2,
|
|
28
28
|
MoveInput: () => MoveInput2,
|
|
29
29
|
OpenCodeTools: () => exports_opencode,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin33,
|
|
31
31
|
RenameInput: () => RenameInput2,
|
|
32
32
|
WorktreeCreateInput: () => WorktreeCreateInput2,
|
|
33
33
|
WorktreeRemoveInput: () => WorktreeRemoveInput2
|
|
@@ -105,11 +105,11 @@ var ModelsOutput = Schema.Struct({
|
|
|
105
105
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
106
106
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
107
107
|
});
|
|
108
|
-
var
|
|
108
|
+
var Plugin33 = {
|
|
109
109
|
id: "opencode.tools",
|
|
110
110
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
111
|
-
const access = yield*
|
|
112
|
-
const permission = yield*
|
|
111
|
+
const access = yield* Service17;
|
|
112
|
+
const permission = yield* Service71;
|
|
113
113
|
const hook = (event) => Effect.sync(() => {
|
|
114
114
|
event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
|
|
115
115
|
});
|
|
@@ -161,7 +161,7 @@ var Plugin30 = {
|
|
|
161
161
|
name: "worktree_create",
|
|
162
162
|
description: "Create a named worktree. Returns its directory.",
|
|
163
163
|
input: WorktreeCreateInput2,
|
|
164
|
-
output:
|
|
164
|
+
output: Info7,
|
|
165
165
|
options: { namespace: "opencode", codemode: true, pinned: true },
|
|
166
166
|
execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
|
|
167
167
|
});
|
|
@@ -258,4 +258,4 @@ function removeFailure(directory, error) {
|
|
|
258
258
|
return `Unable to remove worktree ${directory}.`;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2,
|
|
261
|
+
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin33, exports_opencode };
|