@opencode/core 0.0.0-dev-476 → 0.0.0-dev-478
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +90 -90
- package/dist/aisdk-native.js +102 -102
- package/dist/aisdk.js +108 -108
- package/dist/app.js +9 -9
- package/dist/artifact.js +242 -242
- package/dist/bus.js +84 -84
- package/dist/chunks/{permission-r29280r7.js → location-020e7ky9.js} +15 -15
- package/dist/chunks/{permission-aj7mw0zk.js → location-034tev2y.js} +2 -2
- package/dist/chunks/{permission-1r6a3gc3.js → location-05zpggmq.js} +11 -11
- package/dist/chunks/{permission-2rrs0yrw.js → location-0dwp8a0k.js} +8 -8
- package/dist/chunks/{permission-wqhmcxp7.js → location-0g8zxa44.js} +6 -6
- package/dist/chunks/{permission-fwc5tj9a.js → location-0gdrrj59.js} +4 -4
- package/dist/chunks/{permission-vj50rhab.js → location-0gwbn6a0.js} +8 -8
- package/dist/chunks/{permission-41bvk93a.js → location-0j26xjnm.js} +26 -26
- package/dist/chunks/{permission-0j7gp832.js → location-0j7gp832.js} +1 -1
- package/dist/chunks/{permission-18b1hh0p.js → location-0m6fyr40.js} +11 -11
- package/dist/chunks/{permission-0ma9gw4f.js → location-0ma9gw4f.js} +2 -2
- package/dist/chunks/{permission-ng7443yy.js → location-0p5j0q1n.js} +19 -19
- package/dist/chunks/{permission-p2f6s2eq.js → location-0sqy1gc0.js} +16 -16
- package/dist/chunks/{permission-hb3g31x7.js → location-0zz8hbpc.js} +13 -13
- package/dist/chunks/{permission-c0mxg9tb.js → location-11db1ksq.js} +44 -44
- package/dist/chunks/{permission-1aqsckx4.js → location-1aqsckx4.js} +1 -1
- package/dist/chunks/{permission-65nam5c4.js → location-1at69vbb.js} +43 -43
- package/dist/chunks/{permission-jnyfy6ck.js → location-1cycred6.js} +343 -343
- package/dist/chunks/{permission-27w5k9zf.js → location-1ep2p91f.js} +2 -2
- package/dist/chunks/{permission-1v2g13eq.js → location-1v2g13eq.js} +4 -4
- package/dist/chunks/{permission-1x2knyw4.js → location-1x2knyw4.js} +1 -1
- package/dist/chunks/location-1xm5rxnq.js +261 -0
- package/dist/chunks/{permission-p7vhpwh8.js → location-1yq9hg58.js} +5 -5
- package/dist/chunks/{permission-hdreqhvr.js → location-20hgg5jf.js} +6 -6
- package/dist/chunks/{permission-kj9n5bvh.js → location-20pht57w.js} +4 -4
- package/dist/chunks/{permission-ybm0cdpb.js → location-21c3sgp2.js} +39 -39
- package/dist/chunks/{permission-skes868k.js → location-278r5efb.js} +20 -20
- package/dist/chunks/{permission-22xt4mhw.js → location-2c1ahv09.js} +17 -17
- package/dist/chunks/{permission-w97wvfap.js → location-2c74hnrj.js} +19 -19
- package/dist/chunks/{permission-9mesb7hj.js → location-2d8prpq8.js} +37 -37
- package/dist/chunks/{permission-c72z8fgb.js → location-2eagfawa.js} +9 -9
- package/dist/chunks/{permission-gy5q5btw.js → location-2m1yar9d.js} +29 -29
- package/dist/chunks/{permission-m7xh3h0x.js → location-2m2g9ynh.js} +4 -4
- package/dist/chunks/{permission-8z70edxv.js → location-2m5z3n1v.js} +4 -4
- package/dist/chunks/{permission-2p60zmnr.js → location-2p60zmnr.js} +2 -2
- package/dist/chunks/{permission-p80e2d6j.js → location-2vjc90sg.js} +16 -16
- package/dist/chunks/{permission-d4p88a8c.js → location-2xabch4h.js} +2 -2
- package/dist/chunks/{permission-eb0d4fvq.js → location-2xfezrfw.js} +11 -11
- package/dist/chunks/{permission-769qg4vp.js → location-3505vmpq.js} +21 -21
- package/dist/chunks/{permission-1d2k5x6p.js → location-377zq2ns.js} +26 -26
- package/dist/chunks/{permission-9w4ppqge.js → location-38adaqc0.js} +5 -5
- package/dist/chunks/{permission-s6b7v9ty.js → location-38zjc79x.js} +3 -3
- package/dist/chunks/{permission-pa19eq4n.js → location-3abk0zea.js} +11 -11
- package/dist/chunks/{permission-xjn1er0b.js → location-3abv94nw.js} +26 -26
- package/dist/chunks/{permission-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{permission-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
- package/dist/chunks/{permission-3r17c5hc.js → location-3r17c5hc.js} +2 -2
- package/dist/chunks/{permission-bjk9x3j7.js → location-3w88vk1x.js} +18 -18
- package/dist/chunks/{permission-5g4a0xp3.js → location-3xw4begd.js} +9 -9
- package/dist/chunks/{permission-hnsfgvf3.js → location-3y1g6egy.js} +21 -21
- package/dist/chunks/{permission-hzsmcrnc.js → location-3zs77ea8.js} +42 -42
- package/dist/chunks/{permission-mc2dscf2.js → location-3ztqy8t2.js} +22 -22
- package/dist/chunks/{permission-40y6dtc2.js → location-40y6dtc2.js} +1 -1
- package/dist/chunks/{permission-450b0sgb.js → location-44kba8jx.js} +18 -18
- package/dist/chunks/{permission-44pmzq9c.js → location-44pmzq9c.js} +2 -2
- package/dist/chunks/{permission-nkm7vyjr.js → location-4a9gdagm.js} +11 -11
- package/dist/chunks/{permission-8cg7mtm3.js → location-4d2dtj2f.js} +4 -4
- package/dist/chunks/{permission-4dx1dgte.js → location-4dx1dgte.js} +1 -1
- package/dist/chunks/{permission-rqd43q63.js → location-4fe8zn31.js} +6 -6
- package/dist/chunks/{permission-66zymzmv.js → location-4hhyssj0.js} +13 -13
- package/dist/chunks/{permission-2b2r7h3k.js → location-4mcq6f31.js} +9 -9
- package/dist/chunks/{permission-znktmvag.js → location-4n862eer.js} +4 -4
- package/dist/chunks/{permission-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
- package/dist/chunks/{permission-e5seq8eg.js → location-4pypt2ck.js} +19 -19
- package/dist/chunks/{permission-4v008n1t.js → location-4v008n1t.js} +1 -1
- package/dist/chunks/{permission-gekr7a3e.js → location-513j6ct6.js} +4 -4
- package/dist/chunks/{permission-7yrt1ecv.js → location-525ha6pv.js} +28 -28
- package/dist/chunks/{permission-66e8aha3.js → location-5bdpcmde.js} +24 -24
- package/dist/chunks/{permission-5enarcya.js → location-5enarcya.js} +2 -2
- package/dist/chunks/{permission-kq282ysm.js → location-5fcb8v18.js} +3 -3
- package/dist/chunks/{permission-p5mvnvwa.js → location-5fvb5z6a.js} +30 -30
- package/dist/chunks/{permission-5e7854z8.js → location-5gzmpdqx.js} +11 -11
- package/dist/chunks/{permission-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{permission-jkdcm5hg.js → location-5n0rnk8e.js} +4 -4
- package/dist/chunks/{permission-0za9a7cz.js → location-5n1g0j0k.js} +6 -6
- package/dist/chunks/{permission-ft7d7m96.js → location-5p2ebvgg.js} +9 -9
- package/dist/chunks/{permission-26wfx3k0.js → location-694dpcrp.js} +7 -7
- package/dist/chunks/{permission-gwzm3wth.js → location-69pzcp8f.js} +13 -13
- package/dist/chunks/{permission-ctsdnngg.js → location-6med2k0z.js} +10 -10
- package/dist/chunks/{permission-r519pjr0.js → location-6pd0d64e.js} +3 -3
- package/dist/chunks/{permission-e92mp5my.js → location-6pmqyvpv.js} +21 -21
- package/dist/chunks/{permission-4ht2m49t.js → location-6waqsvqa.js} +11 -11
- package/dist/chunks/{permission-qvtwmp4v.js → location-7215dbqr.js} +6 -6
- package/dist/chunks/{permission-775hqbnd.js → location-775hqbnd.js} +3 -3
- package/dist/chunks/{permission-61qraad9.js → location-78p2h4ex.js} +5 -5
- package/dist/chunks/{permission-wvr8xscb.js → location-79k544d0.js} +7 -7
- package/dist/chunks/{permission-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{permission-dzawnn62.js → location-7dy6zmxp.js} +22 -22
- package/dist/chunks/{permission-gte24n30.js → location-7fpgznt3.js} +11 -11
- package/dist/chunks/{permission-0bvbhrr3.js → location-7gtyv0n0.js} +33 -33
- package/dist/chunks/{permission-7kr66rt3.js → location-7kr66rt3.js} +1 -1
- package/dist/chunks/{permission-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
- package/dist/chunks/{permission-7weczvnd.js → location-7weczvnd.js} +1 -1
- package/dist/chunks/{permission-wd7pwe8m.js → location-7wpfpdbm.js} +11 -11
- package/dist/chunks/{permission-axeppng9.js → location-7xgnh8ev.js} +23 -23
- package/dist/chunks/{permission-s4vywn8s.js → location-80gjmwh8.js} +9 -9
- package/dist/chunks/{permission-m8v65h7p.js → location-81bq9pne.js} +13 -13
- package/dist/chunks/{permission-npdtbdqc.js → location-850kv106.js} +4 -4
- package/dist/chunks/{permission-k6vamg3b.js → location-867yrhje.js} +3 -3
- package/dist/chunks/{permission-89287pr7.js → location-89287pr7.js} +1 -1
- package/dist/chunks/{permission-8b3vzgkx.js → location-8b3vzgkx.js} +1 -1
- package/dist/chunks/{permission-8q1nqve2.js → location-8byfnzqa.js} +15 -15
- package/dist/chunks/{permission-rh12p7gk.js → location-8r5yfeas.js} +45 -45
- package/dist/chunks/{permission-bb3mmwvh.js → location-8sxe6kv8.js} +2 -2
- package/dist/chunks/{permission-8t99kr38.js → location-8t99kr38.js} +1 -1
- package/dist/chunks/{permission-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
- package/dist/chunks/{permission-m9pfq3es.js → location-902rvdsa.js} +17 -17
- package/dist/chunks/{permission-90zstvax.js → location-90zstvax.js} +1 -1
- package/dist/chunks/{permission-95sp4hdf.js → location-95sp4hdf.js} +1 -1
- package/dist/chunks/{permission-963hk181.js → location-963hk181.js} +2 -2
- package/dist/chunks/{permission-5sa9a2ns.js → location-9f77sbey.js} +38 -38
- package/dist/chunks/{permission-vybdy362.js → location-9h69dt5r.js} +8 -8
- package/dist/chunks/{permission-znj3y4fr.js → location-9km3nys4.js} +5 -5
- package/dist/chunks/{permission-rey7ks36.js → location-9s0v8mq9.js} +31 -31
- package/dist/chunks/{permission-8bsczx0b.js → location-a7jf338s.js} +11 -11
- package/dist/chunks/{permission-r94s8dec.js → location-af6wxkep.js} +5 -5
- package/dist/chunks/{permission-3cbjf1nt.js → location-ayjs7tqn.js} +2 -2
- package/dist/chunks/{permission-2k6tgr9a.js → location-b1bx7tvc.js} +6 -6
- package/dist/chunks/{permission-b70gwv2y.js → location-b2f2q0f5.js} +136 -136
- package/dist/chunks/{permission-5nnwax6m.js → location-b6vsg801.js} +5 -5
- package/dist/chunks/{permission-f0sxf0m6.js → location-b8s7qvfy.js} +22 -22
- package/dist/chunks/{permission-0kzg6e26.js → location-ba2zb7af.js} +43 -43
- package/dist/chunks/{permission-nyz8j47j.js → location-bgv92pnc.js} +17 -17
- package/dist/chunks/{permission-6gk06ag3.js → location-btms4n6t.js} +6 -6
- package/dist/chunks/{permission-kjdvm3hh.js → location-btmsjhq3.js} +3 -3
- package/dist/chunks/{permission-31avdb49.js → location-c0tz6aqz.js} +7 -7
- package/dist/chunks/{permission-akcha1d1.js → location-c2jf07ga.js} +7 -7
- package/dist/chunks/{permission-hd5vppr3.js → location-c2x98rcc.js} +6 -6
- package/dist/chunks/{permission-a84pm7qp.js → location-c32zfq3f.js} +8 -8
- package/dist/chunks/{permission-mxghbxdj.js → location-c35pc2g3.js} +85 -85
- package/dist/chunks/{permission-j8g372by.js → location-c7zjtvc8.js} +3 -3
- package/dist/chunks/{permission-qb85zdq2.js → location-c89cp3jt.js} +27 -27
- package/dist/chunks/{permission-ampjv2jb.js → location-cmxrg3hq.js} +6 -6
- package/dist/chunks/{permission-z6rwqa0c.js → location-cpdqm49x.js} +18 -18
- package/dist/chunks/{permission-0qh3s10f.js → location-cprfv412.js} +7 -7
- package/dist/chunks/{permission-fggf5bxn.js → location-cwj1b16q.js} +8 -8
- package/dist/chunks/{permission-cwrgdav8.js → location-cwrgdav8.js} +2 -2
- package/dist/chunks/{permission-kzdam8c6.js → location-cxab28sr.js} +5 -5
- package/dist/chunks/{permission-d4v9tmah.js → location-d4v9tmah.js} +2 -2
- package/dist/chunks/{permission-1w7v2jwe.js → location-dn1v501c.js} +15 -15
- package/dist/chunks/{permission-rx7wy502.js → location-dngfnfy2.js} +10 -10
- package/dist/chunks/{permission-s5chsxke.js → location-dpydvgsc.js} +8 -8
- package/dist/chunks/{permission-6zkqh98g.js → location-dq4yj94y.js} +21 -21
- package/dist/chunks/{permission-dt77769w.js → location-dt77769w.js} +1 -1
- package/dist/chunks/{permission-ay6wrfq3.js → location-dy41a2ws.js} +9 -9
- package/dist/chunks/{permission-sr9p01cr.js → location-e1a65yqt.js} +2 -2
- package/dist/chunks/{permission-vgq7p1yp.js → location-e7s73w55.js} +32 -32
- package/dist/chunks/{permission-e834z07m.js → location-e834z07m.js} +1 -1
- package/dist/chunks/{permission-nrvvg223.js → location-e9tdtc9d.js} +16 -16
- package/dist/chunks/{permission-98a5em1w.js → location-ea5vdr8g.js} +9 -9
- package/dist/chunks/{permission-45b8pfwh.js → location-eafmm9f4.js} +3 -3
- package/dist/chunks/{permission-eavcrtrz.js → location-eavcrtrz.js} +2 -2
- package/dist/chunks/{permission-rha0hr53.js → location-eby3s5xx.js} +7 -7
- package/dist/chunks/{permission-fj3tnf40.js → location-edjrypxb.js} +15 -15
- package/dist/chunks/{permission-m8jzb98x.js → location-ehy9sjp9.js} +35 -35
- package/dist/chunks/{permission-rdxfsvbp.js → location-enatbb5b.js} +12 -12
- package/dist/chunks/{permission-q9aerynr.js → location-enn619n9.js} +8 -8
- package/dist/chunks/{permission-eqw4pqj1.js → location-eqw4pqj1.js} +2 -2
- package/dist/chunks/{permission-cbc1wyc3.js → location-etbt7bfj.js} +10 -10
- package/dist/chunks/{permission-ev660z6k.js → location-ev660z6k.js} +1 -1
- package/dist/chunks/{permission-tb4c2kvp.js → location-f41nm21f.js} +33 -33
- package/dist/chunks/{permission-fjyh3znh.js → location-f4xz5g1h.js} +35 -35
- package/dist/chunks/{permission-z37bqphs.js → location-f7ma11rg.js} +6 -6
- package/dist/chunks/{permission-9wjadkhm.js → location-f8b4vtxj.js} +7 -7
- package/dist/chunks/{permission-543tv6ss.js → location-fdxbnvz1.js} +17 -17
- package/dist/chunks/{permission-8z9wec9y.js → location-ff1zp5s0.js} +52 -52
- package/dist/chunks/{permission-fffv3p7h.js → location-fffv3p7h.js} +1 -1
- package/dist/chunks/{permission-fg9p65nk.js → location-fg9p65nk.js} +2 -2
- package/dist/chunks/{permission-bpk0b7kb.js → location-fjtpg21e.js} +31 -31
- package/dist/chunks/{permission-ybx9faah.js → location-ftyd1sm5.js} +17 -17
- package/dist/chunks/{permission-kxdgef5k.js → location-g0hb2g1m.js} +1 -1
- package/dist/chunks/{permission-nnq4585x.js → location-g6r525js.js} +9 -9
- package/dist/chunks/{permission-ndkz7p3h.js → location-g78d4y2q.js} +44 -44
- package/dist/chunks/{permission-p9rzg468.js → location-gac3zvym.js} +6 -6
- package/dist/chunks/{permission-gbjdnr5j.js → location-gbjdnr5j.js} +2 -2
- package/dist/chunks/{permission-nefeba7a.js → location-gbqssc9y.js} +4 -4
- package/dist/chunks/{permission-gxs71cxp.js → location-gxs71cxp.js} +1 -1
- package/dist/chunks/{permission-v6a18ahm.js → location-h4r5q5wx.js} +5 -5
- package/dist/chunks/{permission-9yjzrdzd.js → location-hcm47rzd.js} +18 -18
- package/dist/chunks/{permission-mz9an6pp.js → location-hkwbm6wz.js} +7 -7
- package/dist/chunks/{permission-weyqg0zk.js → location-hm3yj34d.js} +24 -24
- package/dist/chunks/{permission-hpg1pkwy.js → location-hpg1pkwy.js} +1 -1
- package/dist/chunks/{permission-1k3db2yj.js → location-hw7k750h.js} +9 -9
- package/dist/chunks/{permission-3rdg1sqt.js → location-hy13g3t2.js} +8 -8
- package/dist/chunks/{permission-zgxkbhag.js → location-j08aee1v.js} +32 -32
- package/dist/chunks/{permission-z5v3jzem.js → location-j8haacnf.js} +14 -14
- package/dist/chunks/{permission-j9nxzz3g.js → location-j9nxzz3g.js} +3 -3
- package/dist/chunks/{permission-6f2e7d02.js → location-jcs5sr1r.js} +22 -22
- package/dist/chunks/{permission-bk234kfe.js → location-jqkg8735.js} +18 -18
- package/dist/chunks/{permission-jtnps1zs.js → location-jtnps1zs.js} +2 -2
- package/dist/chunks/{permission-1pk0e05p.js → location-jwve1gmd.js} +4 -4
- package/dist/chunks/{permission-6ss6ngz0.js → location-jy2czfqv.js} +4 -4
- package/dist/chunks/{permission-q4rx923q.js → location-k1w3cq0y.js} +8 -8
- package/dist/chunks/{permission-raa0783y.js → location-k2qg9scx.js} +12 -12
- package/dist/chunks/{permission-gqekfbba.js → location-k9kkt3zc.js} +22 -22
- package/dist/chunks/{permission-15sbe2j5.js → location-kedf0ann.js} +4 -4
- package/dist/chunks/{permission-718btms6.js → location-kjn89aej.js} +17 -17
- package/dist/chunks/{permission-w77vz6v2.js → location-kmfcfw9x.js} +21 -21
- package/dist/chunks/{permission-113rwhxg.js → location-kp947ncn.js} +18 -18
- package/dist/chunks/{permission-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
- package/dist/chunks/{permission-kzczzf4v.js → location-kzczzf4v.js} +1 -1
- package/dist/chunks/{permission-m1714858.js → location-m1714858.js} +1 -1
- package/dist/chunks/{permission-f8k52cby.js → location-m2b1dm9t.js} +4 -4
- package/dist/chunks/{permission-g3ga7dpq.js → location-m3kvqs0d.js} +6 -6
- package/dist/chunks/{permission-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{permission-7fc270zt.js → location-maq5kr1r.js} +33 -33
- package/dist/chunks/{permission-8z6m94af.js → location-mb7mbhnz.js} +3 -3
- package/dist/chunks/{permission-pf6ryd01.js → location-mh8k9asf.js} +5 -5
- package/dist/chunks/{permission-859w1rtj.js → location-mjrcsjpa.js} +9 -9
- package/dist/chunks/{permission-s04t4cn7.js → location-mk4fxqvh.js} +4 -4
- package/dist/chunks/{permission-2kwe88q4.js → location-mkqteem8.js} +10 -10
- package/dist/chunks/{permission-2cdjxzfg.js → location-mqe7nf5n.js} +3 -3
- package/dist/chunks/{permission-xp3bg2tn.js → location-nb0223kt.js} +3 -3
- package/dist/chunks/{permission-h5axrfey.js → location-nfdaxe0m.js} +11 -11
- package/dist/chunks/{permission-pgkmebya.js → location-nfwb5w7c.js} +22 -22
- package/dist/chunks/{permission-nt907s04.js → location-nt907s04.js} +3 -3
- package/dist/chunks/{permission-9632ykdy.js → location-p0m3a0br.js} +2 -2
- package/dist/chunks/{permission-kd3vr31t.js → location-p3q79ehf.js} +13 -13
- package/dist/chunks/{permission-tk6pa786.js → location-p4v89att.js} +31 -31
- package/dist/chunks/{permission-8snj8n64.js → location-p5wvj9da.js} +30 -30
- package/dist/chunks/{permission-5ye0g8tq.js → location-p85e8ykt.js} +29 -29
- package/dist/chunks/{permission-4cmfps7p.js → location-pa9z79r3.js} +23 -23
- package/dist/chunks/{permission-qf6ngmc5.js → location-pafcbs3j.js} +13 -13
- package/dist/chunks/{permission-2crx6k8k.js → location-phezegb1.js} +11 -11
- package/dist/chunks/{permission-jzb3wchc.js → location-pjk4x9d0.js} +3 -3
- package/dist/chunks/{permission-wa78ysrr.js → location-pjzawjd1.js} +32 -32
- package/dist/chunks/{permission-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{permission-v927qgrs.js → location-pt12bjpd.js} +11 -11
- package/dist/chunks/{permission-2ba10fgs.js → location-q04tfzwg.js} +17 -17
- package/dist/chunks/{permission-76jdb1aj.js → location-q2va10hk.js} +13 -13
- package/dist/chunks/{permission-h0q446r0.js → location-q31r0kes.js} +30 -30
- package/dist/chunks/{permission-xm4xyrjv.js → location-q4rn7dk6.js} +13 -13
- package/dist/chunks/{permission-csz31m7q.js → location-q5jm8xc7.js} +3 -3
- package/dist/chunks/{permission-geh9xa1k.js → location-qbemgaet.js} +15 -15
- package/dist/chunks/{permission-x530pn5e.js → location-qc6b42y1.js} +16 -16
- package/dist/chunks/{permission-sjbf6812.js → location-qdcdbkyx.js} +9 -9
- package/dist/chunks/{permission-x48ws00q.js → location-qexjqm7m.js} +12 -12
- package/dist/chunks/{permission-86jp7hsd.js → location-qfrr1ca6.js} +11 -11
- package/dist/chunks/{permission-16q2qtqr.js → location-qg2c72fj.js} +22 -22
- package/dist/chunks/{permission-5rg0e19q.js → location-qnke3atb.js} +6 -6
- package/dist/chunks/{permission-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
- package/dist/chunks/{permission-cpvd08na.js → location-qqg9c0kv.js} +4 -4
- package/dist/chunks/{permission-qqvy8y24.js → location-qqvy8y24.js} +1 -1
- package/dist/chunks/{permission-a73vwt7g.js → location-qrfsv89s.js} +27 -27
- package/dist/chunks/{permission-s282f20y.js → location-qxhvhjwq.js} +12 -12
- package/dist/chunks/{permission-v3p3sf6g.js → location-qxvjc2q2.js} +12 -12
- package/dist/chunks/{permission-k3wd1fgj.js → location-r4fhs19g.js} +22 -22
- package/dist/chunks/{permission-4f25tdd0.js → location-r542h3bh.js} +5 -5
- package/dist/chunks/{permission-zbxhz0ac.js → location-r75k2j2e.js} +77 -77
- package/dist/chunks/{permission-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
- package/dist/chunks/{permission-vba5ap8s.js → location-rbdqmzmc.js} +59 -59
- package/dist/chunks/{permission-j2fjtq29.js → location-rr81d7b6.js} +7 -7
- package/dist/chunks/{permission-5zwxtbp1.js → location-rsj12xsr.js} +5 -5
- package/dist/chunks/{permission-rt5dr6hb.js → location-rt5dr6hb.js} +1 -1
- package/dist/chunks/{permission-808g7r2q.js → location-rvcj513c.js} +11 -11
- package/dist/chunks/{permission-k5bmz3x2.js → location-rzgaj7xt.js} +15 -15
- package/dist/chunks/{permission-sa3fpqfw.js → location-sa3fpqfw.js} +2 -2
- package/dist/chunks/{permission-pcxnpmfb.js → location-sav95y9m.js} +88 -88
- package/dist/chunks/{permission-sbya78hr.js → location-sbya78hr.js} +1 -1
- package/dist/chunks/{permission-6tqzmgbv.js → location-sd50zddj.js} +30 -30
- package/dist/chunks/{permission-56c30wgw.js → location-sdtq4dtx.js} +8 -8
- package/dist/chunks/{permission-y5xpgsh2.js → location-sp63pezr.js} +4 -4
- package/dist/chunks/{permission-m25sb2fd.js → location-spaxw9fh.js} +8 -8
- package/dist/chunks/{permission-j25g9npw.js → location-ssgctbgc.js} +45 -45
- package/dist/chunks/{permission-svcy3p9a.js → location-svcy3p9a.js} +1 -1
- package/dist/chunks/{permission-xtjc53ky.js → location-swyqjsy1.js} +30 -30
- package/dist/chunks/{permission-szwm4crx.js → location-szwm4crx.js} +4 -4
- package/dist/chunks/{permission-62xm11hz.js → location-t1cazzj5.js} +13 -13
- package/dist/chunks/{permission-1mp1x1b9.js → location-t2nxa2bt.js} +55 -55
- package/dist/chunks/{permission-dk1a1zn2.js → location-t48ka35x.js} +5 -5
- package/dist/chunks/{permission-tczq8hjw.js → location-tczq8hjw.js} +1 -1
- package/dist/chunks/{permission-vvkx4daa.js → location-te9q1npe.js} +23 -23
- package/dist/chunks/{permission-aaxx1cf9.js → location-th2hp9ev.js} +12 -12
- package/dist/chunks/{permission-jccwrshf.js → location-tj7xdjms.js} +10 -10
- package/dist/chunks/{permission-tr8x705m.js → location-tr8x705m.js} +1 -1
- package/dist/chunks/{permission-kxdqpb7b.js → location-twkh938h.js} +7 -7
- package/dist/chunks/{permission-twssxy5n.js → location-twssxy5n.js} +2 -2
- package/dist/chunks/{permission-v0t96s7a.js → location-v0t96s7a.js} +1 -1
- package/dist/chunks/{permission-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
- package/dist/chunks/{permission-ydsespw1.js → location-v5hpj9dd.js} +8 -8
- package/dist/chunks/{permission-w7j3r3wx.js → location-v8vd993n.js} +8 -8
- package/dist/chunks/{permission-qttbmwf3.js → location-v9ak48th.js} +2 -2
- package/dist/chunks/{permission-9gjp459k.js → location-vd1xy4rv.js} +12 -12
- package/dist/chunks/{permission-bk7w75rj.js → location-vds0szwv.js} +29 -29
- package/dist/chunks/{permission-pb87spge.js → location-ver7wrgy.js} +15 -15
- package/dist/chunks/{permission-qyy80c5b.js → location-vfbp3arj.js} +9 -9
- package/dist/chunks/{permission-a2cy356b.js → location-vfqvyvhb.js} +13 -13
- package/dist/chunks/{permission-vjf35v1f.js → location-vjf35v1f.js} +1 -1
- package/dist/chunks/{permission-n6shx49w.js → location-vszegqvg.js} +11 -11
- package/dist/chunks/{permission-rj7j5fvs.js → location-vt2d6wap.js} +4 -4
- package/dist/chunks/{permission-9f3jsh1d.js → location-vt4r9rmy.js} +9 -9
- package/dist/chunks/{permission-qw2t3dzn.js → location-vzppetdn.js} +6 -6
- package/dist/chunks/{permission-tx6rmbs5.js → location-w04br7xb.js} +14 -14
- package/dist/chunks/{permission-m6xssrdg.js → location-w18qqaet.js} +41 -41
- package/dist/chunks/{permission-9cthvrvr.js → location-w1xk7q16.js} +16 -16
- package/dist/chunks/{permission-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{permission-yk5z6xex.js → location-w8mkv1ve.js} +36 -36
- package/dist/chunks/{permission-0z92sevc.js → location-w8p8mrc1.js} +18 -18
- package/dist/chunks/{permission-76cb1hcw.js → location-w8qtt4th.js} +4 -4
- package/dist/chunks/{permission-wakvkjy4.js → location-wakvkjy4.js} +1 -1
- package/dist/chunks/{permission-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{permission-nx4vzyjd.js → location-wegkxhrn.js} +2 -2
- package/dist/chunks/{permission-k3cx6fhe.js → location-wfdx5ztx.js} +4 -4
- package/dist/chunks/{permission-r6zwqkps.js → location-wmv27f9c.js} +5 -5
- package/dist/chunks/{permission-wnhgecwx.js → location-wnhgecwx.js} +1 -1
- package/dist/chunks/{permission-w687dnns.js → location-wr3re1en.js} +4 -4
- package/dist/chunks/{permission-r717955a.js → location-wx29f1yd.js} +11 -11
- package/dist/chunks/{permission-an67g5ah.js → location-x3fq85a8.js} +8 -8
- package/dist/chunks/{permission-a5fx33f2.js → location-x4mcewfn.js} +8 -8
- package/dist/chunks/{permission-khscv1ne.js → location-xa143r31.js} +27 -27
- package/dist/chunks/{permission-bstexjd6.js → location-xd9cc171.js} +5 -5
- package/dist/chunks/{permission-0vv3dtgc.js → location-xdkjmydk.js} +8 -8
- package/dist/chunks/{permission-3cvctb2h.js → location-xgxp23qn.js} +4 -4
- package/dist/chunks/{permission-bzjxj3jz.js → location-xq2jfv5r.js} +15 -15
- package/dist/chunks/{permission-dz12bv68.js → location-xrnbhdpb.js} +13 -13
- package/dist/chunks/{permission-0jz5gbs4.js → location-xs8g25ry.js} +12 -12
- package/dist/chunks/{permission-2287af6g.js → location-xvyvqxq6.js} +1 -1
- package/dist/chunks/{permission-bs4jqr56.js → location-xzkx2axb.js} +2 -2
- package/dist/chunks/{permission-a8c09y08.js → location-y5x2nzfy.js} +29 -29
- package/dist/chunks/{permission-yb20nhc3.js → location-yb20nhc3.js} +1 -1
- package/dist/chunks/{permission-f4czh471.js → location-ygaqm4vm.js} +20 -20
- package/dist/chunks/{permission-djyk5qg5.js → location-ymvxdych.js} +19 -19
- package/dist/chunks/{permission-nymz80y4.js → location-yq2fbvdd.js} +11 -11
- package/dist/chunks/{permission-yr705xyq.js → location-yr705xyq.js} +1 -1
- package/dist/chunks/{permission-xksw6ev0.js → location-yts2a8qm.js} +4 -4
- package/dist/chunks/{permission-yvtc2x31.js → location-yvtc2x31.js} +1 -1
- package/dist/chunks/{permission-38aws4xb.js → location-z080rjh6.js} +4 -4
- package/dist/chunks/{permission-z0hqw6m5.js → location-z0hqw6m5.js} +1 -1
- package/dist/chunks/{permission-63w299wm.js → location-zcrd7vqr.js} +25 -25
- package/dist/chunks/{permission-v89tvscs.js → location-zd6q0tad.js} +19 -19
- package/dist/chunks/{permission-g21z6bxg.js → location-ztm2fw2s.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +145 -145
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +151 -151
- package/dist/command.js +92 -92
- package/dist/config/discovery.js +97 -97
- package/dist/config/integration.js +1 -1
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +112 -112
- package/dist/config/plugin/agent.js +130 -130
- package/dist/config/plugin/command.js +229 -229
- package/dist/config/plugin/compaction.js +171 -171
- package/dist/config/plugin/compatibility.js +150 -150
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +131 -131
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +130 -130
- package/dist/config/plugin/location-watcher.js +130 -130
- package/dist/config/plugin/mcp.js +137 -137
- package/dist/config/plugin/policy.js +128 -128
- package/dist/config/plugin/provider.js +130 -130
- package/dist/config/plugin/reference.js +132 -132
- package/dist/config/plugin/shell.js +130 -130
- package/dist/config/plugin/skill-file.js +146 -146
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +151 -151
- package/dist/config/plugin/snapshot.js +130 -130
- package/dist/config/plugin/source.js +133 -133
- package/dist/config/plugin/tool-output.js +131 -131
- package/dist/config/plugin/websearch.js +129 -129
- package/dist/config/plugin/worktree.js +132 -132
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +133 -133
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +88 -88
- package/dist/database/database.js +81 -81
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/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 +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +62 -62
- 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/v1-migration.bun.js +101 -101
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +430 -430
- 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 +106 -106
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +108 -108
- 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 -85
- package/dist/file-access.js +156 -156
- package/dist/file-mutation.js +107 -107
- 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 -91
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +243 -243
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +112 -112
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +117 -117
- package/dist/form.js +93 -93
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +118 -118
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +104 -104
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +421 -421
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +92 -92
- package/dist/job/sql.js +2 -2
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +80 -80
- package/dist/location-activity.js +179 -179
- package/dist/location-lifecycle.js +150 -150
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +418 -418
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +104 -104
- package/dist/mcp/index.js +118 -118
- package/dist/mcp/instructions.js +179 -179
- package/dist/mcp/oauth.js +89 -89
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +103 -103
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +104 -104
- package/dist/model-resolver.js +112 -112
- package/dist/model-retry.js +1 -1
- package/dist/model.js +109 -109
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +117 -117
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +89 -89
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +147 -147
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +95 -95
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +113 -113
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +236 -236
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +397 -397
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +110 -110
- package/dist/plugin/module.js +129 -129
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +146 -146
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +104 -104
- package/dist/plugin/provider/azure.js +132 -132
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +130 -130
- package/dist/plugin/provider/claude-agent/aisdk.js +115 -115
- 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 -145
- package/dist/plugin/provider/claude-agent/instructions.js +112 -112
- package/dist/plugin/provider/claude-agent/integration.js +113 -113
- 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 +108 -108
- package/dist/plugin/provider/claude-agent/session.js +112 -112
- 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 +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- 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 -128
- package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
- package/dist/plugin/provider/configured.js +126 -126
- package/dist/plugin/provider/credential-settings.js +85 -85
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +108 -108
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +110 -110
- package/dist/plugin/provider/gitlab.js +107 -107
- package/dist/plugin/provider/google-vertex.js +127 -127
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +139 -139
- package/dist/plugin/provider/local.js +136 -136
- package/dist/plugin/provider/modal.js +107 -107
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +139 -139
- package/dist/plugin/provider/openai-context-caps.js +103 -103
- package/dist/plugin/provider/openai.js +132 -132
- package/dist/plugin/provider/opencode.js +155 -155
- package/dist/plugin/provider/openrouter.js +104 -104
- package/dist/plugin/provider/poe.js +90 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +87 -87
- package/dist/plugin/provider/sap-ai-core.js +104 -104
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +129 -129
- package/dist/plugin/provider/vllm.js +139 -139
- package/dist/plugin/provider/xai.js +104 -104
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +234 -234
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +147 -147
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +409 -409
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +106 -106
- package/dist/plugin/warming.js +130 -130
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +4 -4
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +245 -245
- 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 +93 -93
- package/dist/provider.js +106 -106
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +99 -99
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +110 -110
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +241 -241
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +247 -247
- 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 -129
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +171 -171
- package/dist/session/context.js +198 -198
- package/dist/session/diff.js +101 -101
- 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 +242 -242
- package/dist/session/execution.js +163 -163
- package/dist/session/generate.js +198 -198
- package/dist/session/history.js +136 -136
- package/dist/session/inbox.js +147 -147
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +90 -90
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +141 -141
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +168 -168
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +165 -165
- package/dist/session/projector.js +143 -143
- package/dist/session/prompt.js +148 -148
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +139 -139
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +250 -250
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -113
- package/dist/session/runner/publish-llm-event.js +149 -149
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +163 -163
- package/dist/session/runner/to-llm-message.js +137 -137
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +181 -181
- package/dist/session/shell.js +144 -144
- package/dist/session/skill.js +147 -147
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +86 -86
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +229 -229
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +202 -202
- package/dist/session/to-session-error.js +148 -148
- package/dist/session/transfer.js +238 -238
- package/dist/session/usage.js +3 -3
- package/dist/session.js +229 -229
- package/dist/shared-cache.js +5 -5
- 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 +144 -144
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +149 -149
- package/dist/skill.js +150 -150
- package/dist/snapshot.js +106 -106
- 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 +178 -178
- package/dist/tool/plugin/artifact.js +228 -228
- package/dist/tool/plugin/edit.js +164 -164
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +168 -168
- package/dist/tool/plugin/grep.js +162 -162
- package/dist/tool/plugin/image-generate.js +237 -237
- package/dist/tool/plugin/mcp-resource.js +160 -160
- package/dist/tool/plugin/opencode.js +161 -161
- package/dist/tool/plugin/patch.js +162 -162
- package/dist/tool/plugin/question.js +144 -144
- package/dist/tool/plugin/read.js +169 -169
- package/dist/tool/plugin/schedule.js +247 -247
- package/dist/tool/plugin/shell.js +233 -233
- package/dist/tool/plugin/skill.js +155 -155
- package/dist/tool/plugin/subagent.js +236 -236
- package/dist/tool/plugin/todo.js +153 -153
- package/dist/tool/plugin/webfetch.js +153 -153
- package/dist/tool/plugin/websearch.js +153 -153
- package/dist/tool/plugin/write.js +166 -166
- package/dist/tool/read-filesystem.js +113 -113
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +161 -161
- package/dist/usage-limits.js +94 -94
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +105 -105
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +104 -104
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +100 -100
- package/dist/voice.js +99 -99
- package/dist/websearch.js +97 -97
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +8 -8
- package/dist/chunks/permission-d3vcafwb.js +0 -261
- /package/dist/chunks/{permission-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{permission-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{permission-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{permission-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{permission-1kah00gy.js → location-1kah00gy.js} +0 -0
- /package/dist/chunks/{permission-1pevy3nx.js → location-1pevy3nx.js} +0 -0
- /package/dist/chunks/{permission-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{permission-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{permission-2bv980vf.js → location-2bv980vf.js} +0 -0
- /package/dist/chunks/{permission-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{permission-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{permission-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{permission-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{permission-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{permission-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{permission-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{permission-4qk9sjk2.js → location-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{permission-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{permission-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{permission-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{permission-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{permission-5w3e23ze.js → location-5w3e23ze.js} +0 -0
- /package/dist/chunks/{permission-6agm2x70.js → location-6agm2x70.js} +0 -0
- /package/dist/chunks/{permission-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{permission-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{permission-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{permission-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{permission-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{permission-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{permission-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{permission-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{permission-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{permission-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{permission-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{permission-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{permission-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{permission-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{permission-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{permission-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{permission-beh6qq61.js → location-beh6qq61.js} +0 -0
- /package/dist/chunks/{permission-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{permission-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{permission-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{permission-cqv5kn06.js → location-cqv5kn06.js} +0 -0
- /package/dist/chunks/{permission-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{permission-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{permission-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{permission-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{permission-dbht28n9.js → location-dbht28n9.js} +0 -0
- /package/dist/chunks/{permission-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{permission-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{permission-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{permission-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{permission-ean2d8b5.js → location-ean2d8b5.js} +0 -0
- /package/dist/chunks/{permission-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{permission-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{permission-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{permission-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{permission-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{permission-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{permission-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{permission-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{permission-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{permission-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{permission-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{permission-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{permission-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{permission-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{permission-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{permission-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{permission-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{permission-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{permission-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{permission-jwr30sdr.js → location-jwr30sdr.js} +0 -0
- /package/dist/chunks/{permission-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{permission-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{permission-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{permission-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{permission-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{permission-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{permission-nh4v3znn.js → location-nh4v3znn.js} +0 -0
- /package/dist/chunks/{permission-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{permission-p71gwv9c.js → location-p71gwv9c.js} +0 -0
- /package/dist/chunks/{permission-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{permission-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{permission-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{permission-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{permission-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{permission-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{permission-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{permission-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{permission-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{permission-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{permission-syrav9an.js → location-syrav9an.js} +0 -0
- /package/dist/chunks/{permission-t03h4f5z.js → location-t03h4f5z.js} +0 -0
- /package/dist/chunks/{permission-ty7weeps.js → location-ty7weeps.js} +0 -0
- /package/dist/chunks/{permission-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{permission-vnjc296t.js → location-vnjc296t.js} +0 -0
- /package/dist/chunks/{permission-vtarvj67.js → location-vtarvj67.js} +0 -0
- /package/dist/chunks/{permission-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{permission-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{permission-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{permission-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{permission-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{permission-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{permission-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{permission-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{permission-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{permission-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{permission-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLiteEffectCountBuilder2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-f0mxakyp.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDeleteBase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-w3wsvvr9.js";
|
|
7
7
|
import {
|
|
8
8
|
SQLiteEffectInsertBuilder2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-7bmhse3q.js";
|
|
10
10
|
import {
|
|
11
11
|
SQLiteEffectRelationalQueryBuilder2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-cf4snx6d.js";
|
|
13
13
|
import {
|
|
14
14
|
SQLiteEffectRaw2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-822emrt2.js";
|
|
16
16
|
import {
|
|
17
17
|
SQLiteEffectSelectBuilder2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-wd87259q.js";
|
|
19
19
|
import {
|
|
20
20
|
SQLiteEffectUpdateBuilder2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-m9w0rfyh.js";
|
|
22
22
|
|
|
23
23
|
// src/database/drizzle/sqlite-core/effect/db.ts
|
|
24
24
|
import { Effect } from "effect";
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service82,
|
|
8
|
+
node84
|
|
9
|
+
} from "./location-3505vmpq.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Content4
|
|
12
|
+
} from "./location-y5x2nzfy.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-4pyp9zr9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service44,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node47,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
|
|
|
89
89
|
});
|
|
90
90
|
var FileContent2 = Schema.Struct({
|
|
91
91
|
type: Schema.Literal("file"),
|
|
92
|
-
...
|
|
92
|
+
...Content4.fields
|
|
93
93
|
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
94
94
|
|
|
95
95
|
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service44 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -331,13 +331,13 @@ var nthNewline = (bytes, count) => {
|
|
|
331
331
|
return index + 1;
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
var layer = Layer.effect(
|
|
335
|
-
const environment = yield*
|
|
336
|
-
return
|
|
334
|
+
var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
335
|
+
const environment = yield* Service82;
|
|
336
|
+
return Service44.of({
|
|
337
337
|
list: environment.files.list,
|
|
338
338
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
339
339
|
});
|
|
340
340
|
}));
|
|
341
|
-
var
|
|
341
|
+
var node47 = makeLocationNode({ service: Service44, layer, deps: [node84] });
|
|
342
342
|
|
|
343
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2,
|
|
343
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2, Service44, read2, node47, exports_read_filesystem };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service89,
|
|
3
|
+
node92
|
|
4
|
+
} from "./location-qc6b42y1.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-p0m3a0br.js";
|
|
9
9
|
import {
|
|
10
10
|
changes2,
|
|
11
11
|
create4
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-40y6dtc2.js";
|
|
13
13
|
import {
|
|
14
14
|
Service78,
|
|
15
15
|
node80
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-twkh938h.js";
|
|
17
17
|
import {
|
|
18
18
|
latest2,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service69,
|
|
20
|
+
node71
|
|
21
|
+
} from "./location-8r5yfeas.js";
|
|
22
22
|
import {
|
|
23
23
|
detect2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-4pyp9zr9.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
26
|
+
Service31,
|
|
27
|
+
node34
|
|
28
|
+
} from "./location-sav95y9m.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./location-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/artifact.ts
|
|
34
34
|
var exports_artifact2 = {};
|
|
@@ -37,22 +37,22 @@ __export(exports_artifact2, {
|
|
|
37
37
|
Capability: () => Capability2,
|
|
38
38
|
Content: () => Content2,
|
|
39
39
|
CreateInput: () => CreateInput4,
|
|
40
|
-
DisabledError: () =>
|
|
41
|
-
Event: () =>
|
|
40
|
+
DisabledError: () => DisabledError4,
|
|
41
|
+
Event: () => Event6,
|
|
42
42
|
FileMissingError: () => FileMissingError2,
|
|
43
|
-
ID: () =>
|
|
43
|
+
ID: () => ID8,
|
|
44
44
|
Info: () => Info8,
|
|
45
45
|
InvalidError: () => InvalidError3,
|
|
46
46
|
LocalProviderID: () => LocalProviderID2,
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Provider: () =>
|
|
47
|
+
NotFoundError: () => NotFoundError5,
|
|
48
|
+
Provider: () => Provider3,
|
|
49
49
|
ProviderError: () => ProviderError2,
|
|
50
50
|
ProviderID: () => ProviderID2,
|
|
51
|
-
ProviderNotFoundError: () =>
|
|
52
|
-
Service: () =>
|
|
53
|
-
UpdateInput: () =>
|
|
51
|
+
ProviderNotFoundError: () => ProviderNotFoundError3,
|
|
52
|
+
Service: () => Service26,
|
|
53
|
+
UpdateInput: () => UpdateInput3,
|
|
54
54
|
locate: () => locate2,
|
|
55
|
-
node: () =>
|
|
55
|
+
node: () => node29
|
|
56
56
|
});
|
|
57
57
|
import { randomUUID } from "node:crypto";
|
|
58
58
|
import fs from "node:fs/promises";
|
|
@@ -62,12 +62,12 @@ import {
|
|
|
62
62
|
Capability as Capability2,
|
|
63
63
|
Content as Content2,
|
|
64
64
|
CreateInput as CreateInput4,
|
|
65
|
-
Event as
|
|
66
|
-
ID as
|
|
65
|
+
Event as Event6,
|
|
66
|
+
ID as ID8,
|
|
67
67
|
Info as Info8,
|
|
68
|
-
Provider as
|
|
68
|
+
Provider as Provider3,
|
|
69
69
|
ProviderID as ProviderID2,
|
|
70
|
-
UpdateInput as
|
|
70
|
+
UpdateInput as UpdateInput3
|
|
71
71
|
} from "@opencode/schema/artifact";
|
|
72
72
|
import { Global } from "@opencode/util/global";
|
|
73
73
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -75,14 +75,14 @@ import { Clock, Context, Effect, Layer, Option, Schema } from "effect";
|
|
|
75
75
|
var LocalProviderID2 = ProviderID2.make("local");
|
|
76
76
|
var ItemPrefix = "artifact:item:";
|
|
77
77
|
|
|
78
|
-
class
|
|
78
|
+
class DisabledError4 extends Schema.TaggedError()("Artifact.DisabledError", {}) {
|
|
79
79
|
get message() {
|
|
80
80
|
return "Artifacts are disabled; set experimental.artifacts in config";
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
85
|
-
artifactID:
|
|
84
|
+
class NotFoundError5 extends Schema.TaggedError()("Artifact.NotFoundError", {
|
|
85
|
+
artifactID: ID8
|
|
86
86
|
}) {
|
|
87
87
|
get message() {
|
|
88
88
|
return `Artifact not found: ${this.artifactID}`;
|
|
@@ -90,7 +90,7 @@ class NotFoundError4 extends Schema.TaggedError()("Artifact.NotFoundError", {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class FileMissingError2 extends Schema.TaggedError()("Artifact.FileMissingError", {
|
|
93
|
-
artifactID:
|
|
93
|
+
artifactID: ID8,
|
|
94
94
|
path: Schema.String
|
|
95
95
|
}) {
|
|
96
96
|
get message() {
|
|
@@ -98,7 +98,7 @@ class FileMissingError2 extends Schema.TaggedError()("Artifact.FileMissingError"
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
class
|
|
101
|
+
class ProviderNotFoundError3 extends Schema.TaggedError()("Artifact.ProviderNotFoundError", {
|
|
102
102
|
providerID: ProviderID2
|
|
103
103
|
}) {
|
|
104
104
|
get message() {
|
|
@@ -124,7 +124,7 @@ class ProviderError2 extends Schema.TaggedError()("Artifact.ProviderError", {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
class
|
|
127
|
+
class Service26 extends Context.Service()("@opencode/Artifact") {
|
|
128
128
|
}
|
|
129
129
|
var StoredRecord = Schema.Struct({
|
|
130
130
|
info: Info8,
|
|
@@ -140,13 +140,13 @@ var locate2 = (kv, id) => kv.get(ItemPrefix + id).pipe(Effect.map((stored) => {
|
|
|
140
140
|
const decoded = decodeStoredRecord(stored);
|
|
141
141
|
return Option.isSome(decoded) ? decoded.value.directory : undefined;
|
|
142
142
|
}));
|
|
143
|
-
var layer = Layer.effect(
|
|
144
|
-
const bus = yield*
|
|
145
|
-
const config = yield*
|
|
143
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
144
|
+
const bus = yield* Service89;
|
|
145
|
+
const config = yield* Service69;
|
|
146
146
|
const global = yield* Global.Service;
|
|
147
147
|
const kv = yield* Service78;
|
|
148
148
|
const location = yield* Service86;
|
|
149
|
-
const sessions = yield*
|
|
149
|
+
const sessions = yield* Service31;
|
|
150
150
|
const rootDir = path.join(global.data, "artifacts");
|
|
151
151
|
const itemDir = (id) => path.join(rootDir, id);
|
|
152
152
|
const localProvider = {
|
|
@@ -187,13 +187,13 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}),
|
|
190
|
-
notify: changes2(snapshotProviders, () => bus.publish(
|
|
190
|
+
notify: changes2(snapshotProviders, () => bus.publish(Event6.Updated, {}).pipe(Effect.asVoid))
|
|
191
191
|
});
|
|
192
192
|
const isEnabled = Effect.fn("Artifact.enabled")(function* () {
|
|
193
193
|
const entries = yield* config.entries();
|
|
194
194
|
return latest2(entries, "experimental")?.artifacts === true;
|
|
195
195
|
});
|
|
196
|
-
const requireEnabled = () => isEnabled().pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new
|
|
196
|
+
const requireEnabled = () => isEnabled().pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new DisabledError4)));
|
|
197
197
|
const activeDefaultID = () => {
|
|
198
198
|
const data = state.get();
|
|
199
199
|
return data.selection && data.providers.has(data.selection) ? data.selection : LocalProviderID2;
|
|
@@ -202,17 +202,17 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
202
202
|
const data = state.get();
|
|
203
203
|
const target = requested ?? activeDefaultID();
|
|
204
204
|
const found = data.providers.get(target);
|
|
205
|
-
return found ? Effect.succeed(found) : Effect.fail(new
|
|
205
|
+
return found ? Effect.succeed(found) : Effect.fail(new ProviderNotFoundError3({ providerID: target }));
|
|
206
206
|
};
|
|
207
207
|
const checkSession = (sessionID) => sessionID === undefined ? Effect.void : sessions.get(sessionID).pipe(Effect.asVoid);
|
|
208
|
-
return
|
|
208
|
+
return Service26.of({
|
|
209
209
|
transform: state.transform,
|
|
210
210
|
reload: state.reload,
|
|
211
211
|
enabled: isEnabled,
|
|
212
212
|
providers: Effect.fn("Artifact.providers")(function* () {
|
|
213
213
|
yield* requireEnabled();
|
|
214
214
|
const defaultID = activeDefaultID();
|
|
215
|
-
return Array.from(state.get().providers.values(), (provider) =>
|
|
215
|
+
return Array.from(state.get().providers.values(), (provider) => Provider3.make({
|
|
216
216
|
id: provider.id,
|
|
217
217
|
name: provider.name,
|
|
218
218
|
capabilities: [...provider.capabilities],
|
|
@@ -249,7 +249,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
249
249
|
const files = yield* normalizeFiles(encodeStringFiles(input.files));
|
|
250
250
|
const entry = yield* resolveEntry(files, input.entry);
|
|
251
251
|
const provider = yield* resolveProvider(input.provider);
|
|
252
|
-
const id =
|
|
252
|
+
const id = ID8.create();
|
|
253
253
|
const now = yield* Clock.currentTimeMillis;
|
|
254
254
|
const created = yield* provider.create({ id, title, entry, files, sessionID: input.sessionID }).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
255
255
|
const info = Info8.make({
|
|
@@ -272,14 +272,14 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
272
272
|
yield* requireEnabled();
|
|
273
273
|
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
274
274
|
if (!existing)
|
|
275
|
-
return yield* new
|
|
275
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
276
276
|
return existing.info;
|
|
277
277
|
}),
|
|
278
278
|
get: Effect.fn("Artifact.get")(function* (id) {
|
|
279
279
|
yield* requireEnabled();
|
|
280
280
|
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
281
281
|
if (!existing)
|
|
282
|
-
return yield* new
|
|
282
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
283
283
|
const provider = yield* resolveProvider(existing.info.provider);
|
|
284
284
|
const raw = yield* provider.read(id).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
285
285
|
return Content2.make({
|
|
@@ -292,7 +292,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
292
292
|
yield* checkSession(input.sessionID);
|
|
293
293
|
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
294
294
|
if (!existing)
|
|
295
|
-
return yield* new
|
|
295
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
296
296
|
const title = input.title === undefined ? existing.info.title : input.title.trim();
|
|
297
297
|
if (!title)
|
|
298
298
|
return yield* new InvalidError3({ reason: "Artifact title must not be empty", field: "title" });
|
|
@@ -322,7 +322,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
322
322
|
yield* requireEnabled();
|
|
323
323
|
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
324
324
|
if (!existing)
|
|
325
|
-
return yield* new
|
|
325
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
326
326
|
const provider = state.get().providers.get(existing.info.provider);
|
|
327
327
|
if (provider) {
|
|
328
328
|
yield* provider.delete(id).pipe(Effect.mapError((cause) => new ProviderError2({ providerID: provider.id, cause })));
|
|
@@ -333,7 +333,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
333
333
|
yield* requireEnabled();
|
|
334
334
|
const existing = yield* loadProjectRecord(kv, id, location.project.id);
|
|
335
335
|
if (!existing)
|
|
336
|
-
return yield* new
|
|
336
|
+
return yield* new NotFoundError5({ artifactID: id });
|
|
337
337
|
if (existing.info.provider !== LocalProviderID2) {
|
|
338
338
|
return yield* new InvalidError3({
|
|
339
339
|
reason: `Artifact ${id} is hosted by provider "${existing.info.provider}", not the local server`,
|
|
@@ -350,10 +350,10 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
350
350
|
})
|
|
351
351
|
});
|
|
352
352
|
}));
|
|
353
|
-
var
|
|
354
|
-
service:
|
|
353
|
+
var node29 = makeLocationNode({
|
|
354
|
+
service: Service26,
|
|
355
355
|
layer,
|
|
356
|
-
deps: [
|
|
356
|
+
deps: [node92, node71, Global.node, node80, node89, node34]
|
|
357
357
|
});
|
|
358
358
|
function encodeStringFiles(files) {
|
|
359
359
|
return Object.fromEntries(Object.entries(files).map(([filePath, content]) => [filePath, encoder.encode(content)]));
|
|
@@ -491,4 +491,4 @@ function readDirectoryFiles(baseDir) {
|
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
export { Capability2, Content2, CreateInput4,
|
|
494
|
+
export { Capability2, Content2, CreateInput4, Event6, ID8, Info8, Provider3, ProviderID2, UpdateInput3, LocalProviderID2, DisabledError4, NotFoundError5, FileMissingError2, ProviderNotFoundError3, InvalidError3, ProviderError2, Service26, locate2, node29, exports_artifact2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Failed2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
execDefaults2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-jtnps1zs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service90,
|
|
9
|
+
node93
|
|
10
|
+
} from "./location-phezegb1.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-4d2dtj2f.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node86
|
|
18
|
+
} from "./location-m3kvqs0d.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-faypxj3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/workspace.ts
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID19,
|
|
31
|
+
Info: () => Info28,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service83,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured11,
|
|
36
|
+
node: () => node85
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID19 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info28 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID19,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,25 +52,25 @@ class Info13 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID19 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID19,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service83 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured11 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service83,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [
|
|
70
|
+
deps: [node93, node86]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
73
|
-
const db = (yield*
|
|
72
|
+
var layer = (options) => Layer.effect(Service83, Effect.gen(function* () {
|
|
73
|
+
const db = (yield* Service90).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
76
76
|
const connections = new Map;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info28({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
164
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
165
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
166
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
167
|
-
return
|
|
167
|
+
return Service83.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID19.create();
|
|
170
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
171
171
|
if (existing) {
|
|
172
172
|
if (existing.provider === input.provider)
|
|
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node85 = configured11();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID19, Info28, NotFound2, CreateConflict2, Service83, configured11, node85, exports_workspace };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
server2,
|
|
3
3
|
headers2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-kt3bjfbg.js";
|
|
5
5
|
import {
|
|
6
6
|
ID17,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service75,
|
|
8
|
+
node77
|
|
9
|
+
} from "./location-3y1g6egy.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/usage-limits.ts
|
|
15
15
|
var exports_usage_limits = {};
|
|
16
16
|
__export(exports_usage_limits, {
|
|
17
17
|
Info: () => Info3,
|
|
18
18
|
Service: () => Service16,
|
|
19
|
-
UnavailableError: () =>
|
|
19
|
+
UnavailableError: () => UnavailableError3,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
21
|
+
layer: () => layer10,
|
|
22
22
|
node: () => node18
|
|
23
23
|
});
|
|
24
24
|
import { Model } from "@opencode/schema/model";
|
|
@@ -31,21 +31,21 @@ import { Context, Duration, Effect, Layer, Schema } from "effect";
|
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
var Info3 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError3 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
class Service16 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer10 = Layer.effect(Service16, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service75;
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
44
44
|
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
45
|
const connection = yield* integrations.connection.active(ID17.make("opencode"));
|
|
46
46
|
if (!connection)
|
|
47
47
|
return;
|
|
48
|
-
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new
|
|
48
|
+
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError3({ message: error.message })));
|
|
49
49
|
if (!credential || credential.type === "external")
|
|
50
50
|
return;
|
|
51
51
|
const workspaceID = credential.metadata?.orgID;
|
|
@@ -54,7 +54,7 @@ var layer9 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
54
54
|
const server = server2(credential);
|
|
55
55
|
const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
|
|
56
56
|
duration: Duration.seconds(15),
|
|
57
|
-
orElse: () => Effect.fail(new
|
|
57
|
+
orElse: () => Effect.fail(new UnavailableError3({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -70,8 +70,8 @@ var layer9 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
70
70
|
}));
|
|
71
71
|
var node18 = makeLocationNode({
|
|
72
72
|
service: Service16,
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
73
|
+
layer: layer10,
|
|
74
|
+
deps: [node77, httpClient]
|
|
75
75
|
});
|
|
76
76
|
var ConsoleBudget = Schema.Struct({
|
|
77
77
|
ruleID: Schema.String,
|
|
@@ -117,17 +117,17 @@ function readBudgets(http, server, credential) {
|
|
|
117
117
|
picked: budget.picked,
|
|
118
118
|
shared: budget.shared,
|
|
119
119
|
resetsAt: budget.resetsAt.getTime()
|
|
120
|
-
}))))), Effect.scoped, Effect.mapError((error) => new
|
|
120
|
+
}))))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
|
|
121
121
|
}
|
|
122
122
|
function readGo(http, server, credential, workspaceID) {
|
|
123
123
|
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
|
|
124
124
|
rolling: meter(body.usage.rolling),
|
|
125
125
|
weekly: meter(body.usage.weekly),
|
|
126
126
|
monthly: meter(body.usage.monthly)
|
|
127
|
-
})))), Effect.scoped, Effect.mapError((error) => new
|
|
127
|
+
})))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
|
|
128
128
|
}
|
|
129
129
|
function meter(value) {
|
|
130
130
|
return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export { Info3,
|
|
133
|
+
export { Info3, UnavailableError3, Service16, layer10, node18, exports_usage_limits };
|