@opencode/core 0.0.0-dev-21351 → 0.0.0-dev-21354
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{command-xq96cc1n.js → model-resolver-03f7gaj9.js} +31 -31
- package/dist/chunks/{command-z8gf1a03.js → model-resolver-0d74j82x.js} +1 -1
- package/dist/chunks/{command-fdms3n6w.js → model-resolver-0jq9fyba.js} +9 -9
- package/dist/chunks/{command-0vbcp93d.js → model-resolver-0vbcp93d.js} +2 -2
- package/dist/chunks/{command-27mk30s9.js → model-resolver-0y23mm2p.js} +11 -11
- package/dist/chunks/{command-bsksjwvt.js → model-resolver-0z62s2d8.js} +17 -17
- package/dist/chunks/{command-0x8wbs59.js → model-resolver-13n3hwre.js} +14 -14
- package/dist/chunks/{command-j1ps5swj.js → model-resolver-16qtt0td.js} +15 -15
- package/dist/chunks/{command-2xgs0rjp.js → model-resolver-16t55p56.js} +17 -17
- package/dist/chunks/model-resolver-1ajxh176.js +26 -0
- package/dist/chunks/{command-kb1k1n05.js → model-resolver-1g0trf6w.js} +23 -18
- package/dist/chunks/{command-x3568k2f.js → model-resolver-1psxftkd.js} +24 -24
- package/dist/chunks/{command-0yfyxnbj.js → model-resolver-1tknn31b.js} +17 -17
- package/dist/chunks/{command-zvsvprng.js → model-resolver-25er9rbr.js} +11 -11
- package/dist/chunks/{command-yf4jcbx9.js → model-resolver-2a6rn6yr.js} +6 -6
- package/dist/chunks/{command-ef4pq4rq.js → model-resolver-2jhpg0z0.js} +13 -13
- package/dist/chunks/{command-pct1c8gm.js → model-resolver-2k71kv7p.js} +4 -4
- package/dist/chunks/{command-wa1x5gqd.js → model-resolver-2kgvm4ga.js} +29 -29
- package/dist/chunks/{command-6c31gg04.js → model-resolver-2r67f062.js} +34 -34
- package/dist/chunks/{command-3yqrkyy4.js → model-resolver-2sz974pf.js} +23 -23
- package/dist/chunks/{command-m7etpe19.js → model-resolver-2tj97pmg.js} +37 -37
- package/dist/chunks/{command-9tpen41z.js → model-resolver-377tx7tw.js} +35 -35
- package/dist/chunks/{command-56y3az4a.js → model-resolver-3c9v7fz9.js} +16 -16
- package/dist/chunks/{command-84ze4qhs.js → model-resolver-3h19w961.js} +13 -13
- package/dist/chunks/{command-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
- package/dist/chunks/{command-3hwn7j4h.js → model-resolver-3hwn7j4h.js} +2 -2
- package/dist/chunks/{command-bb705aa1.js → model-resolver-3kpnj44v.js} +68 -68
- package/dist/chunks/{command-2gcctbpp.js → model-resolver-3nx0ym5x.js} +18 -18
- package/dist/chunks/{command-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
- package/dist/chunks/{command-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
- package/dist/chunks/{command-x661k3y3.js → model-resolver-3y377wv9.js} +4 -4
- package/dist/chunks/{command-j36hwdkw.js → model-resolver-3yqxwn64.js} +45 -45
- package/dist/chunks/{command-3zsf4n22.js → model-resolver-3zsf4n22.js} +1 -1
- package/dist/chunks/{command-gt2z1exm.js → model-resolver-4134zm2w.js} +24 -24
- package/dist/chunks/model-resolver-43a422m2.js +257 -0
- package/dist/chunks/{command-mswa6128.js → model-resolver-46p5gayd.js} +1 -1
- package/dist/chunks/{command-ygdna4kr.js → model-resolver-47jkzegy.js} +5 -5
- package/dist/chunks/{command-h6310vsd.js → model-resolver-4v7ngy20.js} +4 -4
- package/dist/chunks/{command-bmgh3q8m.js → model-resolver-4vdcag56.js} +4 -4
- package/dist/chunks/{command-r94pvvab.js → model-resolver-54ma36ye.js} +4 -4
- package/dist/chunks/{command-zydxjw4b.js → model-resolver-5a4rr9ep.js} +33 -33
- package/dist/chunks/{command-5m9w47nd.js → model-resolver-5m9w47nd.js} +1 -1
- package/dist/chunks/{command-vgye044z.js → model-resolver-5v9zgnrp.js} +34 -34
- package/dist/chunks/{command-fb1vsn26.js → model-resolver-5ycagacq.js} +4 -4
- package/dist/chunks/{command-p37cw4rj.js → model-resolver-5yzzbxa7.js} +8 -8
- package/dist/chunks/{command-k253d0v5.js → model-resolver-65zyc1z3.js} +6 -6
- package/dist/chunks/{command-6827pfxn.js → model-resolver-6827pfxn.js} +1 -1
- package/dist/chunks/{command-mw6y76xd.js → model-resolver-6b89zbgc.js} +7 -7
- package/dist/chunks/{command-pvzb71g5.js → model-resolver-6dt87k62.js} +34 -34
- package/dist/chunks/{command-djc2hdbm.js → model-resolver-6fabj146.js} +11 -11
- package/dist/chunks/{command-15zv62fh.js → model-resolver-6gejepc3.js} +22 -22
- package/dist/chunks/{command-an9279zr.js → model-resolver-6hen7d63.js} +30 -30
- package/dist/chunks/model-resolver-6tdfsx48.js +517 -0
- package/dist/chunks/{command-6xb47vfp.js → model-resolver-6xb47vfp.js} +1 -1
- package/dist/chunks/{command-rmf492z6.js → model-resolver-6zyxy6vr.js} +46 -46
- package/dist/chunks/{command-5c7wq0sw.js → model-resolver-71jhssm2.js} +7 -7
- package/dist/chunks/{command-1yd7h3h8.js → model-resolver-73wr0wn5.js} +11 -11
- package/dist/chunks/{command-w1ba7bfx.js → model-resolver-76rvckpe.js} +5 -5
- package/dist/chunks/{command-775gj3j1.js → model-resolver-775gj3j1.js} +2 -2
- package/dist/chunks/{command-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
- package/dist/chunks/{command-rhyqmwwc.js → model-resolver-7dtw93gw.js} +31 -31
- package/dist/chunks/{command-6pc27hjz.js → model-resolver-7fkffz83.js} +8 -8
- package/dist/chunks/{command-g73w5qej.js → model-resolver-7j2zvw39.js} +16 -16
- package/dist/chunks/{command-t62r8r49.js → model-resolver-7jav1qs0.js} +23 -23
- package/dist/chunks/{command-a20pjse5.js → model-resolver-7v6vae4w.js} +3 -3
- package/dist/chunks/{command-n88bvnwb.js → model-resolver-7x4gmhf6.js} +10 -10
- package/dist/chunks/{command-6tphwxvp.js → model-resolver-84ha93mn.js} +18 -18
- package/dist/chunks/{command-84txncab.js → model-resolver-84txncab.js} +1 -1
- package/dist/chunks/{command-jq52wte9.js → model-resolver-88fjbbyn.js} +28 -28
- package/dist/chunks/{command-3r1d6b2h.js → model-resolver-8asjp7hq.js} +30 -30
- package/dist/chunks/{command-385fh67q.js → model-resolver-8h28ekbz.js} +15 -15
- package/dist/chunks/{command-8m6m0r52.js → model-resolver-8m6m0r52.js} +1 -1
- package/dist/chunks/{command-wktdpkdp.js → model-resolver-8m8th7g9.js} +25 -25
- package/dist/chunks/{command-qr7b2z7s.js → model-resolver-8mqj9xbr.js} +4 -4
- package/dist/chunks/{command-8mywswrd.js → model-resolver-8mywswrd.js} +1 -1
- package/dist/chunks/{command-my4zabxr.js → model-resolver-8n9x2wf6.js} +2 -2
- package/dist/chunks/{command-d7ndwx9z.js → model-resolver-8y8pe54n.js} +50 -50
- package/dist/chunks/{command-vjtq7ejx.js → model-resolver-91dnb5t9.js} +11 -11
- package/dist/chunks/{command-pp9jn5kx.js → model-resolver-94wae3rr.js} +20 -20
- package/dist/chunks/{command-n21ct7b2.js → model-resolver-953qjn97.js} +10 -10
- package/dist/chunks/{command-rmh16r2t.js → model-resolver-967benbv.js} +11 -11
- package/dist/chunks/{command-c198g0h1.js → model-resolver-984c2jwc.js} +3 -3
- package/dist/chunks/{command-sjq0w1dy.js → model-resolver-9gzkep83.js} +11 -11
- package/dist/chunks/{command-hfdh5dc7.js → model-resolver-9s481m48.js} +15 -15
- package/dist/chunks/{command-2a4xmc3t.js → model-resolver-af3s9495.js} +79 -79
- package/dist/chunks/{command-8rzhxpaa.js → model-resolver-ajasdxgg.js} +3 -3
- package/dist/chunks/{command-bxcc14q9.js → model-resolver-aq38rpj0.js} +9 -9
- package/dist/chunks/{command-05095fa7.js → model-resolver-awpkagge.js} +23 -23
- package/dist/chunks/{command-qm0v3jhh.js → model-resolver-b27vhd2z.js} +7 -7
- package/dist/chunks/{command-g2eyzg35.js → model-resolver-b6rs5hhk.js} +18 -18
- package/dist/chunks/{command-1jdt266a.js → model-resolver-bacj9t34.js} +9 -9
- package/dist/chunks/{command-0xgt1t5f.js → model-resolver-bdehnvdw.js} +38 -38
- package/dist/chunks/{command-bjx1sjef.js → model-resolver-bjx1sjef.js} +2 -2
- package/dist/chunks/{command-0c8wkbnb.js → model-resolver-bnzbpt6f.js} +15 -15
- package/dist/chunks/{command-2qmdv9pq.js → model-resolver-bp6qvqjj.js} +33 -33
- package/dist/chunks/{command-fhnqh9t2.js → model-resolver-bt2m3cq7.js} +36 -36
- package/dist/chunks/{command-bx3v92m9.js → model-resolver-bw7h8fsx.js} +14 -14
- package/dist/chunks/{command-bzeyqsqd.js → model-resolver-bzeyqsqd.js} +1 -1
- package/dist/chunks/{command-bgvrfqm6.js → model-resolver-c1f0ef0e.js} +14 -14
- package/dist/chunks/{command-c1fqxshp.js → model-resolver-c1fqxshp.js} +3 -3
- package/dist/chunks/{command-9mfdrtvq.js → model-resolver-cck04ss7.js} +9 -9
- package/dist/chunks/{command-baqyxak2.js → model-resolver-cefkz2r6.js} +4 -4
- package/dist/chunks/{command-9fyafw4g.js → model-resolver-cqq90766.js} +14 -14
- package/dist/chunks/{command-2gdhf4ep.js → model-resolver-crfkxg47.js} +2 -2
- package/dist/chunks/{command-2ht9mx02.js → model-resolver-d2c2r0dp.js} +13 -13
- package/dist/chunks/{command-sz18dr9d.js → model-resolver-d3v28z1t.js} +5 -5
- package/dist/chunks/{command-asa9eaah.js → model-resolver-d6acxb5p.js} +12 -12
- package/dist/chunks/{command-8dff8bqa.js → model-resolver-d9wzmzc3.js} +5 -5
- package/dist/chunks/{command-0grvjp2e.js → model-resolver-e0fw30bj.js} +19 -19
- package/dist/chunks/{command-hxz3bp73.js → model-resolver-e0vbf2p2.js} +17 -17
- package/dist/chunks/{command-n7t3y450.js → model-resolver-e2yycdng.js} +22 -22
- package/dist/chunks/{command-5qd3pb7m.js → model-resolver-e3qxr5gk.js} +2 -2
- package/dist/chunks/{command-fvgp290g.js → model-resolver-e6jb2a33.js} +8 -8
- package/dist/chunks/{command-e7gxy7fd.js → model-resolver-e7gxy7fd.js} +1 -1
- package/dist/chunks/{command-tkq9v61v.js → model-resolver-e930j4e4.js} +7 -7
- package/dist/chunks/{command-eej6y6fw.js → model-resolver-eej6y6fw.js} +2 -2
- package/dist/chunks/{command-ef5x83kb.js → model-resolver-ef5x83kb.js} +1 -1
- package/dist/chunks/{command-z2qvtray.js → model-resolver-eq20ba7x.js} +6 -6
- package/dist/chunks/{command-brds95yc.js → model-resolver-evrqa78t.js} +32 -32
- package/dist/chunks/{command-gj65pq0y.js → model-resolver-f1b05866.js} +2 -2
- package/dist/chunks/{command-fcy631f0.js → model-resolver-fcy631f0.js} +1 -1
- package/dist/chunks/{command-xfyaaxy5.js → model-resolver-fczeefh4.js} +5 -5
- package/dist/chunks/{command-cpneeje0.js → model-resolver-ft3hqk2c.js} +9 -9
- package/dist/chunks/{command-qggje9jn.js → model-resolver-g1thfskw.js} +32 -32
- package/dist/chunks/{command-0n4gbw3s.js → model-resolver-g1xbyxhn.js} +11 -11
- package/dist/chunks/{command-tjdqweme.js → model-resolver-g2qxcqrf.js} +181 -181
- package/dist/chunks/{command-z1q23cxf.js → model-resolver-g56rc5zd.js} +12 -12
- package/dist/chunks/{command-db5a3xpd.js → model-resolver-g5fw83fw.js} +10 -10
- package/dist/chunks/{command-fgvq5ykp.js → model-resolver-g90hexag.js} +50 -50
- package/dist/chunks/{command-0z7w8q86.js → model-resolver-gc8nt84s.js} +46 -46
- package/dist/chunks/{command-j03zn41z.js → model-resolver-gcvbawqp.js} +14 -14
- package/dist/chunks/{command-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
- package/dist/chunks/{command-27qsxf2d.js → model-resolver-gps0vx81.js} +88 -88
- package/dist/chunks/{command-aphfpn53.js → model-resolver-gv2b8e0t.js} +24 -24
- package/dist/chunks/{command-j6ktnsbj.js → model-resolver-gyk6nsb6.js} +12 -12
- package/dist/chunks/{command-3k0bgyc5.js → model-resolver-gzdnfxqj.js} +30 -30
- package/dist/chunks/{command-5fp6vwb6.js → model-resolver-h3g77kky.js} +20 -20
- package/dist/chunks/{command-an728vdg.js → model-resolver-h5kde8xe.js} +23 -23
- package/dist/chunks/{command-zpavnpw0.js → model-resolver-h6ag9tfj.js} +21 -21
- package/dist/chunks/{command-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
- package/dist/chunks/{command-w7sew22p.js → model-resolver-h9ta6350.js} +28 -28
- package/dist/chunks/{command-wn1z5f4t.js → model-resolver-he2rnee2.js} +1 -1
- package/dist/chunks/{command-220na3xh.js → model-resolver-hffg64zm.js} +4 -4
- package/dist/chunks/{command-hgz4x7wa.js → model-resolver-hgz4x7wa.js} +1 -1
- package/dist/chunks/{command-vb39zxh1.js → model-resolver-hktqavzm.js} +16 -16
- package/dist/chunks/{command-9rwhmys3.js → model-resolver-hkz952tc.js} +44 -44
- package/dist/chunks/{command-e234ef09.js → model-resolver-hr20tfp9.js} +24 -24
- package/dist/chunks/{command-njn2n5jy.js → model-resolver-htk2qbym.js} +6 -6
- package/dist/chunks/{command-xw5dbgmb.js → model-resolver-hz2tqvgg.js} +29 -29
- package/dist/chunks/{command-rwpvq48k.js → model-resolver-hzw94499.js} +25 -25
- package/dist/chunks/{command-5mh3tc9m.js → model-resolver-j75xb4yb.js} +1 -1
- package/dist/chunks/{command-622w9434.js → model-resolver-jqyzchqw.js} +6 -6
- package/dist/chunks/{command-0cz7970t.js → model-resolver-jvfpmyx9.js} +18 -18
- package/dist/chunks/{command-d43tgzm4.js → model-resolver-k7myrtme.js} +9 -9
- package/dist/chunks/{command-hey9g07n.js → model-resolver-k9kzfgz6.js} +23 -23
- package/dist/chunks/{command-ed65y2xt.js → model-resolver-kcq0jhd1.js} +25 -25
- package/dist/chunks/{command-y0jhh126.js → model-resolver-kjdm35cs.js} +5 -5
- package/dist/chunks/{command-rtjf12cr.js → model-resolver-km4rycv7.js} +24 -24
- package/dist/chunks/{command-f4b1a4m9.js → model-resolver-kmq3cj41.js} +22 -22
- package/dist/chunks/{command-98mtcx2z.js → model-resolver-kntzm8s7.js} +10 -10
- package/dist/chunks/{command-dsmb6j4j.js → model-resolver-kpcbcdy7.js} +4 -4
- package/dist/chunks/{command-pp79t3cy.js → model-resolver-kqv3x6rj.js} +9 -9
- package/dist/chunks/{command-vjtswx8y.js → model-resolver-kw1e5yb6.js} +25 -25
- package/dist/chunks/{command-kwb1v3vj.js → model-resolver-kwb1v3vj.js} +1 -1
- package/dist/chunks/{command-0vb0cg2n.js → model-resolver-m0k3p8s9.js} +26 -26
- package/dist/chunks/{command-zr2ps911.js → model-resolver-m2b6v9cc.js} +11 -11
- package/dist/chunks/{command-b32ay7gd.js → model-resolver-m3bqnvcv.js} +8 -8
- package/dist/chunks/{command-g3kxpvs4.js → model-resolver-m9gxmxmt.js} +12 -12
- package/dist/chunks/{command-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
- package/dist/chunks/{command-maspj1v3.js → model-resolver-maspj1v3.js} +1 -1
- package/dist/chunks/{command-avssq4vf.js → model-resolver-mbq1c8qd.js} +19 -19
- package/dist/chunks/{command-5s6h66r9.js → model-resolver-mcexwfpj.js} +12 -12
- package/dist/chunks/{command-604rtc6f.js → model-resolver-mcv1jzh9.js} +21 -21
- package/dist/chunks/{command-rx89xx9n.js → model-resolver-mmsbh3wq.js} +3 -3
- package/dist/chunks/{command-t1nb18tz.js → model-resolver-mnvhm04t.js} +38 -38
- package/dist/chunks/{command-naw4xxfq.js → model-resolver-mq8c8wma.js} +23 -23
- package/dist/chunks/{command-kg4apzy2.js → model-resolver-n62bhn6h.js} +29 -29
- package/dist/chunks/{command-ce60aw2j.js → model-resolver-nhpkjp8j.js} +11 -11
- package/dist/chunks/{command-e80seqcp.js → model-resolver-nma959mg.js} +3 -3
- package/dist/chunks/{command-s4nj2b0b.js → model-resolver-nme8cjen.js} +6 -6
- package/dist/chunks/{command-g5wn2q2s.js → model-resolver-nvq1gv7c.js} +11 -11
- package/dist/chunks/{command-z8bsayw1.js → model-resolver-nvqyc4x4.js} +21 -21
- package/dist/chunks/{command-hq3c8me3.js → model-resolver-ny8edt06.js} +4 -4
- package/dist/chunks/{command-v13b12ef.js → model-resolver-nz56sr1f.js} +5 -5
- package/dist/chunks/{command-6jtaxcks.js → model-resolver-nzr8rkf6.js} +13 -13
- package/dist/chunks/{command-zrw8628a.js → model-resolver-pbptwtxn.js} +18 -18
- package/dist/chunks/model-resolver-pf31ssb9.js +18 -0
- package/dist/chunks/{command-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
- package/dist/chunks/{command-pknna89w.js → model-resolver-pknna89w.js} +1 -1
- package/dist/chunks/{command-bg0682zv.js → model-resolver-pqrhrnaw.js} +11 -11
- package/dist/chunks/{command-48jj4jxg.js → model-resolver-prcvzp3b.js} +23 -23
- package/dist/chunks/{command-mh22khwx.js → model-resolver-pty45f7z.js} +20 -20
- package/dist/chunks/{command-tw95hwns.js → model-resolver-py4ye5jk.js} +50 -50
- package/dist/chunks/{command-1ks1qykk.js → model-resolver-q0nrsbdj.js} +10 -10
- package/dist/chunks/{command-1387w9ct.js → model-resolver-q11cbr1m.js} +24 -24
- package/dist/chunks/{command-haej02k4.js → model-resolver-q4v9s1ey.js} +10 -10
- package/dist/chunks/{command-4xfaac4p.js → model-resolver-q4w1a1ev.js} +13 -13
- package/dist/chunks/{command-6qjch3xb.js → model-resolver-q4x9wazd.js} +3 -3
- package/dist/chunks/{command-53216tw9.js → model-resolver-q63t359z.js} +6 -6
- package/dist/chunks/{command-zj1ec9ty.js → model-resolver-q6jqqp9b.js} +5 -5
- package/dist/chunks/{command-v9tzeyfp.js → model-resolver-qe9z13v3.js} +18 -18
- package/dist/chunks/{command-qgn6gcr1.js → model-resolver-qgn6gcr1.js} +1 -1
- package/dist/chunks/{command-x2h8bnd2.js → model-resolver-qm7j4bgw.js} +45 -45
- package/dist/chunks/{command-qnc92qwc.js → model-resolver-qnc92qwc.js} +1 -1
- package/dist/chunks/{command-jkndgnpn.js → model-resolver-qprs721h.js} +17 -17
- package/dist/chunks/{command-drwq78ky.js → model-resolver-qqeeq2t9.js} +7 -7
- package/dist/chunks/{command-7wkzvct8.js → model-resolver-qrv63xef.js} +5 -5
- package/dist/chunks/{command-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
- package/dist/chunks/{command-mc8h1syp.js → model-resolver-qswqrcwe.js} +3 -3
- package/dist/chunks/{command-09kr4fhv.js → model-resolver-qt2d63t9.js} +4 -4
- package/dist/chunks/{command-2a88t129.js → model-resolver-r799sh1q.js} +23 -23
- package/dist/chunks/{command-5xnwhm0z.js → model-resolver-rba33dr3.js} +17 -17
- package/dist/chunks/{command-rdw6cm16.js → model-resolver-rdw6cm16.js} +1 -1
- package/dist/chunks/{command-rert0e01.js → model-resolver-rert0e01.js} +2 -2
- package/dist/chunks/{command-3gaxmgjd.js → model-resolver-rf6pxv7z.js} +11 -11
- package/dist/chunks/{command-rj3eygr5.js → model-resolver-rj3eygr5.js} +2 -2
- package/dist/chunks/{command-mn47nv5k.js → model-resolver-rsa08myv.js} +35 -35
- package/dist/chunks/{command-93fzsdqz.js → model-resolver-rscvxc63.js} +18 -18
- package/dist/chunks/{command-zs18rbfx.js → model-resolver-s30r45k4.js} +5 -5
- package/dist/chunks/{command-sa8ekw3f.js → model-resolver-sa8ekw3f.js} +2 -2
- package/dist/chunks/{command-4zhk6gck.js → model-resolver-sctb5je3.js} +19 -19
- package/dist/chunks/{command-4w5f3qm5.js → model-resolver-sk5hrgtc.js} +4 -4
- package/dist/chunks/{command-ye5e9ygh.js → model-resolver-smak4gza.js} +17 -17
- package/dist/chunks/{command-v0t8kgzm.js → model-resolver-sr8at2s6.js} +18 -18
- package/dist/chunks/{command-0xg0skbm.js → model-resolver-svmspn7k.js} +4 -4
- package/dist/chunks/{command-gd86bjwa.js → model-resolver-syv183bv.js} +9 -9
- package/dist/chunks/{command-syv4x271.js → model-resolver-syv4x271.js} +1 -1
- package/dist/chunks/{command-zrqhmf6p.js → model-resolver-t1ns4htq.js} +15 -15
- package/dist/chunks/{command-gzwfafjp.js → model-resolver-t5205bkj.js} +11 -11
- package/dist/chunks/{command-s8d7rejh.js → model-resolver-t550f9t1.js} +4 -4
- package/dist/chunks/{command-qjk7pmd1.js → model-resolver-t5j7jw81.js} +5 -5
- package/dist/chunks/{command-nbpkwy47.js → model-resolver-t67qckpp.js} +17 -17
- package/dist/chunks/{command-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
- package/dist/chunks/{command-tcezcvh9.js → model-resolver-tcezcvh9.js} +1 -1
- package/dist/chunks/{command-tdstcens.js → model-resolver-tdstcens.js} +1 -1
- package/dist/chunks/{command-yj7k2rcj.js → model-resolver-tjkhcpzj.js} +6 -6
- package/dist/chunks/{command-tm0kqsz3.js → model-resolver-tm0kqsz3.js} +1 -1
- package/dist/chunks/{command-g54sgenx.js → model-resolver-tt71e4t5.js} +19 -19
- package/dist/chunks/{command-fn9t717r.js → model-resolver-tt8gc4fv.js} +6 -6
- package/dist/chunks/{command-da69ngs0.js → model-resolver-ttrv0ee4.js} +21 -21
- package/dist/chunks/{command-v210v162.js → model-resolver-tx0gtb9m.js} +9 -9
- package/dist/chunks/{command-tyytaxap.js → model-resolver-tyytaxap.js} +1 -1
- package/dist/chunks/{command-v7p4zvkq.js → model-resolver-v7p4zvkq.js} +2 -2
- package/dist/chunks/{command-n135qwgn.js → model-resolver-v9t9bmqx.js} +28 -28
- package/dist/chunks/{command-hsjvmpjh.js → model-resolver-vbrars45.js} +8 -8
- package/dist/chunks/{command-veqvce7d.js → model-resolver-veqvce7d.js} +1 -1
- package/dist/chunks/{command-1xcqb8y9.js → model-resolver-vhbqgehn.js} +56 -56
- package/dist/chunks/{command-vzs5sf6e.js → model-resolver-vzs5sf6e.js} +1 -1
- package/dist/chunks/{command-exg57wy8.js → model-resolver-w232x9j5.js} +15 -15
- package/dist/chunks/{command-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
- package/dist/chunks/{command-dpsmw30v.js → model-resolver-w55jn1kt.js} +8 -8
- package/dist/chunks/{command-wd87259q.js → model-resolver-wd87259q.js} +1 -1
- package/dist/chunks/{command-6rm67adk.js → model-resolver-wgwbykmc.js} +13 -13
- package/dist/chunks/{command-7hw33090.js → model-resolver-wmbhbf7k.js} +22 -22
- package/dist/chunks/{command-7fydwwh4.js → model-resolver-wmsgs64j.js} +10 -10
- package/dist/chunks/{command-z71zmefb.js → model-resolver-wpn34573.js} +21 -21
- package/dist/chunks/{command-a8hjw2pw.js → model-resolver-wv50gdba.js} +30 -30
- package/dist/chunks/{command-v2ns1dvt.js → model-resolver-x24jdsad.js} +6 -6
- package/dist/chunks/{command-f4j6r664.js → model-resolver-xcypc51k.js} +45 -45
- package/dist/chunks/{command-37eaq4pg.js → model-resolver-xjy4dz85.js} +20 -20
- package/dist/chunks/{command-x4t6fkjq.js → model-resolver-xkgtb7n5.js} +45 -45
- package/dist/chunks/{command-n07afgf2.js → model-resolver-xq54jxm8.js} +11 -11
- package/dist/chunks/{command-hhhc48xm.js → model-resolver-xztctcj7.js} +11 -11
- package/dist/chunks/{command-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
- package/dist/chunks/{command-wzmp8b6n.js → model-resolver-y4pqvk03.js} +5 -5
- package/dist/chunks/{command-hsn4nmqy.js → model-resolver-y5cvjd5e.js} +7 -7
- package/dist/chunks/{command-y71avatq.js → model-resolver-y71avatq.js} +1 -1
- package/dist/chunks/{command-67kdra4q.js → model-resolver-ya7hh75j.js} +3 -3
- package/dist/chunks/{command-p26dmfsa.js → model-resolver-yentwms3.js} +5 -5
- package/dist/chunks/{command-z0bkrqjs.js → model-resolver-z0bkrqjs.js} +1 -1
- package/dist/chunks/{command-z18fegx4.js → model-resolver-z18fegx4.js} +1 -1
- package/dist/chunks/{command-s10de7sg.js → model-resolver-z1cx7jj0.js} +45 -45
- package/dist/chunks/{command-251hxpd6.js → model-resolver-z2rrnsn5.js} +2 -2
- package/dist/chunks/{command-0t9wd588.js → model-resolver-z733aene.js} +8 -8
- package/dist/chunks/{command-rdtz8wvy.js → model-resolver-zenctmbx.js} +33 -33
- package/dist/chunks/{command-v2xqde73.js → model-resolver-zpz5hs3v.js} +8 -8
- package/dist/chunks/{command-jb04bhbq.js → model-resolver-zqbntp8m.js} +13 -13
- package/dist/chunks/{command-zr2ceqn5.js → model-resolver-zr2ceqn5.js} +1 -1
- package/dist/chunks/{command-k76fn4kw.js → model-resolver-zvt5dnpc.js} +4 -4
- package/dist/chunks/{command-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
- package/dist/chunks/{command-94hhby22.js → model-resolver-zyhj209a.js} +18 -18
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- 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 +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- package/dist/git.js +10 -10
- 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 +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +167 -140
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- 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 +113 -113
- 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 +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +123 -123
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +90 -90
- 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 +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- 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 +126 -126
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/command-4v7qdvcn.js +0 -18
- package/dist/chunks/command-6ydndmq1.js +0 -257
- package/dist/chunks/command-bb572888.js +0 -26
- package/dist/chunks/command-mnrpn436.js +0 -517
- /package/dist/chunks/{command-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{command-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
- /package/dist/chunks/{command-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
- /package/dist/chunks/{command-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
- /package/dist/chunks/{command-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{command-24dcb14g.js → model-resolver-24dcb14g.js} +0 -0
- /package/dist/chunks/{command-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
- /package/dist/chunks/{command-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
- /package/dist/chunks/{command-2bv980vf.js → model-resolver-2bv980vf.js} +0 -0
- /package/dist/chunks/{command-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{command-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
- /package/dist/chunks/{command-3asan66x.js → model-resolver-3asan66x.js} +0 -0
- /package/dist/chunks/{command-3t0ybcrp.js → model-resolver-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{command-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
- /package/dist/chunks/{command-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
- /package/dist/chunks/{command-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
- /package/dist/chunks/{command-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
- /package/dist/chunks/{command-4vcrnpx2.js → model-resolver-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{command-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
- /package/dist/chunks/{command-53557ph1.js → model-resolver-53557ph1.js} +0 -0
- /package/dist/chunks/{command-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
- /package/dist/chunks/{command-6prwharc.js → model-resolver-6prwharc.js} +0 -0
- /package/dist/chunks/{command-6q2bdcd1.js → model-resolver-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{command-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
- /package/dist/chunks/{command-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
- /package/dist/chunks/{command-822emrt2.js → model-resolver-822emrt2.js} +0 -0
- /package/dist/chunks/{command-84wd9syh.js → model-resolver-84wd9syh.js} +0 -0
- /package/dist/chunks/{command-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
- /package/dist/chunks/{command-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
- /package/dist/chunks/{command-8wj87zfr.js → model-resolver-8wj87zfr.js} +0 -0
- /package/dist/chunks/{command-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
- /package/dist/chunks/{command-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{command-a6k6eb26.js → model-resolver-a6k6eb26.js} +0 -0
- /package/dist/chunks/{command-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
- /package/dist/chunks/{command-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
- /package/dist/chunks/{command-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{command-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
- /package/dist/chunks/{command-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{command-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{command-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
- /package/dist/chunks/{command-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{command-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
- /package/dist/chunks/{command-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{command-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
- /package/dist/chunks/{command-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
- /package/dist/chunks/{command-df08tz66.js → model-resolver-df08tz66.js} +0 -0
- /package/dist/chunks/{command-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
- /package/dist/chunks/{command-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
- /package/dist/chunks/{command-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
- /package/dist/chunks/{command-ec1grn59.js → model-resolver-ec1grn59.js} +0 -0
- /package/dist/chunks/{command-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
- /package/dist/chunks/{command-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
- /package/dist/chunks/{command-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
- /package/dist/chunks/{command-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{command-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
- /package/dist/chunks/{command-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
- /package/dist/chunks/{command-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
- /package/dist/chunks/{command-g86h250q.js → model-resolver-g86h250q.js} +0 -0
- /package/dist/chunks/{command-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
- /package/dist/chunks/{command-gftt206x.js → model-resolver-gftt206x.js} +0 -0
- /package/dist/chunks/{command-hcxmzztb.js → model-resolver-hcxmzztb.js} +0 -0
- /package/dist/chunks/{command-hk9envan.js → model-resolver-hk9envan.js} +0 -0
- /package/dist/chunks/{command-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
- /package/dist/chunks/{command-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{command-jjkms2e6.js → model-resolver-jjkms2e6.js} +0 -0
- /package/dist/chunks/{command-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{command-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{command-jze0r7bz.js → model-resolver-jze0r7bz.js} +0 -0
- /package/dist/chunks/{command-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{command-m18g726c.js → model-resolver-m18g726c.js} +0 -0
- /package/dist/chunks/{command-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
- /package/dist/chunks/{command-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
- /package/dist/chunks/{command-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
- /package/dist/chunks/{command-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
- /package/dist/chunks/{command-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
- /package/dist/chunks/{command-pkyv6v7h.js → model-resolver-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{command-pyv0edze.js → model-resolver-pyv0edze.js} +0 -0
- /package/dist/chunks/{command-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
- /package/dist/chunks/{command-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
- /package/dist/chunks/{command-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
- /package/dist/chunks/{command-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
- /package/dist/chunks/{command-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
- /package/dist/chunks/{command-qg3g05ea.js → model-resolver-qg3g05ea.js} +0 -0
- /package/dist/chunks/{command-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
- /package/dist/chunks/{command-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{command-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{command-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
- /package/dist/chunks/{command-ve7vex1e.js → model-resolver-ve7vex1e.js} +0 -0
- /package/dist/chunks/{command-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
- /package/dist/chunks/{command-wc3fc9cn.js → model-resolver-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{command-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
- /package/dist/chunks/{command-wjj7prxr.js → model-resolver-wjj7prxr.js} +0 -0
- /package/dist/chunks/{command-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
- /package/dist/chunks/{command-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
- /package/dist/chunks/{command-x61499pn.js → model-resolver-x61499pn.js} +0 -0
- /package/dist/chunks/{command-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
- /package/dist/chunks/{command-y8f7s663.js → model-resolver-y8f7s663.js} +0 -0
- /package/dist/chunks/{command-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{command-ym463w8f.js → model-resolver-ym463w8f.js} +0 -0
- /package/dist/chunks/{command-z5v4ffb3.js → model-resolver-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{command-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-m2b6v9cc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-4vdcag56.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event21
|
|
10
|
+
} from "./model-resolver-v9t9bmqx.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./model-resolver-3y377wv9.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID16,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-h9ta6350.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service17
|
|
21
|
+
} from "./model-resolver-q0nrsbdj.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./model-resolver-6hen7d63.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./model-resolver-03f7gaj9.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
resolve4
|
|
33
|
+
} from "./model-resolver-65zyc1z3.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
35
|
+
ID10,
|
|
36
36
|
Input15,
|
|
37
37
|
Response2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./model-resolver-2sz974pf.js";
|
|
39
39
|
|
|
40
40
|
// src/plugin/provider/opencode.ts
|
|
41
41
|
import {
|
|
@@ -73,7 +73,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
|
|
|
73
73
|
var RemoteResponse = Schema.Struct({
|
|
74
74
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
75
75
|
websearch: Schema.Struct({
|
|
76
|
-
providerID:
|
|
76
|
+
providerID: ID10
|
|
77
77
|
}).pipe(Schema.optional),
|
|
78
78
|
mcp: Schema.Struct({
|
|
79
79
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -124,7 +124,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
124
124
|
}
|
|
125
125
|
function oauth(http) {
|
|
126
126
|
return {
|
|
127
|
-
integrationID:
|
|
127
|
+
integrationID: ID16.make("opencode"),
|
|
128
128
|
method: {
|
|
129
129
|
id: methodID,
|
|
130
130
|
type: "oauth",
|
|
@@ -191,7 +191,7 @@ var OpencodePlugin2 = define({
|
|
|
191
191
|
const bus = yield* Service85;
|
|
192
192
|
const client = yield* HttpClient.HttpClient;
|
|
193
193
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
194
|
-
const managed = yield*
|
|
194
|
+
const managed = yield* Service17;
|
|
195
195
|
const scope = yield* Scope.Scope;
|
|
196
196
|
const loading = Semaphore.makeUnsafe(1);
|
|
197
197
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -245,7 +245,7 @@ var OpencodePlugin2 = define({
|
|
|
245
245
|
providers.update(providerID, (provider) => {
|
|
246
246
|
if (source && source.provider !== provider)
|
|
247
247
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
248
|
-
provider.integrationID =
|
|
248
|
+
provider.integrationID = ID16.make("opencode");
|
|
249
249
|
if (item.canonical !== undefined)
|
|
250
250
|
provider.canonical = item.canonical;
|
|
251
251
|
if (item.name !== undefined)
|
|
@@ -283,7 +283,7 @@ var OpencodePlugin2 = define({
|
|
|
283
283
|
providers.models.update(providerID, modelID, (model) => {
|
|
284
284
|
if (config.capabilities?.reasoning !== undefined)
|
|
285
285
|
model.variants = [
|
|
286
|
-
...
|
|
286
|
+
...resolve4({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
|
|
287
287
|
];
|
|
288
288
|
for (const variant of config.variants ?? []) {
|
|
289
289
|
let existing = model.variants.find((item) => item.id === variant.id);
|
|
@@ -319,7 +319,7 @@ var OpencodePlugin2 = define({
|
|
|
319
319
|
sourceConnection: snapshot.connection
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
const item = providers.get(
|
|
322
|
+
const item = providers.get(ID13.opencode);
|
|
323
323
|
if (!item)
|
|
324
324
|
return;
|
|
325
325
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -331,7 +331,7 @@ var OpencodePlugin2 = define({
|
|
|
331
331
|
});
|
|
332
332
|
});
|
|
333
333
|
yield* ctx.model.transform((models) => {
|
|
334
|
-
const item = models.provider.get(
|
|
334
|
+
const item = models.provider.get(ID13.opencode);
|
|
335
335
|
if (!item)
|
|
336
336
|
return;
|
|
337
337
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -426,7 +426,7 @@ var OpencodePlugin2 = define({
|
|
|
426
426
|
});
|
|
427
427
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
428
428
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
429
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
429
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
430
430
|
});
|
|
431
431
|
yield* guard(snapshot);
|
|
432
432
|
const polling = yield* FiberHandle.make();
|
|
@@ -437,7 +437,7 @@ var OpencodePlugin2 = define({
|
|
|
437
437
|
onlyIfMissing: true
|
|
438
438
|
});
|
|
439
439
|
});
|
|
440
|
-
yield* bus.subscribe(
|
|
440
|
+
yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
441
441
|
yield* poll();
|
|
442
442
|
})
|
|
443
443
|
});
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
provider2,
|
|
3
3
|
model2,
|
|
4
4
|
compatibleModel2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./model-resolver-tm0kqsz3.js";
|
|
6
6
|
import {
|
|
7
7
|
aisdk2,
|
|
8
8
|
packageName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-6hen7d63.js";
|
|
10
10
|
import {
|
|
11
11
|
Capabilities2,
|
|
12
12
|
compatibility2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./model-resolver-03f7gaj9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/v1/config/migrate.ts
|
|
19
19
|
var exports_migrate = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
4
|
+
var ID9 = Session.ID;
|
|
5
5
|
var Info19 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID9, Info19, SessionSchema2 };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-4vdcag56.js";
|
|
8
|
+
import {
|
|
9
|
+
Event21,
|
|
10
|
+
Service84,
|
|
11
|
+
node88
|
|
12
|
+
} from "./model-resolver-v9t9bmqx.js";
|
|
8
13
|
import {
|
|
9
|
-
Event18,
|
|
10
14
|
Service78,
|
|
11
15
|
node82
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service82,
|
|
15
|
-
node86
|
|
16
|
-
} from "./command-5xnwhm0z.js";
|
|
16
|
+
} from "./model-resolver-rba33dr3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service71,
|
|
19
|
+
node73
|
|
20
|
+
} from "./model-resolver-1psxftkd.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID17,
|
|
23
|
+
Service83,
|
|
24
|
+
node87
|
|
25
|
+
} from "./model-resolver-7jav1qs0.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./model-resolver-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID16,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service82,
|
|
34
|
+
node86
|
|
35
|
+
} from "./model-resolver-h9ta6350.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError2,
|
|
45
|
+
Options: () => Options2,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service29,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured2,
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node32
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError2 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service29 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options2 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
114
|
+
var layer15 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service78;
|
|
116
|
+
const environment = yield* Service71;
|
|
117
117
|
const bus = yield* Service85;
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
118
|
+
const forms = yield* Service83;
|
|
119
|
+
const integration = yield* Service82;
|
|
120
|
+
const credentials = yield* Service84;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID16.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service84, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError2({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service84, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID17.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service71, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service29.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured2(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service29,
|
|
536
|
+
layer: layer15(options),
|
|
537
|
+
deps: [node82, node73, node89, node87, node86, node88]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node32 = configured2();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError2, ToolCallError2, Service29, Options2, layer15, configured2, node32, exports_mcp4 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service67
|
|
4
|
+
} from "./model-resolver-z1cx7jj0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service31
|
|
7
|
+
} from "./model-resolver-gzdnfxqj.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/snapshot.ts
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin19
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin19 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service67;
|
|
27
|
+
const snapshot = yield* Service31;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin46 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin19, exports_snapshot };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service57
|
|
3
|
+
} from "./model-resolver-g90hexag.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
19
|
+
Input: () => Input3,
|
|
20
20
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin38,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description2,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name3
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
33
|
+
var name3 = "webfetch";
|
|
34
34
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description2 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input3 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input11 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input3.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin38 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service57;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name3,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description2,
|
|
104
|
+
input: Input3,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin27 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name3,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name3, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description2, Input3, Plugin38, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-resolver-qswqrcwe.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service81,
|
|
17
|
+
node: () => node85
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service81 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service86).db;
|
|
26
|
-
return
|
|
26
|
+
return Service81.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node85 = makeGlobalNode({ service: Service81, layer, deps: [node90] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service81, node85, exports_kv };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Info18
|
|
7
|
+
} from "./model-resolver-kqv3x6rj.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigAgentV1: () =>
|
|
16
|
-
Info: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
ConfigAgentV1: () => exports_agent4,
|
|
16
|
+
Info: () => Info17
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -45,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
45
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
46
46
|
}),
|
|
47
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
48
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info18)
|
|
49
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
50
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
51
51
|
var normalize = (agent) => {
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info17 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info17, exports_agent4 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-71jhssm2.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-j75xb4yb.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|