@opencode/core 2.0.27 → 2.0.28
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 +66 -66
- package/dist/aisdk-native.js +66 -66
- package/dist/aisdk.js +71 -71
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{filesystem-eaednpsc.js → filesystem-02hzg919.js} +16 -16
- package/dist/chunks/{filesystem-tn22h724.js → filesystem-09ygvw9n.js} +8 -8
- package/dist/chunks/{filesystem-jex0hdh0.js → filesystem-0m69c59p.js} +124 -42
- package/dist/chunks/{filesystem-52hym6es.js → filesystem-0q6ztsng.js} +34 -34
- package/dist/chunks/{filesystem-58rgv5ce.js → filesystem-0sdzw0m1.js} +26 -26
- package/dist/chunks/{filesystem-qz7nybpq.js → filesystem-0x07vhym.js} +10 -10
- package/dist/chunks/{filesystem-3xq304at.js → filesystem-0z1n3j5c.js} +19 -19
- package/dist/chunks/{filesystem-chn727mr.js → filesystem-139mpvga.js} +7 -7
- package/dist/chunks/filesystem-18a9s3e7.js +26 -0
- package/dist/chunks/filesystem-1z5jn46p.js +253 -0
- package/dist/chunks/{filesystem-cp3h7zv6.js → filesystem-20mebfjn.js} +11 -11
- package/dist/chunks/{filesystem-krjgrvpb.js → filesystem-234r1ky0.js} +5 -5
- package/dist/chunks/{filesystem-277mr6gh.js → filesystem-28n8c4ka.js} +1 -1
- package/dist/chunks/{filesystem-a89e0tac.js → filesystem-2k71kv7p.js} +3 -3
- package/dist/chunks/{filesystem-0jwsre1p.js → filesystem-2k8khapm.js} +4 -4
- package/dist/chunks/{filesystem-rezt1fjs.js → filesystem-2mcy88br.js} +154 -151
- package/dist/chunks/{filesystem-kqx1b4hy.js → filesystem-2ryng5r3.js} +1 -1
- package/dist/chunks/{filesystem-z5eh1vkz.js → filesystem-315k6hst.js} +15 -15
- package/dist/chunks/{filesystem-7wwt250p.js → filesystem-38mdmq5f.js} +82 -82
- package/dist/chunks/{filesystem-y15vpdnr.js → filesystem-3b9qt4hj.js} +7 -7
- package/dist/chunks/{filesystem-dwatz751.js → filesystem-3fz2a589.js} +4 -4
- package/dist/chunks/{filesystem-75yaxqej.js → filesystem-3rj2b0mx.js} +22 -22
- package/dist/chunks/{filesystem-c35597j6.js → filesystem-3sj8yt8v.js} +3 -3
- package/dist/chunks/{filesystem-xx66htzt.js → filesystem-3xj61p28.js} +29 -29
- package/dist/chunks/{filesystem-a7x960be.js → filesystem-426dk71k.js} +10 -10
- package/dist/chunks/{filesystem-0jz028se.js → filesystem-42721k3a.js} +13 -13
- package/dist/chunks/{filesystem-xq0502x8.js → filesystem-42q5z408.js} +3 -3
- package/dist/chunks/{filesystem-cd22zj3n.js → filesystem-47wyv12f.js} +12 -12
- package/dist/chunks/{filesystem-b6pj8f6d.js → filesystem-4c2dxef7.js} +14 -14
- package/dist/chunks/{filesystem-mqbwmym3.js → filesystem-4g0yx14a.js} +8 -8
- package/dist/chunks/filesystem-4h495arh.js +102 -0
- package/dist/chunks/{filesystem-qmyze75f.js → filesystem-4kv77ab9.js} +16 -16
- package/dist/chunks/{filesystem-3fm12cj0.js → filesystem-4rdhmkj7.js} +7 -7
- package/dist/chunks/{filesystem-zp2jr73m.js → filesystem-4wxv1g1t.js} +1 -1
- package/dist/chunks/{filesystem-42nthewb.js → filesystem-53rak1ew.js} +1 -1
- package/dist/chunks/{filesystem-9bbnj2zh.js → filesystem-58hng72m.js} +3 -3
- package/dist/chunks/{filesystem-075nkgpd.js → filesystem-5w9yjztw.js} +1 -1
- package/dist/chunks/{filesystem-egftk3gc.js → filesystem-60fs82z5.js} +9 -9
- package/dist/chunks/{filesystem-qjke1250.js → filesystem-628nc13m.js} +23 -23
- package/dist/chunks/{filesystem-yj5krche.js → filesystem-65v4cnad.js} +11 -11
- package/dist/chunks/{filesystem-7nranytg.js → filesystem-6nt2he5f.js} +30 -30
- package/dist/chunks/{filesystem-gp94me86.js → filesystem-6xktvksv.js} +9 -9
- package/dist/chunks/{filesystem-vw56mdd2.js → filesystem-6y8xypev.js} +6 -6
- package/dist/chunks/{filesystem-fs4v6yja.js → filesystem-73n0zeyz.js} +10 -10
- package/dist/chunks/{filesystem-wxetx7mh.js → filesystem-75kbjv4y.js} +7 -7
- package/dist/chunks/{filesystem-2vvh33eb.js → filesystem-775gj3j1.js} +7 -1
- package/dist/chunks/{filesystem-psy0m90e.js → filesystem-7bj0298e.js} +11 -11
- package/dist/chunks/{filesystem-bddt2pqj.js → filesystem-7cjfetaf.js} +6 -6
- package/dist/chunks/{filesystem-v45b1mqa.js → filesystem-7ha8mbyb.js} +8 -8
- package/dist/chunks/{filesystem-85yr590m.js → filesystem-7kmr86m7.js} +29 -29
- package/dist/chunks/{filesystem-t63kk2n9.js → filesystem-7mwvqe74.js} +1 -1
- package/dist/chunks/{filesystem-qf68ybps.js → filesystem-7q2snjpw.js} +19 -19
- package/dist/chunks/{filesystem-kfxykwst.js → filesystem-7t1q934f.js} +8 -8
- package/dist/chunks/{filesystem-g6kk69s6.js → filesystem-7w42pd46.js} +8 -8
- package/dist/chunks/{filesystem-jh2bfv56.js → filesystem-8004wwfb.js} +18 -18
- package/dist/chunks/{filesystem-6hh8tjw2.js → filesystem-8rqycdgd.js} +6 -6
- package/dist/chunks/{filesystem-tkfxpf5w.js → filesystem-93b1zj1y.js} +8 -8
- package/dist/chunks/{filesystem-dmn46mqv.js → filesystem-9h395ey8.js} +13 -13
- package/dist/chunks/{filesystem-5yzzbxa7.js → filesystem-9hn6k4tm.js} +7 -7
- package/dist/chunks/{filesystem-a812m1sc.js → filesystem-9s024g5s.js} +5 -5
- package/dist/chunks/{filesystem-3c7k6cm5.js → filesystem-9s29ec0q.js} +5 -5
- package/dist/chunks/{filesystem-w5j8pc94.js → filesystem-9sdvy6ea.js} +5 -5
- package/dist/chunks/{filesystem-e850ppb0.js → filesystem-9sjeq45g.js} +1 -1
- package/dist/chunks/{filesystem-nmqm2vvz.js → filesystem-9wfts7m5.js} +14 -14
- package/dist/chunks/{filesystem-9zg8t2tr.js → filesystem-a78v4ve5.js} +22 -22
- package/dist/chunks/{filesystem-h3s3f80v.js → filesystem-adgawzpd.js} +4 -4
- package/dist/chunks/{filesystem-cmdzq1er.js → filesystem-aj2z5ayr.js} +20 -20
- package/dist/chunks/{filesystem-h18kbg2g.js → filesystem-aqazz0j8.js} +20 -20
- package/dist/chunks/{filesystem-d9xsbmzv.js → filesystem-axkrk270.js} +10 -10
- package/dist/chunks/{filesystem-75czp452.js → filesystem-b5s5zk2w.js} +10 -10
- package/dist/chunks/{filesystem-8679j8d8.js → filesystem-b6snqm39.js} +11 -9
- package/dist/chunks/{filesystem-0rj8zrsn.js → filesystem-b71jh5yt.js} +18 -17
- package/dist/chunks/{filesystem-3dreg0vn.js → filesystem-b8h848z5.js} +9 -9
- package/dist/chunks/{filesystem-n61013np.js → filesystem-bfegkxfd.js} +6 -6
- package/dist/chunks/{filesystem-1ffvrpkg.js → filesystem-bjx1sjef.js} +4 -4
- package/dist/chunks/{filesystem-97aeaand.js → filesystem-bmr56wjg.js} +3 -3
- package/dist/chunks/{filesystem-tx4skpae.js → filesystem-btv47zes.js} +27 -27
- package/dist/chunks/{filesystem-r69zxgc9.js → filesystem-bvv8j0qg.js} +9 -9
- package/dist/chunks/{filesystem-b674v2dg.js → filesystem-bx0gyb4h.js} +3 -3
- package/dist/chunks/{filesystem-gdq97084.js → filesystem-bxqk5pf5.js} +7 -7
- package/dist/chunks/{filesystem-mh1qw9wf.js → filesystem-c1pk8j7t.js} +14 -14
- package/dist/chunks/{filesystem-sa8ekw3f.js → filesystem-c8ax2afj.js} +1 -1
- package/dist/chunks/{filesystem-8wps0r52.js → filesystem-c8cfwmf0.js} +16 -14
- package/dist/chunks/{filesystem-gty1xwv8.js → filesystem-cc09gky1.js} +14 -14
- package/dist/chunks/{filesystem-g18ezh2c.js → filesystem-cfkx2x8f.js} +18 -18
- package/dist/chunks/{filesystem-45gnhb3v.js → filesystem-cjb3hyea.js} +21 -21
- package/dist/chunks/{filesystem-yyy8m62c.js → filesystem-cqwer3tv.js} +19 -19
- package/dist/chunks/{filesystem-92hybt7t.js → filesystem-crx3azpj.js} +12 -12
- package/dist/chunks/{filesystem-zdbbxb0y.js → filesystem-ct7wq3h5.js} +5 -5
- package/dist/chunks/{filesystem-nvjf5yyf.js → filesystem-cv0e3ffa.js} +321 -321
- package/dist/chunks/{filesystem-bhzg07mw.js → filesystem-cv0wr4wv.js} +13 -13
- package/dist/chunks/{filesystem-30hpp6bd.js → filesystem-d0gnxsps.js} +28 -28
- package/dist/chunks/{filesystem-zsa8nsz8.js → filesystem-d77571hn.js} +22 -22
- package/dist/chunks/{filesystem-mm2s9j4z.js → filesystem-d8kc7qyj.js} +8 -8
- package/dist/chunks/{filesystem-wfk26c6d.js → filesystem-dg29p2pd.js} +13 -13
- package/dist/chunks/{filesystem-s3mqqn9k.js → filesystem-dqcpnaex.js} +20 -15
- package/dist/chunks/{filesystem-j56e64zr.js → filesystem-dqxsqydv.js} +2 -0
- package/dist/chunks/{filesystem-6s1gmk25.js → filesystem-dvb8jg9v.js} +18 -18
- package/dist/chunks/{filesystem-gvc0m829.js → filesystem-e0w2vstn.js} +14 -14
- package/dist/chunks/{filesystem-517r2k0v.js → filesystem-e1t3mam8.js} +8 -8
- package/dist/chunks/{filesystem-wz02ft3p.js → filesystem-e29yd45t.js} +8 -8
- package/dist/chunks/{filesystem-vk5e0qsv.js → filesystem-e6464sbd.js} +4 -4
- package/dist/chunks/{filesystem-r2z489rp.js → filesystem-e80seqcp.js} +2 -2
- package/dist/chunks/{filesystem-jcr0a5xm.js → filesystem-eebh6wmp.js} +30 -30
- package/dist/chunks/{filesystem-nbhbhab9.js → filesystem-ehv7knr3.js} +21 -16
- package/dist/chunks/{filesystem-kc69xce9.js → filesystem-ej4n91fq.js} +17 -17
- package/dist/chunks/{filesystem-x5s67ttw.js → filesystem-ek1kdr8s.js} +25 -25
- package/dist/chunks/{filesystem-c1fqxshp.js → filesystem-es1vcfrp.js} +1 -1
- package/dist/chunks/{filesystem-avya17qh.js → filesystem-f1bjnzfm.js} +14 -14
- package/dist/chunks/{filesystem-1acjjqhc.js → filesystem-f2n192rq.js} +3 -3
- package/dist/chunks/{filesystem-amjhxwh3.js → filesystem-f5dbfwc4.js} +4 -4
- package/dist/chunks/{filesystem-n59f5cqe.js → filesystem-faat08va.js} +16 -16
- package/dist/chunks/{filesystem-jtpxbk3r.js → filesystem-ffk923an.js} +80 -80
- package/dist/chunks/{filesystem-qmqgtz8f.js → filesystem-ft3hqk2c.js} +7 -7
- package/dist/chunks/{filesystem-hq3c8me3.js → filesystem-fxaymqdw.js} +3 -3
- package/dist/chunks/{filesystem-a1fpssew.js → filesystem-fzcmqh9t.js} +41 -92
- package/dist/chunks/{filesystem-qr40m89d.js → filesystem-g3wzybmp.js} +15 -15
- package/dist/chunks/{filesystem-e77w7m4c.js → filesystem-g5gnrdpy.js} +11 -11
- package/dist/chunks/{filesystem-52fe2n6x.js → filesystem-gp9jqd59.js} +4 -4
- package/dist/chunks/{filesystem-vfb4jdsz.js → filesystem-gtfaydnj.js} +16 -16
- package/dist/chunks/{filesystem-qptcxqn9.js → filesystem-gveanz76.js} +20 -20
- package/dist/chunks/{filesystem-31xfzrxg.js → filesystem-h7s7r6s9.js} +3 -3
- package/dist/chunks/{filesystem-ndz7w8hx.js → filesystem-h9k3zmfa.js} +14 -14
- package/dist/chunks/{filesystem-cjgcse4q.js → filesystem-hcxmzztb.js} +6 -11
- package/dist/chunks/{filesystem-shj64zqm.js → filesystem-hddh30xx.js} +8 -8
- package/dist/chunks/{filesystem-8y0srtbm.js → filesystem-hgx0r8wb.js} +43 -43
- package/dist/chunks/{filesystem-p03r7pt3.js → filesystem-hnb4yx9q.js} +5 -5
- package/dist/chunks/{filesystem-tjefdw4f.js → filesystem-hnh8n5n7.js} +9 -9
- package/dist/chunks/{filesystem-hfx4ttpe.js → filesystem-hp4earpc.js} +9 -9
- package/dist/chunks/{filesystem-x5w8kc5x.js → filesystem-hppj45g6.js} +23 -23
- package/dist/chunks/{filesystem-ted6dyzx.js → filesystem-hxdhxhc0.js} +32 -32
- package/dist/chunks/{filesystem-x2eytdts.js → filesystem-j72mgbmv.js} +30 -30
- package/dist/chunks/{filesystem-8r0rjxx3.js → filesystem-jv0d82ph.js} +41 -41
- package/dist/chunks/{filesystem-4dd6559a.js → filesystem-jvz4rjy9.js} +26 -25
- package/dist/chunks/{filesystem-jnzzg47p.js → filesystem-k0sjew9s.js} +13 -13
- package/dist/chunks/{filesystem-wtsf8rdt.js → filesystem-k7xxzs5q.js} +14 -14
- package/dist/chunks/{filesystem-gjacmpd0.js → filesystem-k97zh3d1.js} +7 -7
- package/dist/chunks/{filesystem-z3pazvy2.js → filesystem-kdykjer7.js} +14 -14
- package/dist/chunks/{filesystem-2q2afj7r.js → filesystem-kjrg4dz2.js} +21 -21
- package/dist/chunks/{filesystem-628cnxdp.js → filesystem-kmpk7fbr.js} +16 -16
- package/dist/chunks/{filesystem-d6jv500s.js → filesystem-krc3a0yk.js} +2 -2
- package/dist/chunks/{filesystem-1k1hwgxp.js → filesystem-ktnh1044.js} +26 -26
- package/dist/chunks/{filesystem-hbmg3jd1.js → filesystem-kzk6m8s6.js} +65 -65
- package/dist/chunks/{filesystem-rhjt4rsm.js → filesystem-kzxe22pz.js} +1 -1
- package/dist/chunks/{filesystem-hehj8e2f.js → filesystem-m30bzzm8.js} +8 -8
- package/dist/chunks/{filesystem-58072hz9.js → filesystem-m5jcjszt.js} +3 -3
- package/dist/chunks/{filesystem-gk8qb678.js → filesystem-maspj1v3.js} +5 -18
- package/dist/chunks/{filesystem-cfrzcmt6.js → filesystem-mddpn92g.js} +24 -24
- package/dist/chunks/{filesystem-43fay8tn.js → filesystem-mek16e5d.js} +8 -8
- package/dist/chunks/{filesystem-7qtbp6f0.js → filesystem-mrfr3fv8.js} +13 -13
- package/dist/chunks/{filesystem-w7mvh2x4.js → filesystem-mwpbc7s8.js} +18 -18
- package/dist/chunks/{filesystem-ddg7egp8.js → filesystem-n2bdxpfq.js} +9 -9
- package/dist/chunks/{filesystem-zfgdk5x8.js → filesystem-n3yfs7ec.js} +31 -31
- package/dist/chunks/{filesystem-8w54sq4a.js → filesystem-n4fsvy2x.js} +18 -18
- package/dist/chunks/{filesystem-gacw69ge.js → filesystem-n9kc33re.js} +2 -2
- package/dist/chunks/{filesystem-jd655njr.js → filesystem-naas6dry.js} +22 -22
- package/dist/chunks/{filesystem-vc6ht4b9.js → filesystem-ng5df8nw.js} +7 -7
- package/dist/chunks/{filesystem-xpk7egw8.js → filesystem-njfdx3sy.js} +3 -3
- package/dist/chunks/{filesystem-40hy4nm0.js → filesystem-p3m2ynk3.js} +16 -12
- package/dist/chunks/{filesystem-h0s8229g.js → filesystem-p42kja40.js} +15 -15
- package/dist/chunks/{filesystem-zxe4qb9c.js → filesystem-pb5kndam.js} +31 -24
- package/dist/chunks/{filesystem-4w5f3qm5.js → filesystem-pn3cc07s.js} +7 -7
- package/dist/chunks/{filesystem-4yh5fkek.js → filesystem-pr4c8k5d.js} +31 -31
- package/dist/chunks/{filesystem-q3kzbh51.js → filesystem-q0zsatc3.js} +47 -47
- package/dist/chunks/{filesystem-gteqr3kb.js → filesystem-qa6qpaa9.js} +10 -10
- package/dist/chunks/{filesystem-45th5jwr.js → filesystem-qc068m1q.js} +4 -4
- package/dist/chunks/{filesystem-xtzs4z5v.js → filesystem-qmr691ca.js} +4 -4
- package/dist/chunks/{filesystem-cztcbjsk.js → filesystem-qnxbmed8.js} +39 -39
- package/dist/chunks/{filesystem-gbtkprqj.js → filesystem-qpdrzbsd.js} +33 -33
- package/dist/chunks/{filesystem-y4861qag.js → filesystem-r3fk5851.js} +40 -40
- package/dist/chunks/{filesystem-zqpzmbkm.js → filesystem-r9h634c8.js} +2 -2
- package/dist/chunks/{filesystem-28mv0yws.js → filesystem-rb70syh1.js} +13 -13
- package/dist/chunks/{filesystem-tbqraact.js → filesystem-rdd07134.js} +44 -43
- package/dist/chunks/{filesystem-v0t15ase.js → filesystem-rgx5n1kn.js} +4 -4
- package/dist/chunks/{filesystem-wn2vj619.js → filesystem-rjtxxem0.js} +5 -5
- package/dist/chunks/{filesystem-6pc27hjz.js → filesystem-rkprpv83.js} +4 -4
- package/dist/chunks/{filesystem-k76fn4kw.js → filesystem-rpg9c19m.js} +3 -3
- package/dist/chunks/{filesystem-6p6bhjzq.js → filesystem-rthc7gf6.js} +10 -10
- package/dist/chunks/{filesystem-b3f8fkhc.js → filesystem-scgrse2b.js} +3 -3
- package/dist/chunks/{filesystem-jq5272j9.js → filesystem-shnqbm89.js} +18 -18
- package/dist/chunks/{filesystem-1pdq80h1.js → filesystem-shy0vwdw.js} +4 -4
- package/dist/chunks/{filesystem-6yajptbt.js → filesystem-t3f4tea4.js} +1 -1
- package/dist/chunks/{filesystem-hdckhky9.js → filesystem-t5jqnx4m.js} +9 -9
- package/dist/chunks/{filesystem-89znhe33.js → filesystem-tcezcvh9.js} +3 -3
- package/dist/chunks/{filesystem-p4njbyer.js → filesystem-tfw769rq.js} +9 -9
- package/dist/chunks/{filesystem-xw91mmsj.js → filesystem-thnax083.js} +10 -10
- package/dist/chunks/{filesystem-rert0e01.js → filesystem-tkb22qbm.js} +1 -1
- package/dist/chunks/{filesystem-0paq2nw3.js → filesystem-tm0kqsz3.js} +25 -1
- package/dist/chunks/{filesystem-7t7k8w74.js → filesystem-tz35mf6x.js} +7 -7
- package/dist/chunks/{filesystem-gccjnz6h.js → filesystem-v0xmac3n.js} +1 -1
- package/dist/chunks/{filesystem-ma9a1mz6.js → filesystem-v7s1536z.js} +2 -2
- package/dist/chunks/{filesystem-41czef58.js → filesystem-v7z2bvyd.js} +3 -3
- package/dist/chunks/{filesystem-nr11xpps.js → filesystem-vbk72xvh.js} +22 -22
- package/dist/chunks/{filesystem-sb9d9eyx.js → filesystem-vtbmj6qa.js} +6 -6
- package/dist/chunks/{filesystem-05zcap53.js → filesystem-vy98fec5.js} +6 -6
- package/dist/chunks/{filesystem-84txncab.js → filesystem-w1eejvng.js} +4 -4
- package/dist/chunks/{filesystem-g6yfr6ja.js → filesystem-w39jehkq.js} +3 -3
- package/dist/chunks/{filesystem-rzs3gq0x.js → filesystem-w3x9v1nk.js} +7 -7
- package/dist/chunks/{filesystem-3y40vn7b.js → filesystem-w40f6bsw.js} +1 -1
- package/dist/chunks/{filesystem-dzse07y5.js → filesystem-w5yqftge.js} +5 -5
- package/dist/chunks/{filesystem-v7gjr6wa.js → filesystem-wb1x78f5.js} +40 -40
- package/dist/chunks/{filesystem-v9rcgtcn.js → filesystem-wd9v2wqs.js} +27 -27
- package/dist/chunks/{filesystem-bw78ga2c.js → filesystem-wjj7prxr.js} +9 -0
- package/dist/chunks/{filesystem-v15nq2pf.js → filesystem-wm56crqz.js} +67 -40
- package/dist/chunks/{filesystem-0nqtnax1.js → filesystem-wne619hj.js} +23 -23
- package/dist/chunks/{filesystem-v7q8sg4f.js → filesystem-wpf4st6a.js} +8 -8
- package/dist/chunks/{filesystem-x7xmxswz.js → filesystem-ws0htp7c.js} +11 -11
- package/dist/chunks/{filesystem-zzbddhc6.js → filesystem-wtwcdvfd.js} +10 -10
- package/dist/chunks/{filesystem-mnav64s8.js → filesystem-wwgtjrva.js} +9 -9
- package/dist/chunks/{filesystem-hh0yy80h.js → filesystem-xcf4ra81.js} +3 -3
- package/dist/chunks/{filesystem-17ahada2.js → filesystem-xey671re.js} +25 -25
- package/dist/chunks/{filesystem-ge3tf0hw.js → filesystem-y5x50g1v.js} +22 -22
- package/dist/chunks/{filesystem-6ea2fwcg.js → filesystem-y8p3zjbc.js} +5 -5
- package/dist/chunks/{filesystem-hhj1gqex.js → filesystem-y9q49zk7.js} +1 -1
- package/dist/chunks/{filesystem-e6f2cxsr.js → filesystem-yar3z0vm.js} +14 -14
- package/dist/chunks/{filesystem-bwds47ca.js → filesystem-ycge4e7e.js} +3 -3
- package/dist/chunks/{filesystem-ykhp3ymj.js → filesystem-yezy7z0k.js} +9 -9
- package/dist/chunks/{filesystem-g8xm47b4.js → filesystem-ysasxjy6.js} +9 -9
- package/dist/chunks/{filesystem-qwwffz8c.js → filesystem-yw46jfkh.js} +13 -13
- package/dist/chunks/{filesystem-x2t9anc7.js → filesystem-z114v3my.js} +17 -17
- package/dist/chunks/{filesystem-9zhh23v8.js → filesystem-z2jd07rd.js} +4 -4
- package/dist/chunks/{filesystem-njatc343.js → filesystem-z7d7tagb.js} +9 -9
- package/dist/chunks/{filesystem-edp2jp4p.js → filesystem-zdqhb26j.js} +2 -2
- package/dist/chunks/{filesystem-28b6phvf.js → filesystem-zftfvc0z.js} +5 -5
- package/dist/chunks/{filesystem-zxy7mtkf.js → filesystem-zqq8czsd.js} +27 -27
- package/dist/chunks/{filesystem-vdfrtany.js → filesystem-zrdk58qt.js} +1 -1
- package/dist/chunks/{filesystem-ae5sdhnp.js → filesystem-zrj251rj.js} +20 -20
- package/dist/chunks/{filesystem-2r4m1mbx.js → filesystem-zx2dsnbk.js} +29 -29
- package/dist/codemode/instructions.js +5 -5
- package/dist/command.js +70 -70
- package/dist/config/discovery.js +71 -65
- package/dist/config/normalize.js +76 -76
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +169 -169
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +103 -103
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +87 -87
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +87 -87
- package/dist/config/plugin/mcp.js +92 -92
- package/dist/config/plugin/policy.js +87 -87
- package/dist/config/plugin/provider.js +87 -87
- package/dist/config/plugin/reference.js +89 -89
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +78 -78
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +87 -87
- package/dist/config/plugin/source.js +90 -90
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +89 -89
- package/dist/config/watch.js +1 -1
- package/dist/config.js +93 -93
- package/dist/credential.js +67 -67
- package/dist/database/database.js +54 -54
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +242 -242
- package/dist/effect/app-node-platform.js +1 -1
- package/dist/environment/environment.js +70 -70
- package/dist/environment/index.js +72 -72
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +81 -81
- package/dist/file-mutation.js +71 -71
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +185 -185
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +80 -80
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +83 -83
- package/dist/form.js +62 -62
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +79 -79
- package/dist/git.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +68 -68
- package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +312 -312
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +67 -67
- package/dist/integration.js +63 -63
- package/dist/job.js +64 -64
- package/dist/kv.js +59 -59
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +84 -84
- package/dist/location-service-map.js +67 -67
- package/dist/location-services.js +311 -311
- package/dist/location.js +62 -62
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +82 -82
- package/dist/mcp/instructions.js +97 -97
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +67 -67
- package/dist/modal/models.js +68 -68
- package/dist/model-resolver.js +75 -75
- package/dist/model.js +77 -77
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +66 -66
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +88 -88
- package/dist/persistent-pty/index.js +71 -71
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +59 -59
- package/dist/plugin/command.js +73 -73
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +176 -176
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -286
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +72 -72
- package/dist/plugin/module.js +85 -85
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +79 -79
- package/dist/plugin/provider/amazon-bedrock.js +67 -67
- package/dist/plugin/provider/azure.js +86 -87
- package/dist/plugin/provider/chatgpt.js +91 -69
- 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/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +69 -69
- package/dist/plugin/provider/github-copilot.js +71 -71
- package/dist/plugin/provider/gitlab.js +69 -69
- package/dist/plugin/provider/google-vertex.js +85 -85
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +94 -94
- package/dist/plugin/provider/local.js +91 -91
- package/dist/plugin/provider/modal.js +69 -69
- package/dist/plugin/provider/ollama.js +92 -92
- package/dist/plugin/provider/openai.js +93 -70
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +68 -68
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/prompt-cache-key.js +1 -92
- package/dist/plugin/provider/sap-ai-core.js +67 -67
- package/dist/plugin/provider/snowflake-cortex.js +86 -86
- package/dist/plugin/provider/vercel.js +67 -67
- package/dist/plugin/provider/vllm.js +94 -94
- package/dist/plugin/provider/xai.js +68 -68
- package/dist/plugin/provider.js +128 -128
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +104 -104
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/vcs/git.js +66 -66
- package/dist/plugin/vcs/hg.js +66 -66
- package/dist/plugin/verbosity.js +70 -70
- package/dist/plugin/warming.js +86 -86
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +5 -5
- package/dist/plugin.js +189 -189
- package/dist/project/sql.js +2 -2
- package/dist/project.js +61 -61
- package/dist/provider.js +82 -78
- package/dist/pty.js +78 -78
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +70 -70
- package/dist/repository-cache.js +64 -64
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +1 -1
- package/dist/ripgrep.js +74 -74
- package/dist/rpc.js +67 -67
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +100 -100
- package/dist/session/context.js +119 -119
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +114 -114
- package/dist/session/execution.js +97 -97
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +70 -70
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +64 -64
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +76 -76
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +8 -8
- package/dist/session/move.js +103 -103
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +68 -68
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +73 -73
- package/dist/session/runner/publish-llm-event.js +86 -86
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +93 -93
- 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 +98 -98
- package/dist/session/skill.js +80 -80
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +69 -69
- package/dist/session/subagent-job.js +169 -169
- package/dist/session/title.js +122 -122
- package/dist/session/to-session-error.js +85 -85
- package/dist/session/transfer.js +109 -109
- package/dist/session.js +177 -177
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +84 -84
- package/dist/skill.js +89 -89
- package/dist/snapshot.js +71 -71
- package/dist/tool/mcp.js +96 -96
- package/dist/tool/plugin/edit.js +95 -95
- package/dist/tool/plugin/glob.js +100 -100
- package/dist/tool/plugin/grep.js +100 -100
- package/dist/tool/plugin/mcp-resource.js +90 -90
- package/dist/tool/plugin/opencode.js +86 -86
- package/dist/tool/plugin/patch.js +97 -97
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +100 -100
- package/dist/tool/plugin/shell.js +173 -173
- package/dist/tool/plugin/skill.js +90 -90
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +87 -87
- package/dist/tool/plugin/websearch.js +87 -87
- package/dist/tool/plugin/write.js +95 -95
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/agent.d.ts +1 -0
- package/dist/types/config/discovery.d.ts +18 -0
- package/dist/types/config.d.ts +3 -1
- package/dist/types/image/photon.d.ts +2 -2
- package/dist/types/model.d.ts +7 -0
- package/dist/types/plugin/provider/azure.d.ts +2 -3
- package/dist/types/plugin/provider/chatgpt.d.ts +2 -1
- package/dist/types/plugin/provider/openai.d.ts +2 -1
- package/dist/types/provider.d.ts +30 -1
- package/dist/types/v1/config/migrate.d.ts +13 -4
- package/dist/types/v1/config/provider-options.d.ts +8 -0
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +69 -69
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +3 -1
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +68 -68
- package/dist/vcs.js +69 -69
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +61 -61
- package/dist/wellknown.js +64 -64
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +68 -68
- package/dist/worktree.js +76 -76
- package/package.json +9 -9
- package/dist/chunks/filesystem-8p91w73h.js +0 -59
- package/dist/chunks/filesystem-g4vk7v1j.js +0 -253
- package/dist/chunks/filesystem-zr1cpq3k.js +0 -26
- /package/dist/chunks/{filesystem-rj3eygr5.js → filesystem-c41wscbt.js} +0 -0
- /package/dist/chunks/{filesystem-xpeshqab.js → filesystem-d9jtx293.js} +0 -0
- /package/dist/chunks/{filesystem-0dfv01xh.js → filesystem-ma48de29.js} +0 -0
- /package/dist/chunks/{filesystem-2r93mh4x.js → filesystem-svcw9x3w.js} +0 -0
- /package/dist/chunks/{filesystem-nnbqx04f.js → filesystem-t8c0xvf3.js} +0 -0
- /package/dist/chunks/{filesystem-sy62yj56.js → filesystem-tyts7tda.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorktreeError2
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-svcw9x3w.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./filesystem-
|
|
5
|
+
Service59
|
|
6
|
+
} from "./filesystem-q0zsatc3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./filesystem-
|
|
8
|
+
Service18
|
|
9
|
+
} from "./filesystem-rb70syh1.js";
|
|
10
10
|
import {
|
|
11
11
|
DirectoryUnavailableError2
|
|
12
12
|
} from "./filesystem-0vbcp93d.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Info20,
|
|
15
15
|
List2,
|
|
16
16
|
InvalidDirectoryError2,
|
|
17
17
|
StrategyUnavailableError2,
|
|
18
18
|
OperationError2
|
|
19
|
-
} from "./filesystem-
|
|
19
|
+
} from "./filesystem-eebh6wmp.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
22
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -27,7 +27,7 @@ __export(exports_opencode, {
|
|
|
27
27
|
ModelsInput: () => ModelsInput2,
|
|
28
28
|
MoveInput: () => MoveInput2,
|
|
29
29
|
OpenCodeTools: () => exports_opencode,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin21,
|
|
31
31
|
RenameInput: () => RenameInput2,
|
|
32
32
|
WorktreeCreateInput: () => WorktreeCreateInput2,
|
|
33
33
|
WorktreeRemoveInput: () => WorktreeRemoveInput2
|
|
@@ -97,11 +97,11 @@ var ModelsOutput = Schema.Struct({
|
|
|
97
97
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
98
98
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
99
99
|
});
|
|
100
|
-
var
|
|
100
|
+
var Plugin21 = {
|
|
101
101
|
id: "opencode.tools",
|
|
102
102
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
103
|
-
const access = yield*
|
|
104
|
-
const permission = yield*
|
|
103
|
+
const access = yield* Service18;
|
|
104
|
+
const permission = yield* Service59;
|
|
105
105
|
const hook = (event) => Effect.sync(() => {
|
|
106
106
|
event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
|
|
107
107
|
});
|
|
@@ -153,7 +153,7 @@ var Plugin11 = {
|
|
|
153
153
|
name: "worktree_create",
|
|
154
154
|
description: "Create a named worktree. Returns its directory.",
|
|
155
155
|
input: WorktreeCreateInput2,
|
|
156
|
-
output:
|
|
156
|
+
output: Info20,
|
|
157
157
|
options: { namespace: "opencode", codemode: true, pinned: true },
|
|
158
158
|
execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
|
|
159
159
|
});
|
|
@@ -250,4 +250,4 @@ function removeFailure(directory, error) {
|
|
|
250
250
|
return `Unable to remove worktree ${directory}.`;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2,
|
|
253
|
+
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin21, exports_opencode };
|
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
} from "./filesystem-addxnjmp.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-zrdk58qt.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./filesystem-
|
|
9
|
+
Event20
|
|
10
|
+
} from "./filesystem-ek1kdr8s.js";
|
|
11
11
|
import {
|
|
12
12
|
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./filesystem-
|
|
14
|
+
} from "./filesystem-p42kja40.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./filesystem-
|
|
19
|
+
Service77
|
|
20
|
+
} from "./filesystem-pb5kndam.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./filesystem-
|
|
22
|
+
ID10
|
|
23
|
+
} from "./filesystem-jvz4rjy9.js";
|
|
24
24
|
import {
|
|
25
25
|
load2,
|
|
26
26
|
derive2
|
|
27
|
-
} from "./filesystem-
|
|
27
|
+
} from "./filesystem-wtwcdvfd.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./filesystem-
|
|
30
|
+
} from "./filesystem-thnax083.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./filesystem-
|
|
32
|
+
ID8
|
|
33
|
+
} from "./filesystem-0z1n3j5c.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
36
|
} from "./filesystem-54ma36ye.js";
|
|
@@ -163,7 +163,7 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
166
|
+
const providers = yield* Service77;
|
|
167
167
|
const bus = yield* Service84;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
@@ -180,7 +180,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
185
|
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
@@ -202,7 +202,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID13.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
@@ -230,17 +230,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(
|
|
234
|
-
models.update(
|
|
233
|
+
if (models.get(ID13.githubCopilot, ID10.make("gpt-5-chat-latest"))) {
|
|
234
|
+
models.update(ID13.githubCopilot, ID10.make("gpt-5-chat-latest"), (model) => {
|
|
235
235
|
model.enabled = false;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(
|
|
240
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
241
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
242
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
|
-
if (evt.model.providerID !==
|
|
243
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
244
244
|
return;
|
|
245
245
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
246
246
|
return;
|
|
@@ -249,7 +249,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
249
249
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
250
250
|
}));
|
|
251
251
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
252
|
-
if (evt.model.providerID !==
|
|
252
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
253
253
|
return;
|
|
254
254
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
255
255
|
return;
|
|
@@ -259,13 +259,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
259
259
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
260
260
|
if (interaction !== "conversation-agent")
|
|
261
261
|
evt.headers["x-initiator"] = "agent";
|
|
262
|
-
}), { providerID:
|
|
262
|
+
}), { providerID: ID13.githubCopilot });
|
|
263
263
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
264
|
-
if (evt.model.providerID !==
|
|
264
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
265
265
|
return;
|
|
266
266
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
267
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
268
|
+
const agent = yield* ctx.agent.get({ agentID: ID8.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
271
|
if (agent?.data.model)
|
|
@@ -276,9 +276,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
276
276
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
277
277
|
return;
|
|
278
278
|
}));
|
|
279
|
-
}), { providerID:
|
|
279
|
+
}), { providerID: ID13.githubCopilot });
|
|
280
280
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
281
|
-
if (evt.model.providerID !==
|
|
281
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
282
282
|
return;
|
|
283
283
|
const token = evt.request.headers.get("x-api-key");
|
|
284
284
|
if (!token)
|
|
@@ -286,9 +286,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
286
286
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
287
287
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
288
288
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
289
|
-
}), { providerID:
|
|
289
|
+
}), { providerID: ID13.githubCopilot });
|
|
290
290
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
292
292
|
return;
|
|
293
293
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
294
294
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./filesystem-
|
|
4
|
+
} from "./filesystem-zrdk58qt.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./filesystem-
|
|
7
|
+
} from "./filesystem-k0sjew9s.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./filesystem-3t0ybcrp.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError4,
|
|
20
|
+
Options: () => Options4,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service23,
|
|
23
23
|
UnavailableError: () => UnavailableError2,
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
24
|
+
available: () => available2,
|
|
25
|
+
configured: () => configured4,
|
|
26
|
+
layer: () => layer12,
|
|
27
|
+
node: () => node26
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -35,8 +35,8 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
import { available as
|
|
39
|
-
var
|
|
38
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
39
|
+
var Options4 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
@@ -46,14 +46,14 @@ class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableE
|
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError4 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service23 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service23, Effect.gen(function* () {
|
|
57
57
|
const bus = yield* Service84;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service55, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError4({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service55, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service23.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,13 +259,13 @@ var makeLayer = (options = {}) => Layer.effect(Service55, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
262
|
+
var layer12 = makeLayer();
|
|
263
|
+
var configured4 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service23,
|
|
265
|
+
layer: options === undefined ? layer12 : makeLayer(options),
|
|
266
266
|
deps: [node88, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node26 = configured4();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
271
|
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options4, UnavailableError2, NotFoundError4, Service23, layer12, configured4, node26, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-thnax083.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./filesystem-
|
|
6
|
+
Service80
|
|
7
|
+
} from "./filesystem-ek1kdr8s.js";
|
|
8
8
|
import {
|
|
9
9
|
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./filesystem-
|
|
11
|
+
} from "./filesystem-p42kja40.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./filesystem-
|
|
15
|
+
} from "./filesystem-pb5kndam.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID13.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -69,7 +69,7 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
72
|
+
const credentials = yield* Service80;
|
|
73
73
|
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./filesystem-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
node87
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-svcw9x3w.js";
|
|
7
7
|
import {
|
|
8
8
|
Service81,
|
|
9
9
|
node85
|
|
10
|
-
} from "./filesystem-
|
|
10
|
+
} from "./filesystem-53rak1ew.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
13
|
} from "./filesystem-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./filesystem-
|
|
15
|
+
make19
|
|
16
|
+
} from "./filesystem-gp9jqd59.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service68,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node71
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,12 +31,12 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service68 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
36
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
37
37
|
const location = yield* Service81;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
|
-
const git = yield*
|
|
39
|
+
const git = yield* make19;
|
|
40
40
|
const state = create3({
|
|
41
41
|
name: "worktree",
|
|
42
42
|
initial: () => ({
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service68.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node71 = makeLocationNode({
|
|
61
|
+
service: Service68,
|
|
62
62
|
layer,
|
|
63
63
|
deps: [node85, Global.node, node87, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service68, node71, exports_strategies };
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-thnax083.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-zrdk58qt.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./filesystem-
|
|
9
|
+
Event20
|
|
10
|
+
} from "./filesystem-ek1kdr8s.js";
|
|
11
11
|
import {
|
|
12
12
|
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./filesystem-
|
|
14
|
+
} from "./filesystem-p42kja40.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
18
|
} from "./filesystem-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID13,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./filesystem-
|
|
23
|
+
} from "./filesystem-pb5kndam.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
26
|
} from "./filesystem-54ma36ye.js";
|
|
27
|
+
import {
|
|
28
|
+
configuredSettings2
|
|
29
|
+
} from "./filesystem-6y8xypev.js";
|
|
27
30
|
|
|
28
31
|
// src/plugin/provider/openai.ts
|
|
29
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -162,7 +165,7 @@ var headless = (app) => ({
|
|
|
162
165
|
}),
|
|
163
166
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
164
167
|
});
|
|
165
|
-
var
|
|
168
|
+
var OpenAIPlugin2 = define({
|
|
166
169
|
id: "opencode.provider.openai",
|
|
167
170
|
effect: Effect.fn(function* (ctx) {
|
|
168
171
|
const bus = yield* Service84;
|
|
@@ -180,15 +183,17 @@ var OpenAIPlugin3 = define({
|
|
|
180
183
|
editor.method.update(headless(ctx.app));
|
|
181
184
|
});
|
|
182
185
|
yield* load();
|
|
186
|
+
const configured = yield* configuredSettings2(ID13.openai);
|
|
183
187
|
yield* ctx.provider.transform((providers) => {
|
|
184
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID13.openai);
|
|
185
189
|
if (!item)
|
|
186
190
|
return;
|
|
187
191
|
const account = chatgpt?.metadata?.accountID;
|
|
188
192
|
providers.update(item.provider.id, (provider) => {
|
|
189
193
|
provider.settings = mergeOverlay2(provider.settings, {
|
|
190
194
|
transport: provider.settings?.transport ?? "websocket",
|
|
191
|
-
...chatgpt ? { baseURL: codexBaseURL } : {}
|
|
195
|
+
...chatgpt ? { baseURL: codexBaseURL } : {},
|
|
196
|
+
...chatgpt && configured?.baseURL === undefined ? { encoding: provider.settings?.encoding ?? "zstd" } : {}
|
|
192
197
|
});
|
|
193
198
|
if (!chatgpt)
|
|
194
199
|
return;
|
|
@@ -200,7 +205,7 @@ var OpenAIPlugin3 = define({
|
|
|
200
205
|
});
|
|
201
206
|
});
|
|
202
207
|
yield* ctx.model.transform((models) => {
|
|
203
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID13.openai)) {
|
|
204
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
205
210
|
if (!chatgpt)
|
|
206
211
|
return;
|
|
@@ -231,14 +236,14 @@ var OpenAIPlugin3 = define({
|
|
|
231
236
|
}));
|
|
232
237
|
evt.headers.originator = "opencode";
|
|
233
238
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
234
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID13.openai });
|
|
235
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
236
241
|
delete evt.options.maxTokens;
|
|
237
242
|
});
|
|
238
243
|
for (const name of ["context", "compaction"])
|
|
239
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID13.openai });
|
|
240
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
247
|
})
|
|
243
248
|
});
|
|
244
249
|
function headers(contentType, app) {
|
|
@@ -329,4 +334,4 @@ function claim(token) {
|
|
|
329
334
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
330
335
|
}
|
|
331
336
|
|
|
332
|
-
export {
|
|
337
|
+
export { OpenAIPlugin2 };
|
|
@@ -12,10 +12,12 @@ import path from "path";
|
|
|
12
12
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
13
13
|
function plan2(sources) {
|
|
14
14
|
const directories = [
|
|
15
|
+
...sources.system?.present ? [sources.system.path] : [],
|
|
15
16
|
...sources.global ? [sources.global] : [],
|
|
16
17
|
...sources.project.filter((root) => root.present).map((root) => root.path)
|
|
17
18
|
];
|
|
18
19
|
const files = [
|
|
20
|
+
...sources.system ? [sources.system.path] : [],
|
|
19
21
|
...sources.direct,
|
|
20
22
|
...sources.project.map((root) => root.path),
|
|
21
23
|
...sources.claude,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-thnax083.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-zrdk58qt.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./filesystem-
|
|
9
|
+
Event20
|
|
10
|
+
} from "./filesystem-ek1kdr8s.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
13
|
} from "./filesystem-addxnjmp.js";
|
|
@@ -15,23 +15,23 @@ import {
|
|
|
15
15
|
ID14,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./filesystem-
|
|
18
|
+
} from "./filesystem-p42kja40.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./filesystem-
|
|
20
|
+
Service14
|
|
21
|
+
} from "./filesystem-7t1q934f.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./filesystem-
|
|
26
|
+
} from "./filesystem-pb5kndam.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./filesystem-
|
|
29
|
+
} from "./filesystem-jvz4rjy9.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID11,
|
|
32
32
|
Input14,
|
|
33
33
|
Response2
|
|
34
|
-
} from "./filesystem-
|
|
34
|
+
} from "./filesystem-cjb3hyea.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/opencode.ts
|
|
37
37
|
import { Duration, Effect, Equal, Option, Schema, SchemaGetter, Scope, Semaphore, Stream } from "effect";
|
|
@@ -47,7 +47,7 @@ var methodID = MethodID2.make("device");
|
|
|
47
47
|
var RemoteResponse = Schema.Struct({
|
|
48
48
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
49
49
|
websearch: Schema.Struct({
|
|
50
|
-
providerID:
|
|
50
|
+
providerID: ID11
|
|
51
51
|
}).pipe(Schema.optional),
|
|
52
52
|
mcp: Schema.Struct({
|
|
53
53
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -172,7 +172,7 @@ var OpencodePlugin2 = define({
|
|
|
172
172
|
const bus = yield* Service84;
|
|
173
173
|
const client = yield* HttpClient.HttpClient;
|
|
174
174
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
175
|
-
const managed = yield*
|
|
175
|
+
const managed = yield* Service14;
|
|
176
176
|
const scope = yield* Scope.Scope;
|
|
177
177
|
const loading = Semaphore.makeUnsafe(1);
|
|
178
178
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -287,7 +287,7 @@ var OpencodePlugin2 = define({
|
|
|
287
287
|
sourceConnection: snapshot.connection
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
const item = providers.get(
|
|
290
|
+
const item = providers.get(ID13.opencode);
|
|
291
291
|
if (!item)
|
|
292
292
|
return;
|
|
293
293
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -299,7 +299,7 @@ var OpencodePlugin2 = define({
|
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
yield* ctx.model.transform((models) => {
|
|
302
|
-
const item = models.provider.get(
|
|
302
|
+
const item = models.provider.get(ID13.opencode);
|
|
303
303
|
if (!item)
|
|
304
304
|
return;
|
|
305
305
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -388,10 +388,10 @@ var OpencodePlugin2 = define({
|
|
|
388
388
|
});
|
|
389
389
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
390
390
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
391
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
391
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
392
392
|
});
|
|
393
393
|
yield* guard(snapshot);
|
|
394
|
-
yield* bus.subscribe(
|
|
394
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
395
395
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
396
396
|
})
|
|
397
397
|
});
|