@opencode/core 2.0.24 → 2.0.25
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 -81
- package/dist/aisdk-native.js +90 -89
- package/dist/aisdk.js +95 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +70 -69
- package/dist/chunks/{repository-w7a2abxy.js → variant-02yyzjed.js} +12 -12
- package/dist/chunks/{repository-qy0n8417.js → variant-05a2ta09.js} +26 -26
- package/dist/chunks/{repository-2wredcz9.js → variant-06ednycw.js} +17 -17
- package/dist/chunks/{repository-eqh5fpv6.js → variant-06r90ppk.js} +11 -11
- package/dist/chunks/{repository-qne3fa44.js → variant-0bwnrbmb.js} +5 -5
- package/dist/chunks/{repository-9mxexfbd.js → variant-0jt3mewy.js} +14 -14
- package/dist/chunks/{repository-0paq2nw3.js → variant-0paq2nw3.js} +1 -1
- package/dist/chunks/{repository-0vbcp93d.js → variant-0vbcp93d.js} +2 -2
- package/dist/chunks/{repository-tgah08rb.js → variant-13ffgj4a.js} +27 -27
- package/dist/chunks/{repository-fj3b7143.js → variant-16m3yhsa.js} +8 -8
- package/dist/chunks/{repository-erq8vxjr.js → variant-18zb0skh.js} +1 -1
- package/dist/chunks/{repository-p5ev1zz5.js → variant-199h81f9.js} +9 -9
- package/dist/chunks/variant-1a37t69z.js +53 -0
- package/dist/chunks/{repository-1dazxqgg.js → variant-1dazxqgg.js} +2 -2
- package/dist/chunks/{repository-dbp4m4ge.js → variant-1dj608qj.js} +25 -25
- package/dist/chunks/{repository-1dvck2a7.js → variant-1dvck2a7.js} +2 -2
- package/dist/chunks/{repository-9yaf30yb.js → variant-1eg5vsqb.js} +37 -37
- package/dist/chunks/{repository-56gyfky0.js → variant-1fhrtjm6.js} +5 -5
- package/dist/chunks/{repository-89za3yyg.js → variant-1gpb38yh.js} +9 -9
- package/dist/chunks/{repository-32xj3ztx.js → variant-1h07amyp.js} +42 -38
- package/dist/chunks/{repository-k37ga4vh.js → variant-1j2s48r7.js} +8 -8
- package/dist/chunks/{repository-yfe405ny.js → variant-1kg0adek.js} +10 -10
- package/dist/chunks/{repository-5r637m3f.js → variant-1m9c4w4n.js} +45 -45
- package/dist/chunks/{repository-042aawn8.js → variant-1x2vtrrc.js} +20 -20
- package/dist/chunks/{repository-56gdpj1q.js → variant-1ygqh575.js} +9 -9
- package/dist/chunks/{repository-ntaqe8vs.js → variant-27cddewx.js} +24 -24
- package/dist/chunks/{repository-espax8zg.js → variant-29qym6xz.js} +4 -4
- package/dist/chunks/{repository-2a5m3afh.js → variant-2a5m3afh.js} +1 -1
- package/dist/chunks/{repository-h2yw0gk4.js → variant-2hpcj340.js} +25 -25
- package/dist/chunks/{repository-gc135ar8.js → variant-2nbt55tc.js} +8 -8
- package/dist/chunks/{repository-q0cdrezg.js → variant-2r25bgdf.js} +16 -16
- package/dist/chunks/{repository-gkcjs2dn.js → variant-2rehhz5t.js} +11 -11
- package/dist/chunks/{repository-96ctqc5x.js → variant-30krspkn.js} +4 -4
- package/dist/chunks/{repository-7wnc14t4.js → variant-397njdte.js} +21 -21
- package/dist/chunks/{repository-56a9smke.js → variant-3bz51e45.js} +15 -15
- package/dist/chunks/{repository-h6c2yg5r.js → variant-3cmsdac1.js} +8 -8
- package/dist/chunks/{repository-3fc6dm20.js → variant-3fc6dm20.js} +1 -1
- package/dist/chunks/{repository-3556dn8t.js → variant-3g8j9he4.js} +4 -3
- package/dist/chunks/{repository-3hepkmqq.js → variant-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-ef2cw19s.js → variant-3hfcgw97.js} +10 -10
- package/dist/chunks/{repository-3smtnn6g.js → variant-3smtnn6g.js} +1 -1
- package/dist/chunks/{repository-3tvqynh2.js → variant-3tvqynh2.js} +1 -1
- package/dist/chunks/{repository-3zsf4n22.js → variant-3zsf4n22.js} +1 -1
- package/dist/chunks/{repository-77apbbcp.js → variant-452vf9ez.js} +105 -68
- package/dist/chunks/{repository-3vy5pcbx.js → variant-45tbjbdt.js} +52 -39
- package/dist/chunks/{repository-4y69v0zr.js → variant-49bhe2dh.js} +13 -13
- package/dist/chunks/{repository-4z7pkycv.js → variant-4acq55hh.js} +19 -19
- package/dist/chunks/{repository-4ege8dpt.js → variant-4es70h3r.js} +16 -16
- package/dist/chunks/{repository-cs63tcvs.js → variant-4m7gr2sz.js} +9 -9
- package/dist/chunks/{repository-6r4hjhnf.js → variant-4p4e40p5.js} +16 -16
- package/dist/chunks/{repository-z6b5w8cf.js → variant-4s3kxd3m.js} +2 -2
- package/dist/chunks/{repository-2ccvkpx1.js → variant-4ts7tf6z.js} +2 -2
- package/dist/chunks/{repository-54ma36ye.js → variant-54ma36ye.js} +1 -1
- package/dist/chunks/{repository-xvvw76kz.js → variant-568a5em1.js} +7 -7
- package/dist/chunks/{repository-kxam66j6.js → variant-5f219ejc.js} +13 -13
- package/dist/chunks/{repository-vt8dt6j6.js → variant-5hxx4pyd.js} +32 -32
- package/dist/chunks/{repository-5m9w47nd.js → variant-5m9w47nd.js} +1 -1
- package/dist/chunks/{repository-q76xcmv9.js → variant-5nzezdf7.js} +16 -16
- package/dist/chunks/{repository-e3qxr5gk.js → variant-5qd3pb7m.js} +2 -2
- package/dist/chunks/{repository-5t3nmthw.js → variant-5t3nmthw.js} +2 -2
- package/dist/chunks/{repository-7c08hygz.js → variant-5ygzbsd1.js} +11 -11
- package/dist/chunks/{repository-jnevnthy.js → variant-61btxmby.js} +27 -27
- package/dist/chunks/{repository-xhv84ab7.js → variant-68pftax3.js} +26 -26
- package/dist/chunks/{repository-vngdzw63.js → variant-6adhvgr3.js} +33 -29
- package/dist/chunks/{repository-xpwv3d90.js → variant-6hcewhx6.js} +9 -9
- package/dist/chunks/{repository-gpng080p.js → variant-6jjgb46x.js} +17 -17
- package/dist/chunks/{repository-h6qw898r.js → variant-6knrp48h.js} +11 -11
- package/dist/chunks/{repository-dfcrteyq.js → variant-6s97e1y4.js} +13 -13
- package/dist/chunks/{repository-6xb47vfp.js → variant-6xb47vfp.js} +1 -1
- package/dist/chunks/{repository-y1w7bwtd.js → variant-71238w16.js} +20 -20
- package/dist/chunks/{repository-71az546q.js → variant-71az546q.js} +2 -2
- package/dist/chunks/{repository-hp7m3mgg.js → variant-74d5t6nd.js} +26 -26
- package/dist/chunks/{repository-05t95569.js → variant-77q2g51s.js} +20 -20
- package/dist/chunks/{repository-5pptr25h.js → variant-78xwejay.js} +4 -4
- package/dist/chunks/{repository-d4he2qe1.js → variant-79qaa2kf.js} +9 -9
- package/dist/chunks/{repository-7bmhse3q.js → variant-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-47phkfqm.js → variant-7efsjjwe.js} +47 -47
- package/dist/chunks/{repository-g34b934z.js → variant-7hqrfg83.js} +25 -19
- package/dist/chunks/{repository-tk5m56y0.js → variant-7mxeeg2g.js} +13 -13
- package/dist/chunks/{repository-zhwzkc0c.js → variant-7nbd6e42.js} +18 -18
- package/dist/chunks/{repository-y6mhs71q.js → variant-7sbksatv.js} +4 -4
- package/dist/chunks/{repository-rjfypheq.js → variant-7x1g6g7e.js} +25 -25
- package/dist/chunks/{repository-84txncab.js → variant-84txncab.js} +1 -1
- package/dist/chunks/variant-84wd9syh.js +19 -0
- package/dist/chunks/{repository-k70p9jzb.js → variant-8a6ws7jr.js} +9 -9
- package/dist/chunks/{repository-g50bcqhp.js → variant-8a6z9e34.js} +4 -4
- package/dist/chunks/{repository-8hjmwb77.js → variant-8aa1p7b5.js} +29 -21
- package/dist/chunks/{repository-8d7r5vzw.js → variant-8d7r5vzw.js} +1 -1
- package/dist/chunks/{repository-mfct962c.js → variant-8hg3mrb3.js} +49 -19
- package/dist/chunks/{repository-5daktx2q.js → variant-8m6m0r52.js} +3 -3
- package/dist/chunks/{repository-cb3fgacg.js → variant-8pmm23xh.js} +23 -23
- package/dist/chunks/{repository-c8bydgjz.js → variant-93ygb5af.js} +6 -6
- package/dist/chunks/{repository-t7y8x8j8.js → variant-964qn63g.js} +16 -16
- package/dist/chunks/{repository-f6sbv01c.js → variant-9bdjprtk.js} +54 -49
- package/dist/chunks/{repository-9e5bzkjp.js → variant-9e5bzkjp.js} +3 -3
- package/dist/chunks/{repository-hw3ewgqj.js → variant-9rrz4dkr.js} +11 -11
- package/dist/chunks/{repository-tbs2jyb2.js → variant-9sk57pab.js} +7 -7
- package/dist/chunks/{repository-9yxvhatz.js → variant-9ya6mhzs.js} +4 -4
- package/dist/chunks/{repository-0f0pgr2e.js → variant-9z2y94hd.js} +3 -3
- package/dist/chunks/{repository-tzy9a5tv.js → variant-9z8hbw8m.js} +29 -29
- package/dist/chunks/variant-9zdhvgqs.js +18 -0
- package/dist/chunks/{repository-q6vgfyay.js → variant-a34t0mpe.js} +6 -6
- package/dist/chunks/{repository-aaet6srn.js → variant-aaet6srn.js} +2 -2
- package/dist/chunks/{repository-addxnjmp.js → variant-addxnjmp.js} +1 -1
- package/dist/chunks/{repository-zvjhkatg.js → variant-ahd542yp.js} +8 -8
- package/dist/chunks/{repository-2455wr4j.js → variant-amhyrjtc.js} +15 -15
- package/dist/chunks/{repository-68ga000j.js → variant-ants6d3e.js} +43 -43
- package/dist/chunks/{repository-zyk1yjk8.js → variant-b3f8fkhc.js} +5 -5
- package/dist/chunks/{repository-b6gygkdw.js → variant-b6gygkdw.js} +2 -2
- package/dist/chunks/{repository-b3cm3psy.js → variant-bg4pcaf0.js} +7 -7
- package/dist/chunks/{repository-tdpndm1c.js → variant-bgs9y14h.js} +5 -5
- package/dist/chunks/{repository-hkgfm0m5.js → variant-bhkpa1rg.js} +24 -24
- package/dist/chunks/{repository-zk46kswf.js → variant-br07cpn8.js} +14 -14
- package/dist/chunks/variant-c4g8b3d2.js +91 -0
- package/dist/chunks/{repository-pk7hbv6p.js → variant-c4y3ge1t.js} +21 -6
- package/dist/chunks/{repository-ydszhw6d.js → variant-c53d495w.js} +24 -24
- package/dist/chunks/{repository-4azg6a58.js → variant-c964e3b9.js} +10 -10
- package/dist/chunks/{repository-2texf5vf.js → variant-cf0t0sq2.js} +22 -22
- package/dist/chunks/{repository-g69c5a8v.js → variant-d5qg661p.js} +16 -16
- package/dist/chunks/{repository-f8xdbq78.js → variant-dfdje5vc.js} +9 -9
- package/dist/chunks/variant-dhyj2516.js +253 -0
- package/dist/chunks/{repository-dpkg50ah.js → variant-dpkg50ah.js} +1 -1
- package/dist/chunks/{repository-16558gs3.js → variant-dr8qfpz2.js} +50 -50
- package/dist/chunks/{repository-drnf6xwf.js → variant-drnf6xwf.js} +2 -2
- package/dist/chunks/{repository-s9nwmxxs.js → variant-e29b4955.js} +30 -30
- package/dist/chunks/{repository-chyvjp63.js → variant-e8pjc55s.js} +16 -16
- package/dist/chunks/{repository-8tsdq50x.js → variant-eahhehpg.js} +4 -4
- package/dist/chunks/{repository-ef5x83kb.js → variant-ef5x83kb.js} +1 -1
- package/dist/chunks/{repository-1bbkgx8g.js → variant-eq1pz5kg.js} +3 -3
- package/dist/chunks/{repository-s8qvywtq.js → variant-er7m31zp.js} +14 -14
- package/dist/chunks/{repository-etq0c3wd.js → variant-etq0c3wd.js} +1 -1
- package/dist/chunks/{repository-fy3w4x98.js → variant-ey895da0.js} +18 -18
- package/dist/chunks/{repository-23294nz8.js → variant-f4emsg9g.js} +26 -26
- package/dist/chunks/{repository-embw8kgh.js → variant-f73rjn58.js} +4 -4
- package/dist/chunks/{repository-5k54pn5m.js → variant-fgsd6912.js} +10 -10
- package/dist/chunks/{repository-zd30eb5w.js → variant-fhz5gfgy.js} +5 -5
- package/dist/chunks/{repository-rjsk0n41.js → variant-fmxe4r4y.js} +9 -9
- package/dist/chunks/{repository-9mhtj97w.js → variant-fn04q5tb.js} +26 -26
- package/dist/chunks/{repository-012g15cx.js → variant-fzjbfm8r.js} +13 -13
- package/dist/chunks/{repository-p42hj8p8.js → variant-g0445xdp.js} +8 -8
- package/dist/chunks/{repository-f8tnf7f1.js → variant-g1w795vw.js} +9 -25
- package/dist/chunks/{repository-gry8sgkd.js → variant-g2w01a3j.js} +11 -11
- package/dist/chunks/{repository-q7ngdz78.js → variant-g9v6bhk7.js} +27 -27
- package/dist/chunks/{repository-gd4qta3r.js → variant-gd4qta3r.js} +1 -1
- package/dist/chunks/{repository-bzadqhw2.js → variant-gjasn01h.js} +4 -4
- package/dist/chunks/{repository-dt6m3qwv.js → variant-gm3ga81k.js} +15 -15
- package/dist/chunks/{repository-aqryd466.js → variant-gm5v31zk.js} +24 -24
- package/dist/chunks/{repository-1gfgk62c.js → variant-gs3s1a1g.js} +8 -8
- package/dist/chunks/{repository-cjwramev.js → variant-gxzxndj0.js} +6 -6
- package/dist/chunks/{repository-dp8mmgq4.js → variant-gy6j4848.js} +15 -15
- package/dist/chunks/{repository-s4075y1x.js → variant-h1qkrmwx.js} +3 -3
- package/dist/chunks/{repository-h2b79v29.js → variant-h2b79v29.js} +2 -2
- package/dist/chunks/{repository-h6vf3j39.js → variant-h6vf3j39.js} +1 -1
- package/dist/chunks/{repository-yn96zvvk.js → variant-h97ec9bp.js} +11 -11
- package/dist/chunks/{repository-mjqndqed.js → variant-hs1x7rht.js} +5 -5
- package/dist/chunks/{repository-j56e64zr.js → variant-j56e64zr.js} +1 -1
- package/dist/chunks/{repository-0g25qkkf.js → variant-k57jac8p.js} +11 -11
- package/dist/chunks/{repository-a6rczh0a.js → variant-k98qre1b.js} +42 -42
- package/dist/chunks/{repository-k02x6tcx.js → variant-kwzc06gj.js} +33 -33
- package/dist/chunks/{repository-m3fdjcah.js → variant-m3fdjcah.js} +1 -1
- package/dist/chunks/{repository-h4p4pa57.js → variant-m8ke4caa.js} +11 -11
- package/dist/chunks/{repository-h4jx6m0r.js → variant-m9r1t6g4.js} +15 -15
- package/dist/chunks/{repository-m9w0rfyh.js → variant-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-w5ystqj3.js → variant-mgbygx5e.js} +6 -6
- package/dist/chunks/{repository-q7jxq9y7.js → variant-mhng4ka2.js} +35 -22
- package/dist/chunks/{repository-j2htzqze.js → variant-mrga4y2h.js} +2 -2
- package/dist/chunks/{repository-4z58m4b4.js → variant-n1n192bv.js} +4 -4
- package/dist/chunks/{repository-t7wcnk30.js → variant-n2b4x48v.js} +9 -9
- package/dist/chunks/{repository-rm4s95e7.js → variant-n49rxvzx.js} +87 -87
- package/dist/chunks/{repository-00e0wh3q.js → variant-n5mbdfqn.js} +18 -33
- package/dist/chunks/{repository-m44fkk4m.js → variant-nd1pxr6x.js} +4 -4
- package/dist/chunks/{repository-kfj4fg87.js → variant-neg622f9.js} +3 -3
- package/dist/chunks/{repository-mpd66srn.js → variant-nm57fktp.js} +1 -1
- package/dist/chunks/{repository-yf33k1p3.js → variant-nr7nt1j1.js} +18 -18
- package/dist/chunks/{repository-mn0942hp.js → variant-nv777kha.js} +30 -30
- package/dist/chunks/{repository-ecwx0042.js → variant-nvwwg556.js} +15 -15
- package/dist/chunks/{repository-pe71rtbx.js → variant-nyh253sr.js} +11 -11
- package/dist/chunks/{repository-3t7hfzt0.js → variant-p1knbw1p.js} +17 -17
- package/dist/chunks/{repository-r3c58j5g.js → variant-p83wwthj.js} +3 -3
- package/dist/chunks/{repository-7z6z4pna.js → variant-pjgg3r7a.js} +21 -21
- package/dist/chunks/{repository-pjvnvgmy.js → variant-pjvnvgmy.js} +1 -1
- package/dist/chunks/{repository-pknna89w.js → variant-pknna89w.js} +1 -1
- package/dist/chunks/{repository-46tr0mr7.js → variant-pppey5qj.js} +30 -30
- package/dist/chunks/{repository-j58c5xyq.js → variant-prq7hedt.js} +9 -9
- package/dist/chunks/{repository-cfsekr6v.js → variant-py3kkmfq.js} +2 -2
- package/dist/chunks/{repository-y6brtjeh.js → variant-pz8vp5s8.js} +35 -35
- package/dist/chunks/{repository-0j77ygfz.js → variant-q0xm7vwc.js} +6 -6
- package/dist/chunks/{repository-ajh7mqgq.js → variant-qay45eb9.js} +22 -22
- package/dist/chunks/{repository-s8v3amej.js → variant-qdfmac3b.js} +1 -1
- package/dist/chunks/{repository-0qpq6ar5.js → variant-qdr7jx6m.js} +13 -13
- package/dist/chunks/variant-qez5g771.js +72 -0
- package/dist/chunks/{repository-2k8khapm.js → variant-qgn6gcr1.js} +5 -5
- package/dist/chunks/{repository-4344f0hm.js → variant-qhpxdxn6.js} +33 -33
- package/dist/chunks/{repository-x4k83k5f.js → variant-qjeq5gt4.js} +9 -9
- package/dist/chunks/{repository-rn938jk3.js → variant-qmqydgm0.js} +47 -47
- package/dist/chunks/{repository-qnc92qwc.js → variant-qnc92qwc.js} +1 -1
- package/dist/chunks/{repository-0qqvk1tp.js → variant-qq77mc7s.js} +13 -13
- package/dist/chunks/{repository-qsdy395h.js → variant-qsdy395h.js} +1 -1
- package/dist/chunks/{repository-qxjc9qry.js → variant-qxjc9qry.js} +3 -3
- package/dist/chunks/{repository-b5f9cqb8.js → variant-qy4vpyeb.js} +24 -24
- package/dist/chunks/{repository-fy698pgn.js → variant-qz0t4qm7.js} +18 -18
- package/dist/chunks/{repository-m993mvxq.js → variant-qzsdnpce.js} +157 -145
- package/dist/chunks/variant-r4e50z9n.js +507 -0
- package/dist/chunks/{repository-h6yzxz9r.js → variant-r9jvjj2n.js} +25 -20
- package/dist/chunks/{repository-xmy45d6e.js → variant-ra5kesbp.js} +23 -23
- package/dist/chunks/{repository-1vvm3xv7.js → variant-rc8pxfxs.js} +11 -11
- package/dist/chunks/{repository-rdw6cm16.js → variant-rdw6cm16.js} +1 -1
- package/dist/chunks/{repository-ve1j3q85.js → variant-rhb3b3rg.js} +15 -15
- package/dist/chunks/{repository-t550f9t1.js → variant-rhjbct0v.js} +4 -4
- package/dist/chunks/{repository-1acjjqhc.js → variant-rhraev7y.js} +4 -4
- package/dist/chunks/{repository-2m8jawch.js → variant-s0b7t9fd.js} +4 -4
- package/dist/chunks/{repository-nszdq9jy.js → variant-s57remap.js} +83 -83
- package/dist/chunks/variant-s6bevt7v.js +26 -0
- package/dist/chunks/{repository-c20khjev.js → variant-sez5jh81.js} +21 -21
- package/dist/chunks/{repository-2t9hnq90.js → variant-sjsrxvhe.js} +10 -10
- package/dist/chunks/{repository-etdaqrbr.js → variant-st28f52c.js} +32 -32
- package/dist/chunks/{repository-gy4662d6.js → variant-sxzvmjd7.js} +11 -11
- package/dist/chunks/{repository-1cw3fj19.js → variant-sza3fptc.js} +3 -3
- package/dist/chunks/{repository-2tyga0yy.js → variant-t4q1mmep.js} +27 -14
- package/dist/chunks/{repository-a2ew8a62.js → variant-t6vsspdg.js} +7 -7
- package/dist/chunks/{repository-tarna68p.js → variant-t968jqya.js} +9 -9
- package/dist/chunks/{repository-rpp7c75e.js → variant-tafngdt4.js} +53 -49
- package/dist/chunks/{repository-tazgh4e4.js → variant-tazgh4e4.js} +1 -1
- package/dist/chunks/{repository-wnh11861.js → variant-tcbv57ja.js} +15 -15
- package/dist/chunks/{repository-tcezcvh9.js → variant-tcezcvh9.js} +1 -1
- package/dist/chunks/{repository-h16n41p4.js → variant-tczag1pk.js} +21 -21
- package/dist/chunks/{repository-tdstcens.js → variant-tdstcens.js} +1 -1
- package/dist/chunks/{repository-wb70vhte.js → variant-tyt8argr.js} +8 -8
- package/dist/chunks/{repository-v0es1rhs.js → variant-v0es1rhs.js} +2 -2
- package/dist/chunks/{repository-4c5k237e.js → variant-v3etbtgk.js} +32 -32
- package/dist/chunks/{repository-5ng375bv.js → variant-v5c0sq72.js} +30 -28
- package/dist/chunks/{repository-7d05dvcz.js → variant-v8gdyxxj.js} +6 -6
- package/dist/chunks/{repository-5ej07zgb.js → variant-vdva6mjj.js} +7 -7
- package/dist/chunks/{repository-veqvce7d.js → variant-veqvce7d.js} +1 -1
- package/dist/chunks/{repository-ce3pkz8w.js → variant-vhqj0s9d.js} +5 -5
- package/dist/chunks/{repository-57myy5jh.js → variant-vrrq7v3g.js} +5 -5
- package/dist/chunks/{repository-yqt58wae.js → variant-vtt0yr3x.js} +8 -8
- package/dist/chunks/{repository-pgze7171.js → variant-vw65f48a.js} +2 -2
- package/dist/chunks/{repository-vzs5sf6e.js → variant-vzs5sf6e.js} +1 -1
- package/dist/chunks/{repository-srhj5f56.js → variant-w3fw562n.js} +11 -11
- package/dist/chunks/{repository-w3wsvvr9.js → variant-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-b751st24.js → variant-w8fd2v8c.js} +7 -7
- package/dist/chunks/{repository-8kys6q5k.js → variant-wbdz0djz.js} +9 -9
- package/dist/chunks/{repository-wd87259q.js → variant-wd87259q.js} +1 -1
- package/dist/chunks/{repository-9815d8pv.js → variant-wfvae1sy.js} +28 -19
- package/dist/chunks/{repository-qv02qg64.js → variant-wj82z3q3.js} +5 -5
- package/dist/chunks/{repository-a199weyn.js → variant-wja9eyn5.js} +6 -6
- package/dist/chunks/{repository-067895h7.js → variant-wmhvad8c.js} +17 -17
- package/dist/chunks/{repository-hdjgtqrb.js → variant-wncc9x2v.js} +27 -27
- package/dist/chunks/{repository-5w6ne2rj.js → variant-wr410q8q.js} +11 -11
- package/dist/chunks/{repository-1wb0x8n3.js → variant-wwbgt871.js} +25 -9
- package/dist/chunks/{repository-6b1pjwt3.js → variant-x12m2wf0.js} +3 -3
- package/dist/chunks/{repository-mfmqp3ds.js → variant-x22hsb2q.js} +43 -43
- package/dist/chunks/{repository-prjw6x41.js → variant-x6g6krdm.js} +4 -4
- package/dist/chunks/{repository-4cw36es0.js → variant-xa33mv3d.js} +9 -9
- package/dist/chunks/{repository-rb8xm6cm.js → variant-xa75nvv1.js} +14 -14
- package/dist/chunks/{repository-ntbz9wjc.js → variant-xa9kyh0s.js} +11 -11
- package/dist/chunks/{repository-y16p1w2y.js → variant-xdrba4jw.js} +9 -9
- package/dist/chunks/{repository-g5w8qwbj.js → variant-xfkkasph.js} +4 -4
- package/dist/chunks/{repository-6x4qebe7.js → variant-xjhy8ajq.js} +35 -35
- package/dist/chunks/{repository-xkntkrq7.js → variant-xkntkrq7.js} +2 -2
- package/dist/chunks/{repository-y1fvbwt7.js → variant-y1fvbwt7.js} +1 -1
- package/dist/chunks/{repository-a7cd87s2.js → variant-y7fv8ve9.js} +71 -71
- package/dist/chunks/{repository-vqkmcgyv.js → variant-ydebc2ey.js} +3 -3
- package/dist/chunks/{repository-yprc5htm.js → variant-yj12ce45.js} +22 -22
- package/dist/chunks/{repository-9s1pr29s.js → variant-yrdak7p3.js} +45 -49
- package/dist/chunks/{repository-5t80mpw4.js → variant-yt7zt18h.js} +18 -18
- package/dist/chunks/{repository-0h1qn0y5.js → variant-yt8edf6v.js} +10 -10
- package/dist/chunks/{repository-pg4zag0e.js → variant-ytxvdrv4.js} +26 -26
- package/dist/chunks/{repository-w6gqnbcy.js → variant-yyet1bp6.js} +3 -3
- package/dist/chunks/{repository-z0bkrqjs.js → variant-z0bkrqjs.js} +1 -1
- package/dist/chunks/{repository-tg6e69q8.js → variant-z1fxcg55.js} +2 -2
- package/dist/chunks/{repository-t5483b9c.js → variant-z5qfcjmc.js} +4 -4
- package/dist/chunks/{repository-wnfszx78.js → variant-ze98vkjw.js} +10 -10
- package/dist/chunks/{repository-t8n7ymvq.js → variant-zm31y1th.js} +6 -6
- package/dist/chunks/{repository-zr2ceqn5.js → variant-zr2ceqn5.js} +1 -1
- package/dist/chunks/{repository-zxq2ej10.js → variant-zxq2ej10.js} +1 -1
- package/dist/chunks/{repository-rk3ekeb4.js → variant-zy36ej5j.js} +5 -6
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +86 -85
- package/dist/config/discovery.js +83 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -99
- package/dist/config/plugin/agent.js +119 -118
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +155 -154
- package/dist/config/plugin/compatibility.js +135 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -117
- package/dist/config/plugin/image.js +117 -116
- package/dist/config/plugin/instruction.js +91 -90
- package/dist/config/plugin/location-watcher.js +117 -116
- package/dist/config/plugin/mcp.js +126 -125
- package/dist/config/plugin/policy.js +118 -117
- package/dist/config/plugin/provider.js +117 -116
- package/dist/config/plugin/reference.js +119 -118
- package/dist/config/plugin/shell.js +119 -118
- package/dist/config/plugin/skill-file.js +103 -102
- package/dist/config/plugin/skill.js +136 -135
- package/dist/config/plugin/snapshot.js +117 -116
- package/dist/config/plugin/source.js +118 -117
- package/dist/config/plugin/tool-output.js +118 -117
- package/dist/config/plugin/websearch.js +118 -117
- package/dist/config/plugin/worktree.js +119 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -83
- package/dist/database/database.js +69 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +6 -0
- package/dist/database/migration.gen.js +50 -49
- package/dist/database/migration.js +52 -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 +77 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -363
- 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 +94 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -93
- 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 +71 -70
- package/dist/file-access.js +105 -104
- package/dist/file-mutation.js +95 -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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +104 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +101 -100
- package/dist/form.js +83 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -87
- package/dist/generate.js +106 -105
- package/dist/git.js +6 -6
- 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 +92 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -354
- package/dist/instruction-discovery.js +84 -83
- package/dist/instructions/builtins.js +88 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -81
- package/dist/job.js +79 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -73
- package/dist/location-activity.js +132 -131
- package/dist/location-lifecycle.js +108 -107
- package/dist/location-service-map.js +87 -86
- package/dist/location-services.js +352 -351
- package/dist/location.js +88 -87
- package/dist/managed-policy.js +12 -5
- package/dist/mcp/client.js +92 -91
- package/dist/mcp/index.js +104 -103
- package/dist/mcp/instructions.js +130 -129
- package/dist/mcp/oauth.js +79 -78
- package/dist/mcp/stdio.js +91 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +92 -91
- package/dist/model-resolver.js +99 -98
- package/dist/model.js +99 -98
- package/dist/models-dev.js +108 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -75
- package/dist/plugin/agent.js +77 -104
- package/dist/plugin/command.js +103 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -96
- package/dist/plugin/module.js +118 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +103 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -90
- package/dist/plugin/provider/azure.js +118 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -112
- package/dist/plugin/provider/digitalocean.js +94 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -95
- package/dist/plugin/provider/gitlab.js +94 -93
- package/dist/plugin/provider/google-vertex.js +91 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -78
- package/dist/plugin/provider/lmstudio.js +117 -116
- package/dist/plugin/provider/local.js +114 -113
- package/dist/plugin/provider/modal.js +93 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +117 -116
- package/dist/plugin/provider/openai.js +94 -93
- package/dist/plugin/provider/opencode.js +98 -96
- package/dist/plugin/provider/openrouter.js +92 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -79
- package/dist/plugin/provider/prompt-cache-key.js +91 -90
- package/dist/plugin/provider/sap-ai-core.js +92 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -115
- package/dist/plugin/provider/vercel.js +91 -90
- package/dist/plugin/provider/vllm.js +117 -116
- package/dist/plugin/provider/xai.js +92 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +157 -155
- package/dist/plugin/sdk.js +77 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +87 -86
- package/dist/plugin/vcs/hg.js +87 -86
- package/dist/plugin/verbosity.js +94 -93
- package/dist/plugin/warming.js +115 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +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 +219 -218
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -80
- package/dist/provider.js +94 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -91
- package/dist/reference/instructions.js +88 -87
- package/dist/reference.js +92 -91
- package/dist/repository-cache.js +82 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -95
- package/dist/rpc.js +87 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -74
- package/dist/session/compaction.js +136 -135
- package/dist/session/context.js +154 -153
- package/dist/session/diff.js +89 -88
- 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 +215 -214
- package/dist/session/execution.js +128 -127
- package/dist/session/generate.js +155 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +89 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +80 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +121 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -129
- package/dist/session/projector.js +87 -86
- package/dist/session/prompt.js +106 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -98
- package/dist/session/runner/publish-llm-event.js +114 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +165 -164
- package/dist/session/shell.js +131 -130
- package/dist/session/skill.js +104 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -73
- package/dist/session/store.js +88 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +158 -157
- package/dist/session/to-session-error.js +112 -111
- package/dist/session/transfer.js +206 -205
- package/dist/session/usage.js +1 -1
- package/dist/session.js +208 -207
- 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 +133 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -107
- package/dist/skill.js +111 -110
- package/dist/snapshot.js +92 -91
- 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 +125 -124
- package/dist/tool/plugin/edit.js +121 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +119 -118
- package/dist/tool/plugin/grep.js +125 -124
- package/dist/tool/plugin/mcp-resource.js +118 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -120
- package/dist/tool/plugin/question.js +104 -103
- package/dist/tool/plugin/read.js +126 -125
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +114 -113
- package/dist/tool/plugin/subagent.js +213 -212
- package/dist/tool/plugin/webfetch.js +113 -112
- package/dist/tool/plugin/websearch.js +115 -114
- package/dist/tool/plugin/write.js +123 -122
- package/dist/tool/read-filesystem.js +101 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/credential/sql.d.ts +6 -0
- package/dist/types/credential.d.ts +14 -0
- package/dist/types/database/migration/20261007190000_azure_cli_external_credential.d.ts +3 -0
- package/dist/types/filesystem.d.ts +11 -5
- package/dist/types/integration/connection.d.ts +2 -2
- package/dist/types/integration.d.ts +748 -8
- package/dist/types/managed-policy.d.ts +11 -1
- package/dist/types/model.d.ts +6 -0
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/module.d.ts +5 -1
- package/dist/types/plugin/provider/amazon-bedrock.d.ts +2 -1
- package/dist/types/plugin/provider/azure.d.ts +3 -2
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
- package/dist/types/wellknown.d.ts +3 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -89
- package/dist/websearch.js +83 -82
- package/dist/wellknown/plugin.js +77 -76
- package/dist/wellknown.js +82 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +81 -80
- 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 +90 -89
- package/dist/worktree.js +97 -96
- package/package.json +8 -10
- package/dist/chunks/repository-3b3navdj.js +0 -253
- package/dist/chunks/repository-45085rbj.js +0 -26
- package/dist/chunks/repository-b20bdvd4.js +0 -60
- package/dist/chunks/repository-g4nj3be3.js +0 -507
- package/dist/chunks/repository-j3pg2mx4.js +0 -47
- package/dist/chunks/repository-jqh9b0xq.js +0 -18
- package/dist/chunks/repository-mxr1v1s0.js +0 -28
- /package/dist/chunks/{repository-0qkdqm5v.js → variant-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-0zkw76rk.js → variant-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-17cy0kzp.js → variant-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-1cnp2v09.js → variant-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-1kg9ymc8.js → variant-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{repository-24dcb14g.js → variant-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-2710q6r3.js → variant-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-2axfhc9x.js → variant-2axfhc9x.js} +0 -0
- /package/dist/chunks/{repository-2c3vjs8z.js → variant-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-34c7v6d4.js → variant-34c7v6d4.js} +0 -0
- /package/dist/chunks/{repository-359p4xyc.js → variant-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-3asan66x.js → variant-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-3t0ybcrp.js → variant-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{repository-3v8g72cx.js → variant-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-3w5fmr99.js → variant-3w5fmr99.js} +0 -0
- /package/dist/chunks/{repository-3wcehsnq.js → variant-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-43n2bw4t.js → variant-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-4knz6hnm.js → variant-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-4vcrnpx2.js → variant-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-4y7fprxs.js → variant-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-53557ph1.js → variant-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-550bvhaj.js → variant-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-6prwharc.js → variant-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-6q2bdcd1.js → variant-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{repository-7akdwqpd.js → variant-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-7m9af43g.js → variant-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-822emrt2.js → variant-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-88xbtdfr.js → variant-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-8n3pysct.js → variant-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-8wj87zfr.js → variant-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-9a4afbnw.js → variant-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-9rqn6x4v.js → variant-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-a6k6eb26.js → variant-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-af5trqkr.js → variant-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-afrmfg78.js → variant-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-aqzs7mqg.js → variant-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-atq7p7m5.js → variant-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-bkyjaxrp.js → variant-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-bmr6ed5q.js → variant-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cf4snx6d.js → variant-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cvy3z8tj.js → variant-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-d9fn303g.js → variant-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-d9jj8t3e.js → variant-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-dajrwvna.js → variant-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-dap0rakb.js → variant-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-df08tz66.js → variant-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-dy18nga0.js → variant-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-e5kj55wp.js → variant-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-e73j6tqm.js → variant-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-ec1grn59.js → variant-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-eh3zwz77.js → variant-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-emrn6kk6.js → variant-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-f0mxakyp.js → variant-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-f6n9ztr4.js → variant-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-faypxj3z.js → variant-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-fd410y7t.js → variant-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-fxgpk5d8.js → variant-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{repository-g4wezp1m.js → variant-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-g86h250q.js → variant-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-gebd4c9n.js → variant-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-gftt206x.js → variant-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-hk9envan.js → variant-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-j2ntwpah.js → variant-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-j5zkgpj8.js → variant-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-jjkms2e6.js → variant-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-jr7sbwjy.js → variant-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-jwfs4k6c.js → variant-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-jzg6c2d5.js → variant-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-mp448xyj.js → variant-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-msx8hqn2.js → variant-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-my4zabxr.js → variant-my4zabxr.js} +0 -0
- /package/dist/chunks/{repository-n05xt0ee.js → variant-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-n3j8tn72.js → variant-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-njntx4h6.js → variant-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-q3sfg36h.js → variant-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-q74kybfr.js → variant-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-qaymkmh1.js → variant-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-qb87gjwd.js → variant-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-qfa1cgps.js → variant-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-qg3g05ea.js → variant-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-qrg20bc0.js → variant-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-rcb2kzg1.js → variant-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-sdp7kfr6.js → variant-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-ssg3fenm.js → variant-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-w803qqfp.js → variant-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-wc3fc9cn.js → variant-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-wer8tq1h.js → variant-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-wtztk69x.js → variant-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-x0ckcb58.js → variant-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-x61499pn.js → variant-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-y44na4kk.js → variant-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-y8cydn3q.js → variant-y8cydn3q.js} +0 -0
- /package/dist/chunks/{repository-y8f7s663.js → variant-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-ygaqb7jw.js → variant-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-ym463w8f.js → variant-ym463w8f.js} +0 -0
- /package/dist/chunks/{repository-z5v4ffb3.js → variant-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-z9919s4g.js → variant-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service35,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node38
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service35 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service35, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service35.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service64, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node38 = makeGlobalNode({ service: Service35, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service35, node38, exports_environment };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service37
|
|
3
|
+
} from "./variant-gm5v31zk.js";
|
|
4
4
|
import {
|
|
5
5
|
unavailable3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./variant-z5v4ffb3.js";
|
|
10
10
|
import {
|
|
11
11
|
File2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service44
|
|
13
|
+
} from "./variant-yj12ce45.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service80
|
|
16
|
+
} from "./variant-02yyzjed.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./variant-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin30
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -30,17 +30,17 @@ import { Global } from "@opencode/util/global";
|
|
|
30
30
|
import { sameDirectory } from "@opencode/util/path";
|
|
31
31
|
import { dirname, join } from "path";
|
|
32
32
|
import { Effect, PubSub, Semaphore, Stream } from "effect";
|
|
33
|
-
var
|
|
33
|
+
var Plugin30 = define({
|
|
34
34
|
id: "opencode.config.instruction",
|
|
35
35
|
effect: Effect.fn(function* () {
|
|
36
|
-
const discovery = yield*
|
|
36
|
+
const discovery = yield* Service44;
|
|
37
37
|
if (!discovery.project && !discovery.global)
|
|
38
38
|
return;
|
|
39
39
|
yield* Effect.gen(function* () {
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
|
-
const location = yield*
|
|
43
|
-
const watcher = yield*
|
|
42
|
+
const location = yield* Service80;
|
|
43
|
+
const watcher = yield* Service37;
|
|
44
44
|
const changes = yield* PubSub.sliding(1);
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
const start = yield* fs.resolve(location.directory);
|
|
@@ -115,4 +115,4 @@ function ancestorDirectories(start, stop) {
|
|
|
115
115
|
return [start, ...ancestorDirectories(dirname(start), stop)];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export {
|
|
118
|
+
export { Plugin30, exports_instruction };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83,
|
|
6
6
|
node87
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./variant-9ya6mhzs.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event20,
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./variant-v5c0sq72.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./variant-02yyzjed.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service73,
|
|
19
|
+
node76
|
|
20
|
+
} from "./variant-bhkpa1rg.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service78,
|
|
24
|
+
node82
|
|
25
|
+
} from "./variant-pjgg3r7a.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./variant-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
31
|
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service77,
|
|
34
|
+
node81
|
|
35
|
+
} from "./variant-8hg3mrb3.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./variant-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: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError4,
|
|
45
45
|
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
@@ -49,12 +49,12 @@ __export(exports_mcp4, {
|
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service32,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
55
|
configured: () => configured4,
|
|
56
56
|
layer: () => layer15,
|
|
57
|
-
node: () =>
|
|
57
|
+
node: () => node35
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,7 +103,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service32 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
108
|
var Options4 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -111,13 +111,13 @@ var Options4 = Schema.Struct({
|
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var layer15 = (options) => Layer.effect(
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
114
|
+
var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service80;
|
|
116
|
+
const environment = yield* Service73;
|
|
117
117
|
const bus = yield* Service83;
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
118
|
+
const forms = yield* Service78;
|
|
119
|
+
const integration = yield* Service77;
|
|
120
|
+
const credentials = yield* Service79;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -145,7 +145,7 @@ var layer15 = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service79, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer15 = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError4({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service79, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID15.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer15 = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service73, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer15 = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer15 = (options) => Layer.effect(Service41, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service32.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -532,12 +532,12 @@ function mergeCatalogs(catalogs) {
|
|
|
532
532
|
}
|
|
533
533
|
function configured4(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
535
|
+
service: Service32,
|
|
536
536
|
layer: layer15(options),
|
|
537
|
-
deps: [
|
|
537
|
+
deps: [node84, node76, node87, node82, node81, node83]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node35 = configured4();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service32, Options4, layer15, configured4, node35, exports_mcp4 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/retry.ts
|
|
9
9
|
var exports_retry = {};
|
|
10
10
|
__export(exports_retry, {
|
|
11
11
|
SessionRunnerRetry: () => exports_retry,
|
|
12
12
|
isRetryable: () => isRetryable2,
|
|
13
|
-
make: () =>
|
|
13
|
+
make: () => make10,
|
|
14
14
|
policy: () => policy2
|
|
15
15
|
});
|
|
16
16
|
import { isRetryable as isRetryable2 } from "@opencode/ai";
|
|
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
|
|
|
60
60
|
return { retry: true, attempt, delay: normalized };
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
var
|
|
63
|
+
var make10 = (bus, sessionID) => Effect.gen(function* () {
|
|
64
64
|
const decide = yield* policy2(sessionID);
|
|
65
65
|
const wait = (input) => Effect.gen(function* () {
|
|
66
66
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -77,4 +77,4 @@ var make5 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
77
77
|
return { decide, wait };
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export { isRetryable2, policy2,
|
|
80
|
+
export { isRetryable2, policy2, make10, exports_retry };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./variant-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./variant-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/local.ts
|
|
11
11
|
var exports_local = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-9ya6mhzs.js";
|
|
4
4
|
import {
|
|
5
5
|
supportsText2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-qy4vpyeb.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service13,
|
|
9
|
+
Event2
|
|
10
|
+
} from "./variant-pz8vp5s8.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/models-dev.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -32,7 +32,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
32
32
|
var ModelsDevPlugin2 = define({
|
|
33
33
|
id: "opencode.models.dev",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
|
-
const modelsDev = yield*
|
|
35
|
+
const modelsDev = yield* Service13;
|
|
36
36
|
const bus = yield* Service83;
|
|
37
37
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
38
38
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -66,7 +66,7 @@ var ModelsDevPlugin2 = define({
|
|
|
66
66
|
loaded.data = snapshots(data);
|
|
67
67
|
return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
|
|
68
68
|
};
|
|
69
|
-
yield* bus.subscribe(
|
|
69
|
+
yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
|
|
70
70
|
const latest = yield* modelsDev.get();
|
|
71
71
|
if (snapshots(latest) !== loaded.data)
|
|
72
72
|
yield* apply(latest);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
codeInterpreterArgsSchema2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-eh3zwz77.js";
|
|
4
4
|
import {
|
|
5
5
|
fileSearchArgsSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-e73j6tqm.js";
|
|
7
7
|
import {
|
|
8
8
|
webSearchArgsSchema2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./variant-3wcehsnq.js";
|
|
10
10
|
import {
|
|
11
11
|
webSearchPreviewArgsSchema2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./variant-dap0rakb.js";
|
|
13
13
|
import {
|
|
14
14
|
imageGenerationArgsSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./variant-4y7fprxs.js";
|
|
16
16
|
|
|
17
17
|
// src/github-copilot/responses/openai-responses-prepare-tools.ts
|
|
18
18
|
import {
|
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-2a5m3afh.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./variant-1dazxqgg.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./variant-b6gygkdw.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./variant-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service80,
|
|
18
|
+
node84
|
|
19
|
+
} from "./variant-02yyzjed.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service74,
|
|
22
|
+
node77
|
|
23
|
+
} from "./variant-05a2ta09.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./variant-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service73,
|
|
33
|
+
node: () => node76
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service73,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node76,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service73 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service80;
|
|
66
|
+
const workspace = yield* Service74;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service73.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node76 = makeLocationNode({
|
|
71
|
+
service: Service73,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node84, node77]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service73, node76, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./variant-w8fd2v8c.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./variant-71az546q.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./variant-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
16
|
ID: () => ID8,
|
|
17
|
-
Info: () =>
|
|
18
|
-
ListInput: () =>
|
|
17
|
+
Info: () => Info16,
|
|
18
|
+
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service63,
|
|
21
|
+
node: () => node66
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
@@ -26,8 +26,8 @@ import { Project } from "@opencode/schema/project";
|
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
28
|
var ID8 = PermissionSaved.ID;
|
|
29
|
-
var
|
|
30
|
-
var
|
|
29
|
+
var Info16 = PermissionSaved.Info;
|
|
30
|
+
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
33
33
|
var AddInput2 = Schema.Struct({
|
|
@@ -36,9 +36,9 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service63 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
42
42
|
const db = (yield* Service84).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service63.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node66 = makeGlobalNode({ service: Service63, layer, deps: [node88] });
|
|
72
72
|
|
|
73
|
-
export { ID8,
|
|
73
|
+
export { ID8, Info16, ListInput4, AddInput2, Service63, node66, exports_saved };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ID13
|
|
3
|
+
} from "./variant-wfvae1sy.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/provider/amazon-bedrock.ts
|
|
6
|
+
import { Effect } from "effect";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { define } from "@opencode/plugin/effect/plugin";
|
|
9
|
+
import { FSUtil } from "@opencode/util/fs-util";
|
|
10
|
+
import { Global } from "@opencode/util/global";
|
|
11
|
+
var CHAIN_ENV = [
|
|
12
|
+
"AWS_PROFILE",
|
|
13
|
+
"AWS_ACCESS_KEY_ID",
|
|
14
|
+
"AWS_WEB_IDENTITY_TOKEN_FILE",
|
|
15
|
+
"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",
|
|
16
|
+
"AWS_CONTAINER_CREDENTIALS_FULL_URI"
|
|
17
|
+
];
|
|
18
|
+
var isBedrock = (item) => item.package.startsWith("@opencode/ai/providers/amazon-bedrock");
|
|
19
|
+
var AmazonBedrockPlugin2 = define({
|
|
20
|
+
id: "opencode.provider.amazon.bedrock",
|
|
21
|
+
effect: Effect.fn(function* (ctx) {
|
|
22
|
+
const fs = yield* FSUtil.Service;
|
|
23
|
+
const paths = [
|
|
24
|
+
process.env.AWS_CONFIG_FILE ?? path.join(Global.Path.home, ".aws", "config"),
|
|
25
|
+
process.env.AWS_SHARED_CREDENTIALS_FILE ?? path.join(Global.Path.home, ".aws", "credentials")
|
|
26
|
+
];
|
|
27
|
+
const files = yield* Effect.all(paths.map((file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
28
|
+
return;
|
|
29
|
+
}))));
|
|
30
|
+
const profiles = Array.from(new Set(files.flatMap((content, index) => Array.from((content ?? "").matchAll(/^\s*\[([^\]\r\n]+)\]/gm)).flatMap((match) => {
|
|
31
|
+
const section = match[1].trim();
|
|
32
|
+
if (index === 1 || section === "default")
|
|
33
|
+
return [section];
|
|
34
|
+
return section.startsWith("profile ") ? [section.slice(8).trim()] : [];
|
|
35
|
+
})))).filter(Boolean).toSorted();
|
|
36
|
+
const sources = paths.map((file) => file.startsWith(Global.Path.home + path.sep) ? `~${file.slice(Global.Path.home.length)}` : file).join(" and ");
|
|
37
|
+
yield* ctx.integration.transform((editor) => {
|
|
38
|
+
editor.method.update({
|
|
39
|
+
integrationID: ID13.amazonBedrock,
|
|
40
|
+
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
41
|
+
});
|
|
42
|
+
editor.method.update({
|
|
43
|
+
integrationID: ID13.amazonBedrock,
|
|
44
|
+
method: { type: "key", label: "Bedrock API key" }
|
|
45
|
+
});
|
|
46
|
+
editor.method.update({
|
|
47
|
+
integrationID: ID13.amazonBedrock,
|
|
48
|
+
method: {
|
|
49
|
+
id: "aws-profile",
|
|
50
|
+
type: "external",
|
|
51
|
+
label: "AWS profile (SSO or named profile)",
|
|
52
|
+
form: [
|
|
53
|
+
{
|
|
54
|
+
key: "profile",
|
|
55
|
+
type: "string",
|
|
56
|
+
title: "AWS profile",
|
|
57
|
+
description: profiles.length ? `Found ${profiles.length} profile${profiles.length === 1 ? "" : "s"} in ${sources} on the server.` : `No AWS profiles found in ${sources} on the server.`,
|
|
58
|
+
required: true,
|
|
59
|
+
minLength: 1,
|
|
60
|
+
pattern: "\\S",
|
|
61
|
+
placeholder: "Profile name",
|
|
62
|
+
custom: true,
|
|
63
|
+
options: profiles.map((profile) => ({ value: profile, label: profile }))
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
yield* ctx.provider.transform((evt) => {
|
|
70
|
+
for (const item of evt.list()) {
|
|
71
|
+
if (!isBedrock(item.provider))
|
|
72
|
+
continue;
|
|
73
|
+
evt.update(item.provider.id, (provider) => {
|
|
74
|
+
const settings = provider.settings ?? {};
|
|
75
|
+
const chain = typeof settings.profile === "string" || CHAIN_ENV.some((name) => process.env[name]);
|
|
76
|
+
if (chain && provider.activation === "auto")
|
|
77
|
+
provider.activation = "enabled";
|
|
78
|
+
const region = process.env.AWS_REGION ?? process.env.AWS_DEFAULT_REGION ?? "us-east-1";
|
|
79
|
+
provider.settings = {
|
|
80
|
+
...settings,
|
|
81
|
+
...typeof settings.region !== "string" ? { region } : {},
|
|
82
|
+
...typeof settings.baseURL !== "string" && typeof settings.endpoint === "string" ? { baseURL: settings.endpoint } : {}
|
|
83
|
+
};
|
|
84
|
+
delete provider.settings.endpoint;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export { AmazonBedrockPlugin2 };
|