@opencode/core 0.0.0-dev-261 → 0.0.0-dev-271
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 +87 -87
- package/dist/aisdk-native.js +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{mime-6vkwvj03.js → location-services-05aev6jb.js} +18 -18
- package/dist/chunks/{mime-nf5vm8zn.js → location-services-05pzx58r.js} +31 -31
- package/dist/chunks/{mime-6vmee23j.js → location-services-060k1ctd.js} +3 -3
- package/dist/chunks/{mime-h3pj7a7m.js → location-services-0a35qxtn.js} +13 -13
- package/dist/chunks/{mime-h2atfgt1.js → location-services-0h0q04aj.js} +8 -8
- package/dist/chunks/{mime-q8jvga0v.js → location-services-13jgvn4c.js} +48 -48
- package/dist/chunks/{mime-0eq01nmm.js → location-services-162nfr0g.js} +9 -9
- package/dist/chunks/{mime-36qx82yz.js → location-services-17cjzed1.js} +4 -4
- package/dist/chunks/{mime-x7qkck9a.js → location-services-19yw54pw.js} +15 -15
- package/dist/chunks/{mime-1aqsckx4.js → location-services-1aqsckx4.js} +1 -1
- package/dist/chunks/{mime-7ssbg7yb.js → location-services-1dztdw8x.js} +15 -15
- package/dist/chunks/{mime-1x2knyw4.js → location-services-1x2knyw4.js} +1 -1
- package/dist/chunks/{mime-p7vhpwh8.js → location-services-1yq9hg58.js} +5 -5
- package/dist/chunks/{mime-204s3925.js → location-services-204s3925.js} +1 -1
- package/dist/chunks/{mime-hbqfs0kq.js → location-services-254d7qhc.js} +15 -15
- package/dist/chunks/{mime-25h84942.js → location-services-25h84942.js} +1 -1
- package/dist/chunks/{mime-x3a4n8aj.js → location-services-26cw61yh.js} +14 -14
- package/dist/chunks/{mime-1ep2p91f.js → location-services-27w5k9zf.js} +2 -2
- package/dist/chunks/{mime-4a1s8y4n.js → location-services-2kqsk57r.js} +15 -15
- package/dist/chunks/{mime-dgzhj2a3.js → location-services-2ywsvzr2.js} +16 -16
- package/dist/chunks/{mime-cpbq744t.js → location-services-35ctkm3t.js} +3 -3
- package/dist/chunks/{mime-ayjs7tqn.js → location-services-3cbjf1nt.js} +2 -2
- package/dist/chunks/{mime-gy1k9bkm.js → location-services-3dempbt2.js} +8 -8
- package/dist/chunks/{mime-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{mime-3nnrz6f6.js → location-services-3nnrz6f6.js} +1 -1
- package/dist/chunks/{mime-r1b7wght.js → location-services-3sv3e4sh.js} +24 -24
- package/dist/chunks/{mime-y24rddh5.js → location-services-3t0svxwq.js} +14 -14
- package/dist/chunks/{mime-ajntjgfc.js → location-services-41ee7e1g.js} +16 -16
- package/dist/chunks/{mime-nym9wyb3.js → location-services-4987t165.js} +6 -6
- package/dist/chunks/{mime-mpc1wbnc.js → location-services-49985bx3.js} +26 -26
- package/dist/chunks/{mime-xp4cjnvy.js → location-services-4c0eh56a.js} +5 -5
- package/dist/chunks/{mime-4dx1dgte.js → location-services-4dx1dgte.js} +1 -1
- package/dist/chunks/{mime-yvg33581.js → location-services-4pwmc3zk.js} +9 -9
- package/dist/chunks/{mime-4pyp9zr9.js → location-services-4pyp9zr9.js} +1 -1
- package/dist/chunks/{mime-tr6n2pd7.js → location-services-4pza82rh.js} +16 -16
- package/dist/chunks/{mime-k9xb07cm.js → location-services-4rf7amqy.js} +6 -6
- package/dist/chunks/{mime-ecgyc3nf.js → location-services-4tsnxgj1.js} +4 -4
- package/dist/chunks/{mime-4v008n1t.js → location-services-4v008n1t.js} +1 -1
- package/dist/chunks/{mime-br6xvyb6.js → location-services-4ya28txs.js} +21 -21
- package/dist/chunks/{mime-sefdxvs5.js → location-services-53f4ettz.js} +19 -19
- package/dist/chunks/{mime-cw43sd18.js → location-services-5c0ay57s.js} +4 -4
- package/dist/chunks/location-services-5d7ky1sb.js +257 -0
- package/dist/chunks/{mime-zeg6dwe8.js → location-services-5jrjkhem.js} +26 -26
- package/dist/chunks/{mime-5m9w47nd.js → location-services-5m9w47nd.js} +1 -1
- package/dist/chunks/{mime-qnt4yn7k.js → location-services-5q7cnmnd.js} +2 -2
- package/dist/chunks/{mime-ddb1fpa4.js → location-services-5r9j27z7.js} +16 -16
- package/dist/chunks/{mime-ya13x5xa.js → location-services-5rab9vhz.js} +16 -16
- package/dist/chunks/{mime-hkv8mm0v.js → location-services-5sg2j4zb.js} +14 -14
- package/dist/chunks/{mime-qkevpenz.js → location-services-5t0xdgr9.js} +12 -12
- package/dist/chunks/{mime-ykcxy4jb.js → location-services-5xcrp97n.js} +18 -18
- package/dist/chunks/{mime-k989ntyt.js → location-services-5zz88cvn.js} +9 -9
- package/dist/chunks/{mime-tspwpfmw.js → location-services-5zzfvef7.js} +6 -6
- package/dist/chunks/{mime-d390zwf3.js → location-services-6147jgs2.js} +5 -5
- package/dist/chunks/{mime-9zk9amhx.js → location-services-61erhr80.js} +19 -19
- package/dist/chunks/{mime-kdd90951.js → location-services-625chkn0.js} +45 -45
- package/dist/chunks/{mime-sqbb0ctm.js → location-services-66r9f6z1.js} +5 -5
- package/dist/chunks/location-services-68291c0v.js +407 -0
- package/dist/chunks/{mime-nj6nnwwx.js → location-services-69f0ar7f.js} +30 -30
- package/dist/chunks/{mime-6esdw8yj.js → location-services-6esdw8yj.js} +1 -1
- package/dist/chunks/{mime-ej397f02.js → location-services-6jdd6yf6.js} +4 -4
- package/dist/chunks/{mime-z6b5kr5f.js → location-services-6pkyn431.js} +20 -20
- package/dist/chunks/{mime-qx2f3s6n.js → location-services-6r75hzjy.js} +14 -14
- package/dist/chunks/{mime-3k3cm4zk.js → location-services-6tnzhnxt.js} +11 -11
- package/dist/chunks/{mime-hz5a1k95.js → location-services-6yaxbs98.js} +23 -23
- package/dist/chunks/{mime-mf0cbe1f.js → location-services-701es3rv.js} +16 -16
- package/dist/chunks/{mime-9pf0pmfk.js → location-services-73ktn4xx.js} +11 -11
- package/dist/chunks/{mime-hw311zkt.js → location-services-73nq7rd4.js} +45 -52
- package/dist/chunks/{mime-76cb1hcw.js → location-services-76cb1hcw.js} +1 -1
- package/dist/chunks/{mime-dn75kjkt.js → location-services-76jdhfq7.js} +10 -10
- package/dist/chunks/{mime-jw5zbn3z.js → location-services-7863p8e9.js} +30 -30
- package/dist/chunks/{mime-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{mime-y3a4nh1w.js → location-services-7ffjm3fx.js} +22 -22
- package/dist/chunks/{mime-sg2p3jg1.js → location-services-7rnxwetx.js} +11 -11
- package/dist/chunks/{mime-7s9zy64f.js → location-services-7s9zy64f.js} +2 -2
- package/dist/chunks/{mime-7w2ypzdf.js → location-services-7w2ypzdf.js} +1 -1
- package/dist/chunks/{mime-q5fg6nv3.js → location-services-88j3sdmx.js} +32 -32
- package/dist/chunks/{mime-hcaakz9a.js → location-services-8agbak6g.js} +7 -7
- package/dist/chunks/{mime-h5060pr3.js → location-services-8f2e40mw.js} +11 -11
- package/dist/chunks/{mime-85aybcep.js → location-services-8hfnrd7b.js} +67 -67
- package/dist/chunks/{mime-11hfp36g.js → location-services-8jztxfpf.js} +4 -4
- package/dist/chunks/{mime-4qxqnvmw.js → location-services-8nmq4mhy.js} +19 -19
- package/dist/chunks/{mime-mz88wxq7.js → location-services-8tx4q2tc.js} +16 -16
- package/dist/chunks/{mime-dmbvkkjp.js → location-services-8ve89bpf.js} +2 -2
- package/dist/chunks/{mime-8wtp7s3z.js → location-services-8wtp7s3z.js} +1 -1
- package/dist/chunks/{mime-mb7mbhnz.js → location-services-8z6m94af.js} +3 -3
- package/dist/chunks/{mime-7q2ytnwk.js → location-services-8zhw5swa.js} +32 -32
- package/dist/chunks/{mime-90zstvax.js → location-services-90zstvax.js} +1 -1
- package/dist/chunks/{mime-7q3qfmpr.js → location-services-92ee31my.js} +20 -20
- package/dist/chunks/{mime-xk2zn0cv.js → location-services-95sp4hdf.js} +4 -4
- package/dist/chunks/{mime-ew1cbhhw.js → location-services-99y0fxy8.js} +5 -5
- package/dist/chunks/{mime-f004ykrw.js → location-services-9f1h0s6x.js} +25 -25
- package/dist/chunks/{mime-d8p3t516.js → location-services-9tvpxs1q.js} +4 -4
- package/dist/chunks/{mime-kpj4bnmp.js → location-services-9w6kyjc8.js} +3 -3
- package/dist/chunks/location-services-a2vx32ez.js +535 -0
- package/dist/chunks/location-services-a610t88q.js +18 -0
- package/dist/chunks/{mime-p87480bx.js → location-services-a678287s.js} +9 -9
- package/dist/chunks/{mime-17x7vgjp.js → location-services-a7c68mes.js} +24 -24
- package/dist/chunks/{mime-ape62p7n.js → location-services-ae75vsr5.js} +30 -30
- package/dist/chunks/{mime-5f3qf23k.js → location-services-af4avevc.js} +23 -23
- package/dist/chunks/{mime-fym7nwga.js → location-services-ahrjqvfw.js} +24 -24
- package/dist/chunks/{mime-034tev2y.js → location-services-aj7mw0zk.js} +2 -2
- package/dist/chunks/{mime-sj7qk1wq.js → location-services-aqhqhhxw.js} +13 -13
- package/dist/chunks/{mime-2135gcnk.js → location-services-av666v8z.js} +13 -13
- package/dist/chunks/{mime-ghzabfw7.js → location-services-b2g2cd4c.js} +15 -15
- package/dist/chunks/{mime-b6vsg801.js → location-services-b6vsg801.js} +2 -2
- package/dist/chunks/{mime-9esxa6rs.js → location-services-bfkxtapt.js} +13 -13
- package/dist/chunks/{mime-qevqwm2d.js → location-services-bg8p5thh.js} +22 -22
- package/dist/chunks/{mime-eek85r7s.js → location-services-bheemw2q.js} +13 -13
- package/dist/chunks/{mime-0rhd3fk1.js → location-services-bm1x4rjt.js} +9 -9
- package/dist/chunks/{mime-de5ev1ss.js → location-services-bnp5qds0.js} +5 -5
- package/dist/chunks/{mime-xd9cc171.js → location-services-bstexjd6.js} +5 -5
- package/dist/chunks/{mime-v4g74xq2.js → location-services-bxvvv3jc.js} +16 -16
- package/dist/chunks/location-services-c078hgae.js +2050 -0
- package/dist/chunks/{mime-90g6tx1j.js → location-services-c4cv6xmm.js} +11 -11
- package/dist/chunks/{mime-bvk25jmh.js → location-services-c5gvz1b5.js} +4 -4
- package/dist/chunks/{mime-50x74c5d.js → location-services-cfh5dtam.js} +20 -20
- package/dist/chunks/{mime-j8c8vpy0.js → location-services-crjm84aa.js} +41 -41
- package/dist/chunks/{mime-cwrgdav8.js → location-services-cwrgdav8.js} +2 -2
- package/dist/chunks/{mime-zcf14pnt.js → location-services-d1scnhdx.js} +1 -1
- package/dist/chunks/{mime-z2dgfpsc.js → location-services-d7akxsfc.js} +3 -3
- package/dist/chunks/{mime-h6sym59v.js → location-services-d83be7vq.js} +6 -6
- package/dist/chunks/{mime-45xte6ee.js → location-services-d987wdq8.js} +23 -23
- package/dist/chunks/{mime-w4ykgd89.js → location-services-dcgrx69e.js} +5 -5
- package/dist/chunks/{mime-91a9ea02.js → location-services-dfgayekp.js} +19 -19
- package/dist/chunks/{mime-69nya0q4.js → location-services-dj84jp87.js} +16 -16
- package/dist/chunks/{mime-hbe771na.js → location-services-dq6afaen.js} +15 -15
- package/dist/chunks/{mime-dt77769w.js → location-services-dt77769w.js} +1 -1
- package/dist/chunks/{mime-d64mgb0d.js → location-services-dw0jwsqt.js} +27 -27
- package/dist/chunks/{mime-e834z07m.js → location-services-e834z07m.js} +1 -1
- package/dist/chunks/{mime-6447hfkj.js → location-services-edf6ca2j.js} +168 -168
- package/dist/chunks/{mime-enkpkfwx.js → location-services-enkpkfwx.js} +1 -1
- package/dist/chunks/{mime-vmfhgzt5.js → location-services-eqmd2tfz.js} +7 -7
- package/dist/chunks/{mime-tt26s4vq.js → location-services-exjf25px.js} +11 -11
- package/dist/chunks/{mime-91xttez3.js → location-services-f12jx86d.js} +11 -11
- package/dist/chunks/{mime-y2bdgeyh.js → location-services-f2738s6n.js} +3 -3
- package/dist/chunks/{mime-2e3yfjq6.js → location-services-fa27aj77.js} +8 -8
- package/dist/chunks/{mime-904xv1p5.js → location-services-faykeh36.js} +23 -23
- package/dist/chunks/{mime-2hrk5wbs.js → location-services-fb4xs09j.js} +18 -18
- package/dist/chunks/{mime-1dtbfpzr.js → location-services-fex8285v.js} +16 -16
- package/dist/chunks/{mime-fffv3p7h.js → location-services-fffv3p7h.js} +1 -1
- package/dist/chunks/{mime-fg9p65nk.js → location-services-fg9p65nk.js} +2 -2
- package/dist/chunks/{mime-mgvjndd7.js → location-services-fn0pn290.js} +6 -6
- package/dist/chunks/{mime-crttzga9.js → location-services-fngvx4yd.js} +8 -8
- package/dist/chunks/{mime-gqwtxsn1.js → location-services-fq0hatx6.js} +20 -20
- package/dist/chunks/{mime-jgmjv1sa.js → location-services-fse61478.js} +21 -21
- package/dist/chunks/{mime-8p46qq0s.js → location-services-g3d6ha41.js} +15 -15
- package/dist/chunks/{mime-1w8p0a18.js → location-services-g6c2jpgq.js} +11 -11
- package/dist/chunks/{mime-dgy529yc.js → location-services-g6dvkvqf.js} +25 -25
- package/dist/chunks/{mime-q5654s0t.js → location-services-gcfys28r.js} +25 -25
- package/dist/chunks/{mime-4hebgate.js → location-services-gf94v7ds.js} +12 -12
- package/dist/chunks/{mime-bcyfntnp.js → location-services-gkg0y7d3.js} +13 -13
- package/dist/chunks/{mime-d4v9tmah.js → location-services-gn8tkhbf.js} +2 -2
- package/dist/chunks/{mime-abne355d.js → location-services-gtjkmstt.js} +38 -38
- package/dist/chunks/{mime-78p2h4ex.js → location-services-gz7axp6c.js} +2 -2
- package/dist/chunks/{mime-9kq27ct5.js → location-services-hcdj4fe2.js} +64 -50
- package/dist/chunks/{mime-29db0j4x.js → location-services-hcky80w5.js} +4 -4
- package/dist/chunks/{mime-ekd6nmzx.js → location-services-he1z5msn.js} +24 -19
- package/dist/chunks/{mime-mg356nz4.js → location-services-hgfegmhz.js} +58 -26
- package/dist/chunks/{mime-hh7kjqtw.js → location-services-hh7kjqtw.js} +1 -1
- package/dist/chunks/{mime-zjqm9jqg.js → location-services-hhcegec1.js} +33 -33
- package/dist/chunks/{mime-kewx5hse.js → location-services-hnv7rbyt.js} +7 -7
- package/dist/chunks/{mime-hpg1pkwy.js → location-services-hpg1pkwy.js} +1 -1
- package/dist/chunks/{mime-t6t8h010.js → location-services-hrj3d3rg.js} +35 -35
- package/dist/chunks/{mime-vh5h3cx2.js → location-services-ht7smmrx.js} +32 -32
- package/dist/chunks/{mime-kt9zkheb.js → location-services-hwdk6992.js} +52 -52
- package/dist/chunks/{mime-6evmzryz.js → location-services-j28mjm60.js} +9 -9
- package/dist/chunks/{mime-xqpnzpk3.js → location-services-j4wsft1q.js} +12 -12
- package/dist/chunks/{mime-bgwcavjj.js → location-services-jcrsb2we.js} +9 -9
- package/dist/chunks/{mime-jfaecv01.js → location-services-jfaecv01.js} +1 -1
- package/dist/chunks/{mime-w81tm3vv.js → location-services-jjkdzw18.js} +17 -17
- package/dist/chunks/{mime-f1md2d8q.js → location-services-jsrgk7v1.js} +20 -20
- package/dist/chunks/{mime-jtnps1zs.js → location-services-jtnps1zs.js} +2 -2
- package/dist/chunks/{mime-wwgpyqzb.js → location-services-jv2xnyk0.js} +9 -9
- package/dist/chunks/{mime-p36gpr4j.js → location-services-k3f7456s.js} +3 -3
- package/dist/chunks/{mime-4thnqhg3.js → location-services-k56767v4.js} +1 -1
- package/dist/chunks/{mime-k814nvkf.js → location-services-k814nvkf.js} +1 -1
- package/dist/chunks/{mime-bpyckyws.js → location-services-kbq9sd94.js} +15 -15
- package/dist/chunks/{mime-d1zc5akg.js → location-services-kecs8cm0.js} +10 -10
- package/dist/chunks/{mime-5g59k7nb.js → location-services-kfcsbfj2.js} +39 -29
- package/dist/chunks/{mime-tdjh7w66.js → location-services-kgaj0b42.js} +48 -48
- package/dist/chunks/{mime-sdvfaqjv.js → location-services-kpd0ft4p.js} +23 -23
- package/dist/chunks/{mime-k4s79gcj.js → location-services-kreataz1.js} +6 -6
- package/dist/chunks/{mime-kt3bjfbg.js → location-services-kt3bjfbg.js} +1 -1
- package/dist/chunks/{mime-m1714858.js → location-services-m1714858.js} +1 -1
- package/dist/chunks/{mime-1kmbt0nq.js → location-services-m3pbq8ct.js} +4 -4
- package/dist/chunks/{mime-7h09t6vy.js → location-services-m7xh3h0x.js} +4 -4
- package/dist/chunks/{mime-zeba2tf9.js → location-services-m8vjyhwb.js} +11 -11
- package/dist/chunks/{mime-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{mime-8pyn3tva.js → location-services-mcaz155f.js} +6 -6
- package/dist/chunks/{mime-czey47wt.js → location-services-mm24p6x7.js} +4 -4
- package/dist/chunks/{mime-ssfehs1z.js → location-services-mtkfycnh.js} +4 -4
- package/dist/chunks/{mime-4tdcetb8.js → location-services-mwby5be6.js} +24 -24
- package/dist/chunks/{mime-1wpsahk2.js → location-services-mwyy67aj.js} +10 -10
- package/dist/chunks/{mime-0j9k711p.js → location-services-mz3xd1k6.js} +25 -25
- package/dist/chunks/{mime-7qrckcvm.js → location-services-n91e94x0.js} +32 -32
- package/dist/chunks/{mime-qsawh7eg.js → location-services-n94pvp91.js} +50 -26
- package/dist/chunks/{mime-nah043kf.js → location-services-nah043kf.js} +1 -1
- package/dist/chunks/{mime-x2kc3zfh.js → location-services-ndcaramg.js} +8 -8
- package/dist/chunks/{mime-b4hen3e4.js → location-services-nk8zryt9.js} +7 -7
- package/dist/chunks/{mime-x6tax50b.js → location-services-nm8x0m3s.js} +6 -6
- package/dist/chunks/{mime-m6jwak7z.js → location-services-nn8146rv.js} +11 -11
- package/dist/chunks/{mime-avgzkss2.js → location-services-nv205p9v.js} +5 -5
- package/dist/chunks/{mime-48es43h7.js → location-services-nwn24kq0.js} +10 -10
- package/dist/chunks/{mime-wegkxhrn.js → location-services-nx4vzyjd.js} +2 -2
- package/dist/chunks/{mime-p015t6z3.js → location-services-p015t6z3.js} +2 -2
- package/dist/chunks/{mime-2qwjmz35.js → location-services-p8e6hb0k.js} +14 -14
- package/dist/chunks/{mime-dt8yqcce.js → location-services-p9aaxzzm.js} +17 -17
- package/dist/chunks/{mime-3f6130kj.js → location-services-perw67p4.js} +30 -30
- package/dist/chunks/{mime-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{mime-3xm4v4zv.js → location-services-pqan8706.js} +23 -23
- package/dist/chunks/{mime-yara3q77.js → location-services-pxtfkpje.js} +2 -2
- package/dist/chunks/{mime-mpqhh0ff.js → location-services-pygderqp.js} +14 -14
- package/dist/chunks/{mime-v7a0snhq.js → location-services-q4fcarhy.js} +9 -9
- package/dist/chunks/{mime-9e3hvwnw.js → location-services-qmv0q6pw.js} +18 -18
- package/dist/chunks/{mime-vzppetdn.js → location-services-qnqasnye.js} +6 -6
- package/dist/chunks/{mime-qp7r0hxv.js → location-services-qp7r0hxv.js} +1 -1
- package/dist/chunks/{mime-qqvy8y24.js → location-services-qqvy8y24.js} +1 -1
- package/dist/chunks/{mime-4yscp7k1.js → location-services-qw73mqn2.js} +21 -21
- package/dist/chunks/{mime-msj7tqt3.js → location-services-qz087kyw.js} +7 -7
- package/dist/chunks/location-services-r09xcsm2.js +390 -0
- package/dist/chunks/{mime-dja1b12h.js → location-services-r1fhaev6.js} +2 -2
- package/dist/chunks/{mime-vrcsa8qx.js → location-services-r4pwrx75.js} +9 -9
- package/dist/chunks/{mime-r542h3bh.js → location-services-r542h3bh.js} +1 -1
- package/dist/chunks/{mime-3h56g0x5.js → location-services-rb8dmkdr.js} +40 -40
- package/dist/chunks/{mime-rb9dy4dg.js → location-services-rb9dy4dg.js} +1 -1
- package/dist/chunks/{mime-1dy1zrej.js → location-services-rgy8fvzs.js} +78 -78
- package/dist/chunks/{mime-qatgy48x.js → location-services-rkmfgj7k.js} +33 -33
- package/dist/chunks/{mime-kprjpmw6.js → location-services-rqxwm5vf.js} +17 -17
- package/dist/chunks/{mime-rt5dr6hb.js → location-services-rt5dr6hb.js} +1 -1
- package/dist/chunks/{mime-dbqn72gh.js → location-services-rwtt4501.js} +34 -34
- package/dist/chunks/{mime-c4phwmq5.js → location-services-rwvswa9y.js} +6 -6
- package/dist/chunks/{mime-xcmevbrr.js → location-services-ry6m6k45.js} +3 -3
- package/dist/chunks/{mime-ys5ht53z.js → location-services-s6rqyy7q.js} +20 -20
- package/dist/chunks/{mime-1hma5w09.js → location-services-s7dtnyk2.js} +79 -79
- package/dist/chunks/{mime-zba90nwx.js → location-services-s87tva5r.js} +10 -10
- package/dist/chunks/{mime-sa3fpqfw.js → location-services-sa3fpqfw.js} +2 -2
- package/dist/chunks/{mime-9wkv0v86.js → location-services-sab8hb9j.js} +27 -27
- package/dist/chunks/{mime-8f7wz2tq.js → location-services-sb68qyrv.js} +12 -12
- package/dist/chunks/{mime-sqjzf8x2.js → location-services-sqjzf8x2.js} +1 -1
- package/dist/chunks/{mime-svcy3p9a.js → location-services-svcy3p9a.js} +1 -1
- package/dist/chunks/{mime-hj8ktf3x.js → location-services-sxfdfs5r.js} +11 -11
- package/dist/chunks/{mime-kehv92bx.js → location-services-t20evbn4.js} +45 -45
- package/dist/chunks/{mime-f0ay53g6.js → location-services-t815r62s.js} +1 -1
- package/dist/chunks/{mime-87vy0wwt.js → location-services-t9fjyv5p.js} +11 -11
- package/dist/chunks/{mime-tczq8hjw.js → location-services-tczq8hjw.js} +1 -1
- package/dist/chunks/{mime-gd8sx287.js → location-services-tptvq6v6.js} +4 -4
- package/dist/chunks/{mime-kzcsdwss.js → location-services-ts3q81hd.js} +3 -3
- package/dist/chunks/{mime-twssxy5n.js → location-services-twssxy5n.js} +2 -2
- package/dist/chunks/{mime-xmcerbsc.js → location-services-txb82dsv.js} +21 -21
- package/dist/chunks/{mime-zfvpppwm.js → location-services-tzw071bs.js} +21 -21
- package/dist/chunks/{mime-6fpf7z8r.js → location-services-v2psmyxx.js} +5 -5
- package/dist/chunks/{mime-v2r1d0zg.js → location-services-v2r1d0zg.js} +1 -1
- package/dist/chunks/{mime-2zp5a6yg.js → location-services-vb80j1wh.js} +3 -3
- package/dist/chunks/{mime-pcc4d2n5.js → location-services-vc4cryav.js} +9 -9
- package/dist/chunks/{mime-ych9pyce.js → location-services-vkcgzpwt.js} +14 -14
- package/dist/chunks/{mime-ztytxe50.js → location-services-vwgtfhce.js} +11 -11
- package/dist/chunks/{mime-6zh541c7.js → location-services-vy4m1q4k.js} +58 -58
- package/dist/chunks/{mime-5enarcya.js → location-services-w2eysc6j.js} +6 -6
- package/dist/chunks/{mime-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{mime-2kg89srt.js → location-services-w79nt68w.js} +4 -4
- package/dist/chunks/{mime-1ene02nc.js → location-services-w8ndjz7j.js} +28 -28
- package/dist/chunks/{mime-wakvkjy4.js → location-services-wakvkjy4.js} +1 -1
- package/dist/chunks/{mime-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{mime-e11a9bx3.js → location-services-wdw55mq4.js} +5 -5
- package/dist/chunks/{mime-gw7tqdxz.js → location-services-wj1hwnq7.js} +5 -5
- package/dist/chunks/{mime-wnhgecwx.js → location-services-wnhgecwx.js} +1 -1
- package/dist/chunks/{mime-0h8y3ex8.js → location-services-wr3re1en.js} +4 -4
- package/dist/chunks/{mime-0h3385jp.js → location-services-x51b6bk0.js} +2 -2
- package/dist/chunks/{mime-0cjt6hj4.js → location-services-x93g9n8c.js} +17 -17
- package/dist/chunks/{mime-jjv1q8d4.js → location-services-x99kszcd.js} +14 -14
- package/dist/chunks/{mime-fg9n74ny.js → location-services-x9nckj68.js} +16 -16
- package/dist/chunks/{mime-c6x7d2ts.js → location-services-xmx7xj34.js} +4 -4
- package/dist/chunks/{mime-c4vfmmrn.js → location-services-xrc3640n.js} +8 -8
- package/dist/chunks/{mime-2b25mbj3.js → location-services-xsdjk4ge.js} +3 -3
- package/dist/chunks/{mime-1kn6jdkn.js → location-services-xt0z8zst.js} +4 -4
- package/dist/chunks/{mime-hk82q6eb.js → location-services-y98qbkn6.js} +8 -8
- package/dist/chunks/{mime-jjmhfyts.js → location-services-y9r97bb3.js} +11 -11
- package/dist/chunks/{mime-yb20nhc3.js → location-services-yb20nhc3.js} +1 -1
- package/dist/chunks/{mime-njqr3cdm.js → location-services-yh9hqaeq.js} +9 -9
- package/dist/chunks/{mime-1nwvfgjk.js → location-services-ykap3e57.js} +19 -19
- package/dist/chunks/{mime-c5q03pmb.js → location-services-ytz496fy.js} +5 -5
- package/dist/chunks/{mime-bx6g05dx.js → location-services-yx6x8jfj.js} +17 -17
- package/dist/chunks/{mime-ksxm71aw.js → location-services-yz9rz98a.js} +6 -6
- package/dist/chunks/{mime-98sj2w4a.js → location-services-z5fvc4pa.js} +32 -32
- package/dist/chunks/{mime-kk2a6haj.js → location-services-z89tmfeq.js} +8 -8
- package/dist/chunks/{mime-107zh63q.js → location-services-zb5gs1ba.js} +3 -3
- package/dist/chunks/{mime-05ga3jym.js → location-services-zcdj67b9.js} +32 -32
- package/dist/chunks/{mime-fddcjhj2.js → location-services-zdpw9dy9.js} +25 -25
- package/dist/chunks/location-services-zf52n5v2.js +26 -0
- package/dist/chunks/{mime-dtpswqs3.js → location-services-zgmb78cs.js} +35 -35
- package/dist/chunks/{mime-xr2mnjhn.js → location-services-zkyvmhna.js} +13 -13
- package/dist/chunks/{mime-c3gnxtmm.js → location-services-zpn8n3e3.js} +12 -12
- package/dist/chunks/{mime-aes06p6b.js → location-services-zsjka0ec.js} +5 -5
- package/dist/chunks/{mime-s4fkafj4.js → location-services-zwp1eeat.js} +2 -2
- package/dist/chunks/{mime-09npetjp.js → location-services-zx82kmhe.js} +13 -13
- package/dist/chunks/{mime-8dnnkdqt.js → location-services-zyy8z9rg.js} +17 -17
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +8 -4
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +93 -93
- package/dist/config/discovery.js +94 -94
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -111
- package/dist/config/plugin/agent.js +129 -129
- package/dist/config/plugin/command.js +226 -226
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/compatibility.js +149 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +130 -130
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +129 -129
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +136 -136
- package/dist/config/plugin/policy.js +129 -129
- package/dist/config/plugin/provider.js +129 -129
- package/dist/config/plugin/reference.js +131 -131
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +145 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +152 -152
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +130 -130
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +131 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +132 -132
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +91 -91
- package/dist/database/database.js +76 -76
- 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.gen.js +59 -59
- package/dist/database/migration.js +61 -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 +104 -104
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +392 -391
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +105 -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 +80 -80
- package/dist/file-access.js +155 -155
- package/dist/file-mutation.js +106 -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 +87 -87
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +241 -241
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +114 -114
- package/dist/form.js +92 -92
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +99 -99
- package/dist/generate.js +113 -113
- 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 +111 -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 +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 +383 -382
- package/dist/instruction-discovery.js +94 -94
- package/dist/instructions/builtins.js +99 -99
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +101 -101
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -83
- package/dist/location-activity.js +169 -169
- package/dist/location-lifecycle.js +145 -145
- package/dist/location-service-map.js +98 -98
- package/dist/location-services.js +380 -379
- package/dist/location.js +101 -101
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +173 -173
- package/dist/mcp/oauth.js +88 -88
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +111 -111
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -108
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +146 -146
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +84 -84
- package/dist/plugin/command.js +112 -112
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +232 -232
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +359 -358
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -109
- package/dist/plugin/module.js +128 -128
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +145 -145
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -103
- package/dist/plugin/provider/azure.js +129 -129
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +129 -129
- package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
- package/dist/plugin/provider/configured.js +125 -125
- package/dist/plugin/provider/credential-settings.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -107
- package/dist/plugin/provider/gitlab.js +106 -106
- package/dist/plugin/provider/google-vertex.js +126 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -88
- package/dist/plugin/provider/lmstudio.js +136 -136
- package/dist/plugin/provider/local.js +135 -135
- package/dist/plugin/provider/modal.js +104 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +138 -138
- package/dist/plugin/provider/openai-context-caps.js +102 -102
- package/dist/plugin/provider/openai.js +129 -129
- package/dist/plugin/provider/opencode.js +131 -131
- package/dist/plugin/provider/openrouter.js +103 -103
- package/dist/plugin/provider/poe.js +89 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +128 -128
- package/dist/plugin/provider/vllm.js +138 -138
- package/dist/plugin/provider/xai.js +103 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +179 -179
- package/dist/plugin/sdk.js +86 -86
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +148 -148
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +369 -368
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -98
- package/dist/plugin/vcs/hg.js +98 -98
- package/dist/plugin/verbosity.js +105 -105
- package/dist/plugin/warming.js +127 -127
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- 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 +237 -237
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +102 -102
- package/dist/provider.js +105 -105
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +108 -108
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -236
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +251 -250
- 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 +128 -128
- package/dist/session/command.js +84 -84
- package/dist/session/compaction.js +171 -171
- package/dist/session/context.js +195 -195
- package/dist/session/diff.js +100 -100
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +235 -235
- package/dist/session/execution.js +159 -159
- package/dist/session/generate.js +195 -195
- package/dist/session/history.js +135 -135
- package/dist/session/inbox.js +148 -148
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +87 -87
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +156 -156
- package/dist/session/model-transport.js +3 -3
- package/dist/session/move.js +163 -163
- package/dist/session/projector.js +142 -142
- package/dist/session/prompt.js +147 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +138 -138
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +246 -246
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -112
- package/dist/session/runner/publish-llm-event.js +148 -148
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +159 -159
- package/dist/session/runner/to-llm-message.js +136 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +177 -177
- package/dist/session/shell.js +143 -143
- package/dist/session/skill.js +146 -146
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +83 -83
- package/dist/session/store.js +139 -139
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +226 -226
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +197 -197
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +234 -234
- package/dist/session/usage.js +1 -1
- package/dist/session.js +230 -230
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +6 -2007
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +145 -145
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +151 -151
- package/dist/snapshot.js +103 -103
- 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 +170 -170
- package/dist/tool/plugin/edit.js +163 -163
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +167 -167
- package/dist/tool/plugin/grep.js +165 -165
- package/dist/tool/plugin/image-generate.js +236 -236
- package/dist/tool/plugin/mcp-resource.js +161 -161
- package/dist/tool/plugin/opencode.js +160 -160
- package/dist/tool/plugin/patch.js +161 -161
- package/dist/tool/plugin/question.js +143 -143
- package/dist/tool/plugin/read.js +168 -168
- package/dist/tool/plugin/schedule.js +243 -242
- package/dist/tool/plugin/shell.js +232 -231
- package/dist/tool/plugin/skill.js +154 -154
- package/dist/tool/plugin/subagent.js +231 -231
- package/dist/tool/plugin/todo.js +152 -152
- package/dist/tool/plugin/webfetch.js +152 -152
- package/dist/tool/plugin/websearch.js +152 -152
- package/dist/tool/plugin/write.js +165 -165
- package/dist/tool/read-filesystem.js +112 -112
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/codemode/tool.d.ts +39 -0
- package/dist/types/schedule/check.d.ts +35 -4
- package/dist/types/schedule/sql.d.ts +3 -0
- package/dist/types/shell/parse.d.ts +2 -6
- package/dist/types/tool/plugin/schedule.d.ts +12 -0
- package/dist/types/tool/plugin/shell.d.ts +1 -2
- package/dist/types/tool.d.ts +14 -0
- package/dist/usage-limits.js +97 -97
- 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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +104 -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 +103 -103
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -101
- package/dist/voice.js +98 -98
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +89 -89
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -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 +99 -99
- package/dist/worktree.js +104 -104
- package/package.json +8 -17
- package/dist/chunks/mime-1hm0b4am.js +0 -257
- package/dist/chunks/mime-2dkjcnxp.js +0 -18
- package/dist/chunks/mime-52zxaxjc.js +0 -26
- package/dist/chunks/mime-vf16q2b1.js +0 -356
- package/dist/chunks/mime-z8xs1n5t.js +0 -222
- package/dist/chunks/mime-zw960apb.js +0 -535
- package/dist/shell/parser-wasm.bun.js +0 -8
- package/dist/shell/parser-wasm.node.js +0 -11
- package/dist/shell/parser-wasm.workerd.js +0 -5
- package/dist/types/shell/parser-wasm.bun.d.ts +0 -5
- package/dist/types/shell/parser-wasm.node.d.ts +0 -5
- package/dist/types/shell/parser-wasm.workerd.d.ts +0 -5
- /package/dist/chunks/{mime-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{mime-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{mime-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{mime-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{mime-1kah00gy.js → location-services-1kah00gy.js} +0 -0
- /package/dist/chunks/{mime-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{mime-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{mime-2bv980vf.js → location-services-2bv980vf.js} +0 -0
- /package/dist/chunks/{mime-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{mime-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{mime-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{mime-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{mime-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{mime-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{mime-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{mime-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{mime-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{mime-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{mime-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{mime-5w3e23ze.js → location-services-5w3e23ze.js} +0 -0
- /package/dist/chunks/{mime-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{mime-6q2bdcd1.js → location-services-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{mime-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{mime-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{mime-7stb81gk.js → location-services-7stb81gk.js} +0 -0
- /package/dist/chunks/{mime-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{mime-84wd9syh.js → location-services-84wd9syh.js} +0 -0
- /package/dist/chunks/{mime-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{mime-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{mime-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{mime-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{mime-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{mime-a058387c.js → location-services-a058387c.js} +0 -0
- /package/dist/chunks/{mime-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{mime-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{mime-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{mime-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{mime-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{mime-beh6qq61.js → location-services-beh6qq61.js} +0 -0
- /package/dist/chunks/{mime-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{mime-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{mime-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{mime-cqv5kn06.js → location-services-cqv5kn06.js} +0 -0
- /package/dist/chunks/{mime-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{mime-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{mime-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{mime-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{mime-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{mime-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{mime-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{mime-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{mime-ean2d8b5.js → location-services-ean2d8b5.js} +0 -0
- /package/dist/chunks/{mime-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{mime-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{mime-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{mime-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{mime-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{mime-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{mime-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{mime-fkpq3x5p.js → location-services-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{mime-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{mime-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{mime-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{mime-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{mime-hcxmzztb.js → location-services-hcxmzztb.js} +0 -0
- /package/dist/chunks/{mime-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{mime-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{mime-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{mime-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{mime-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{mime-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{mime-jwr30sdr.js → location-services-jwr30sdr.js} +0 -0
- /package/dist/chunks/{mime-jze0r7bz.js → location-services-jze0r7bz.js} +0 -0
- /package/dist/chunks/{mime-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{mime-m18g726c.js → location-services-m18g726c.js} +0 -0
- /package/dist/chunks/{mime-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{mime-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{mime-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{mime-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{mime-ncqqe42p.js → location-services-ncqqe42p.js} +0 -0
- /package/dist/chunks/{mime-nh4v3znn.js → location-services-nh4v3znn.js} +0 -0
- /package/dist/chunks/{mime-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{mime-p71gwv9c.js → location-services-p71gwv9c.js} +0 -0
- /package/dist/chunks/{mime-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{mime-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{mime-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{mime-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{mime-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{mime-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{mime-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{mime-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{mime-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{mime-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{mime-stkk57rt.js → location-services-stkk57rt.js} +0 -0
- /package/dist/chunks/{mime-t03h4f5z.js → location-services-t03h4f5z.js} +0 -0
- /package/dist/chunks/{mime-ty7weeps.js → location-services-ty7weeps.js} +0 -0
- /package/dist/chunks/{mime-ve7vex1e.js → location-services-ve7vex1e.js} +0 -0
- /package/dist/chunks/{mime-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{mime-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{mime-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{mime-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{mime-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{mime-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{mime-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{mime-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{mime-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{mime-z5v4ffb3.js → location-services-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{mime-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-ry6m6k45.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service74
|
|
8
|
+
} from "./location-services-625chkn0.js";
|
|
9
9
|
import {
|
|
10
10
|
DirectoryNotFoundError2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-ae75vsr5.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service54,
|
|
14
|
+
node56
|
|
15
|
+
} from "./location-services-rwvswa9y.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-services-gftt206x.js";
|
|
19
19
|
import {
|
|
20
20
|
SessionInboxTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-services-8z6m94af.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
Service52,
|
|
24
|
+
node55
|
|
25
|
+
} from "./location-services-hrj3d3rg.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
27
|
+
Service22,
|
|
28
|
+
node25
|
|
29
|
+
} from "./location-services-s7dtnyk2.js";
|
|
30
30
|
import {
|
|
31
31
|
validate2,
|
|
32
32
|
describe2,
|
|
33
33
|
authorize2,
|
|
34
34
|
evaluate2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./location-services-68291c0v.js";
|
|
36
36
|
import {
|
|
37
37
|
ScheduleTable2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./location-services-nx4vzyjd.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./location-services-9rqn6x4v.js";
|
|
42
42
|
|
|
43
43
|
// src/schedule.ts
|
|
44
44
|
var exports_schedule2 = {};
|
|
45
45
|
__export(exports_schedule2, {
|
|
46
46
|
Condition: () => Condition2,
|
|
47
47
|
ConditionInput: () => ConditionInput2,
|
|
48
|
-
CreateInput: () =>
|
|
48
|
+
CreateInput: () => CreateInput3,
|
|
49
49
|
DisabledError: () => DisabledError2,
|
|
50
|
-
ID: () =>
|
|
51
|
-
Info: () =>
|
|
50
|
+
ID: () => ID3,
|
|
51
|
+
Info: () => Info5,
|
|
52
52
|
InvalidError: () => InvalidError2,
|
|
53
|
-
NotFoundError: () =>
|
|
53
|
+
NotFoundError: () => NotFoundError3,
|
|
54
54
|
Outcome: () => Outcome3,
|
|
55
55
|
Request: () => Request2,
|
|
56
56
|
Schedule: () => exports_schedule2,
|
|
57
|
-
Service: () =>
|
|
57
|
+
Service: () => Service19,
|
|
58
58
|
Status: () => Status2,
|
|
59
59
|
When: () => When2,
|
|
60
|
-
node: () =>
|
|
60
|
+
node: () => node21,
|
|
61
61
|
toCreateInput: () => toCreateInput2
|
|
62
62
|
});
|
|
63
63
|
import { and, asc, eq, gt, isNull, lte, min, or } from "drizzle-orm";
|
|
@@ -66,18 +66,18 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
66
66
|
import {
|
|
67
67
|
Condition as Condition2,
|
|
68
68
|
ConditionInput as ConditionInput2,
|
|
69
|
-
CreateInput as
|
|
69
|
+
CreateInput as CreateInput3,
|
|
70
70
|
durationMillis,
|
|
71
|
-
ID as
|
|
72
|
-
Info as
|
|
71
|
+
ID as ID3,
|
|
72
|
+
Info as Info5,
|
|
73
73
|
Outcome as Outcome3,
|
|
74
74
|
Request as Request2,
|
|
75
75
|
Status as Status2,
|
|
76
76
|
toCreateInput as toCreateInput2,
|
|
77
77
|
When as When2
|
|
78
78
|
} from "@opencode/schema/schedule";
|
|
79
|
-
class
|
|
80
|
-
scheduleID:
|
|
79
|
+
class NotFoundError3 extends Schema.TaggedError()("Schedule.NotFoundError", {
|
|
80
|
+
scheduleID: ID3
|
|
81
81
|
}) {
|
|
82
82
|
get message() {
|
|
83
83
|
return `Schedule not found: ${this.scheduleID}`;
|
|
@@ -98,7 +98,7 @@ class DisabledError2 extends Schema.TaggedError()("Schedule.DisabledError", {})
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
class
|
|
101
|
+
class Service19 extends Context.Service()("@opencode/Schedule") {
|
|
102
102
|
}
|
|
103
103
|
var MINUTE = 60000;
|
|
104
104
|
var HOUR = 60 * MINUTE;
|
|
@@ -181,15 +181,15 @@ var toInfo = (row, lastOutput) => ({
|
|
|
181
181
|
...lastOutput === undefined ? {} : { lastOutput },
|
|
182
182
|
time: { created: DateTime.makeUnsafe(row.time_created), updated: DateTime.makeUnsafe(row.time_updated) }
|
|
183
183
|
});
|
|
184
|
-
var layer = Layer.effect(
|
|
184
|
+
var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
185
185
|
const database = yield* Service87;
|
|
186
186
|
const db = database.db;
|
|
187
|
-
const sessions = yield*
|
|
188
|
-
const instances = yield*
|
|
189
|
-
const execution = yield*
|
|
187
|
+
const sessions = yield* Service22;
|
|
188
|
+
const instances = yield* Service54;
|
|
189
|
+
const execution = yield* Service52;
|
|
190
190
|
const doorbell = yield* Latch.make();
|
|
191
191
|
const settings = (session) => Effect.gen(function* () {
|
|
192
|
-
const config = yield* Effect.serviceOption(
|
|
192
|
+
const config = yield* Effect.serviceOption(Service74);
|
|
193
193
|
if (Option.isNone(config))
|
|
194
194
|
return { enabled: false, timezone: undefined };
|
|
195
195
|
const entries = yield* config.value.entries();
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
198
198
|
timezone: latest2(entries, "timezone")
|
|
199
199
|
};
|
|
200
200
|
}).pipe(instances.provide(session));
|
|
201
|
-
const find = (id) => db.select().from(ScheduleTable2).where(eq(ScheduleTable2.id, id)).get().pipe(Effect.orDie, Effect.flatMap((row) => row ? Effect.succeed(row) : Effect.fail(new
|
|
201
|
+
const find = (id) => db.select().from(ScheduleTable2).where(eq(ScheduleTable2.id, id)).get().pipe(Effect.orDie, Effect.flatMap((row) => row ? Effect.succeed(row) : Effect.fail(new NotFoundError3({ scheduleID: id }))));
|
|
202
202
|
const update = (row, values) => db.update(ScheduleTable2).set(values).where(and(eq(ScheduleTable2.id, row.id), eq(ScheduleTable2.status, "active"))).run().pipe(Effect.orDie);
|
|
203
203
|
const pending = (id) => db.select({ id: SessionInboxTable2.id }).from(SessionInboxTable2).where(eq(SessionInboxTable2.id, id)).get().pipe(Effect.orDie, Effect.map((row) => row !== undefined));
|
|
204
204
|
const admitWake = Effect.fnUntraced(function* (row, sessionID, run, due, late, text, checkMeta) {
|
|
@@ -226,10 +226,15 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
226
226
|
const next = following(row, now);
|
|
227
227
|
if (row.check !== null) {
|
|
228
228
|
const check = row.check;
|
|
229
|
-
const
|
|
229
|
+
const checkMessageID = SessionMessage2.ID.make(`msg_${row.id}_check_${row.checks + 1}`);
|
|
230
|
+
const outcome = yield* evaluate2(session, check, row.state ?? null, {
|
|
231
|
+
messageID: checkMessageID,
|
|
232
|
+
now,
|
|
233
|
+
checks: row.checks
|
|
234
|
+
}).pipe(instances.provide(session));
|
|
230
235
|
if (!outcome.ok) {
|
|
231
236
|
const strikes = row.failures + 1;
|
|
232
|
-
if (strikes < MAX_CHECK_FAILURES) {
|
|
237
|
+
if (!outcome.invalid && strikes < MAX_CHECK_FAILURES) {
|
|
233
238
|
yield* update(row, {
|
|
234
239
|
failures: strikes,
|
|
235
240
|
last_outcome: "failed",
|
|
@@ -239,9 +244,10 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
239
244
|
return;
|
|
240
245
|
}
|
|
241
246
|
const run = row.run_count + 1;
|
|
247
|
+
const note = outcome.invalid ? `[Schedule paused after invalid check: ${outcome.error}]` : `[Schedule paused after ${strikes} failed checks: ${outcome.error}]`;
|
|
242
248
|
const id = yield* admitWake(row, session.id, run, due, late, `${row.action.prompt}
|
|
243
249
|
|
|
244
|
-
|
|
250
|
+
${note}`, { error: outcome.error, failures: strikes });
|
|
245
251
|
yield* db.update(ScheduleTable2).set({
|
|
246
252
|
status: "paused",
|
|
247
253
|
failures: strikes,
|
|
@@ -439,7 +445,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
439
445
|
return yield* new InvalidError2({ reason: `Invalid time: ${ends.at}` });
|
|
440
446
|
return Math.min(at.value, after ?? at.value);
|
|
441
447
|
});
|
|
442
|
-
return
|
|
448
|
+
return Service19.of({
|
|
443
449
|
create: Effect.fn("Schedule.create")(function* (input) {
|
|
444
450
|
const session = yield* sessions.get(input.sessionID);
|
|
445
451
|
const config = yield* settings(session).pipe(Effect.catchTag("FileSystem.DirectoryNotFoundError", () => Effect.fail(new InvalidError2({ reason: `Session directory does not exist: ${session.location.directory}` }))));
|
|
@@ -457,21 +463,29 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
457
463
|
const ends = yield* endsAt(input.ends, check?.mode === "until", zone, now);
|
|
458
464
|
if (ends !== null && due > ends)
|
|
459
465
|
return yield* new InvalidError2({ reason: "The schedule ends before it first fires" });
|
|
466
|
+
const scheduleID = ID3.create();
|
|
460
467
|
const seeded = check === undefined ? { matched: false, state: null, checks: 0 } : yield* Effect.gen(function* () {
|
|
461
|
-
yield* authorize2(session, input.name, check).pipe(instances.provide(session), Effect.mapError((error) => typeof error === "string" ? new InvalidError2({ reason: error }) : error), Effect.catchTag("FileSystem.DirectoryNotFoundError", () => Effect.fail(new InvalidError2({ reason: `Session directory does not exist: ${session.location.directory}` }))));
|
|
462
|
-
const shouldSeed = check.mode === "until" || check.condition.type === "shell" && check.condition.changes === true;
|
|
468
|
+
yield* authorize2(session, input.name, when, check).pipe(instances.provide(session), Effect.mapError((error) => typeof error === "string" ? new InvalidError2({ reason: error }) : error), Effect.catchTag("FileSystem.DirectoryNotFoundError", () => Effect.fail(new InvalidError2({ reason: `Session directory does not exist: ${session.location.directory}` }))));
|
|
469
|
+
const shouldSeed = check.mode === "until" || check.condition.type === "code" || check.condition.type === "shell" && check.condition.changes === true;
|
|
463
470
|
if (!shouldSeed)
|
|
464
471
|
return { matched: false, state: null, checks: 0 };
|
|
465
|
-
const init = yield* evaluate2(session, check, null
|
|
466
|
-
|
|
472
|
+
const init = yield* evaluate2(session, check, null, {
|
|
473
|
+
messageID: SessionMessage2.ID.make(`msg_${scheduleID}_check_0`),
|
|
474
|
+
now,
|
|
475
|
+
checks: 0
|
|
476
|
+
}).pipe(instances.provide(session), Effect.catchTag("FileSystem.DirectoryNotFoundError", () => Effect.fail(new InvalidError2({ reason: `Session directory does not exist: ${session.location.directory}` }))));
|
|
477
|
+
if (!init.ok) {
|
|
478
|
+
if (init.invalid || check.condition.type === "code")
|
|
479
|
+
return yield* new InvalidError2({ reason: init.error });
|
|
467
480
|
return { matched: false, state: null, checks: 0 };
|
|
481
|
+
}
|
|
468
482
|
if (check.mode === "until" && init.wake)
|
|
469
483
|
return { matched: true, state: init.state, message: init.message };
|
|
470
484
|
return { matched: false, state: init.state, checks: 1 };
|
|
471
485
|
});
|
|
472
486
|
if (seeded.matched) {
|
|
473
487
|
const row = yield* db.insert(ScheduleTable2).values({
|
|
474
|
-
id:
|
|
488
|
+
id: scheduleID,
|
|
475
489
|
session_id: session.id,
|
|
476
490
|
name: input.name ?? null,
|
|
477
491
|
check: check ?? null,
|
|
@@ -494,7 +508,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
494
508
|
}
|
|
495
509
|
const remaining = check?.mode === "until" ? 1 : input.ends?.times ?? null;
|
|
496
510
|
const row = yield* db.insert(ScheduleTable2).values({
|
|
497
|
-
id:
|
|
511
|
+
id: scheduleID,
|
|
498
512
|
session_id: session.id,
|
|
499
513
|
name: input.name ?? null,
|
|
500
514
|
check: check ?? null,
|
|
@@ -556,10 +570,10 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
556
570
|
run
|
|
557
571
|
});
|
|
558
572
|
}));
|
|
559
|
-
var
|
|
560
|
-
service:
|
|
573
|
+
var node21 = makeGlobalNode({
|
|
574
|
+
service: Service19,
|
|
561
575
|
layer,
|
|
562
|
-
deps: [node91,
|
|
576
|
+
deps: [node91, node25, node55, node56]
|
|
563
577
|
});
|
|
564
578
|
|
|
565
|
-
export { Condition2, ConditionInput2,
|
|
579
|
+
export { Condition2, ConditionInput2, CreateInput3, ID3, Info5, Outcome3, Request2, Status2, toCreateInput2, When2, NotFoundError3, InvalidError2, DisabledError2, Service19, node21, exports_schedule2 };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
provider2,
|
|
3
3
|
model2,
|
|
4
4
|
compatibleModel2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-dt77769w.js";
|
|
6
6
|
import {
|
|
7
7
|
aisdk2,
|
|
8
8
|
packageName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-d987wdq8.js";
|
|
10
10
|
import {
|
|
11
11
|
Capabilities2,
|
|
12
12
|
compatibility2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-services-92ee31my.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/v1/config/migrate.ts
|
|
19
19
|
var exports_migrate = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service74
|
|
4
|
+
} from "./location-services-625chkn0.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-services-hpg1pkwy.js";
|
|
8
8
|
import {
|
|
9
9
|
Condition2,
|
|
10
|
-
|
|
10
|
+
ID3,
|
|
11
11
|
Outcome3,
|
|
12
12
|
Request2,
|
|
13
13
|
Status2,
|
|
14
14
|
toCreateInput2,
|
|
15
15
|
When2,
|
|
16
|
-
|
|
16
|
+
NotFoundError3,
|
|
17
17
|
DisabledError2,
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service19
|
|
19
|
+
} from "./location-services-hcdj4fe2.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-services-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/tool/plugin/schedule.ts
|
|
25
25
|
var exports_schedule = {};
|
|
26
26
|
__export(exports_schedule, {
|
|
27
27
|
IDInput: () => IDInput2,
|
|
28
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin16,
|
|
29
29
|
ScheduleTools: () => exports_schedule,
|
|
30
30
|
View: () => View2
|
|
31
31
|
});
|
|
@@ -34,11 +34,11 @@ import { optional } from "@opencode/schema/schema";
|
|
|
34
34
|
import { DateTime, Effect, Option, Schema } from "effect";
|
|
35
35
|
|
|
36
36
|
// src/plugin/command/schedule.txt
|
|
37
|
-
var schedule_default = 'Manage scheduled prompts for this session.\n\nRequest: $ARGUMENTS\n\nUse the schedule tools in the `opencode` namespace. They only see this session\'s schedules.\n\n- To schedule something, call `schedule_create`. Choose `when` (`{ in: "20 minutes" }`, `{ at: "2026-10-27T09:00" }`, `{ every: "1 hour" }` or `{ cron: "0 9 * * 1-5" }`, optional with `until` which defaults to every 30s). Add `until
|
|
37
|
+
var schedule_default = 'Manage scheduled prompts for this session.\n\nRequest: $ARGUMENTS\n\nUse the schedule tools in the `opencode` namespace. They only see this session\'s schedules.\n\n- To schedule something, call `schedule_create`. Choose `when` (`{ in: "20 minutes" }`, `{ at: "2026-10-27T09:00" }`, `{ every: "1 hour" }` or `{ cron: "0 9 * * 1-5" }`, optional with `until` which defaults to every 30s). Add `until` (wake once then stop, 24h default timeout; matches immediately if already true) or `if` (gate each recurring slot with no model call; baselines `state` at creation without waking) using either `{ run: "..." }` for a shell check or `{ code: "..." }` for a Code Mode JavaScript check calling `tools.<path>(...)` statically (no `fetch`, 30s / 20 calls / 32 KB caps) and returning a boolean or `{ wake, state?, message? }`. Code checks run once at creation with `state = null` and fail `schedule_create` if they throw. To stop a repeating schedule, add `ends`: `{ after: "8 hours" }`, `{ at: "..." }` or `{ times: 3 }`. Write `prompt` as the instruction you will receive when it wakes, with enough context to act on it without this conversation.\n- To pause, resume or delete one, find its id with `schedule_list`, then call `schedule_pause`, `schedule_resume` or `schedule_delete`.\n- If the request is empty, call `schedule_list` and show this session\'s schedules: name, when, status and next run.\n\nReply in one line: what changed and when it next fires.\n';
|
|
38
38
|
|
|
39
39
|
// src/tool/plugin/schedule.ts
|
|
40
40
|
var View2 = Schema.Struct({
|
|
41
|
-
id:
|
|
41
|
+
id: ID3,
|
|
42
42
|
name: Schema.String.pipe(optional),
|
|
43
43
|
when: When2,
|
|
44
44
|
tz: Schema.String,
|
|
@@ -59,25 +59,25 @@ var ListOutput = Schema.Struct({
|
|
|
59
59
|
schedules: Schema.Array(View2)
|
|
60
60
|
});
|
|
61
61
|
var IDInput2 = Schema.Struct({
|
|
62
|
-
id:
|
|
62
|
+
id: ID3.annotate({ description: "Schedule id from schedule_list." })
|
|
63
63
|
});
|
|
64
|
-
var RemoveOutput = Schema.Struct({ id:
|
|
65
|
-
var
|
|
64
|
+
var RemoveOutput = Schema.Struct({ id: ID3, removed: Schema.Boolean });
|
|
65
|
+
var Plugin16 = {
|
|
66
66
|
id: "opencode.tool.schedule",
|
|
67
67
|
effect: Effect.fn("ScheduleTools.Plugin")(function* (ctx) {
|
|
68
|
-
const config = yield*
|
|
69
|
-
const schedules = yield*
|
|
68
|
+
const config = yield* Service74;
|
|
69
|
+
const schedules = yield* Service19;
|
|
70
70
|
const loaded = yield* observe2(config, ctx.event, Effect.andThen(ctx.tool.reload(), ctx.command.reload()));
|
|
71
71
|
const enabled = () => latest2(loaded.entries, "experimental")?.schedules === true;
|
|
72
72
|
const allowed = (sessionID) => schedules.enabled(sessionID).pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new DisabledError2)));
|
|
73
|
-
const owned = (id, sessionID) => allowed(sessionID).pipe(Effect.andThen(schedules.get(id)), Effect.filterOrFail((info) => info.sessionID === sessionID, () => new
|
|
73
|
+
const owned = (id, sessionID) => allowed(sessionID).pipe(Effect.andThen(schedules.get(id)), Effect.filterOrFail((info) => info.sessionID === sessionID, () => new NotFoundError3({ scheduleID: id })));
|
|
74
74
|
const failure = (error) => new ToolFailure({ message: error.message, error });
|
|
75
75
|
yield* ctx.tool.transform((editor) => {
|
|
76
76
|
if (!enabled())
|
|
77
77
|
return;
|
|
78
78
|
editor.add({
|
|
79
79
|
name: "schedule_create",
|
|
80
|
-
description: "Schedule a prompt that wakes this session later: once after a delay, at a time, every interval, on a cron, or gated by an `if` / `until` shell check. Returns the schedule with its next run (or `done` immediately if `until` already matches).",
|
|
80
|
+
description: "Schedule a prompt that wakes this session later: once after a delay, at a time, every interval, on a cron, or gated by an `if` / `until` shell (`{ run }`) or Code Mode (`{ code }`) check. Returns the schedule with its next run (or `done` immediately if `until` already matches).",
|
|
81
81
|
input: Request2,
|
|
82
82
|
output: View2,
|
|
83
83
|
options: { namespace: "opencode", codemode: true },
|
|
@@ -149,6 +149,11 @@ function formatCondition(condition) {
|
|
|
149
149
|
switch (condition.type) {
|
|
150
150
|
case "shell":
|
|
151
151
|
return JSON.stringify(condition.run);
|
|
152
|
+
case "code": {
|
|
153
|
+
const first = condition.code.split(`
|
|
154
|
+
`).map((line) => line.trim()).find((line) => line.length > 0);
|
|
155
|
+
return `code ${JSON.stringify(first ? first.slice(0, 60) : "")}`;
|
|
156
|
+
}
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
159
|
function summary(view) {
|
|
@@ -193,4 +198,4 @@ function toView(info) {
|
|
|
193
198
|
};
|
|
194
199
|
}
|
|
195
200
|
|
|
196
|
-
export { View2, IDInput2,
|
|
201
|
+
export { View2, IDInput2, Plugin16, exports_schedule };
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2,
|
|
3
3
|
normalizedName2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-7stb81gk.js";
|
|
5
5
|
import {
|
|
6
6
|
extension2,
|
|
7
7
|
display2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-jfaecv01.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/codemode/tool.ts
|
|
14
14
|
var exports_tool2 = {};
|
|
15
15
|
__export(exports_tool2, {
|
|
16
16
|
CodeModeTool: () => exports_tool2,
|
|
17
17
|
catalog: () => catalog2,
|
|
18
|
-
|
|
18
|
+
check: () => check2,
|
|
19
|
+
create: () => create2,
|
|
20
|
+
qualifiedName: () => qualifiedName2
|
|
19
21
|
});
|
|
20
22
|
import { CodeMode, Namespace, Tool } from "@opencode/codemode";
|
|
21
|
-
import { Context, Effect, Ref, Schema, Semaphore } from "effect";
|
|
23
|
+
import { Clock, Context, Effect, Ref, Schema, Semaphore } from "effect";
|
|
22
24
|
var ExecuteFile = Schema.Struct({
|
|
23
25
|
data: Schema.String,
|
|
24
26
|
mime: Schema.String,
|
|
@@ -58,23 +60,36 @@ var create2 = (inventory, executeTool) => {
|
|
|
58
60
|
const files = yield* Ref.make([]);
|
|
59
61
|
const calls = yield* Ref.make([]);
|
|
60
62
|
const lock = Semaphore.makeUnsafe(1);
|
|
61
|
-
const
|
|
63
|
+
const scope = yield* Effect.scope;
|
|
64
|
+
const publishedAt = yield* Ref.make(Number.NEGATIVE_INFINITY);
|
|
65
|
+
const trailing = yield* Ref.make(false);
|
|
66
|
+
const publish = Effect.gen(function* () {
|
|
67
|
+
yield* Ref.set(trailing, false);
|
|
68
|
+
yield* Ref.set(publishedAt, yield* Clock.currentTimeMillis);
|
|
69
|
+
yield* context.progress({ toolCalls: yield* Ref.get(calls) });
|
|
70
|
+
});
|
|
71
|
+
const record = (update) => lock.withPermit(Effect.gen(function* () {
|
|
72
|
+
yield* Ref.update(calls, update);
|
|
73
|
+
if (yield* Ref.get(trailing))
|
|
74
|
+
return;
|
|
75
|
+
const wait = (yield* Ref.get(publishedAt)) + 100 - (yield* Clock.currentTimeMillis);
|
|
76
|
+
if (wait <= 0)
|
|
77
|
+
return yield* publish;
|
|
78
|
+
yield* Ref.set(trailing, true);
|
|
79
|
+
yield* Effect.sleep(wait).pipe(Effect.andThen(lock.withPermit(publish)), Effect.forkIn(scope));
|
|
80
|
+
}));
|
|
62
81
|
const result = yield* runtime(inventory).execute(code).pipe(Effect.provideService(Run, {
|
|
63
82
|
executeTool: (name, tool, input) => Effect.gen(function* () {
|
|
64
83
|
const index = yield* Ref.getAndUpdate(callIndex, (index) => index + 1);
|
|
65
84
|
const executed = yield* executeTool(name, tool, input, context);
|
|
66
|
-
const content =
|
|
85
|
+
const content = resultContent(executed);
|
|
67
86
|
const outputFileParts = outputFiles(content);
|
|
68
87
|
if (outputFileParts.length > 0)
|
|
69
88
|
yield* Ref.update(files, (items) => [...items, { index, files: outputFileParts }]);
|
|
70
|
-
|
|
71
|
-
return executed.output;
|
|
72
|
-
const text = content.flatMap((part) => part.type === "text" ? [part.text] : []).join(`
|
|
73
|
-
`);
|
|
74
|
-
return text === "" ? null : text;
|
|
89
|
+
return resultValue(executed);
|
|
75
90
|
}),
|
|
76
91
|
hooks: progressHooks(record)
|
|
77
|
-
}));
|
|
92
|
+
}), Effect.onError(() => lock.withPermit(Ref.get(trailing).pipe(Effect.flatMap((pending) => pending ? publish : Effect.void)))));
|
|
78
93
|
const toolCalls = yield* Ref.get(calls);
|
|
79
94
|
const collected = (yield* Ref.get(files)).toSorted((left, right) => left.index - right.index).flatMap((item) => item.files);
|
|
80
95
|
const output = formatResult(result);
|
|
@@ -102,7 +117,7 @@ var create2 = (inventory, executeTool) => {
|
|
|
102
117
|
content,
|
|
103
118
|
metadata
|
|
104
119
|
};
|
|
105
|
-
})
|
|
120
|
+
}).pipe(Effect.scoped)
|
|
106
121
|
};
|
|
107
122
|
};
|
|
108
123
|
function progressHooks(record) {
|
|
@@ -139,7 +154,7 @@ function progressHooks(record) {
|
|
|
139
154
|
};
|
|
140
155
|
}
|
|
141
156
|
var catalog2 = (inventory) => {
|
|
142
|
-
const pinned = new Set(Array.from(inventory.tools.values()).filter((registration) => registration.options?.pinned === true).map(
|
|
157
|
+
const pinned = new Set(Array.from(inventory.tools.values()).filter((registration) => registration.options?.pinned === true).map(qualifiedName2));
|
|
143
158
|
const root = { children: new Map };
|
|
144
159
|
for (const namespace of inventory.namespaces?.values() ?? [])
|
|
145
160
|
getNode(root, namespace.name).namespace = namespace;
|
|
@@ -176,26 +191,43 @@ function runtime(inventory) {
|
|
|
176
191
|
const cached = runtimes.get(inventory);
|
|
177
192
|
if (cached)
|
|
178
193
|
return cached;
|
|
194
|
+
const tools = inventoryTools(inventory);
|
|
195
|
+
const created = CodeMode.make({
|
|
196
|
+
tools,
|
|
197
|
+
extensions: [extension2],
|
|
198
|
+
hooks: runHooks
|
|
199
|
+
});
|
|
200
|
+
runtimes.set(inventory, created);
|
|
201
|
+
return created;
|
|
202
|
+
}
|
|
203
|
+
var check2 = (inventory, code, bindings, limits, executeTool) => CodeMode.make({ tools: inventoryTools(inventory), hooks: runHooks, limits }).execute(code, bindings).pipe(Effect.provideService(Run, {
|
|
204
|
+
executeTool: (name, tool, input) => executeTool(name, tool, input).pipe(Effect.map(resultValue)),
|
|
205
|
+
hooks: {}
|
|
206
|
+
}));
|
|
207
|
+
function inventoryTools(inventory) {
|
|
179
208
|
const root = { children: new Map };
|
|
180
209
|
for (const namespace of inventory.namespaces?.values() ?? [])
|
|
181
210
|
getNode(root, namespace.name).namespace = namespace;
|
|
182
211
|
for (const [name, registration] of inventory.tools) {
|
|
183
212
|
const child = definition2(registration);
|
|
184
|
-
getNode(root,
|
|
213
|
+
getNode(root, qualifiedName2(registration)).tool = Tool.make({
|
|
185
214
|
description: child.description,
|
|
186
215
|
input: child.inputSchema,
|
|
187
216
|
output: child.outputSchema ?? Schema.NullOr(Schema.String),
|
|
188
217
|
execute: (input) => Run.use((run) => run.executeTool(name, registration, input))
|
|
189
218
|
});
|
|
190
219
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
220
|
+
return renderTools(root);
|
|
221
|
+
}
|
|
222
|
+
function resultContent(executed) {
|
|
223
|
+
return typeof executed.content === "string" ? [{ type: "text", text: executed.content }] : executed.content ?? [];
|
|
224
|
+
}
|
|
225
|
+
function resultValue(executed) {
|
|
226
|
+
if (executed.output !== undefined)
|
|
227
|
+
return executed.output;
|
|
228
|
+
const text = resultContent(executed).flatMap((part) => part.type === "text" ? [part.text] : []).join(`
|
|
229
|
+
`);
|
|
230
|
+
return text === "" ? null : text;
|
|
199
231
|
}
|
|
200
232
|
var runHooks = {
|
|
201
233
|
"tool.before": (call) => Run.use((run) => run.hooks["tool.before"]?.(call) ?? Effect.void),
|
|
@@ -249,7 +281,7 @@ function flattenTools(node, path, tools) {
|
|
|
249
281
|
for (const [name, child] of node.children)
|
|
250
282
|
flattenTools(child, [...path, name], tools);
|
|
251
283
|
}
|
|
252
|
-
function
|
|
284
|
+
function qualifiedName2(registration) {
|
|
253
285
|
const normalized = normalizedName2(registration);
|
|
254
286
|
if (registration.options?.namespace === undefined)
|
|
255
287
|
return normalized;
|
|
@@ -299,4 +331,4 @@ function outputFiles(content) {
|
|
|
299
331
|
});
|
|
300
332
|
}
|
|
301
333
|
|
|
302
|
-
export { create2, catalog2, exports_tool2 };
|
|
334
|
+
export { create2, catalog2, check2, qualifiedName2, exports_tool2 };
|