@opencode/core 0.0.0-dev-20258 → 0.0.0-dev-20259
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{file-mutation-58cp5g22.js → instruction-discovery-02bay2gf.js} +33 -33
- package/dist/chunks/{file-mutation-b2g6p7zb.js → instruction-discovery-06z5ysp4.js} +9 -9
- package/dist/chunks/{file-mutation-kpq3n5w9.js → instruction-discovery-082rnqjp.js} +45 -45
- package/dist/chunks/{file-mutation-cakxjwmg.js → instruction-discovery-0f43jy32.js} +22 -22
- package/dist/chunks/{file-mutation-jy9e27y0.js → instruction-discovery-0gz2bbbw.js} +9 -9
- package/dist/chunks/{file-mutation-v8ekj78e.js → instruction-discovery-0j6z66bd.js} +70 -70
- package/dist/chunks/{file-mutation-y4prpqzx.js → instruction-discovery-0jc2m42v.js} +20 -20
- package/dist/chunks/{file-mutation-qgn6gcr1.js → instruction-discovery-0jwsre1p.js} +5 -5
- package/dist/chunks/{file-mutation-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-mutation-vhn9g06f.js → instruction-discovery-170dw88f.js} +13 -13
- package/dist/chunks/{file-mutation-xdqge5f5.js → instruction-discovery-1cqn462m.js} +6 -6
- package/dist/chunks/{file-mutation-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{file-mutation-32yyat8p.js → instruction-discovery-1sm8w69h.js} +13 -13
- package/dist/chunks/{file-mutation-7he179h5.js → instruction-discovery-1txkgjsb.js} +3 -3
- package/dist/chunks/{file-mutation-yksbe7bm.js → instruction-discovery-1w2qnnb8.js} +2 -2
- package/dist/chunks/{file-mutation-vkqnm9g8.js → instruction-discovery-1w4f99jj.js} +28 -28
- package/dist/chunks/{file-mutation-16hbcy11.js → instruction-discovery-1wb4p8j4.js} +89 -89
- package/dist/chunks/{file-mutation-wyxfthk3.js → instruction-discovery-1xqbq2zw.js} +27 -27
- package/dist/chunks/{file-mutation-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{file-mutation-gxv8bn46.js → instruction-discovery-23e9m01n.js} +52 -52
- package/dist/chunks/{file-mutation-3tjs0rqc.js → instruction-discovery-26bq8yqb.js} +13 -13
- package/dist/chunks/{file-mutation-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{file-mutation-sxra90qj.js → instruction-discovery-2jdmakwp.js} +10 -10
- package/dist/chunks/{file-mutation-px76j0pk.js → instruction-discovery-2kewd2va.js} +9 -9
- package/dist/chunks/{file-mutation-00dwsy4m.js → instruction-discovery-2pdthjdq.js} +5 -5
- package/dist/chunks/{file-mutation-b43pks6k.js → instruction-discovery-2vzsts29.js} +29 -29
- package/dist/chunks/{file-mutation-57ez7d0k.js → instruction-discovery-2w6fc0zt.js} +7 -7
- package/dist/chunks/{file-mutation-jj5netzx.js → instruction-discovery-2z92v142.js} +9 -9
- package/dist/chunks/{file-mutation-mfqp6xfm.js → instruction-discovery-33w4ejhs.js} +9 -9
- package/dist/chunks/{file-mutation-smm3c46c.js → instruction-discovery-35j0wzxw.js} +11 -11
- package/dist/chunks/{file-mutation-51gpjtn8.js → instruction-discovery-3be37bkr.js} +25 -25
- package/dist/chunks/{file-mutation-10ct4jct.js → instruction-discovery-3c924577.js} +6 -6
- package/dist/chunks/{file-mutation-v8tfdbmx.js → instruction-discovery-3e5hvdm1.js} +11 -11
- package/dist/chunks/{file-mutation-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-mutation-cvt7z5t2.js → instruction-discovery-3gmzf03n.js} +43 -43
- package/dist/chunks/{file-mutation-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-rrtn0typ.js → instruction-discovery-3np0b0zv.js} +26 -26
- package/dist/chunks/{file-mutation-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-mutation-km0wbgkx.js → instruction-discovery-3sx3yvec.js} +28 -28
- package/dist/chunks/{file-mutation-p6czja74.js → instruction-discovery-3t68fz68.js} +5 -5
- package/dist/chunks/{file-mutation-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-mutation-37ccqw5v.js → instruction-discovery-3w6kqqmc.js} +3 -3
- package/dist/chunks/{file-mutation-3zsf4n22.js → instruction-discovery-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-mutation-bg9wbsx0.js → instruction-discovery-42nrqrzx.js} +37 -37
- package/dist/chunks/{file-mutation-f6982a3r.js → instruction-discovery-446kd19h.js} +20 -20
- package/dist/chunks/{file-mutation-qjssfwbr.js → instruction-discovery-4c8y23xr.js} +11 -11
- package/dist/chunks/{file-mutation-x9fyvxks.js → instruction-discovery-4cy3kpzm.js} +3 -3
- package/dist/chunks/{file-mutation-gv6eg1zh.js → instruction-discovery-4gzr2vmx.js} +26 -26
- package/dist/chunks/{file-mutation-n37c4crj.js → instruction-discovery-4nj4bn9q.js} +8 -8
- package/dist/chunks/{file-mutation-4faj2s9d.js → instruction-discovery-4p5b9311.js} +9 -9
- package/dist/chunks/{file-mutation-cp6we9sf.js → instruction-discovery-4pxz5wf7.js} +5 -5
- package/dist/chunks/{file-mutation-eza7vwvm.js → instruction-discovery-4sfzh03d.js} +26 -26
- package/dist/chunks/{file-mutation-px0fvt7x.js → instruction-discovery-4zpxr980.js} +3 -3
- package/dist/chunks/{file-mutation-49exe669.js → instruction-discovery-5697fheg.js} +5 -5
- package/dist/chunks/{file-mutation-e1evkfpa.js → instruction-discovery-589j49yx.js} +22 -22
- package/dist/chunks/{file-mutation-x1gbxjx5.js → instruction-discovery-5bvskxbz.js} +15 -15
- package/dist/chunks/{file-mutation-s5pc7fga.js → instruction-discovery-5cqaacr7.js} +12 -12
- package/dist/chunks/{file-mutation-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{file-mutation-vrtvrq7g.js → instruction-discovery-5k7ke9hw.js} +36 -36
- package/dist/chunks/{file-mutation-pcxghkgz.js → instruction-discovery-5qwkxp89.js} +4 -4
- package/dist/chunks/{file-mutation-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{file-mutation-z6ydsys7.js → instruction-discovery-5xjthsep.js} +8 -8
- package/dist/chunks/{file-mutation-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{file-mutation-3kdnsp7j.js → instruction-discovery-69pbf0b3.js} +32 -32
- package/dist/chunks/{file-mutation-g8bxbgc5.js → instruction-discovery-6ct2gcxk.js} +5 -5
- package/dist/chunks/{file-mutation-jsb3pxss.js → instruction-discovery-6hcnmam1.js} +8 -8
- package/dist/chunks/{file-mutation-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
- package/dist/chunks/{file-mutation-xftpd4tw.js → instruction-discovery-6ng2cevd.js} +6 -6
- package/dist/chunks/{file-mutation-268ye7pn.js → instruction-discovery-6qbx77pw.js} +11 -11
- package/dist/chunks/{file-mutation-ax9wnt5n.js → instruction-discovery-6qcc9fhq.js} +5 -5
- package/dist/chunks/{file-mutation-kqxvsf2f.js → instruction-discovery-6y6v1cfw.js} +11 -11
- package/dist/chunks/{file-mutation-73tb2d7t.js → instruction-discovery-73tb2d7t.js} +1 -1
- package/dist/chunks/{file-mutation-n064zhq3.js → instruction-discovery-753k8mgp.js} +15 -15
- package/dist/chunks/{file-mutation-26xt9qdc.js → instruction-discovery-7b36kwqm.js} +12 -12
- package/dist/chunks/{file-mutation-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-7tbm9b7t.js → instruction-discovery-7hhy0q6r.js} +3 -3
- package/dist/chunks/{file-mutation-a8taf697.js → instruction-discovery-7vabq9wk.js} +20 -20
- package/dist/chunks/{file-mutation-ky3ws345.js → instruction-discovery-7yhr0je5.js} +20 -20
- package/dist/chunks/{file-mutation-b9ykj7ya.js → instruction-discovery-7zzrzj80.js} +10 -10
- package/dist/chunks/{file-mutation-g33ft7mf.js → instruction-discovery-82m6vwrv.js} +23 -23
- package/dist/chunks/{file-mutation-jmhdpeq2.js → instruction-discovery-82tk018p.js} +47 -47
- package/dist/chunks/{file-mutation-9pvvf6k3.js → instruction-discovery-84zk8rsp.js} +13 -13
- package/dist/chunks/{file-mutation-56wazr8f.js → instruction-discovery-86nj647e.js} +25 -25
- package/dist/chunks/{file-mutation-4dzt4m50.js → instruction-discovery-87em592p.js} +20 -20
- package/dist/chunks/{file-mutation-gnxy3td6.js → instruction-discovery-88c3qnqc.js} +24 -24
- package/dist/chunks/{file-mutation-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{file-mutation-eq1jxjww.js → instruction-discovery-8fb5jb4r.js} +48 -48
- package/dist/chunks/instruction-discovery-8xcenvzd.js +26 -0
- package/dist/chunks/{file-mutation-nzyhnfxz.js → instruction-discovery-8z00fdkb.js} +4 -4
- package/dist/chunks/{file-mutation-1v8yrmg3.js → instruction-discovery-9123sfbk.js} +10 -10
- package/dist/chunks/{file-mutation-94ek1h2f.js → instruction-discovery-94ek1h2f.js} +2 -2
- package/dist/chunks/{file-mutation-vt5565qe.js → instruction-discovery-96cgb2yb.js} +6 -6
- package/dist/chunks/{file-mutation-ymszjhhk.js → instruction-discovery-98kmyyvj.js} +4 -4
- package/dist/chunks/{file-mutation-d48vtfkp.js → instruction-discovery-9fxwmyex.js} +18 -18
- package/dist/chunks/{file-mutation-tpw6cwsb.js → instruction-discovery-9hn6k4tm.js} +8 -8
- package/dist/chunks/{file-mutation-b07rpg7m.js → instruction-discovery-9jwxq161.js} +2 -2
- package/dist/chunks/{file-mutation-x37axz56.js → instruction-discovery-9kpx8jrp.js} +24 -24
- package/dist/chunks/{file-mutation-dwbhttdj.js → instruction-discovery-9v5d9qbw.js} +15 -15
- package/dist/chunks/{file-mutation-0gsevz91.js → instruction-discovery-9xay0kyp.js} +8 -8
- package/dist/chunks/{file-mutation-arws8trd.js → instruction-discovery-a8aq5zwy.js} +4 -4
- package/dist/chunks/{file-mutation-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{file-mutation-bmb3ej5t.js → instruction-discovery-aapq0y44.js} +4 -4
- package/dist/chunks/{file-mutation-607q5haz.js → instruction-discovery-ab8cnxkj.js} +12 -12
- package/dist/chunks/{file-mutation-7fpg8ynt.js → instruction-discovery-ae6gjzms.js} +23 -23
- package/dist/chunks/{file-mutation-qvb3nf84.js → instruction-discovery-ahd542yp.js} +8 -8
- package/dist/chunks/{file-mutation-x4r22r3k.js → instruction-discovery-amwjmrz3.js} +20 -20
- package/dist/chunks/{file-mutation-39gr99av.js → instruction-discovery-ap5w1wvm.js} +23 -23
- package/dist/chunks/{file-mutation-shjx5epx.js → instruction-discovery-b4pzqhbb.js} +11 -11
- package/dist/chunks/{file-mutation-qccp8e4s.js → instruction-discovery-b671rh71.js} +51 -51
- package/dist/chunks/{file-mutation-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{file-mutation-wzk244zq.js → instruction-discovery-b9we7s9h.js} +43 -43
- package/dist/chunks/{file-mutation-f73rjn58.js → instruction-discovery-baaqp4zd.js} +4 -4
- package/dist/chunks/{file-mutation-gnra7rc5.js → instruction-discovery-bazmw5n6.js} +12 -12
- package/dist/chunks/{file-mutation-wbyb4rcs.js → instruction-discovery-bb1nbzpn.js} +15 -15
- package/dist/chunks/{file-mutation-16nnx1gk.js → instruction-discovery-bfssjy5n.js} +9 -9
- package/dist/chunks/{file-mutation-b7hkstf3.js → instruction-discovery-btx81dwg.js} +14 -14
- package/dist/chunks/{file-mutation-hcsj8c5f.js → instruction-discovery-bz98gv45.js} +8 -8
- package/dist/chunks/{file-mutation-mepdzt2d.js → instruction-discovery-c5z2enm2.js} +9 -9
- package/dist/chunks/{file-mutation-k1qrnqst.js → instruction-discovery-c7mx140r.js} +8 -8
- package/dist/chunks/{file-mutation-jw80jp6b.js → instruction-discovery-cavr175a.js} +4 -4
- package/dist/chunks/{file-mutation-5tbe7xwy.js → instruction-discovery-chwkvhg6.js} +10 -10
- package/dist/chunks/{file-mutation-ckecvw8r.js → instruction-discovery-ckecvw8r.js} +2 -2
- package/dist/chunks/{file-mutation-p44d8wdy.js → instruction-discovery-cr07tj7n.js} +5 -5
- package/dist/chunks/{file-mutation-sygyr1wa.js → instruction-discovery-d4ffmh4f.js} +13 -13
- package/dist/chunks/{file-mutation-a6h4f4cc.js → instruction-discovery-d89x3sew.js} +23 -23
- package/dist/chunks/{file-mutation-2g4s1v4g.js → instruction-discovery-dj4h2fhh.js} +21 -21
- package/dist/chunks/{file-mutation-kzc3h1h3.js → instruction-discovery-dj68pnee.js} +4 -4
- package/dist/chunks/{file-mutation-cwa6csj7.js → instruction-discovery-djszqvmq.js} +9 -9
- package/dist/chunks/{file-mutation-f6hh4wxd.js → instruction-discovery-dm707m27.js} +21 -21
- package/dist/chunks/{file-mutation-xkntkrq7.js → instruction-discovery-dmqcgk4z.js} +5 -5
- package/dist/chunks/{file-mutation-dpkg50ah.js → instruction-discovery-dpkg50ah.js} +1 -1
- package/dist/chunks/{file-mutation-57b9ws8p.js → instruction-discovery-drwq78ky.js} +5 -5
- package/dist/chunks/{file-mutation-jy8m2ksj.js → instruction-discovery-e90sekjx.js} +32 -32
- package/dist/chunks/{file-mutation-ecfe7b91.js → instruction-discovery-ecfe7b91.js} +2 -2
- package/dist/chunks/{file-mutation-ryr25ayn.js → instruction-discovery-edrmdtr5.js} +7 -7
- package/dist/chunks/{file-mutation-4a9qdbmr.js → instruction-discovery-eegdvh3p.js} +8 -8
- package/dist/chunks/{file-mutation-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-mutation-4mwnfcqv.js → instruction-discovery-egjmf6qc.js} +33 -33
- package/dist/chunks/{file-mutation-j67jnjt0.js → instruction-discovery-ekm9gjpr.js} +5 -5
- package/dist/chunks/{file-mutation-30bfr999.js → instruction-discovery-enzsdrvb.js} +27 -27
- package/dist/chunks/{file-mutation-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/instruction-discovery-eyyv22db.js +507 -0
- package/dist/chunks/{file-mutation-yg78e3t5.js → instruction-discovery-f00dmvnw.js} +5 -5
- package/dist/chunks/{file-mutation-zwhcvfra.js → instruction-discovery-f5sm205x.js} +16 -16
- package/dist/chunks/{file-mutation-3n65gszx.js → instruction-discovery-fby5vw61.js} +32 -32
- package/dist/chunks/{file-mutation-5gt7p4qf.js → instruction-discovery-fh11j35a.js} +32 -32
- package/dist/chunks/{file-mutation-zxp32vzh.js → instruction-discovery-fxafpd8f.js} +14 -14
- package/dist/chunks/{file-mutation-ern4x662.js → instruction-discovery-fym8p956.js} +20 -20
- package/dist/chunks/{file-mutation-6qdk3m7n.js → instruction-discovery-g31ban8f.js} +17 -17
- package/dist/chunks/{file-mutation-brnagsee.js → instruction-discovery-g6k7f39s.js} +20 -20
- package/dist/chunks/{file-mutation-h2r7bbkd.js → instruction-discovery-g8jasmdt.js} +8 -8
- package/dist/chunks/{file-mutation-eaj1djv9.js → instruction-discovery-gbt6w4kb.js} +4 -4
- package/dist/chunks/{file-mutation-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-mutation-wbkyxrgf.js → instruction-discovery-gg7pg1rj.js} +5 -5
- package/dist/chunks/{file-mutation-93ygb5af.js → instruction-discovery-gjmk74th.js} +6 -6
- package/dist/chunks/{file-mutation-gv6a8nnw.js → instruction-discovery-gv6a8nnw.js} +2 -2
- package/dist/chunks/{file-mutation-p6wxjpka.js → instruction-discovery-gw7cjrad.js} +4 -4
- package/dist/chunks/{file-mutation-2yvgrdfb.js → instruction-discovery-h0bms5p2.js} +34 -34
- package/dist/chunks/{file-mutation-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-mutation-jarn1zxe.js → instruction-discovery-hd569af0.js} +6 -6
- package/dist/chunks/{file-mutation-r6f1b890.js → instruction-discovery-hgwc94fk.js} +22 -22
- package/dist/chunks/{file-mutation-x4p2gnwd.js → instruction-discovery-hjcz6rmz.js} +10 -10
- package/dist/chunks/{file-mutation-3mzqjafy.js → instruction-discovery-j0kmyrzb.js} +28 -28
- package/dist/chunks/{file-mutation-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{file-mutation-ye28agv5.js → instruction-discovery-j5xe4kp4.js} +30 -30
- package/dist/chunks/{file-mutation-c4y5a9cq.js → instruction-discovery-j7m8st6v.js} +6 -6
- package/dist/chunks/{file-mutation-0faexqjd.js → instruction-discovery-j7nqan0d.js} +11 -11
- package/dist/chunks/{file-mutation-q752a12t.js → instruction-discovery-jb9mn43j.js} +18 -18
- package/dist/chunks/{file-mutation-k9j777qh.js → instruction-discovery-jfja93fz.js} +4 -4
- package/dist/chunks/{file-mutation-aspe0h1z.js → instruction-discovery-k0n0d029.js} +39 -39
- package/dist/chunks/{file-mutation-k3c624dm.js → instruction-discovery-k3c624dm.js} +3 -3
- package/dist/chunks/{file-mutation-qz3bnhk3.js → instruction-discovery-k3fgecpr.js} +86 -86
- package/dist/chunks/{file-mutation-am06q2ww.js → instruction-discovery-k3sgy8hs.js} +16 -16
- package/dist/chunks/{file-mutation-wmt3wqce.js → instruction-discovery-k6624h3a.js} +5 -5
- package/dist/chunks/{file-mutation-21jq7q3m.js → instruction-discovery-k7b9yc55.js} +17 -17
- package/dist/chunks/{file-mutation-xwm6bryg.js → instruction-discovery-kdvzk119.js} +4 -4
- package/dist/chunks/{file-mutation-3tq7spzn.js → instruction-discovery-kejdazsg.js} +30 -30
- package/dist/chunks/{file-mutation-vbr7z2an.js → instruction-discovery-kfdn5s74.js} +7 -7
- package/dist/chunks/{file-mutation-mzs8vpd7.js → instruction-discovery-kna9zdqg.js} +18 -18
- package/dist/chunks/{file-mutation-hm9gfxca.js → instruction-discovery-kqe3jxzt.js} +23 -23
- package/dist/chunks/{file-mutation-h1nf4jgx.js → instruction-discovery-ks2mf4k9.js} +27 -27
- package/dist/chunks/{file-mutation-aajkjtdc.js → instruction-discovery-kwne8yvs.js} +26 -26
- package/dist/chunks/{file-mutation-y8fmc1zc.js → instruction-discovery-kxryby56.js} +6 -6
- package/dist/chunks/{file-mutation-w7nc8r38.js → instruction-discovery-m19n25mm.js} +15 -15
- package/dist/chunks/{file-mutation-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{file-mutation-ny6qhpy6.js → instruction-discovery-m3gtgzfj.js} +1 -1
- package/dist/chunks/{file-mutation-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-r68mmbn4.js → instruction-discovery-mdes6h79.js} +11 -11
- package/dist/chunks/instruction-discovery-memzjhjn.js +252 -0
- package/dist/chunks/{file-mutation-pwsepaaz.js → instruction-discovery-mf059aam.js} +18 -18
- package/dist/chunks/{file-mutation-qka5et1g.js → instruction-discovery-mkya8j6w.js} +8 -8
- package/dist/chunks/{file-mutation-353txv1b.js → instruction-discovery-mwpnn186.js} +54 -54
- package/dist/chunks/{file-mutation-yyr7mt6v.js → instruction-discovery-n8ff1d4t.js} +31 -31
- package/dist/chunks/{file-mutation-k648p9r6.js → instruction-discovery-nh22j9em.js} +4 -4
- package/dist/chunks/{file-mutation-mksgfzgs.js → instruction-discovery-nhb58r61.js} +8 -8
- package/dist/chunks/{file-mutation-w8ferkse.js → instruction-discovery-njk6ct5f.js} +10 -10
- package/dist/chunks/{file-mutation-6ersrjne.js → instruction-discovery-nqnxh7mc.js} +4 -4
- package/dist/chunks/{file-mutation-fhs97t90.js → instruction-discovery-nscznvay.js} +9 -9
- package/dist/chunks/{file-mutation-ekmqrdxg.js → instruction-discovery-nyes3r6y.js} +15 -15
- package/dist/chunks/{file-mutation-xddwgmc9.js → instruction-discovery-p1zwtkem.js} +23 -23
- package/dist/chunks/{file-mutation-ba1mv5p0.js → instruction-discovery-p56a4w57.js} +3 -3
- package/dist/chunks/{file-mutation-qezw1pf5.js → instruction-discovery-p7p1yhfe.js} +42 -42
- package/dist/chunks/{file-mutation-kda7zgrv.js → instruction-discovery-p8f6pzys.js} +11 -11
- package/dist/chunks/{file-mutation-xcyj3yfq.js → instruction-discovery-pbd6h6hj.js} +16 -16
- package/dist/chunks/instruction-discovery-pf31ssb9.js +18 -0
- package/dist/chunks/{file-mutation-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-mutation-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-5qkxfyep.js → instruction-discovery-pt3jfr41.js} +4 -4
- package/dist/chunks/{file-mutation-xz1243mt.js → instruction-discovery-q1k436gh.js} +24 -24
- package/dist/chunks/{file-mutation-2qj495rm.js → instruction-discovery-qez2bxyt.js} +3 -3
- package/dist/chunks/{file-mutation-tz2bjj40.js → instruction-discovery-qr8csav2.js} +5 -5
- package/dist/chunks/{file-mutation-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{file-mutation-m7h4c5p1.js → instruction-discovery-r2vezpv1.js} +24 -24
- package/dist/chunks/{file-mutation-xz2chpcf.js → instruction-discovery-r3vxqx86.js} +5 -5
- package/dist/chunks/{file-mutation-2a8qs4ht.js → instruction-discovery-r6d7me87.js} +38 -38
- package/dist/chunks/{file-mutation-y2zrk0dr.js → instruction-discovery-r7vz0h04.js} +17 -17
- package/dist/chunks/{file-mutation-rwyhredf.js → instruction-discovery-rad208an.js} +32 -32
- package/dist/chunks/{file-mutation-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-mutation-v68astsv.js → instruction-discovery-rfg55fwn.js} +9 -9
- package/dist/chunks/{file-mutation-qcdf9a5m.js → instruction-discovery-rgrr4spq.js} +1 -1
- package/dist/chunks/{file-mutation-1p07q0wb.js → instruction-discovery-rkprpv83.js} +4 -4
- package/dist/chunks/{file-mutation-chbxjcn8.js → instruction-discovery-rqvq2w64.js} +9 -9
- package/dist/chunks/{file-mutation-6tar641x.js → instruction-discovery-ry6s3qrm.js} +35 -35
- package/dist/chunks/{file-mutation-dd2f6nst.js → instruction-discovery-s6dj8pnk.js} +179 -179
- package/dist/chunks/{file-mutation-w2fehx9e.js → instruction-discovery-se38j1gb.js} +15 -15
- package/dist/chunks/{file-mutation-6wf4ng0k.js → instruction-discovery-sj1ejh6z.js} +14 -14
- package/dist/chunks/{file-mutation-91m9hd8f.js → instruction-discovery-skyymkrr.js} +3 -3
- package/dist/chunks/{file-mutation-fbx7nax9.js → instruction-discovery-sm95evjw.js} +19 -19
- package/dist/chunks/{file-mutation-0xhzw85s.js → instruction-discovery-sqwwewms.js} +10 -10
- package/dist/chunks/{file-mutation-2tn83n21.js → instruction-discovery-sz2jew9s.js} +15 -15
- package/dist/chunks/{file-mutation-859g3c1y.js → instruction-discovery-t2kwahea.js} +18 -18
- package/dist/chunks/{file-mutation-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-mutation-tkyqje11.js → instruction-discovery-tc59hw5p.js} +43 -43
- package/dist/chunks/{file-mutation-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-mutation-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{file-mutation-0bgjywmv.js → instruction-discovery-th50z4z5.js} +35 -35
- package/dist/chunks/{file-mutation-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{file-mutation-n3hytwrq.js → instruction-discovery-v0x7c1q7.js} +11 -11
- package/dist/chunks/{file-mutation-bj8e23yz.js → instruction-discovery-v6cbqznm.js} +22 -22
- package/dist/chunks/{file-mutation-ef7g0hvy.js → instruction-discovery-v7tsp0v2.js} +14 -14
- package/dist/chunks/{file-mutation-kjbzsbsj.js → instruction-discovery-v8ehxkt2.js} +20 -20
- package/dist/chunks/{file-mutation-xs20kdgy.js → instruction-discovery-vcr1vhvm.js} +19 -19
- package/dist/chunks/{file-mutation-vfjhn2wd.js → instruction-discovery-ve85v3xb.js} +4 -4
- package/dist/chunks/{file-mutation-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-j83byb14.js → instruction-discovery-vncycja5.js} +4 -4
- package/dist/chunks/{file-mutation-39h29zav.js → instruction-discovery-vpd81379.js} +24 -24
- package/dist/chunks/{file-mutation-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{file-mutation-vzs5sf6e.js → instruction-discovery-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-mutation-84txncab.js → instruction-discovery-w1eejvng.js} +5 -5
- package/dist/chunks/{file-mutation-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-g1vn8w63.js → instruction-discovery-w4gsqkdq.js} +7 -7
- package/dist/chunks/{file-mutation-kj8qwk00.js → instruction-discovery-w5t6pqft.js} +13 -13
- package/dist/chunks/{file-mutation-wd3x2cqz.js → instruction-discovery-wd3x2cqz.js} +2 -2
- package/dist/chunks/{file-mutation-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-trvrc289.js → instruction-discovery-wecyrs26.js} +23 -23
- package/dist/chunks/{file-mutation-hjtdmxqs.js → instruction-discovery-wtmq1pek.js} +15 -15
- package/dist/chunks/{file-mutation-k18pbb1y.js → instruction-discovery-wtx0700n.js} +6 -6
- package/dist/chunks/{file-mutation-mafgb6f8.js → instruction-discovery-wx7vyc9r.js} +11 -11
- package/dist/chunks/{file-mutation-hekxc47r.js → instruction-discovery-wxyynt4w.js} +1 -1
- package/dist/chunks/{file-mutation-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{file-mutation-xk1h7hsv.js → instruction-discovery-x807chbq.js} +10 -10
- package/dist/chunks/{file-mutation-c9tf7zzd.js → instruction-discovery-xbayrgg1.js} +28 -28
- package/dist/chunks/{file-mutation-f0ketqja.js → instruction-discovery-xvjcg6py.js} +23 -23
- package/dist/chunks/{file-mutation-8zh4h089.js → instruction-discovery-xvp1j2dc.js} +5 -5
- package/dist/chunks/{file-mutation-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-mutation-3jhmeyjv.js → instruction-discovery-y58pkr0z.js} +20 -20
- package/dist/chunks/{file-mutation-yx93m0w7.js → instruction-discovery-y5wpm83e.js} +15 -15
- package/dist/chunks/{file-mutation-bt3qejb9.js → instruction-discovery-y92eb2rg.js} +12 -12
- package/dist/chunks/{file-mutation-e2xc3qzp.js → instruction-discovery-yf850e00.js} +14 -14
- package/dist/chunks/{file-mutation-3dqa613f.js → instruction-discovery-yhk2cr6h.js} +27 -27
- package/dist/chunks/{file-mutation-1acjjqhc.js → instruction-discovery-yp2x3t23.js} +4 -4
- package/dist/chunks/{file-mutation-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{file-mutation-rpmwkvmp.js → instruction-discovery-yrs43b58.js} +26 -26
- package/dist/chunks/{file-mutation-yrznvahk.js → instruction-discovery-yrznvahk.js} +2 -2
- package/dist/chunks/{file-mutation-z07pqspn.js → instruction-discovery-z07pqspn.js} +3 -3
- package/dist/chunks/{file-mutation-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-z63w68vq.js → instruction-discovery-z63w68vq.js} +2 -2
- package/dist/chunks/{file-mutation-y5yrmg67.js → instruction-discovery-zeetkqr7.js} +16 -16
- package/dist/chunks/{file-mutation-zeh9ct20.js → instruction-discovery-zeh9ct20.js} +2 -2
- package/dist/chunks/{file-mutation-yffnxffr.js → instruction-discovery-zp256g40.js} +18 -18
- package/dist/chunks/{file-mutation-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-mutation-166kng33.js → instruction-discovery-zrq8kphx.js} +8 -8
- package/dist/chunks/{file-mutation-sznyev98.js → instruction-discovery-zw4pk1bw.js} +5 -5
- package/dist/chunks/{file-mutation-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- 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 +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- 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 +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +85 -85
- package/dist/generate.js +105 -105
- 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 +99 -99
- 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 +361 -361
- package/dist/instruction-discovery.js +83 -83
- 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 +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +358 -358
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- 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 +94 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- 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 +221 -221
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- 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 +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +89 -89
- 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 +127 -127
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- 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 +5 -5
- 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 +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/file-mutation-786aqz46.js +0 -507
- package/dist/chunks/file-mutation-qfq4bwrq.js +0 -252
- package/dist/chunks/file-mutation-rap9a73h.js +0 -18
- package/dist/chunks/file-mutation-wjf1m7fj.js +0 -26
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-34c7v6d4.js → instruction-discovery-34c7v6d4.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-p56a4w57.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-nh22j9em.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service54,
|
|
11
|
+
node57
|
|
12
|
+
} from "./instruction-discovery-g31ban8f.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service51,
|
|
15
|
+
node54
|
|
16
|
+
} from "./instruction-discovery-gjmk74th.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make16
|
|
22
|
+
} from "./instruction-discovery-yp2x3t23.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service50
|
|
26
|
+
} from "./instruction-discovery-baaqp4zd.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service63,
|
|
29
|
+
node66
|
|
30
|
+
} from "./instruction-discovery-y92eb2rg.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-ekm9gjpr.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./instruction-discovery-ae6gjzms.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service49,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
46
|
layer: () => layer22,
|
|
47
|
-
node: () =>
|
|
47
|
+
node: () => node53,
|
|
48
48
|
noopLayer: () => noopLayer2,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service49 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var layer22 = Layer.effect(
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer22 = Layer.effect(Service49, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service63;
|
|
64
|
+
const instances = yield* Service51;
|
|
65
65
|
const bus = yield* Service83;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service54;
|
|
67
67
|
const db = (yield* Service84).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,14 +76,14 @@ var layer22 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service50.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
83
83
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable)
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
const coordinator = yield*
|
|
86
|
+
const coordinator = yield* make16({
|
|
87
87
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
88
88
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
89
89
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -104,7 +104,7 @@ var layer22 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service49.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer22 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
126
|
+
var node53 = makeGlobalNode({
|
|
127
|
+
service: Service49,
|
|
128
128
|
layer: layer22,
|
|
129
|
-
deps: [
|
|
129
|
+
deps: [node66, node54, node87, node88, node57]
|
|
130
130
|
});
|
|
131
|
-
var noopLayer2 = Layer.succeed(
|
|
131
|
+
var noopLayer2 = Layer.succeed(Service49, Service49.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer2 = Layer.succeed(Service56, Service56.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service49, terminal2, layer22, node53, noopLayer2, exports_execution };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-fxgpk5d8.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-nh22j9em.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Command: () =>
|
|
13
|
+
var exports_command5 = {};
|
|
14
|
+
__export(exports_command5, {
|
|
15
|
+
Command: () => exports_command5,
|
|
16
16
|
Event: () => Event8,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info16,
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Service: () => Service45,
|
|
21
|
+
layer: () => layer20,
|
|
22
|
+
node: () => node49
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
27
|
import { Event as Event8 } from "@opencode/schema/command";
|
|
28
|
-
var
|
|
28
|
+
var Info16 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service45 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer20 = Layer.effect(Service45, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service83;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer16 = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info16.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service45.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,14 +66,14 @@ var layer16 = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError6({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
74
|
+
var node49 = makeLocationNode({
|
|
75
|
+
service: Service45,
|
|
76
|
+
layer: layer20,
|
|
77
77
|
deps: [node87]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info16, NotFoundError6, ExecutionError2, Service45, layer20, node49, exports_command5, Event8 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-nh22j9em.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service40,
|
|
6
|
+
Event6
|
|
7
|
+
} from "./instruction-discovery-0jc2m42v.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin8,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin8 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
const bus = yield* Service83;
|
|
24
|
-
const wellknown = yield*
|
|
24
|
+
const wellknown = yield* Service40;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin20 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event6.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin8, exports_plugin };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-p56a4w57.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-nh22j9em.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
23
|
+
Event: () => Event13,
|
|
24
|
+
ID: () => ID7,
|
|
25
|
+
Info: () => Info22,
|
|
26
26
|
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service60,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node63
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID7 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
39
|
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event13 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info22 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID7,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service60 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service84).db;
|
|
55
55
|
const bus = yield* Service83;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info22({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service60.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info22({
|
|
80
|
+
id: ID7.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event13.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event13.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event13.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event13.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event13.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event13.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node63 = makeGlobalNode({ service: Service60, layer, deps: [node88, node87] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID7, OAuth3, Key3, Value2, Event13, Info22, Service60, node63, exports_credential };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-nh22j9em.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
ID6,
|
|
11
|
+
Service59,
|
|
12
|
+
node62,
|
|
13
|
+
Event12
|
|
14
|
+
} from "./instruction-discovery-3be37bkr.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-8z00fdkb.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service78,
|
|
20
|
+
node82
|
|
21
|
+
} from "./instruction-discovery-fxafpd8f.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -37,13 +37,13 @@ var exports_provider3 = {};
|
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
|
-
Event: () =>
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
40
|
+
Event: () => Event11,
|
|
41
|
+
ID: () => ID5,
|
|
42
|
+
Info: () => Info19,
|
|
43
43
|
LoadError: () => LoadError3,
|
|
44
44
|
Provider: () => exports_provider3,
|
|
45
45
|
Request: () => Request2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service58,
|
|
47
47
|
Settings: () => Settings2,
|
|
48
48
|
Transport: () => Transport2,
|
|
49
49
|
aisdk: () => aisdk2,
|
|
@@ -53,7 +53,7 @@ __export(exports_provider3, {
|
|
|
53
53
|
mergeOverlay: () => mergeOverlay2,
|
|
54
54
|
modelSettings: () => modelSettings2,
|
|
55
55
|
nativeSettings: () => nativeSettings2,
|
|
56
|
-
node: () =>
|
|
56
|
+
node: () => node61,
|
|
57
57
|
packageName: () => packageName2
|
|
58
58
|
});
|
|
59
59
|
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
@@ -64,8 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
64
64
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
65
65
|
import { Credential } from "@opencode/schema/credential";
|
|
66
66
|
import { freeze } from "immer";
|
|
67
|
-
import { Event as
|
|
68
|
-
var
|
|
67
|
+
import { Event as Event11 } from "@opencode/schema/provider";
|
|
68
|
+
var ID5 = Provider.ID;
|
|
69
69
|
var AISDK_PREFIX2 = "aisdk:";
|
|
70
70
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
71
71
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -210,9 +210,9 @@ var Request2 = Provider.Request;
|
|
|
210
210
|
var Compaction3 = Provider.Compaction;
|
|
211
211
|
var Transport2 = Provider.Transport;
|
|
212
212
|
var Settings2 = Provider.Settings;
|
|
213
|
-
var
|
|
213
|
+
var Info19 = Provider.Info;
|
|
214
214
|
|
|
215
|
-
class
|
|
215
|
+
class Service58 extends Context.Service()("@opencode/Provider") {
|
|
216
216
|
}
|
|
217
217
|
var definitions = new WeakMap;
|
|
218
218
|
function index(providerID, models) {
|
|
@@ -225,10 +225,10 @@ function index(providerID, models) {
|
|
|
225
225
|
definitions.set(models, indexes);
|
|
226
226
|
return result;
|
|
227
227
|
}
|
|
228
|
-
var layer = Layer.effect(
|
|
228
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
229
229
|
const bus = yield* Service83;
|
|
230
|
-
const integrations = yield*
|
|
231
|
-
const location = yield*
|
|
230
|
+
const integrations = yield* Service59;
|
|
231
|
+
const location = yield* Service78;
|
|
232
232
|
const state = create3({
|
|
233
233
|
name: "provider",
|
|
234
234
|
initial: () => new Map,
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
239
239
|
const current = records.get(id);
|
|
240
240
|
if (current)
|
|
241
241
|
return current;
|
|
242
|
-
const added = { provider:
|
|
242
|
+
const added = { provider: Info19.empty(id), models: new Map };
|
|
243
243
|
records.set(id, added);
|
|
244
244
|
maps.add(added.models);
|
|
245
245
|
return added;
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
320
320
|
const available = Array.from(records.values()).filter((record) => {
|
|
321
321
|
if (record.provider.activation === "disabled")
|
|
322
322
|
return false;
|
|
323
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
323
|
+
const integration = byID.get(record.provider.integrationID ?? ID6.make(record.provider.id));
|
|
324
324
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
325
325
|
return false;
|
|
326
326
|
if (record.provider.activation === "enabled")
|
|
@@ -346,8 +346,8 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
346
346
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
|
-
yield* bus.subscribe([
|
|
350
|
-
return
|
|
349
|
+
yield* bus.subscribe([Event12.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
350
|
+
return Service58.of({
|
|
351
351
|
transform: state.transform,
|
|
352
352
|
reload: state.reload,
|
|
353
353
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -356,7 +356,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
356
356
|
snapshot
|
|
357
357
|
});
|
|
358
358
|
}));
|
|
359
|
-
var
|
|
359
|
+
var node61 = makeLocationNode({ service: Service58, layer, deps: [node87, node62, node82] });
|
|
360
360
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
361
361
|
const module = yield* Effect.tryPromise({
|
|
362
362
|
try: () => {
|
|
@@ -625,4 +625,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
625
625
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
626
626
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
627
627
|
|
|
628
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
628
|
+
export { rewrite2, native2, exports_aisdk_native, ID5, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info19, Service58, node61, exports_provider3, Event11 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make21,
|
|
14
|
+
node: () => node80,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make21 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node80 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error4, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error4, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node80, exports_driver };
|