@opencode/core 0.0.0-dev-20840 → 0.0.0-dev-20841
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/agent.js +65 -65
- package/dist/aisdk-native.js +65 -65
- package/dist/aisdk.js +70 -70
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{instruction-discovery-hvzsqqsx.js → instruction-discovery-048wpaqz.js} +2 -2
- package/dist/chunks/{instruction-discovery-px7pepp5.js → instruction-discovery-0bs9zzzx.js} +10 -10
- package/dist/chunks/{instruction-discovery-6j2hn9e4.js → instruction-discovery-0cz3jc0p.js} +7 -7
- package/dist/chunks/instruction-discovery-0ef80a9n.js +513 -0
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → instruction-discovery-0j77ygfz.js} +4 -4
- package/dist/chunks/{instruction-discovery-dnk2bync.js → instruction-discovery-0qwsa8cf.js} +20 -20
- package/dist/chunks/{instruction-discovery-8ef3w3za.js → instruction-discovery-171zjyze.js} +22 -22
- package/dist/chunks/{instruction-discovery-6d646j32.js → instruction-discovery-18tb8vc6.js} +21 -21
- package/dist/chunks/{instruction-discovery-waskdk5r.js → instruction-discovery-1j6m29mr.js} +8 -8
- package/dist/chunks/{instruction-discovery-0eyn26b9.js → instruction-discovery-1j9vsfxy.js} +16 -16
- package/dist/chunks/{instruction-discovery-jws6fkes.js → instruction-discovery-1p07q0wb.js} +5 -5
- package/dist/chunks/{instruction-discovery-d15x96cv.js → instruction-discovery-1qs5jxd8.js} +10 -10
- package/dist/chunks/{instruction-discovery-8mk801n2.js → instruction-discovery-1sc6p60b.js} +6 -6
- package/dist/chunks/{instruction-discovery-tn7xc115.js → instruction-discovery-1th27d95.js} +15 -15
- package/dist/chunks/{instruction-discovery-rvs6eq9b.js → instruction-discovery-204e7tx6.js} +10 -10
- package/dist/chunks/{instruction-discovery-cdrvmw9m.js → instruction-discovery-26n2nh92.js} +1 -1
- package/dist/chunks/{instruction-discovery-m2tcdgpb.js → instruction-discovery-2c7hjkzv.js} +3 -3
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → instruction-discovery-2ccvkpx1.js} +1 -1
- package/dist/chunks/{instruction-discovery-40x1fydz.js → instruction-discovery-2ewrd21j.js} +9 -9
- package/dist/chunks/{instruction-discovery-b9yx8y6b.js → instruction-discovery-2hqksm5k.js} +1 -1
- package/dist/chunks/{instruction-discovery-nfakef9v.js → instruction-discovery-2j1vbg91.js} +30 -30
- package/dist/chunks/{instruction-discovery-weg71117.js → instruction-discovery-2jb6nwe1.js} +3 -3
- package/dist/chunks/{instruction-discovery-9z5x99zr.js → instruction-discovery-2jtaszgg.js} +6 -6
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → instruction-discovery-2k8khapm.js} +4 -4
- package/dist/chunks/{instruction-discovery-kqx1b4hy.js → instruction-discovery-2ryng5r3.js} +1 -1
- package/dist/chunks/{instruction-discovery-dbz40acx.js → instruction-discovery-2san2fa0.js} +17 -17
- package/dist/chunks/{instruction-discovery-76tqa8kn.js → instruction-discovery-2vr7dket.js} +4 -4
- package/dist/chunks/{instruction-discovery-gc5gqqes.js → instruction-discovery-350x23wf.js} +7 -7
- package/dist/chunks/{instruction-discovery-rn9rfv4g.js → instruction-discovery-38mem431.js} +27 -27
- package/dist/chunks/{instruction-discovery-f14emht6.js → instruction-discovery-3dytr8s2.js} +14 -14
- package/dist/chunks/{instruction-discovery-4e8vs6eh.js → instruction-discovery-4a0nv7mx.js} +7 -7
- package/dist/chunks/{instruction-discovery-kq88brb5.js → instruction-discovery-4r59zyn6.js} +19 -19
- package/dist/chunks/{instruction-discovery-r01m64ez.js → instruction-discovery-4swz1dz7.js} +8 -8
- package/dist/chunks/{instruction-discovery-javgrsyd.js → instruction-discovery-4w7gm2tt.js} +15 -15
- package/dist/chunks/{instruction-discovery-g6yfr6ja.js → instruction-discovery-4xpgt2w9.js} +3 -3
- package/dist/chunks/{instruction-discovery-5p9mjmqe.js → instruction-discovery-548fqp7q.js} +2 -2
- package/dist/chunks/{instruction-discovery-qqeeq2t9.js → instruction-discovery-57b9ws8p.js} +3 -3
- package/dist/chunks/{instruction-discovery-gn0vxyvw.js → instruction-discovery-58ytqwj2.js} +5 -5
- package/dist/chunks/{instruction-discovery-9mbzrdn5.js → instruction-discovery-5a9zf81m.js} +14 -14
- package/dist/chunks/{instruction-discovery-zsr4wwhv.js → instruction-discovery-5dkn69vz.js} +3 -3
- package/dist/chunks/{instruction-discovery-ht8z247h.js → instruction-discovery-5fa8zajf.js} +13 -13
- package/dist/chunks/{instruction-discovery-bgc7kbh3.js → instruction-discovery-5hj7q0js.js} +7 -7
- package/dist/chunks/{instruction-discovery-j3r6gmvc.js → instruction-discovery-5pbz2dd0.js} +1 -1
- package/dist/chunks/{instruction-discovery-e9f6ytk7.js → instruction-discovery-5qec7rge.js} +4 -4
- package/dist/chunks/{instruction-discovery-pf4f628p.js → instruction-discovery-5r4v0xwy.js} +9 -9
- package/dist/chunks/{instruction-discovery-2a9d0cmc.js → instruction-discovery-69enf89f.js} +21 -21
- package/dist/chunks/instruction-discovery-6xgwma86.js +26 -0
- package/dist/chunks/{instruction-discovery-dgkbzrr7.js → instruction-discovery-71dzwqxr.js} +38 -38
- package/dist/chunks/{instruction-discovery-nsqqdt6j.js → instruction-discovery-7dpqhkm4.js} +70 -70
- package/dist/chunks/{instruction-discovery-hrjwe8en.js → instruction-discovery-7nazv9sg.js} +12 -12
- package/dist/chunks/{instruction-discovery-8h6eptrw.js → instruction-discovery-7np5bmja.js} +40 -40
- package/dist/chunks/{instruction-discovery-j7znaxe9.js → instruction-discovery-7vsab7jg.js} +4 -4
- package/dist/chunks/{instruction-discovery-hkefcp24.js → instruction-discovery-7yw2sx3r.js} +5 -5
- package/dist/chunks/{instruction-discovery-s0gd8x5j.js → instruction-discovery-81gd8ewx.js} +19 -19
- package/dist/chunks/{instruction-discovery-pa87kxkp.js → instruction-discovery-85z0h67f.js} +14 -14
- package/dist/chunks/{instruction-discovery-pbj47z9e.js → instruction-discovery-88qvqy1e.js} +9 -9
- package/dist/chunks/{instruction-discovery-44gc5k7t.js → instruction-discovery-8evda89h.js} +25 -25
- package/dist/chunks/{instruction-discovery-gst7axd9.js → instruction-discovery-8gxqpgph.js} +3 -3
- package/dist/chunks/{instruction-discovery-c2mkhj0z.js → instruction-discovery-8tzwp5sx.js} +13 -13
- package/dist/chunks/{instruction-discovery-3z1qk93f.js → instruction-discovery-97y7hxer.js} +2 -2
- package/dist/chunks/{instruction-discovery-njjwfdf0.js → instruction-discovery-988cxgr8.js} +8 -8
- package/dist/chunks/{instruction-discovery-aa5pp8gg.js → instruction-discovery-99rzeaw0.js} +10 -10
- package/dist/chunks/{instruction-discovery-gbztcfes.js → instruction-discovery-9jcxats4.js} +39 -39
- package/dist/chunks/{instruction-discovery-ca87hkff.js → instruction-discovery-9w9w77gc.js} +26 -26
- package/dist/chunks/{instruction-discovery-0pzz74xs.js → instruction-discovery-aahhmcvt.js} +23 -23
- package/dist/chunks/{instruction-discovery-x661k3y3.js → instruction-discovery-addxnjmp.js} +3 -3
- package/dist/chunks/{instruction-discovery-vf1yw645.js → instruction-discovery-adejxgct.js} +13 -13
- package/dist/chunks/{instruction-discovery-5en5x0kf.js → instruction-discovery-afz809yg.js} +14 -14
- package/dist/chunks/{instruction-discovery-mkdntajj.js → instruction-discovery-arz7hw7x.js} +3 -3
- package/dist/chunks/{instruction-discovery-0jq9fyba.js → instruction-discovery-b4s8ej7r.js} +8 -8
- package/dist/chunks/{instruction-discovery-0cs4zv4k.js → instruction-discovery-b6qa6035.js} +31 -31
- package/dist/chunks/{instruction-discovery-fqhbsnr5.js → instruction-discovery-b6syrwy2.js} +7 -7
- package/dist/chunks/{instruction-discovery-vhsntnef.js → instruction-discovery-b9srm8rz.js} +8 -8
- package/dist/chunks/instruction-discovery-bmqnjeh2.js +253 -0
- package/dist/chunks/{instruction-discovery-qcv6amq6.js → instruction-discovery-bt2dtkh7.js} +29 -29
- package/dist/chunks/{instruction-discovery-5y8sveg1.js → instruction-discovery-byr661vw.js} +9 -9
- package/dist/chunks/{instruction-discovery-07x6hd07.js → instruction-discovery-c5w8pbd1.js} +10 -10
- package/dist/chunks/{instruction-discovery-sa8ekw3f.js → instruction-discovery-c8ax2afj.js} +1 -1
- package/dist/chunks/{instruction-discovery-8q2jmg2k.js → instruction-discovery-c8ses4bc.js} +11 -11
- package/dist/chunks/{instruction-discovery-1f58yghe.js → instruction-discovery-ch67yd34.js} +9 -9
- package/dist/chunks/{instruction-discovery-g0445xdp.js → instruction-discovery-cmwkp3r5.js} +3 -3
- package/dist/chunks/{instruction-discovery-djkfg51f.js → instruction-discovery-d0ak8zy9.js} +6 -6
- package/dist/chunks/{instruction-discovery-2xdnazbr.js → instruction-discovery-d15wnv4q.js} +14 -14
- package/dist/chunks/{instruction-discovery-ax9d17m8.js → instruction-discovery-d3sk2mbt.js} +6 -6
- package/dist/chunks/{instruction-discovery-etpda0sw.js → instruction-discovery-d5fxhgcy.js} +9 -9
- package/dist/chunks/{instruction-discovery-c57mtz3s.js → instruction-discovery-d9kdwp41.js} +5 -5
- package/dist/chunks/{instruction-discovery-rjxw408s.js → instruction-discovery-dhhqcq64.js} +9 -9
- package/dist/chunks/{instruction-discovery-79qaa2kf.js → instruction-discovery-djszqvmq.js} +7 -7
- package/dist/chunks/{instruction-discovery-kpkbsjrk.js → instruction-discovery-dx2h6xhc.js} +22 -22
- package/dist/chunks/{instruction-discovery-1ss6y7et.js → instruction-discovery-dzdcg5g9.js} +9 -9
- package/dist/chunks/{instruction-discovery-7rdq5agd.js → instruction-discovery-e0pxcnmw.js} +7 -7
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → instruction-discovery-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-nma959mg.js → instruction-discovery-e80seqcp.js} +2 -2
- package/dist/chunks/{instruction-discovery-4pcdpmjs.js → instruction-discovery-eefd4g5w.js} +4 -4
- package/dist/chunks/{instruction-discovery-6cc608et.js → instruction-discovery-eq08xn2q.js} +13 -13
- package/dist/chunks/{instruction-discovery-fa9zq5gx.js → instruction-discovery-ereph1h9.js} +14 -14
- package/dist/chunks/{instruction-discovery-c1fqxshp.js → instruction-discovery-es1vcfrp.js} +1 -1
- package/dist/chunks/{instruction-discovery-skh2fhmy.js → instruction-discovery-ewk422xx.js} +12 -12
- package/dist/chunks/{instruction-discovery-wscexn1p.js → instruction-discovery-ezzmrcry.js} +25 -25
- package/dist/chunks/{instruction-discovery-x2kh2bfd.js → instruction-discovery-fng9jkm1.js} +7 -7
- package/dist/chunks/{instruction-discovery-hycye272.js → instruction-discovery-fqp3mcfq.js} +1 -1
- package/dist/chunks/{instruction-discovery-349j9p8a.js → instruction-discovery-fykx5zb5.js} +38 -38
- package/dist/chunks/{instruction-discovery-be9647t4.js → instruction-discovery-fz79ktw5.js} +5 -5
- package/dist/chunks/{instruction-discovery-9137mpr7.js → instruction-discovery-g0z1em0w.js} +4 -4
- package/dist/chunks/{instruction-discovery-pn6tb00z.js → instruction-discovery-g6187q27.js} +28 -28
- package/dist/chunks/{instruction-discovery-mdjjyzh0.js → instruction-discovery-g678yp76.js} +28 -28
- package/dist/chunks/{instruction-discovery-t2fpy6a4.js → instruction-discovery-gcqzh3f4.js} +25 -25
- package/dist/chunks/{instruction-discovery-5fg11txv.js → instruction-discovery-ge2q9s3y.js} +8 -8
- package/dist/chunks/{instruction-discovery-tjgs01qf.js → instruction-discovery-ggsp0fny.js} +9 -9
- package/dist/chunks/{instruction-discovery-qdanfvrz.js → instruction-discovery-gjqhxvm8.js} +15 -15
- package/dist/chunks/{instruction-discovery-5cfzjc8s.js → instruction-discovery-gq58s3m0.js} +23 -23
- package/dist/chunks/{instruction-discovery-y54hr7f3.js → instruction-discovery-h04zhhvt.js} +7 -7
- package/dist/chunks/{instruction-discovery-bzh65nen.js → instruction-discovery-h11z96pq.js} +10 -10
- package/dist/chunks/{instruction-discovery-4b6qjr7h.js → instruction-discovery-h4ps1sgr.js} +3 -3
- package/dist/chunks/{instruction-discovery-6285nte3.js → instruction-discovery-h4y0jjzh.js} +15 -15
- package/dist/chunks/{instruction-discovery-1pasrz8p.js → instruction-discovery-hw2yy5aw.js} +9 -9
- package/dist/chunks/{instruction-discovery-h9pnpq88.js → instruction-discovery-j34bs4nz.js} +3 -3
- package/dist/chunks/{instruction-discovery-maccertz.js → instruction-discovery-j47qf441.js} +11 -11
- package/dist/chunks/{instruction-discovery-yec7xxa8.js → instruction-discovery-j4c2xja6.js} +11 -11
- package/dist/chunks/{instruction-discovery-aw71ddvx.js → instruction-discovery-j6a2evck.js} +16 -16
- package/dist/chunks/{instruction-discovery-72c3g3zh.js → instruction-discovery-j9ysnh0t.js} +14 -14
- package/dist/chunks/{instruction-discovery-9h13qr2j.js → instruction-discovery-janq1scx.js} +4 -4
- package/dist/chunks/{instruction-discovery-y5n9ymtk.js → instruction-discovery-jgbvdr9r.js} +3 -3
- package/dist/chunks/{instruction-discovery-he27pt63.js → instruction-discovery-jhdf29st.js} +1 -1
- package/dist/chunks/{instruction-discovery-45xt7wxm.js → instruction-discovery-jpen4qdf.js} +2 -2
- package/dist/chunks/{instruction-discovery-phz3h32g.js → instruction-discovery-jqh9b0xq.js} +4 -4
- package/dist/chunks/{instruction-discovery-f1e3sab5.js → instruction-discovery-jvx148y3.js} +9 -9
- package/dist/chunks/{instruction-discovery-y71avatq.js → instruction-discovery-jwcy2c2z.js} +3 -3
- package/dist/chunks/{instruction-discovery-dpemy54c.js → instruction-discovery-k2xcv0kf.js} +11 -11
- package/dist/chunks/{instruction-discovery-5bpa657r.js → instruction-discovery-ketq9gmb.js} +9 -9
- package/dist/chunks/{instruction-discovery-cs8e4cmc.js → instruction-discovery-kppw7hr6.js} +24 -24
- package/dist/chunks/{instruction-discovery-ctzqq1qd.js → instruction-discovery-ksek9mqj.js} +34 -34
- package/dist/chunks/{instruction-discovery-ya0wjwqz.js → instruction-discovery-ksqr7yfe.js} +6 -6
- package/dist/chunks/{instruction-discovery-jmhkjwrc.js → instruction-discovery-ky9vbweg.js} +21 -21
- package/dist/chunks/{instruction-discovery-xb5zqdrm.js → instruction-discovery-mbkrq27a.js} +5 -5
- package/dist/chunks/{instruction-discovery-bpm1eh2k.js → instruction-discovery-mf2nfva2.js} +17 -17
- package/dist/chunks/{instruction-discovery-a7p2x4hn.js → instruction-discovery-mkkx2xvk.js} +27 -27
- package/dist/chunks/{instruction-discovery-fvkvqbbt.js → instruction-discovery-mnv9vkrs.js} +1 -1
- package/dist/chunks/{instruction-discovery-wst2njc5.js → instruction-discovery-myrhaa8e.js} +7 -7
- package/dist/chunks/{instruction-discovery-s4801m28.js → instruction-discovery-n3aya5hh.js} +15 -15
- package/dist/chunks/{instruction-discovery-h0vrang6.js → instruction-discovery-n3jw88fx.js} +7 -7
- package/dist/chunks/{instruction-discovery-00v13zp4.js → instruction-discovery-na4dcjrg.js} +24 -24
- package/dist/chunks/{instruction-discovery-6rkk3bmg.js → instruction-discovery-nbyj5sqq.js} +85 -85
- package/dist/chunks/{instruction-discovery-mytfezrn.js → instruction-discovery-ne89875c.js} +14 -14
- package/dist/chunks/{instruction-discovery-6p2pmyag.js → instruction-discovery-njm3x30h.js} +88 -88
- package/dist/chunks/{instruction-discovery-adq9f0f4.js → instruction-discovery-nqxj0yn4.js} +1 -1
- package/dist/chunks/{instruction-discovery-7pk5n3s1.js → instruction-discovery-nvakrpsp.js} +10 -10
- package/dist/chunks/{instruction-discovery-nann43hw.js → instruction-discovery-nzbbc5k0.js} +9 -9
- package/dist/chunks/{instruction-discovery-0p635tx0.js → instruction-discovery-p097c2sx.js} +12 -12
- package/dist/chunks/{instruction-discovery-2k71kv7p.js → instruction-discovery-ph842b28.js} +3 -3
- package/dist/chunks/{instruction-discovery-r46dytrv.js → instruction-discovery-prhrtzb1.js} +51 -51
- package/dist/chunks/{instruction-discovery-mjk9grpt.js → instruction-discovery-pw6jj9n3.js} +12 -12
- package/dist/chunks/{instruction-discovery-ehrv9c33.js → instruction-discovery-pwpq1fb6.js} +16 -16
- package/dist/chunks/{instruction-discovery-ffam7gj8.js → instruction-discovery-pznx5chc.js} +16 -16
- package/dist/chunks/{instruction-discovery-wkx576x1.js → instruction-discovery-q17sgkmf.js} +14 -14
- package/dist/chunks/{instruction-discovery-s2ydx70g.js → instruction-discovery-q78nszrx.js} +29 -29
- package/dist/chunks/{instruction-discovery-v5dkyp31.js → instruction-discovery-qa3qhgw8.js} +3 -3
- package/dist/chunks/{instruction-discovery-7ffadgyk.js → instruction-discovery-qgezrw5d.js} +23 -23
- package/dist/chunks/{instruction-discovery-qafgrsyw.js → instruction-discovery-qms70dv9.js} +3 -3
- package/dist/chunks/{instruction-discovery-z1cyx7dz.js → instruction-discovery-qyjj4w9t.js} +10 -10
- package/dist/chunks/{instruction-discovery-jf7mfsg7.js → instruction-discovery-r2a2vjc6.js} +43 -43
- package/dist/chunks/{instruction-discovery-nd4tfyg0.js → instruction-discovery-r70na3yp.js} +7 -7
- package/dist/chunks/{instruction-discovery-fmyc3a1p.js → instruction-discovery-r75v65gt.js} +3 -3
- package/dist/chunks/{instruction-discovery-3tmkt29g.js → instruction-discovery-rb0m5pb6.js} +17 -17
- package/dist/chunks/{instruction-discovery-qh4qnmhp.js → instruction-discovery-rtbh45rc.js} +12 -12
- package/dist/chunks/{instruction-discovery-013q7qyk.js → instruction-discovery-rwbpmje9.js} +16 -16
- package/dist/chunks/{instruction-discovery-z45psjsg.js → instruction-discovery-s9bfrye6.js} +54 -54
- package/dist/chunks/{instruction-discovery-b3f8fkhc.js → instruction-discovery-scgrse2b.js} +3 -3
- package/dist/chunks/{instruction-discovery-pd63a6br.js → instruction-discovery-sddgd5f8.js} +15 -15
- package/dist/chunks/{instruction-discovery-qbkt1j42.js → instruction-discovery-sm4j4wt5.js} +15 -15
- package/dist/chunks/{instruction-discovery-z66qdbeq.js → instruction-discovery-sp61bypy.js} +14 -14
- package/dist/chunks/{instruction-discovery-86pav6my.js → instruction-discovery-ssgq4v3h.js} +18 -18
- package/dist/chunks/{instruction-discovery-xbebwte6.js → instruction-discovery-svysebdv.js} +149 -149
- package/dist/chunks/{instruction-discovery-re32j193.js → instruction-discovery-terdh6tz.js} +44 -44
- package/dist/chunks/{instruction-discovery-rert0e01.js → instruction-discovery-tkb22qbm.js} +1 -1
- package/dist/chunks/{instruction-discovery-03v1g770.js → instruction-discovery-tppqj79j.js} +9 -9
- package/dist/chunks/{instruction-discovery-gfzqzyz0.js → instruction-discovery-tqenhx9q.js} +4 -4
- package/dist/chunks/{instruction-discovery-xnq97b3q.js → instruction-discovery-ts8qfj50.js} +1 -1
- package/dist/chunks/{instruction-discovery-zyc3n123.js → instruction-discovery-tvmrjeqd.js} +8 -8
- package/dist/chunks/{instruction-discovery-7sxtqf2f.js → instruction-discovery-tym1zfxs.js} +8 -8
- package/dist/chunks/{instruction-discovery-2jj4c4zt.js → instruction-discovery-v8pa3zp8.js} +16 -16
- package/dist/chunks/{instruction-discovery-vjawha9d.js → instruction-discovery-vezvtjyv.js} +8 -8
- package/dist/chunks/{instruction-discovery-azwhd2tc.js → instruction-discovery-vhjwdtv8.js} +42 -42
- package/dist/chunks/{instruction-discovery-g21pftbj.js → instruction-discovery-vky023fh.js} +4 -4
- package/dist/chunks/{instruction-discovery-w1ba7bfx.js → instruction-discovery-vrzt526f.js} +3 -3
- package/dist/chunks/{instruction-discovery-z8f4xtsn.js → instruction-discovery-vt28d6rb.js} +30 -30
- package/dist/chunks/{instruction-discovery-gatvvfrq.js → instruction-discovery-vw6bdczd.js} +4 -4
- package/dist/chunks/{instruction-discovery-7bgbbv4d.js → instruction-discovery-vz2yvhh5.js} +13 -13
- package/dist/chunks/{instruction-discovery-dqn19q2m.js → instruction-discovery-w96a8yrh.js} +17 -17
- package/dist/chunks/{instruction-discovery-affjwcb5.js → instruction-discovery-wby3r2te.js} +10 -10
- package/dist/chunks/{instruction-discovery-vzzm1fs5.js → instruction-discovery-wf98qgyv.js} +10 -10
- package/dist/chunks/{instruction-discovery-re585wd9.js → instruction-discovery-wnk72qpq.js} +6 -6
- package/dist/chunks/{instruction-discovery-krzm7rgx.js → instruction-discovery-wp8sj255.js} +22 -22
- package/dist/chunks/{instruction-discovery-wj1r1ebq.js → instruction-discovery-wpemy600.js} +3 -3
- package/dist/chunks/{instruction-discovery-q8xpgn7z.js → instruction-discovery-wr0v3f2s.js} +33 -33
- package/dist/chunks/{instruction-discovery-k0dbnswt.js → instruction-discovery-wt4s349c.js} +17 -17
- package/dist/chunks/{instruction-discovery-z2qvtray.js → instruction-discovery-wvej1134.js} +5 -5
- package/dist/chunks/{instruction-discovery-7zgemx1q.js → instruction-discovery-wwyp4jt6.js} +14 -14
- package/dist/chunks/{instruction-discovery-dys7k0s0.js → instruction-discovery-x5wrmng7.js} +9 -9
- package/dist/chunks/{instruction-discovery-fh0k82d9.js → instruction-discovery-x7bx6zs0.js} +9 -9
- package/dist/chunks/{instruction-discovery-2r93mh4x.js → instruction-discovery-xacpwdh9.js} +4 -4
- package/dist/chunks/{instruction-discovery-3ppptnan.js → instruction-discovery-xcd0eash.js} +5 -5
- package/dist/chunks/{instruction-discovery-npyjj4rp.js → instruction-discovery-xk3qqngr.js} +9 -9
- package/dist/chunks/{instruction-discovery-a6ty58hg.js → instruction-discovery-xkfm5vcm.js} +1 -1
- package/dist/chunks/{instruction-discovery-36k4rsrb.js → instruction-discovery-xqt608y9.js} +29 -29
- package/dist/chunks/{instruction-discovery-s70zranf.js → instruction-discovery-xyc3y5xg.js} +12 -12
- package/dist/chunks/{instruction-discovery-y9sjh7nr.js → instruction-discovery-xz5716ww.js} +31 -31
- package/dist/chunks/{instruction-discovery-5zsyzc28.js → instruction-discovery-xzdfrpe2.js} +16 -16
- package/dist/chunks/{instruction-discovery-hcd6s0vj.js → instruction-discovery-y147vcw1.js} +17 -17
- package/dist/chunks/{instruction-discovery-rajdm094.js → instruction-discovery-y1qj9qp6.js} +28 -28
- package/dist/chunks/{instruction-discovery-9m0vp2wg.js → instruction-discovery-y8ptd9jv.js} +28 -28
- package/dist/chunks/{instruction-discovery-0gbd5s62.js → instruction-discovery-yc7106p4.js} +17 -17
- package/dist/chunks/{instruction-discovery-mbsb5skb.js → instruction-discovery-yeyrdzm0.js} +21 -21
- package/dist/chunks/{instruction-discovery-at0j0jj5.js → instruction-discovery-yh9g6p3v.js} +37 -37
- package/dist/chunks/{instruction-discovery-v4htay49.js → instruction-discovery-ykmz0d95.js} +5 -5
- package/dist/chunks/{instruction-discovery-zpmxq5w8.js → instruction-discovery-yng1p9nw.js} +8 -8
- package/dist/chunks/{instruction-discovery-354f5h3z.js → instruction-discovery-yztevfhp.js} +17 -17
- package/dist/chunks/{instruction-discovery-q5heszs0.js → instruction-discovery-z2qawcf3.js} +22 -22
- package/dist/chunks/{instruction-discovery-29ry0jec.js → instruction-discovery-z4dcjezs.js} +10 -10
- package/dist/chunks/{instruction-discovery-c4317cpf.js → instruction-discovery-zamq423t.js} +1 -1
- package/dist/chunks/{instruction-discovery-w8cfkb27.js → instruction-discovery-zest4r3s.js} +24 -24
- package/dist/chunks/{instruction-discovery-vyq7c4ep.js → instruction-discovery-zkskjjqs.js} +18 -18
- package/dist/chunks/{instruction-discovery-zq8zhbxc.js → instruction-discovery-zmbx7t07.js} +44 -44
- package/dist/chunks/{instruction-discovery-h21ghyap.js → instruction-discovery-zp551mt7.js} +25 -25
- package/dist/codemode/instructions.js +3 -3
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +59 -59
- package/dist/config/normalize.js +73 -73
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +165 -165
- package/dist/config/plugin/compaction.js +119 -119
- package/dist/config/plugin/compatibility.js +104 -104
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +87 -87
- package/dist/config/plugin/instruction.js +65 -65
- package/dist/config/plugin/location-watcher.js +89 -89
- package/dist/config/plugin/mcp.js +94 -94
- package/dist/config/plugin/policy.js +88 -88
- package/dist/config/plugin/provider.js +87 -87
- package/dist/config/plugin/reference.js +88 -88
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +105 -105
- package/dist/config/plugin/snapshot.js +87 -87
- package/dist/config/plugin/source.js +88 -88
- package/dist/config/plugin/tool-output.js +87 -87
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +89 -89
- package/dist/config/variable.js +2 -2
- package/dist/config.js +91 -91
- package/dist/credential.js +61 -61
- package/dist/database/database.js +55 -55
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +236 -236
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +66 -66
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +12 -12
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +67 -67
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +69 -69
- package/dist/form.js +62 -62
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +64 -64
- package/dist/generate.js +79 -79
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +75 -75
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +306 -306
- package/dist/instruction-discovery.js +61 -61
- package/dist/instructions/builtins.js +63 -63
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +65 -65
- package/dist/job.js +59 -59
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +56 -56
- package/dist/location-lifecycle.js +81 -81
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +304 -304
- package/dist/location.js +60 -60
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +63 -63
- package/dist/modal/models.js +75 -75
- package/dist/model-resolver.js +74 -74
- package/dist/model.js +76 -76
- package/dist/models-dev.js +70 -70
- package/dist/permission/saved.js +61 -61
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +54 -54
- package/dist/plugin/agent.js +56 -56
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +173 -173
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +278 -278
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +71 -71
- package/dist/plugin/module.js +88 -88
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +66 -66
- package/dist/plugin/provider/azure.js +86 -86
- package/dist/plugin/provider/chatgpt.js +68 -68
- package/dist/plugin/provider/cloudflare-ai-gateway.js +85 -85
- package/dist/plugin/provider/cloudflare-workers-ai.js +85 -85
- package/dist/plugin/provider/configured.js +84 -84
- package/dist/plugin/provider/digitalocean.js +68 -68
- package/dist/plugin/provider/github-copilot.js +70 -70
- package/dist/plugin/provider/gitlab.js +68 -68
- package/dist/plugin/provider/google-vertex.js +85 -85
- package/dist/plugin/provider/llmgateway.js +58 -58
- package/dist/plugin/provider/lmstudio.js +95 -95
- package/dist/plugin/provider/local.js +92 -92
- package/dist/plugin/provider/modal.js +68 -68
- package/dist/plugin/provider/ollama.js +95 -95
- package/dist/plugin/provider/openai.js +69 -69
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +67 -67
- package/dist/plugin/provider/poe.js +58 -58
- package/dist/plugin/provider/prompt-cache-key.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +66 -66
- package/dist/plugin/provider/snowflake-cortex.js +86 -86
- package/dist/plugin/provider/vercel.js +66 -66
- package/dist/plugin/provider/vllm.js +95 -95
- package/dist/plugin/provider/xai.js +67 -67
- package/dist/plugin/provider.js +131 -131
- package/dist/plugin/sdk.js +56 -56
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +103 -103
- package/dist/plugin/supervisor.js +296 -296
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +61 -61
- package/dist/plugin/vcs/hg.js +63 -63
- package/dist/plugin/verbosity.js +69 -69
- package/dist/plugin/warming.js +86 -86
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +178 -178
- package/dist/project/sql.js +2 -2
- package/dist/project.js +59 -59
- package/dist/provider.js +77 -77
- package/dist/pty.js +65 -65
- package/dist/reference/instructions.js +63 -63
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +63 -63
- package/dist/rpc.js +63 -63
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +117 -117
- package/dist/session/diff.js +64 -64
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +115 -115
- package/dist/session/execution.js +99 -99
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +10 -10
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +90 -90
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +100 -100
- package/dist/session/projector.js +62 -62
- package/dist/session/prompt.js +78 -78
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +65 -65
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +184 -184
- package/dist/session/runner/model.js +74 -74
- package/dist/session/runner/publish-llm-event.js +85 -85
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +94 -94
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +131 -131
- package/dist/session/shell.js +99 -99
- package/dist/session/skill.js +77 -77
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +166 -166
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +120 -120
- package/dist/session/to-session-error.js +84 -84
- package/dist/session/transfer.js +111 -111
- package/dist/session.js +174 -174
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +70 -70
- package/dist/tool/mcp.js +93 -93
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +93 -93
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +87 -87
- package/dist/tool/plugin/opencode.js +83 -83
- package/dist/tool/plugin/patch.js +92 -92
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +170 -170
- package/dist/tool/plugin/skill.js +85 -85
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +86 -86
- package/dist/tool/plugin/write.js +92 -92
- package/dist/tool/read-filesystem.js +66 -66
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +67 -67
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/variant.js +67 -67
- package/dist/vcs.js +66 -66
- package/dist/websearch.js +64 -64
- package/dist/wellknown/plugin.js +56 -56
- package/dist/wellknown.js +59 -59
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +65 -65
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-14fj7mdh.js +0 -26
- package/dist/chunks/instruction-discovery-bsemgcs3.js +0 -253
- package/dist/chunks/instruction-discovery-e37mevwb.js +0 -513
- /package/dist/chunks/{instruction-discovery-vgbe0hx2.js → instruction-discovery-0n8a0ffz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rj3eygr5.js → instruction-discovery-c41wscbt.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2cmv458r.js → instruction-discovery-dtqg9ce1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-abyq9s79.js → instruction-discovery-hay4m1s6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0vvktwqa.js → instruction-discovery-z5hqtv59.js} +0 -0
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./instruction-discovery-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83,
|
|
6
|
-
|
|
7
|
-
} from "./instruction-discovery-
|
|
6
|
+
node86
|
|
7
|
+
} from "./instruction-discovery-xacpwdh9.js";
|
|
8
8
|
import {
|
|
9
9
|
parse4,
|
|
10
10
|
validateBranch3,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
same2
|
|
13
13
|
} from "./instruction-discovery-84txncab.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./instruction-discovery-
|
|
15
|
+
Service70,
|
|
16
|
+
node73
|
|
17
|
+
} from "./instruction-discovery-dhhqcq64.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service47,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node50,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service47 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,13 +101,13 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
106
|
const git = yield* Service83;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service70;
|
|
110
|
+
return Service47.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node50 = makeGlobalNode({
|
|
171
|
+
service: Service47,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node86, Global.node, node73]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service47, isError2, validateBranch2, node50, exports_repository_cache };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
node87
|
|
4
|
+
} from "./instruction-discovery-5r4v0xwy.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./instruction-discovery-rdw6cm16.js";
|
|
@@ -10,31 +10,31 @@ import {
|
|
|
10
10
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent3 = {};
|
|
14
|
+
__export(exports_agent3, {
|
|
15
|
+
Agent: () => exports_agent3,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event12,
|
|
18
|
+
ID: () => ID9,
|
|
19
|
+
Info: () => Info12,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service58,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node60
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Array, Context, Effect, Layer } from "effect";
|
|
27
27
|
import { Agent } from "@opencode/schema/agent";
|
|
28
|
-
import { Event as
|
|
29
|
-
var
|
|
28
|
+
import { Event as Event12 } from "@opencode/schema/agent";
|
|
29
|
+
var ID9 = Agent.ID;
|
|
30
30
|
var Name3 = Agent.Name;
|
|
31
|
-
var defaultID2 =
|
|
31
|
+
var defaultID2 = ID9.make("build");
|
|
32
32
|
var Color2 = Agent.Color;
|
|
33
|
-
var
|
|
33
|
+
var Info12 = Agent.Info;
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service58 extends Context.Service()("@opencode/Agent") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
37
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service84;
|
|
39
39
|
const state = create3({
|
|
40
40
|
name: "agent",
|
|
@@ -46,7 +46,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
46
46
|
editor.default = id;
|
|
47
47
|
},
|
|
48
48
|
update: (id, fn) => {
|
|
49
|
-
const current = editor.agents.get(id) ??
|
|
49
|
+
const current = editor.agents.get(id) ?? Info12.default(id);
|
|
50
50
|
if (!editor.agents.has(id))
|
|
51
51
|
editor.agents.set(id, current);
|
|
52
52
|
fn(current);
|
|
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
64
64
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
65
65
|
if (configured)
|
|
66
66
|
return configured;
|
|
67
|
-
const build = selectable(data.agents.get(
|
|
67
|
+
const build = selectable(data.agents.get(ID9.make("build")));
|
|
68
68
|
if (build)
|
|
69
69
|
return build;
|
|
70
70
|
for (const agent of data.agents.values()) {
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
73
73
|
return fallback;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
return
|
|
76
|
+
return Service58.of({
|
|
77
77
|
transform: state.transform,
|
|
78
78
|
reload: state.reload,
|
|
79
79
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -81,12 +81,12 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
81
81
|
}),
|
|
82
82
|
resolve: Effect.fnUntraced(function* (id) {
|
|
83
83
|
if (id !== undefined)
|
|
84
|
-
return state.get().agents.get(
|
|
84
|
+
return state.get().agents.get(ID9.make(id));
|
|
85
85
|
return selectedDefault();
|
|
86
86
|
}),
|
|
87
87
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
88
88
|
if (id !== undefined) {
|
|
89
|
-
const selected =
|
|
89
|
+
const selected = ID9.make(id);
|
|
90
90
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
91
91
|
}
|
|
92
92
|
const info = selectedDefault();
|
|
@@ -101,6 +101,6 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
101
101
|
})
|
|
102
102
|
});
|
|
103
103
|
}));
|
|
104
|
-
var
|
|
104
|
+
var node60 = makeLocationNode({ service: Service58, layer, deps: [node87] });
|
|
105
105
|
|
|
106
|
-
export {
|
|
106
|
+
export { ID9, Name3, defaultID2, Color2, Info12, Service58, node60, exports_agent3, Event12 };
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service73,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node76
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service73 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service73.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node76 = makeLocationNode({ service: Service73, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service73, node76, exports_image2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
timeouts2,
|
|
6
6
|
mergeOverlay2
|
|
7
|
-
} from "./instruction-discovery-
|
|
7
|
+
} from "./instruction-discovery-38mem431.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -14,9 +14,9 @@ var exports_aisdk = {};
|
|
|
14
14
|
__export(exports_aisdk, {
|
|
15
15
|
AISDK: () => exports_aisdk,
|
|
16
16
|
InitError: () => InitError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service72,
|
|
18
18
|
locationLayer: () => locationLayer2,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node75
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -151,7 +151,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
151
151
|
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
152
152
|
|
|
153
153
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
154
|
-
providerID:
|
|
154
|
+
providerID: ID13,
|
|
155
155
|
cause: Schema.Defect()
|
|
156
156
|
}) {
|
|
157
157
|
}
|
|
@@ -159,9 +159,9 @@ function initError(providerID) {
|
|
|
159
159
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
class
|
|
162
|
+
class Service72 extends Context.Service()("@opencode/AISDK") {
|
|
163
163
|
}
|
|
164
|
-
var locationLayer2 = Layer.effect(
|
|
164
|
+
var locationLayer2 = Layer.effect(Service72, Effect.gen(function* () {
|
|
165
165
|
let sdkHooks = [];
|
|
166
166
|
let languageHooks = [];
|
|
167
167
|
const languages = new Map;
|
|
@@ -199,7 +199,7 @@ var locationLayer2 = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
return event;
|
|
201
201
|
});
|
|
202
|
-
const service =
|
|
202
|
+
const service = Service72.of({
|
|
203
203
|
hook: {
|
|
204
204
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
205
205
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -874,6 +874,6 @@ function providerErrorMessage(error) {
|
|
|
874
874
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
875
875
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var node75 = makeLocationNode({ service: Service72, layer: locationLayer2, deps: [] });
|
|
878
878
|
|
|
879
|
-
export { InitError2,
|
|
879
|
+
export { InitError2, Service72, locationLayer2, node75, exports_aisdk };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instruction-discovery-
|
|
2
|
+
ID12
|
|
3
|
+
} from "./instruction-discovery-mkkx2xvk.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
diffByKey2
|
|
6
6
|
} from "./instruction-discovery-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID6,
|
|
9
9
|
Name2,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./instruction-discovery-
|
|
10
|
+
available3,
|
|
11
|
+
Service54,
|
|
12
|
+
node56
|
|
13
|
+
} from "./instruction-discovery-dx2h6xhc.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
// src/skill/instructions.ts
|
|
19
19
|
var exports_instructions4 = {};
|
|
20
20
|
__export(exports_instructions4, {
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service39,
|
|
22
22
|
SkillInstructions: () => exports_instructions4,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node42
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
27
|
var Summary = Schema.Struct({
|
|
28
|
-
id:
|
|
28
|
+
id: ID6,
|
|
29
29
|
name: Name2,
|
|
30
30
|
description: Schema.String
|
|
31
31
|
});
|
|
@@ -60,13 +60,13 @@ var update = (previous, current) => {
|
|
|
60
60
|
`);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
class
|
|
63
|
+
class Service39 extends Context.Service()("@opencode/SkillInstructions") {
|
|
64
64
|
}
|
|
65
|
-
var layer = Layer.effect(
|
|
66
|
-
const skills = yield*
|
|
67
|
-
return
|
|
65
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
66
|
+
const skills = yield* Service54;
|
|
67
|
+
return Service39.of({
|
|
68
68
|
load: Effect.fn("SkillInstructions.load")(function* (permissions) {
|
|
69
|
-
const available =
|
|
69
|
+
const available = available3(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
70
70
|
return make20({
|
|
71
71
|
key: Key3.make("core/skill-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
@@ -80,6 +80,6 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}));
|
|
83
|
-
var
|
|
83
|
+
var node42 = makeLocationNode({ service: Service39, layer, deps: [node56] });
|
|
84
84
|
|
|
85
|
-
export {
|
|
85
|
+
export { Service39, node42, exports_instructions4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
Service63
|
|
4
|
+
} from "./instruction-discovery-yh9g6p3v.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./instruction-discovery-
|
|
6
|
+
Service62
|
|
7
|
+
} from "./instruction-discovery-vezvtjyv.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./instruction-discovery-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin30
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin30 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service63;
|
|
27
|
+
const output = yield* Service62;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin21 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin30, exports_tool_output };
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
var exports_mcp_codemode_defaults = {};
|
|
7
7
|
__export(exports_mcp_codemode_defaults, {
|
|
8
8
|
McpCodeModeDefaultsPlugin: () => exports_mcp_codemode_defaults,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin18
|
|
10
10
|
});
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
var urls = [/^https:\/\/executor\.sh\/[^/]+\/mcp$/];
|
|
14
14
|
var posthog = /^mcp(?:-eu|\.us|\.eu)?\.posthog\.com$/;
|
|
15
15
|
var mode = "x-posthog-mcp-mode";
|
|
16
|
-
var
|
|
16
|
+
var Plugin18 = define({
|
|
17
17
|
id: "opencode.mcp.codemode.defaults",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
19
19
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -38,4 +38,4 @@ var Plugin13 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin18, exports_mcp_codemode_defaults };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
2
|
+
Service43,
|
|
3
|
+
node46
|
|
4
|
+
} from "./instruction-discovery-2san2fa0.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
var exports_instructions5 = {};
|
|
17
17
|
__export(exports_instructions5, {
|
|
18
18
|
ReferenceInstructions: () => exports_instructions5,
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
19
|
+
Service: () => Service40,
|
|
20
|
+
node: () => node43
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,11 +57,11 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service40 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service43;
|
|
64
|
+
return Service40.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node43 = makeLocationNode({ service: Service40, layer, deps: [node46] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service40, node43, exports_instructions5 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
node84
|
|
4
|
+
} from "./instruction-discovery-ksqr7yfe.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./instruction-discovery-rdw6cm16.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_formatter2 = {};
|
|
14
14
|
__export(exports_formatter2, {
|
|
15
15
|
Formatter: () => exports_formatter2,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service23,
|
|
17
|
+
node: () => node25
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { ChildProcess } from "effect/process";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { AppProcess } from "@opencode/util/process";
|
|
24
|
-
class
|
|
24
|
+
class Service23 extends Context.Service()("@opencode/v2/Formatter") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
27
27
|
const location = yield* Service81;
|
|
28
28
|
const processes = yield* AppProcess.Service;
|
|
29
29
|
const commands = new WeakMap;
|
|
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
85
85
|
}
|
|
86
86
|
return false;
|
|
87
87
|
});
|
|
88
|
-
return
|
|
88
|
+
return Service23.of({ transform: state.transform, reload: state.reload, file });
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
91
|
-
service:
|
|
90
|
+
var node25 = makeLocationNode({
|
|
91
|
+
service: Service23,
|
|
92
92
|
layer,
|
|
93
|
-
deps: [
|
|
93
|
+
deps: [node84, AppProcess.node]
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Service23, node25, exports_formatter2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./instruction-discovery-
|
|
3
|
+
} from "./instruction-discovery-5r4v0xwy.js";
|
|
4
4
|
import {
|
|
5
5
|
ID15,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./instruction-discovery-
|
|
6
|
+
Event19,
|
|
7
|
+
Service79
|
|
8
|
+
} from "./instruction-discovery-aahhmcvt.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./instruction-discovery-
|
|
10
|
+
ID13
|
|
11
|
+
} from "./instruction-discovery-38mem431.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./instruction-discovery-
|
|
14
|
+
} from "./instruction-discovery-1sc6p60b.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,7 +41,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
44
|
+
const credentials = yield* Service79;
|
|
45
45
|
const bus = yield* Service84;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,7 +65,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
|
|
69
69
|
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID13.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID13.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -156,7 +156,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
yield* bus.subscribe([
|
|
159
|
+
yield* bus.subscribe([Event19.Updated, Event19.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
160
160
|
const next = yield* load();
|
|
161
161
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
162
162
|
return;
|