@opencode/core 0.0.0-dev-19682 → 0.0.0-dev-19684
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 +82 -82
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{persistent-pty-t8tppdbr.js → shell-02scvt0n.js} +15 -15
- package/dist/chunks/{persistent-pty-zwyvjxyb.js → shell-05dbw8h7.js} +8 -8
- package/dist/chunks/{persistent-pty-q8dvbymb.js → shell-0arp08hh.js} +17 -17
- package/dist/chunks/{persistent-pty-0paq2nw3.js → shell-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-cw2220fx.js → shell-0pkw8ty1.js} +29 -29
- package/dist/chunks/{persistent-pty-0q0f95c6.js → shell-0q0f95c6.js} +1 -1
- package/dist/chunks/{persistent-pty-pk54j106.js → shell-0vk4a8bm.js} +33 -33
- package/dist/chunks/{persistent-pty-x8d4tdmm.js → shell-13tqay2c.js} +33 -33
- package/dist/chunks/{persistent-pty-vpy6tv1g.js → shell-13y8bxtp.js} +18 -18
- package/dist/chunks/{persistent-pty-yp2x3t23.js → shell-1acjjqhc.js} +4 -4
- package/dist/chunks/{persistent-pty-1dazxqgg.js → shell-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-bw0vgseb.js → shell-1fcrsx1q.js} +8 -8
- package/dist/chunks/{persistent-pty-jt0mfgqw.js → shell-1vmngn2p.js} +47 -47
- package/dist/chunks/{persistent-pty-18sxed07.js → shell-1y02ekvx.js} +36 -36
- package/dist/chunks/{persistent-pty-7pjh2c00.js → shell-1z5xhg71.js} +20 -20
- package/dist/chunks/{persistent-pty-21r38tys.js → shell-21r38tys.js} +1 -1
- package/dist/chunks/{persistent-pty-2402vzrj.js → shell-2402vzrj.js} +1 -1
- package/dist/chunks/{persistent-pty-z63w68vq.js → shell-29x78va6.js} +6 -6
- package/dist/chunks/{persistent-pty-gxq6akdt.js → shell-29xvb5bk.js} +4 -4
- package/dist/chunks/{persistent-pty-xxg060p8.js → shell-2a482amk.js} +11 -11
- package/dist/chunks/{persistent-pty-2a5m3afh.js → shell-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-5vb3py7h.js → shell-2bzw6bfd.js} +4 -4
- package/dist/chunks/{persistent-pty-cpy6gm2a.js → shell-2d57kztd.js} +6 -6
- package/dist/chunks/{persistent-pty-57ez7d0k.js → shell-2fgn2we9.js} +9 -9
- package/dist/chunks/{persistent-pty-2k8khapm.js → shell-2k8khapm.js} +1 -1
- package/dist/chunks/{persistent-pty-e2wwkkr3.js → shell-2kjmkjjh.js} +25 -25
- package/dist/chunks/{persistent-pty-29ekt46m.js → shell-2vpn5atd.js} +25 -25
- package/dist/chunks/{persistent-pty-rgfqswwp.js → shell-353ec5xa.js} +5 -5
- package/dist/chunks/{persistent-pty-w8hnngn5.js → shell-36prqbxs.js} +7 -7
- package/dist/chunks/{persistent-pty-s7cyq3j7.js → shell-3egzarba.js} +6 -6
- package/dist/chunks/{persistent-pty-3fc6dm20.js → shell-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → shell-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-ep6z9mt6.js → shell-3k0nn0ne.js} +11 -11
- package/dist/chunks/{persistent-pty-3smtnn6g.js → shell-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → shell-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-ky788973.js → shell-3vwe38gh.js} +8 -8
- package/dist/chunks/{persistent-pty-c78bbtc9.js → shell-3w0fmcng.js} +5 -5
- package/dist/chunks/{persistent-pty-xrzs32wx.js → shell-3xyw1x35.js} +30 -30
- package/dist/chunks/{persistent-pty-6ng8rhkc.js → shell-421r5d5v.js} +12 -12
- package/dist/chunks/{persistent-pty-hsv3rq22.js → shell-465w2j5b.js} +4 -4
- package/dist/chunks/{persistent-pty-0tvcf6qn.js → shell-497trp6d.js} +24 -24
- package/dist/chunks/{persistent-pty-4xmqhafq.js → shell-4f127xgv.js} +15 -15
- package/dist/chunks/{persistent-pty-gamcf2tt.js → shell-4hqjaqv1.js} +21 -21
- package/dist/chunks/{persistent-pty-p91ayak9.js → shell-4m2e3er3.js} +9 -9
- package/dist/chunks/{persistent-pty-bbctgmqj.js → shell-4mqp54gq.js} +3 -3
- package/dist/chunks/{persistent-pty-tvysf4y4.js → shell-50aape0s.js} +5 -5
- package/dist/chunks/{persistent-pty-kszyjgag.js → shell-521mg670.js} +23 -23
- package/dist/chunks/{persistent-pty-56gdpj1q.js → shell-56gdpj1q.js} +2 -2
- package/dist/chunks/{persistent-pty-gb7dj5em.js → shell-58tcc6dc.js} +36 -36
- package/dist/chunks/{persistent-pty-1drb93k1.js → shell-59ckvsfw.js} +22 -22
- package/dist/chunks/{persistent-pty-e2ky9s5t.js → shell-59msrm9x.js} +54 -54
- package/dist/chunks/{persistent-pty-5daktx2q.js → shell-5daktx2q.js} +1 -1
- package/dist/chunks/{persistent-pty-wn348gvk.js → shell-5g8n0xjn.js} +35 -35
- package/dist/chunks/shell-5h6q456q.js +247 -0
- package/dist/chunks/{persistent-pty-e550c21h.js → shell-5mjd0tcc.js} +17 -17
- package/dist/chunks/{persistent-pty-wbyzgfj3.js → shell-5pak3zwf.js} +19 -19
- package/dist/chunks/{persistent-pty-5t3nmthw.js → shell-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-xk76jmgb.js → shell-60scm90h.js} +3 -3
- package/dist/chunks/{persistent-pty-t68jr2fk.js → shell-60vgchqy.js} +17 -17
- package/dist/chunks/{persistent-pty-26k5bknw.js → shell-64kphnzf.js} +4 -4
- package/dist/chunks/{persistent-pty-egja3w3k.js → shell-650p1vgr.js} +11 -11
- package/dist/chunks/{persistent-pty-669tq793.js → shell-669tq793.js} +1 -1
- package/dist/chunks/{persistent-pty-rdt39d18.js → shell-6769hash.js} +16 -16
- package/dist/chunks/{persistent-pty-4ttbd9rb.js → shell-68rq69k6.js} +17 -17
- package/dist/chunks/{persistent-pty-c1q333ww.js → shell-6a0k7haa.js} +12 -12
- package/dist/chunks/{persistent-pty-5cmxdwv8.js → shell-6bsje7ws.js} +3 -3
- package/dist/chunks/{persistent-pty-t2tcessw.js → shell-6ch53rs1.js} +20 -20
- package/dist/chunks/shell-6kdq0pjd.js +4 -0
- package/dist/chunks/{persistent-pty-6msgmcgs.js → shell-6msgmcgs.js} +1 -1
- package/dist/chunks/{persistent-pty-0457sjwy.js → shell-6qbs7j8e.js} +9 -9
- package/dist/chunks/{persistent-pty-4n4k0cnh.js → shell-72j6m2ks.js} +4 -4
- package/dist/chunks/{persistent-pty-qa0ka09q.js → shell-75yx4wx5.js} +2 -2
- package/dist/chunks/{persistent-pty-7bmhse3q.js → shell-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-sxwb65hc.js → shell-7h1fndp2.js} +24 -24
- package/dist/chunks/{persistent-pty-3gmdw0js.js → shell-7yvm4rav.js} +10 -10
- package/dist/chunks/{persistent-pty-zqew8r2r.js → shell-7zrdb7rw.js} +12 -12
- package/dist/chunks/{persistent-pty-hesrcs9n.js → shell-80pjn6xv.js} +17 -17
- package/dist/chunks/{persistent-pty-3zc93ghn.js → shell-89awe219.js} +22 -22
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → shell-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-e4zvn0y8.js → shell-8k29n9b8.js} +11 -11
- package/dist/chunks/{persistent-pty-8p4f9s12.js → shell-8p4f9s12.js} +2 -2
- package/dist/chunks/{persistent-pty-z8rhdvzk.js → shell-8qmgx6wx.js} +17 -17
- package/dist/chunks/{persistent-pty-ehjgfrb8.js → shell-8zds8w79.js} +25 -25
- package/dist/chunks/{persistent-pty-0zbmh4se.js → shell-938kg93p.js} +30 -30
- package/dist/chunks/{persistent-pty-jbz8x4nc.js → shell-9923zjtq.js} +31 -31
- package/dist/chunks/{persistent-pty-vbx9nkth.js → shell-9cd5mnda.js} +15 -15
- package/dist/chunks/shell-9cdqq2er.js +478 -0
- package/dist/chunks/{persistent-pty-1fdf6jkm.js → shell-9d1719jx.js} +4 -4
- package/dist/chunks/{persistent-pty-dase69n4.js → shell-9h9fjp2r.js} +26 -26
- package/dist/chunks/{persistent-pty-gypqxzd7.js → shell-9sdzjm5d.js} +9 -9
- package/dist/chunks/{persistent-pty-3chrvcfn.js → shell-9yk7fe3p.js} +11 -11
- package/dist/chunks/{persistent-pty-g5g08czv.js → shell-9zxh70gf.js} +13 -13
- package/dist/chunks/{persistent-pty-a1bz86dw.js → shell-a1bz86dw.js} +3 -3
- package/dist/chunks/{persistent-pty-34rkz0x9.js → shell-a46v4e4v.js} +7 -7
- package/dist/chunks/{persistent-pty-9jvshbgc.js → shell-a77f6hq0.js} +24 -24
- package/dist/chunks/{persistent-pty-aaet6srn.js → shell-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-tmdzsscp.js → shell-abs7vd7m.js} +21 -21
- package/dist/chunks/{persistent-pty-3a3m4psf.js → shell-ak1ej6q8.js} +15 -15
- package/dist/chunks/{persistent-pty-fxbmv06w.js → shell-atwvjk3g.js} +10 -10
- package/dist/chunks/{persistent-pty-0f9afca0.js → shell-avm8jn6n.js} +5 -5
- package/dist/chunks/{persistent-pty-ddcn1th9.js → shell-avvd1tnc.js} +18 -18
- package/dist/chunks/{persistent-pty-sbrnn11p.js → shell-b2da4m4w.js} +4 -4
- package/dist/chunks/{persistent-pty-b6gygkdw.js → shell-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-embw8kgh.js → shell-baaqp4zd.js} +4 -4
- package/dist/chunks/{persistent-pty-r98e92ep.js → shell-bct739vz.js} +4 -4
- package/dist/chunks/{persistent-pty-y02q0mz5.js → shell-bmmmk9rh.js} +20 -20
- package/dist/chunks/{persistent-pty-83d2wykz.js → shell-bt2e4tjd.js} +22 -22
- package/dist/chunks/{persistent-pty-8xfqr98k.js → shell-bvvhb128.js} +14 -14
- package/dist/chunks/{persistent-pty-98s8e1rw.js → shell-c6s8azb0.js} +11 -11
- package/dist/chunks/{persistent-pty-fype0rw8.js → shell-c88xsj4b.js} +11 -11
- package/dist/chunks/{persistent-pty-fp9xmcy3.js → shell-c8wevtrk.js} +8 -8
- package/dist/chunks/{persistent-pty-e5gwvkqs.js → shell-cdxkea2x.js} +7 -7
- package/dist/chunks/{persistent-pty-v606rqvb.js → shell-cfmg5f2e.js} +15 -15
- package/dist/chunks/{persistent-pty-cfpkc3c9.js → shell-cfpkc3c9.js} +2 -2
- package/dist/chunks/{persistent-pty-ck5kwbgm.js → shell-cgkf6hyz.js} +8 -8
- package/dist/chunks/{persistent-pty-bha4atvq.js → shell-cq37gk0t.js} +4 -4
- package/dist/chunks/{persistent-pty-pea6h7py.js → shell-crxm8vhj.js} +11 -11
- package/dist/chunks/{persistent-pty-gddc0fts.js → shell-cywpmpyh.js} +59 -59
- package/dist/chunks/{persistent-pty-f3a1m4jg.js → shell-cza3p4qy.js} +10 -10
- package/dist/chunks/{persistent-pty-fr1268wp.js → shell-czztawnv.js} +20 -20
- package/dist/chunks/{persistent-pty-1atzs1aw.js → shell-d6kea4np.js} +7 -7
- package/dist/chunks/{persistent-pty-e3ej8st1.js → shell-dhzcx2dk.js} +15 -15
- package/dist/chunks/{persistent-pty-nq7qbqzc.js → shell-dnszgtsj.js} +9 -9
- package/dist/chunks/{persistent-pty-dpkg50ah.js → shell-dpkg50ah.js} +1 -1
- package/dist/chunks/{persistent-pty-an66st8b.js → shell-dpq5pt5b.js} +24 -24
- package/dist/chunks/{persistent-pty-xfkkasph.js → shell-drwq78ky.js} +4 -4
- package/dist/chunks/{persistent-pty-65e72azk.js → shell-dt5xy0kq.js} +3 -3
- package/dist/chunks/{persistent-pty-h0b9xjk8.js → shell-dwz51f9r.js} +5 -5
- package/dist/chunks/{persistent-pty-tcay1cqt.js → shell-dzse07y5.js} +6 -6
- package/dist/chunks/{persistent-pty-77z07hfr.js → shell-e1g62edg.js} +5 -5
- package/dist/chunks/{persistent-pty-5qd3pb7m.js → shell-e3qxr5gk.js} +2 -2
- package/dist/chunks/{persistent-pty-kedanpwc.js → shell-e80am09j.js} +22 -22
- package/dist/chunks/{persistent-pty-771mw8n5.js → shell-e948v4m2.js} +82 -82
- package/dist/chunks/{persistent-pty-ke2aez33.js → shell-ebd4b9hd.js} +32 -32
- package/dist/chunks/{persistent-pty-tp9yp7n5.js → shell-ecszv4cx.js} +41 -41
- package/dist/chunks/{persistent-pty-ef5x83kb.js → shell-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-etq0c3wd.js → shell-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-n6twqwrr.js → shell-eywjeeez.js} +3 -3
- package/dist/chunks/{persistent-pty-vmwh049b.js → shell-f1zbxv7x.js} +9 -9
- package/dist/chunks/{persistent-pty-d48be562.js → shell-f76eektm.js} +5 -5
- package/dist/chunks/{persistent-pty-f828m53h.js → shell-f828m53h.js} +2 -2
- package/dist/chunks/{persistent-pty-4drgpw32.js → shell-fepbnb8j.js} +5 -5
- package/dist/chunks/{persistent-pty-vmgq4x8b.js → shell-ff0svapt.js} +2 -2
- package/dist/chunks/{persistent-pty-m07kesbd.js → shell-fmbfr9zq.js} +31 -31
- package/dist/chunks/{persistent-pty-fzvmjdr3.js → shell-fnqcnrwr.js} +13 -13
- package/dist/chunks/{persistent-pty-8rx2gh2n.js → shell-fsjyrg72.js} +87 -87
- package/dist/chunks/{persistent-pty-68tr05pn.js → shell-fwmjdqts.js} +23 -23
- package/dist/chunks/{persistent-pty-fxbjtjnd.js → shell-fxbjtjnd.js} +1 -1
- package/dist/chunks/{persistent-pty-99jk88nh.js → shell-g582528b.js} +44 -44
- package/dist/chunks/{persistent-pty-qmqgtz8f.js → shell-g6q9qykm.js} +9 -9
- package/dist/chunks/{persistent-pty-90rrdtsa.js → shell-gagp6v9m.js} +10 -10
- package/dist/chunks/{persistent-pty-gd4qta3r.js → shell-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-sf2e06tm.js → shell-gdm3qam3.js} +180 -180
- package/dist/chunks/{persistent-pty-17es1da5.js → shell-ghc9cygp.js} +41 -41
- package/dist/chunks/{persistent-pty-8gyk9vq5.js → shell-gj2ms1nq.js} +4 -4
- package/dist/chunks/{persistent-pty-gv6a8nnw.js → shell-gv6a8nnw.js} +2 -2
- package/dist/chunks/{persistent-pty-h03wrkyp.js → shell-h03wrkyp.js} +2 -2
- package/dist/chunks/{persistent-pty-bzhwnh4p.js → shell-h2t8ymee.js} +26 -26
- package/dist/chunks/{persistent-pty-44h5tttr.js → shell-h6r3nrb9.js} +4 -4
- package/dist/chunks/{persistent-pty-h6vf3j39.js → shell-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-r7pgccbm.js → shell-hb7sxhhb.js} +32 -32
- package/dist/chunks/{persistent-pty-npsagvvz.js → shell-hp42fy7s.js} +8 -8
- package/dist/chunks/{persistent-pty-f6f6yxds.js → shell-hpdj5hc5.js} +3 -3
- package/dist/chunks/{persistent-pty-2ca164mb.js → shell-hqm43xfh.js} +6 -6
- package/dist/chunks/{persistent-pty-709mss9f.js → shell-htanjsaa.js} +20 -20
- package/dist/chunks/{persistent-pty-7e0b5fpv.js → shell-hygwp9nt.js} +10 -10
- package/dist/chunks/{persistent-pty-bjff6841.js → shell-j0ky2qbp.js} +15 -15
- package/dist/chunks/{persistent-pty-j56e64zr.js → shell-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-y56ehv6b.js → shell-j58c5xyq.js} +9 -9
- package/dist/chunks/{persistent-pty-8cnzmmsd.js → shell-j7jtjs4b.js} +23 -23
- package/dist/chunks/{persistent-pty-kj36yjv0.js → shell-j9yp876j.js} +9 -9
- package/dist/chunks/{persistent-pty-n4x3txqd.js → shell-jase78w4.js} +4 -4
- package/dist/chunks/{persistent-pty-677phc5j.js → shell-jft4q2kn.js} +19 -19
- package/dist/chunks/{persistent-pty-mnmpf8vs.js → shell-jg3dk2mq.js} +8 -8
- package/dist/chunks/{persistent-pty-k3gnzxs0.js → shell-jppvw2tx.js} +5 -5
- package/dist/chunks/{persistent-pty-9cyc6z1w.js → shell-jrqntfpr.js} +7 -7
- package/dist/chunks/{persistent-pty-47bndgm5.js → shell-jsgky646.js} +43 -43
- package/dist/chunks/{persistent-pty-1ftd87y6.js → shell-jthyvkq9.js} +16 -16
- package/dist/chunks/{persistent-pty-c5gn303e.js → shell-jva4mgym.js} +4 -4
- package/dist/chunks/{persistent-pty-6f4jyr9n.js → shell-jxm9g8ke.js} +1 -1
- package/dist/chunks/{persistent-pty-wgcwk5gf.js → shell-k0b72eat.js} +15 -15
- package/dist/chunks/{persistent-pty-53g11zbg.js → shell-k0yx29k2.js} +1 -1
- package/dist/chunks/{persistent-pty-nrp0dgk2.js → shell-k17bahsd.js} +20 -20
- package/dist/chunks/{persistent-pty-afm11xz0.js → shell-k3c624dm.js} +19 -14
- package/dist/chunks/{persistent-pty-e7z9zthm.js → shell-kagt2kqb.js} +11 -11
- package/dist/chunks/{persistent-pty-xbry3q9d.js → shell-kfvqsgwq.js} +17 -17
- package/dist/chunks/{persistent-pty-44ke2mar.js → shell-knb7evpn.js} +2 -2
- package/dist/chunks/{persistent-pty-9r4twygd.js → shell-m282vmjm.js} +32 -32
- package/dist/chunks/{persistent-pty-m3fdjcah.js → shell-m3fdjcah.js} +1 -1
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → shell-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-0m8ssbne.js → shell-mhbjb662.js} +7 -7
- package/dist/chunks/{persistent-pty-r5x6zcsm.js → shell-mvfsc1pv.js} +3 -3
- package/dist/chunks/{persistent-pty-x2bhsfx5.js → shell-myx08xq4.js} +54 -54
- package/dist/chunks/{persistent-pty-0xp5hpj0.js → shell-n56h5hy7.js} +43 -43
- package/dist/chunks/{persistent-pty-cwk6dc0f.js → shell-n980jsng.js} +15 -15
- package/dist/chunks/{persistent-pty-rhzgsha5.js → shell-nbv082sw.js} +24 -24
- package/dist/chunks/{persistent-pty-ax36eyar.js → shell-ne3jdqry.js} +8 -8
- package/dist/chunks/{persistent-pty-mz25dwn3.js → shell-ntqyxcyw.js} +22 -22
- package/dist/chunks/{persistent-pty-4vf6h4mv.js → shell-p0sy0rdw.js} +8 -8
- package/dist/chunks/{persistent-pty-jv01nqvq.js → shell-p1nm93x7.js} +5 -5
- package/dist/chunks/{persistent-pty-tpw6cwsb.js → shell-p42hj8p8.js} +8 -8
- package/dist/chunks/{persistent-pty-hpbxecpz.js → shell-p53qb2xk.js} +29 -29
- package/dist/chunks/{persistent-pty-gg4a0jgp.js → shell-p9p1rr13.js} +19 -19
- package/dist/chunks/{persistent-pty-y3g69tt1.js → shell-pa3hft97.js} +19 -19
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → shell-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → shell-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-a50z0fpr.js → shell-pkqjmvx8.js} +16 -16
- package/dist/chunks/{persistent-pty-8kf7y4ht.js → shell-pqk0pen6.js} +3 -3
- package/dist/chunks/{persistent-pty-26bg82qa.js → shell-px4zqas9.js} +11 -11
- package/dist/chunks/{persistent-pty-xz5jgbdk.js → shell-pxf5smj0.js} +6 -6
- package/dist/chunks/{persistent-pty-w6sjcj00.js → shell-qbeegk5c.js} +40 -40
- package/dist/chunks/{persistent-pty-bmqzgjgb.js → shell-qbp2nq94.js} +23 -23
- package/dist/chunks/{persistent-pty-w6tpnshf.js → shell-qq3hkfz9.js} +6 -6
- package/dist/chunks/{persistent-pty-bscb95cy.js → shell-qq8x5mwt.js} +6 -6
- package/dist/chunks/{persistent-pty-tebckzj7.js → shell-qrnb0zs5.js} +9 -9
- package/dist/chunks/{persistent-pty-qsdy395h.js → shell-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-4kzetxh1.js → shell-qsfdbege.js} +14 -14
- package/dist/chunks/{persistent-pty-2eegacq4.js → shell-qwjmgwmn.js} +8 -8
- package/dist/chunks/{persistent-pty-cacw0tx2.js → shell-r69n8pfr.js} +8 -8
- package/dist/chunks/{persistent-pty-4fpwq1r9.js → shell-r84ewcn4.js} +3 -3
- package/dist/chunks/shell-rap9a73h.js +18 -0
- package/dist/chunks/{persistent-pty-rdw6cm16.js → shell-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-m31hrvtp.js → shell-reqevd7p.js} +14 -14
- package/dist/chunks/{persistent-pty-eaj1djv9.js → shell-rhjbct0v.js} +8 -8
- package/dist/chunks/{persistent-pty-jak50wjt.js → shell-s2ctwpa3.js} +23 -23
- package/dist/chunks/{persistent-pty-yrznvahk.js → shell-s4enseaf.js} +2 -2
- package/dist/chunks/{persistent-pty-7xnpcceb.js → shell-shaj1jnf.js} +32 -32
- package/dist/chunks/{persistent-pty-kg4jxx0b.js → shell-sm38kpj9.js} +11 -11
- package/dist/chunks/{persistent-pty-1vp2wv45.js → shell-stdy45ne.js} +23 -23
- package/dist/chunks/{persistent-pty-fds3vh5r.js → shell-sz0fczdy.js} +6 -6
- package/dist/chunks/{persistent-pty-5tpy2fbk.js → shell-t257nz5t.js} +12 -12
- package/dist/chunks/{persistent-pty-p1zb2z5r.js → shell-t3479h02.js} +16 -16
- package/dist/chunks/{persistent-pty-fvy1mc4q.js → shell-t4ep399p.js} +4 -4
- package/dist/chunks/{persistent-pty-tazgh4e4.js → shell-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tcezcvh9.js → shell-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-tdstcens.js → shell-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-akan8yn4.js → shell-tfzrzead.js} +11 -11
- package/dist/chunks/{persistent-pty-xeqcm4dq.js → shell-tprea2w6.js} +5 -5
- package/dist/chunks/{persistent-pty-rya04ard.js → shell-tqhjqp4x.js} +35 -35
- package/dist/chunks/{persistent-pty-tvtrv512.js → shell-tvtrv512.js} +1 -1
- package/dist/chunks/{persistent-pty-hgehe5qr.js → shell-v0x7c1q7.js} +11 -11
- package/dist/chunks/{persistent-pty-vsrt67qk.js → shell-vdtbp9xk.js} +5 -5
- package/dist/chunks/{persistent-pty-veqvce7d.js → shell-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-fpfkm27p.js → shell-vjb1j6zt.js} +19 -19
- package/dist/chunks/{persistent-pty-pt4q81m1.js → shell-vmp141m3.js} +4 -4
- package/dist/chunks/{persistent-pty-2zmnbmev.js → shell-vqtmypvq.js} +15 -15
- package/dist/chunks/{persistent-pty-vzcthcp8.js → shell-vzcthcp8.js} +1 -1
- package/dist/chunks/{persistent-pty-kh2xt8yc.js → shell-w337vvwy.js} +16 -16
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → shell-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-wd87259q.js → shell-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-v8x5s6qt.js → shell-wk6d9gtz.js} +51 -51
- package/dist/chunks/{persistent-pty-vhg8gbw9.js → shell-wm8ejcqt.js} +13 -13
- package/dist/chunks/{persistent-pty-rvayqjwn.js → shell-wvd3r0fc.js} +17 -17
- package/dist/chunks/{persistent-pty-b97cbvw3.js → shell-wy8b5sm2.js} +1 -1
- package/dist/chunks/{persistent-pty-x1ezjp6w.js → shell-x1ezjp6w.js} +1 -1
- package/dist/chunks/{persistent-pty-0d1bsqa1.js → shell-x83kfe59.js} +17 -17
- package/dist/chunks/{persistent-pty-f2njkax9.js → shell-xaz5wxvk.js} +9 -9
- package/dist/chunks/{persistent-pty-ry3rwstb.js → shell-xcby1x0a.js} +9 -9
- package/dist/chunks/{persistent-pty-magykp64.js → shell-xdk9p2qn.js} +21 -21
- package/dist/chunks/{persistent-pty-erk99hyj.js → shell-xdy7smra.js} +46 -46
- package/dist/chunks/{persistent-pty-rf0ac1nd.js → shell-xg79878d.js} +24 -24
- package/dist/chunks/{persistent-pty-bf44fs7q.js → shell-xj2wfzmj.js} +16 -16
- package/dist/chunks/{persistent-pty-d43tgzm4.js → shell-xsgk3b13.js} +9 -9
- package/dist/chunks/{persistent-pty-xy1te82j.js → shell-xt6n5xqm.js} +3 -3
- package/dist/chunks/{persistent-pty-ghdbx2at.js → shell-xw5sd8ft.js} +15 -15
- package/dist/chunks/{persistent-pty-9g2dhd49.js → shell-y00gbe2a.js} +12 -12
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → shell-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-7j2qha59.js → shell-y1qqcj8h.js} +8 -8
- package/dist/chunks/{persistent-pty-7rqzqf2y.js → shell-y3ky0ywj.js} +5 -5
- package/dist/chunks/{persistent-pty-5zf9zmc3.js → shell-yj6jvem3.js} +7 -7
- package/dist/chunks/{persistent-pty-5by067t8.js → shell-yqr6xnaq.js} +4 -4
- package/dist/chunks/{persistent-pty-yrhqyw5v.js → shell-yrhqyw5v.js} +1 -1
- package/dist/chunks/{persistent-pty-vpscksex.js → shell-ywj8m2vt.js} +30 -30
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → shell-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-jsed32gb.js → shell-z2htvd61.js} +22 -22
- package/dist/chunks/{persistent-pty-mzhzy1pb.js → shell-z378wvez.js} +13 -13
- package/dist/chunks/{persistent-pty-zeh9ct20.js → shell-zeh9ct20.js} +2 -2
- package/dist/chunks/{persistent-pty-qq0enmay.js → shell-zn5jhmnr.js} +20 -20
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → shell-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-scr9tq7r.js → shell-zxn051w9.js} +8 -8
- package/dist/chunks/{persistent-pty-zxq2ej10.js → shell-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +120 -120
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +125 -125
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +365 -365
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +97 -97
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +100 -100
- 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 +98 -98
- 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/id/id.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 +356 -356
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +353 -353
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +99 -99
- package/dist/models-dev.js +102 -102
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +116 -116
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +328 -328
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +119 -119
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +83 -83
- package/dist/plugin/warming.js +120 -120
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +227 -227
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +11 -11
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +86 -86
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +118 -118
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +208 -208
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +4 -4
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-0mesazry.js +0 -4
- package/dist/chunks/persistent-pty-n95b3jav.js +0 -18
- package/dist/chunks/persistent-pty-pcawhjwq.js +0 -478
- package/dist/chunks/persistent-pty-wyxhhks7.js +0 -247
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → shell-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → shell-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → shell-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → shell-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → shell-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → shell-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → shell-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → shell-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → shell-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → shell-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → shell-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → shell-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → shell-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → shell-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → shell-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → shell-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → shell-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → shell-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → shell-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → shell-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → shell-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → shell-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → shell-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → shell-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → shell-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → shell-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-922hggd3.js → shell-922hggd3.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → shell-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → shell-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → shell-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → shell-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → shell-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → shell-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → shell-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → shell-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → shell-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → shell-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → shell-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → shell-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → shell-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → shell-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → shell-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → shell-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → shell-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → shell-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → shell-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → shell-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → shell-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → shell-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → shell-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → shell-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → shell-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → shell-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → shell-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → shell-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → shell-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → shell-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → shell-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hjbc5kem.js → shell-hjbc5kem.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → shell-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → shell-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → shell-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → shell-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → shell-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → shell-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → shell-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → shell-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → shell-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → shell-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → shell-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → shell-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → shell-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → shell-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → shell-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → shell-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → shell-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → shell-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → shell-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → shell-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → shell-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-sk3qaz4a.js → shell-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → shell-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-twg0f83k.js → shell-twg0f83k.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → shell-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → shell-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → shell-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → shell-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → shell-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → shell-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → shell-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → shell-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → shell-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → shell-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → shell-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → shell-z9919s4g.js} +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service77,
|
|
3
|
+
node81
|
|
4
|
+
} from "./shell-t3479h02.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Key3,
|
|
7
|
+
make20,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-rhjbct0v.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./shell-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service27,
|
|
19
|
+
node: () => node31
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service27 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service77;
|
|
29
|
+
return Service27.of({
|
|
30
30
|
load: (sessionID) => Effect.succeed(combine2([
|
|
31
|
-
|
|
32
|
-
key:
|
|
31
|
+
make20({
|
|
32
|
+
key: Key3.make("core/environment"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: Effect.sync(() => [
|
|
35
35
|
"<env>",
|
|
@@ -49,8 +49,8 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
49
49
|
`)
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
-
|
|
53
|
-
key:
|
|
52
|
+
make20({
|
|
53
|
+
key: Key3.make("core/date"),
|
|
54
54
|
codec: Schema.toCodecJson(Schema.String),
|
|
55
55
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
56
56
|
render: {
|
|
@@ -61,6 +61,6 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
61
61
|
]))
|
|
62
62
|
});
|
|
63
63
|
}));
|
|
64
|
-
var
|
|
64
|
+
var node31 = makeLocationNode({ service: Service27, layer, deps: [Global.node, node81] });
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service27, node31, exports_builtins };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
7
7
|
__export(exports_opencode, {
|
|
8
8
|
MoveInput: () => MoveInput2,
|
|
9
9
|
OpenCodeTools: () => exports_opencode,
|
|
10
|
-
Plugin: () =>
|
|
10
|
+
Plugin: () => Plugin27,
|
|
11
11
|
RenameInput: () => RenameInput2
|
|
12
12
|
});
|
|
13
13
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -26,7 +26,7 @@ var MoveInput2 = Schema.Struct({
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
var MoveOutput = Schema.Struct({ sessionID: Session.ID, directory: AbsolutePath });
|
|
29
|
-
var
|
|
29
|
+
var Plugin27 = {
|
|
30
30
|
id: "opencode.tools",
|
|
31
31
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
32
32
|
const hook = (event) => Effect.sync(() => {
|
|
@@ -77,4 +77,4 @@ var Plugin30 = {
|
|
|
77
77
|
})
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
export { RenameInput2, MoveInput2,
|
|
80
|
+
export { RenameInput2, MoveInput2, Plugin27, exports_opencode };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./shell-jase78w4.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./shell-922hggd3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service77,
|
|
12
|
+
node81
|
|
13
|
+
} from "./shell-t3479h02.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./shell-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service22,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node25
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service22 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service81;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service77;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service77, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service22.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node25 = makeLocationNode({ service: Service22, layer, deps: [node85, node81] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service22, node25, exports_rpc, define2 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-pqk0pen6.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-jase78w4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service52
|
|
9
|
+
} from "./shell-dzse07y5.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./shell-922hggd3.js";
|
|
13
13
|
import {
|
|
14
14
|
ID6,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service37
|
|
16
|
+
} from "./shell-4hqjaqv1.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./shell-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionMessage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./shell-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./shell-f1zbxv7x.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./shell-a1bz86dw.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./shell-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/session/revert.ts
|
|
34
34
|
var exports_revert = {};
|
|
@@ -42,11 +42,11 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
45
|
+
const instances = yield* Service52;
|
|
46
46
|
const database = yield* Service82;
|
|
47
47
|
const bus = yield* Service81;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
49
|
+
const snapshot = yield* Service37;
|
|
50
50
|
const original = input.session.revert?.snapshot ? ID6.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
@@ -74,10 +74,10 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
77
|
+
const instances = yield* Service52;
|
|
78
78
|
const bus = yield* Service81;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service37;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
83
|
const original = session.revert.snapshot ? ID6.make(session.revert.snapshot) : undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getViewSelectedFieldsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./shell-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/select.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81,
|
|
6
6
|
node85
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./shell-jase78w4.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service76,
|
|
11
|
+
node80
|
|
12
|
+
} from "./shell-3xyw1x35.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service77,
|
|
15
|
+
node81
|
|
16
|
+
} from "./shell-t3479h02.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service66,
|
|
19
|
+
node69
|
|
20
|
+
} from "./shell-497trp6d.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID18,
|
|
23
|
+
Service80,
|
|
24
|
+
node84
|
|
25
|
+
} from "./shell-2kjmkjjh.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./shell-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service75,
|
|
34
|
+
node79
|
|
35
|
+
} from "./shell-p53qb2xk.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./shell-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: () => NotFoundError4,
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service34,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
|
-
configured: () =>
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
56
|
+
configured: () => configured4,
|
|
57
|
+
layer: () => layer15,
|
|
58
|
+
node: () => node37
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -74,7 +74,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
74
74
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
75
75
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
78
78
|
server: ServerName2
|
|
79
79
|
}) {
|
|
80
80
|
get message() {
|
|
@@ -92,21 +92,21 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
92
92
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
93
93
|
var cloneConfig = (config) => structuredClone(config);
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service34 extends Context.Service()("@opencode/MCP") {
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Options4 = Schema.Struct({
|
|
98
98
|
clientInfo: Schema.optional(Schema.Struct({
|
|
99
99
|
name: Schema.String,
|
|
100
100
|
version: Schema.String
|
|
101
101
|
}))
|
|
102
102
|
});
|
|
103
|
-
var
|
|
104
|
-
const location = yield*
|
|
105
|
-
const environment = yield*
|
|
103
|
+
var layer15 = (options) => Layer.effect(Service34, Effect.gen(function* () {
|
|
104
|
+
const location = yield* Service77;
|
|
105
|
+
const environment = yield* Service66;
|
|
106
106
|
const bus = yield* Service81;
|
|
107
|
-
const forms = yield*
|
|
108
|
-
const integration = yield*
|
|
109
|
-
const credentials = yield*
|
|
107
|
+
const forms = yield* Service80;
|
|
108
|
+
const integration = yield* Service75;
|
|
109
|
+
const credentials = yield* Service76;
|
|
110
110
|
const root = yield* Effect.scope;
|
|
111
111
|
const fork = yield* FiberSet.makeRuntime();
|
|
112
112
|
const entries = new Map;
|
|
@@ -118,7 +118,7 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
118
118
|
return;
|
|
119
119
|
const remote = entry.config;
|
|
120
120
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
121
|
-
const integrationID =
|
|
121
|
+
const integrationID = ID14.make(suffix);
|
|
122
122
|
entry.integrationID = integrationID;
|
|
123
123
|
owned.add(integrationID);
|
|
124
124
|
const methodID = MethodID2.make(suffix);
|
|
@@ -134,7 +134,7 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
134
134
|
method: { id: methodID, type: "oauth", label: name },
|
|
135
135
|
authorize: () => Effect.gen(function* () {
|
|
136
136
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
137
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
137
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service76, credentials));
|
|
138
138
|
})
|
|
139
139
|
});
|
|
140
140
|
}).pipe(Scope.provide(scope));
|
|
@@ -143,19 +143,19 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
143
143
|
const name = ServerName2.make(server);
|
|
144
144
|
const entry = entries.get(name);
|
|
145
145
|
if (!entry)
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new NotFoundError4({ server: name });
|
|
147
147
|
return { name, entry };
|
|
148
148
|
});
|
|
149
149
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
150
150
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
151
151
|
return;
|
|
152
152
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
153
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
153
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service76, credentials));
|
|
154
154
|
});
|
|
155
155
|
const elicitation = {
|
|
156
156
|
create: (input) => Effect.gen(function* () {
|
|
157
157
|
if (input.params.mode === "url") {
|
|
158
|
-
const formID =
|
|
158
|
+
const formID = ID18.create();
|
|
159
159
|
const elicitationID = input.params.elicitationId;
|
|
160
160
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
161
161
|
if (key)
|
|
@@ -239,7 +239,7 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
239
239
|
entry.scope = scope;
|
|
240
240
|
const authProvider = yield* connectProvider(entry);
|
|
241
241
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
242
|
-
const result = yield* 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(
|
|
242
|
+
const result = yield* 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(Service66, environment), Scope.provide(scope), Effect.exit);
|
|
243
243
|
if (Exit.isSuccess(result)) {
|
|
244
244
|
entry.client = result.value.connection;
|
|
245
245
|
entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
|
|
@@ -363,7 +363,7 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
363
363
|
yield* startServer(name, entry);
|
|
364
364
|
}).pipe(locks.withLock(name));
|
|
365
365
|
});
|
|
366
|
-
fork(bus.subscribe(
|
|
366
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
367
367
|
const state = create3({
|
|
368
368
|
name: "mcp",
|
|
369
369
|
initial: () => ({
|
|
@@ -389,7 +389,7 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
389
389
|
}),
|
|
390
390
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
391
391
|
});
|
|
392
|
-
return
|
|
392
|
+
return Service34.of({
|
|
393
393
|
transform: state.transform,
|
|
394
394
|
reload: state.reload,
|
|
395
395
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -508,14 +508,14 @@ var layer16 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
|
508
508
|
})
|
|
509
509
|
});
|
|
510
510
|
}));
|
|
511
|
-
function
|
|
511
|
+
function configured4(options) {
|
|
512
512
|
return makeLocationNode({
|
|
513
|
-
service:
|
|
514
|
-
layer:
|
|
515
|
-
deps: [
|
|
513
|
+
service: Service34,
|
|
514
|
+
layer: layer15(options),
|
|
515
|
+
deps: [node81, node69, node85, node84, node79, node80]
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var node37 = configured4();
|
|
519
519
|
function toElicitationField(key, property, required) {
|
|
520
520
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
521
521
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -566,4 +566,4 @@ function toElicitationField(key, property, required) {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
569
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2, Service34, Options4, layer15, configured4, node37, exports_mcp4 };
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ModelInitializationError3,
|
|
6
6
|
UnresolvedProviderVariablesError3,
|
|
7
7
|
UnsupportedCompactionError3,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service54,
|
|
9
|
+
node57
|
|
10
|
+
} from "./shell-g582528b.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-6bsje7ws.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./shell-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/runner/model.ts
|
|
19
19
|
var exports_model = {};
|
|
@@ -22,13 +22,13 @@ __export(exports_model, {
|
|
|
22
22
|
ModelInitializationError: () => ModelInitializationError2,
|
|
23
23
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
24
24
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service53,
|
|
26
26
|
SessionRunnerModel: () => exports_model,
|
|
27
27
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
28
28
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
29
29
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
30
30
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node56,
|
|
32
32
|
resolved: () => resolved2
|
|
33
33
|
});
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
|
|
|
57
57
|
var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
|
|
58
58
|
var UnsupportedCompactionError2 = UnsupportedCompactionError3;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service53 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
61
61
|
}
|
|
62
62
|
var resolved2 = (model, options) => ({
|
|
63
63
|
model,
|
|
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
|
|
|
72
72
|
compaction: options.compaction,
|
|
73
73
|
transport: options.transport
|
|
74
74
|
});
|
|
75
|
-
var layer = Layer.effect(
|
|
76
|
-
const resolver = yield*
|
|
77
|
-
return
|
|
75
|
+
var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
76
|
+
const resolver = yield* Service54;
|
|
77
|
+
return Service53.of({
|
|
78
78
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
79
79
|
if (!session.model) {
|
|
80
80
|
const resolved = yield* resolver.resolve();
|
|
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
94
|
}));
|
|
95
|
-
var
|
|
95
|
+
var node56 = makeLocationNode({ service: Service53, layer, deps: [node57] });
|
|
96
96
|
|
|
97
|
-
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
97
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service53, resolved2, node56, exports_model };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-jase78w4.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-h6r3nrb9.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event19
|
|
9
|
+
} from "./shell-3xyw1x35.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID14
|
|
12
|
+
} from "./shell-p53qb2xk.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID13,
|
|
15
|
+
Service74
|
|
16
|
+
} from "./shell-ebd4b9hd.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
load2,
|
|
19
|
+
derive2
|
|
20
|
+
} from "./shell-j7jtjs4b.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
29
|
+
const providers = yield* Service74;
|
|
30
30
|
const bus = yield* Service81;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load2(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|