@opencode/core 2.0.19 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{ripgrep-jkka0c6f.js → job-00x4qneg.js} +8 -8
- package/dist/chunks/{ripgrep-bf0ztrs3.js → job-00z3vp5f.js} +4 -4
- package/dist/chunks/{ripgrep-pyrtyedv.js → job-0cmgxwc3.js} +11 -11
- package/dist/chunks/{ripgrep-0paq2nw3.js → job-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-f960svv2.js → job-0ptd10ac.js} +11 -11
- package/dist/chunks/{ripgrep-w3jg838k.js → job-0tmgye68.js} +9 -9
- package/dist/chunks/{ripgrep-ybn4q7y2.js → job-0wjxfcep.js} +19 -19
- package/dist/chunks/{ripgrep-1dazxqgg.js → job-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-4przf6dn.js → job-1ddmwb72.js} +14 -14
- package/dist/chunks/{ripgrep-560t4d1v.js → job-1mdp675b.js} +20 -7
- package/dist/chunks/{ripgrep-jws6fkes.js → job-1p07q0wb.js} +6 -6
- package/dist/chunks/{ripgrep-21r38tys.js → job-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-y7x7h62n.js → job-21zzzqpe.js} +16 -16
- package/dist/chunks/{ripgrep-6v71ddka.js → job-230c54mq.js} +20 -20
- package/dist/chunks/{ripgrep-0gaj4617.js → job-23pqda6t.js} +6 -6
- package/dist/chunks/{ripgrep-7962e3yf.js → job-24ncmqw9.js} +18 -18
- package/dist/chunks/{ripgrep-nrzkffvv.js → job-27msewjz.js} +14 -14
- package/dist/chunks/{ripgrep-2a5m3afh.js → job-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-2vjymgz4.js → job-2b6sywcb.js} +11 -11
- package/dist/chunks/{ripgrep-pa2d04qg.js → job-2dre8qhb.js} +4 -4
- package/dist/chunks/{ripgrep-d6gxwvxg.js → job-2erysbps.js} +7 -7
- package/dist/chunks/{ripgrep-y18nyng0.js → job-2h8w1cfj.js} +29 -29
- package/dist/chunks/{ripgrep-98cnr0ek.js → job-2jb1f61f.js} +9 -9
- package/dist/chunks/{ripgrep-nyqx1cb3.js → job-2p623br6.js} +5 -5
- package/dist/chunks/{ripgrep-qsjn5gcs.js → job-2sf5vtpp.js} +11 -11
- package/dist/chunks/{ripgrep-f8ys8j9y.js → job-2sv4arh8.js} +13 -13
- package/dist/chunks/{ripgrep-9eq5kwq7.js → job-2w5dyyz8.js} +5 -5
- package/dist/chunks/{ripgrep-mtndfwk2.js → job-2ydcz6pr.js} +17 -17
- package/dist/chunks/{ripgrep-hcxgq10m.js → job-2zhq2a85.js} +48 -48
- package/dist/chunks/{ripgrep-54nwp9r7.js → job-2zp87bs7.js} +26 -26
- package/dist/chunks/{ripgrep-1gq8q7z3.js → job-321mahy6.js} +28 -28
- package/dist/chunks/{ripgrep-wws8y0j5.js → job-35hkzk16.js} +7 -7
- package/dist/chunks/{ripgrep-wnbq8dq2.js → job-372g89p4.js} +142 -34
- package/dist/chunks/{ripgrep-pjedbq3k.js → job-3e147rt9.js} +9 -9
- package/dist/chunks/{ripgrep-3fc6dm20.js → job-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → job-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-9dt30ddd.js → job-3mft5zsr.js} +21 -21
- package/dist/chunks/{ripgrep-90x597dq.js → job-3r704csb.js} +1 -1
- package/dist/chunks/{ripgrep-3smtnn6g.js → job-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → job-3tvqynh2.js} +1 -1
- package/dist/chunks/job-3v8rp85y.js +252 -0
- package/dist/chunks/{ripgrep-xyv2nnj9.js → job-3vy408b5.js} +22 -22
- package/dist/chunks/{ripgrep-v6f2zkdc.js → job-3wtv6kz3.js} +32 -32
- package/dist/chunks/{ripgrep-3zsf4n22.js → job-3zsf4n22.js} +1 -1
- package/dist/chunks/{ripgrep-ysddpjww.js → job-48c763ft.js} +6 -6
- package/dist/chunks/{ripgrep-nqp5g4n1.js → job-4dyf21mr.js} +17 -17
- package/dist/chunks/{ripgrep-cvmm0xs5.js → job-4h23kj6w.js} +10 -10
- package/dist/chunks/{ripgrep-1ap17en5.js → job-4tn3p6ay.js} +33 -33
- package/dist/chunks/{ripgrep-54ma36ye.js → job-54ma36ye.js} +1 -1
- package/dist/chunks/{ripgrep-qqeeq2t9.js → job-57b9ws8p.js} +4 -4
- package/dist/chunks/{ripgrep-57ez7d0k.js → job-57ez7d0k.js} +2 -2
- package/dist/chunks/{ripgrep-h204n497.js → job-5aa0r02j.js} +6 -6
- package/dist/chunks/{ripgrep-1qny0ng8.js → job-5cmqbqwp.js} +16 -16
- package/dist/chunks/{ripgrep-w52wajpr.js → job-5cmxdwv8.js} +3 -3
- package/dist/chunks/{ripgrep-5daktx2q.js → job-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-ygfh7z4x.js → job-5k4xw9x6.js} +24 -24
- package/dist/chunks/{ripgrep-39z47dss.js → job-5nnetc6k.js} +11 -11
- package/dist/chunks/{ripgrep-e3qxr5gk.js → job-5qd3pb7m.js} +2 -2
- package/dist/chunks/{ripgrep-fses9meq.js → job-5svcwqmc.js} +24 -24
- package/dist/chunks/{ripgrep-5t3nmthw.js → job-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-669tq793.js → job-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-f5fzvqmp.js → job-6j9mr40r.js} +16 -16
- package/dist/chunks/{ripgrep-6msgmcgs.js → job-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-e5v6sjzq.js → job-73n25p0e.js} +10 -10
- package/dist/chunks/{ripgrep-73tb2d7t.js → job-73tb2d7t.js} +1 -1
- package/dist/chunks/{ripgrep-v0rxv5z8.js → job-79dvcba4.js} +86 -86
- package/dist/chunks/{ripgrep-7bmhse3q.js → job-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-3crkzcp9.js → job-7f5ge08c.js} +43 -43
- package/dist/chunks/{ripgrep-rpwtn2yk.js → job-7h2raa0m.js} +18 -18
- package/dist/chunks/{ripgrep-rwk8kepb.js → job-7hxgqze9.js} +33 -31
- package/dist/chunks/{ripgrep-1cwrqxta.js → job-7mx9kf16.js} +11 -11
- package/dist/chunks/{ripgrep-7zx59yv5.js → job-7t9gt51b.js} +13 -13
- package/dist/chunks/{ripgrep-ervy3t4x.js → job-7z3v8smk.js} +7 -7
- package/dist/chunks/{ripgrep-cew5j6w6.js → job-80nn28cp.js} +11 -11
- package/dist/chunks/{ripgrep-tfzngn12.js → job-80scg3y3.js} +4 -4
- package/dist/chunks/{ripgrep-bjj0bk6b.js → job-81z9xrjy.js} +19 -19
- package/dist/chunks/{ripgrep-84txncab.js → job-84txncab.js} +1 -1
- package/dist/chunks/{ripgrep-dym78pc8.js → job-8d0p2m37.js} +6 -6
- package/dist/chunks/{ripgrep-8d7r5vzw.js → job-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-vm695x1h.js → job-8db6vkjt.js} +23 -23
- package/dist/chunks/job-8dbeyrdc.js +26 -0
- package/dist/chunks/{ripgrep-50epje6z.js → job-8j5tm5td.js} +36 -36
- package/dist/chunks/{ripgrep-zb4s847t.js → job-8k2kc9ag.js} +7 -7
- package/dist/chunks/{ripgrep-eybctzj2.js → job-8pwpezbf.js} +26 -26
- package/dist/chunks/{ripgrep-gfvb90ym.js → job-94ek1h2f.js} +2 -2
- package/dist/chunks/{ripgrep-36zg1nxf.js → job-94m5kbhr.js} +9 -9
- package/dist/chunks/{ripgrep-bvbkwbsh.js → job-95f1p06x.js} +20 -20
- package/dist/chunks/{ripgrep-r7xja54h.js → job-97h51v5t.js} +11 -11
- package/dist/chunks/{ripgrep-ef8r30dj.js → job-9gspbefy.js} +28 -28
- package/dist/chunks/{ripgrep-966px1fx.js → job-9wcym3xz.js} +11 -11
- package/dist/chunks/{ripgrep-meaywfr2.js → job-a4k5rsdw.js} +25 -25
- package/dist/chunks/{ripgrep-9q5cvpmr.js → job-a7yhm3z2.js} +25 -25
- package/dist/chunks/{ripgrep-g5pjqc12.js → job-a98nbm3g.js} +16 -16
- package/dist/chunks/{ripgrep-aaet6srn.js → job-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-p8xjr5qr.js → job-ab1ys2yh.js} +17 -17
- package/dist/chunks/{ripgrep-y01t92x8.js → job-amzxah2v.js} +47 -47
- package/dist/chunks/{ripgrep-dkmyvpj5.js → job-anp1t542.js} +26 -26
- package/dist/chunks/{ripgrep-a1fqa279.js → job-awtsf2hr.js} +6 -6
- package/dist/chunks/{ripgrep-v121z1z6.js → job-b4st347k.js} +3 -3
- package/dist/chunks/{ripgrep-b6gygkdw.js → job-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-r4tkwkgd.js → job-b9fqpfm8.js} +3 -3
- package/dist/chunks/{ripgrep-717rh1cx.js → job-bcf9qfhy.js} +11 -11
- package/dist/chunks/{ripgrep-3xwj4cta.js → job-bd4hr4wh.js} +33 -33
- package/dist/chunks/{ripgrep-7rkndmtb.js → job-bg585zsx.js} +12 -12
- package/dist/chunks/{ripgrep-ngmgdt3b.js → job-bnc1xqpd.js} +17 -17
- package/dist/chunks/{ripgrep-mgq5nv3e.js → job-brsymgq7.js} +8 -8
- package/dist/chunks/{ripgrep-7rhad128.js → job-bx0gng0c.js} +18 -18
- package/dist/chunks/{ripgrep-mmq917w3.js → job-bxfy3ep7.js} +11 -11
- package/dist/chunks/{ripgrep-w8qr023e.js → job-bxzpjmy4.js} +20 -20
- package/dist/chunks/{ripgrep-n8c1xpsf.js → job-bype3acy.js} +38 -38
- package/dist/chunks/{ripgrep-vpq7wwjy.js → job-bz7b5t1b.js} +25 -6
- package/dist/chunks/{ripgrep-ztychdw2.js → job-c1vmsse5.js} +18 -18
- package/dist/chunks/{ripgrep-asw9yjte.js → job-c248vghb.js} +18 -18
- package/dist/chunks/{ripgrep-jtj8yee2.js → job-c3c0cf95.js} +93 -93
- package/dist/chunks/{ripgrep-bqypnsdg.js → job-c9x0wrsc.js} +19 -19
- package/dist/chunks/{ripgrep-kv68fk3j.js → job-cezb84g9.js} +180 -175
- package/dist/chunks/{ripgrep-54tcyq79.js → job-ckecvw8r.js} +2 -2
- package/dist/chunks/{ripgrep-1ajx6rf5.js → job-czfptnv9.js} +8 -8
- package/dist/chunks/{ripgrep-ws4630vh.js → job-d1a9hefb.js} +9 -9
- package/dist/chunks/{ripgrep-bj8n3aze.js → job-d7semmcg.js} +27 -27
- package/dist/chunks/{ripgrep-vpdv8epx.js → job-dah7mteb.js} +22 -22
- package/dist/chunks/{ripgrep-jceb99ws.js → job-deaeaxqh.js} +13 -13
- package/dist/chunks/{ripgrep-513gj428.js → job-dncx4ycs.js} +5 -5
- package/dist/chunks/{ripgrep-gpj7vvxj.js → job-dq0v80fr.js} +8 -8
- package/dist/chunks/{ripgrep-rd8q201w.js → job-dr2s0fjn.js} +12 -12
- package/dist/chunks/{ripgrep-02cm5gdc.js → job-dx8qg5g2.js} +8 -8
- package/dist/chunks/{ripgrep-t6zs6zyr.js → job-dydyxn0c.js} +8 -8
- package/dist/chunks/{ripgrep-3ny1h4te.js → job-dymtghw6.js} +15 -15
- package/dist/chunks/{ripgrep-nt8bmh2c.js → job-dyndan9x.js} +7 -7
- package/dist/chunks/{ripgrep-f1mz2x80.js → job-e7e40j07.js} +21 -21
- package/dist/chunks/{ripgrep-ecfe7b91.js → job-ecfe7b91.js} +2 -2
- package/dist/chunks/{ripgrep-vktw4pze.js → job-ed8ee58a.js} +4 -4
- package/dist/chunks/{ripgrep-ef5x83kb.js → job-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-q68zcp6s.js → job-egadbg92.js} +13 -13
- package/dist/chunks/{ripgrep-kasa1exf.js → job-eqrfnj34.js} +19 -19
- package/dist/chunks/{ripgrep-etq0c3wd.js → job-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-gn9knv9y.js → job-f09mb087.js} +40 -40
- package/dist/chunks/{ripgrep-5dkn69vz.js → job-f29mbr7f.js} +4 -4
- package/dist/chunks/{ripgrep-8v662a6s.js → job-f50vaec3.js} +25 -25
- package/dist/chunks/{ripgrep-7dqw4kz8.js → job-fcrkznn8.js} +5 -5
- package/dist/chunks/{ripgrep-sr8ycrw9.js → job-fmzghwgw.js} +13 -13
- package/dist/chunks/{ripgrep-sg3rx6b8.js → job-fnsgkk5v.js} +24 -24
- package/dist/chunks/{ripgrep-87ppwq26.js → job-frdvpnjn.js} +7 -7
- package/dist/chunks/{ripgrep-0tkrsm5y.js → job-g0tt42na.js} +13 -11
- package/dist/chunks/{ripgrep-gd4qta3r.js → job-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-sdgam4xr.js → job-gd8pphrc.js} +1 -1
- package/dist/chunks/{ripgrep-smcq1pfk.js → job-gfctbcth.js} +10 -10
- package/dist/chunks/{ripgrep-fa7h6qtp.js → job-ggxahnyx.js} +8 -8
- package/dist/chunks/{ripgrep-gv6a8nnw.js → job-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-35qaqz32.js → job-gva2p7bf.js} +28 -28
- package/dist/chunks/{ripgrep-h6vf3j39.js → job-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-z8fqh70m.js → job-h6zqkqnm.js} +26 -26
- package/dist/chunks/{ripgrep-dhtd5fdm.js → job-hjrhn7sa.js} +17 -17
- package/dist/chunks/{ripgrep-eszpxc5c.js → job-hk6cjtaz.js} +5 -5
- package/dist/chunks/{ripgrep-tgh33bte.js → job-hp7jr1jp.js} +9 -9
- package/dist/chunks/{ripgrep-se19vg8t.js → job-hpg6w38n.js} +37 -33
- package/dist/chunks/job-ht5y0zrb.js +18 -0
- package/dist/chunks/{ripgrep-y38ja4bc.js → job-htjw9qza.js} +6 -6
- package/dist/chunks/{ripgrep-gr9s2h9h.js → job-hy1na680.js} +11 -11
- package/dist/chunks/{ripgrep-p05254f8.js → job-j543e7zy.js} +11 -11
- package/dist/chunks/{ripgrep-j56e64zr.js → job-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-prwn914c.js → job-jeerxax2.js} +18 -18
- package/dist/chunks/{ripgrep-wpj1vscs.js → job-jk9p3pr1.js} +16 -16
- package/dist/chunks/{ripgrep-p39gsrf5.js → job-jmvgh3qv.js} +43 -43
- package/dist/chunks/{ripgrep-z3k649yd.js → job-jv8zx4t6.js} +316 -316
- package/dist/chunks/{ripgrep-kxhj4mfa.js → job-jy3q8cv1.js} +11 -11
- package/dist/chunks/{ripgrep-gfwqm0th.js → job-jzxd5mvh.js} +29 -29
- package/dist/chunks/{ripgrep-vcctfkdr.js → job-k9rsy0a9.js} +15 -15
- package/dist/chunks/{ripgrep-9gz1cjgc.js → job-kfcwqfca.js} +57 -57
- package/dist/chunks/{ripgrep-jjyafwrj.js → job-kftb8sdn.js} +13 -13
- package/dist/chunks/{ripgrep-qfhyjwmh.js → job-kgchvb5g.js} +4 -4
- package/dist/chunks/{ripgrep-s3ndjw50.js → job-kmyvrf53.js} +8 -8
- package/dist/chunks/{ripgrep-h71w788e.js → job-kp8q1t60.js} +8 -8
- package/dist/chunks/{ripgrep-wrw0pdsr.js → job-krfw28kg.js} +30 -30
- package/dist/chunks/{ripgrep-gfm6y7px.js → job-m0p8cpk7.js} +75 -75
- package/dist/chunks/{ripgrep-m3fdjcah.js → job-m3fdjcah.js} +1 -1
- package/dist/chunks/{ripgrep-m9w0rfyh.js → job-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-tnwzh9w1.js → job-ma9c1wd2.js} +16 -16
- package/dist/chunks/{ripgrep-mfqp6xfm.js → job-mfqp6xfm.js} +2 -2
- package/dist/chunks/{ripgrep-ec07y9k9.js → job-mjphe00w.js} +27 -27
- package/dist/chunks/{ripgrep-kk00bynn.js → job-mjymc32g.js} +21 -21
- package/dist/chunks/{ripgrep-y5y40sn1.js → job-mn6n0y1n.js} +18 -18
- package/dist/chunks/{ripgrep-4dgbcxzg.js → job-mpk0rfs5.js} +6 -4
- package/dist/chunks/{ripgrep-amncynrr.js → job-msknqe7y.js} +6 -6
- package/dist/chunks/{ripgrep-784hb5j4.js → job-mvksx64m.js} +4 -4
- package/dist/chunks/{ripgrep-rvtvfpzy.js → job-my8d63dw.js} +6 -6
- package/dist/chunks/{ripgrep-t6jhp5yk.js → job-n4szqbm8.js} +43 -43
- package/dist/chunks/{ripgrep-0z0qdp4f.js → job-n7zyc71s.js} +44 -44
- package/dist/chunks/{ripgrep-5qt97ybp.js → job-n8v4y01d.js} +26 -26
- package/dist/chunks/{ripgrep-ywkfy99j.js → job-nq7qbqzc.js} +9 -9
- package/dist/chunks/{ripgrep-engkm2d6.js → job-nrk5vjbf.js} +5 -5
- package/dist/chunks/{ripgrep-6ap5qy5h.js → job-ntgtekfh.js} +20 -20
- package/dist/chunks/{ripgrep-d2aac7k2.js → job-nxhqveyz.js} +5 -5
- package/dist/chunks/{ripgrep-nzks3jc8.js → job-nzks3jc8.js} +3 -3
- package/dist/chunks/{ripgrep-chcvj6mx.js → job-p2scykdn.js} +30 -30
- package/dist/chunks/{ripgrep-4nzwy074.js → job-pc4b88sv.js} +4 -4
- package/dist/chunks/{ripgrep-hpgwsqwz.js → job-pdpyt1kt.js} +9 -9
- package/dist/chunks/{ripgrep-hq3kn9m3.js → job-pema4mtg.js} +9 -9
- package/dist/chunks/{ripgrep-2djhngnv.js → job-pgw42aqy.js} +8 -8
- package/dist/chunks/{ripgrep-pjvnvgmy.js → job-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → job-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-vf281y08.js → job-pt0meat3.js} +11 -11
- package/dist/chunks/{ripgrep-hrj2emtv.js → job-pxz4gc4z.js} +4 -4
- package/dist/chunks/{ripgrep-92b1hf4n.js → job-pyez88hg.js} +33 -33
- package/dist/chunks/{ripgrep-0mx2aapc.js → job-pzvyvyg4.js} +12 -12
- package/dist/chunks/{ripgrep-zyft68ff.js → job-qje3r2wc.js} +3 -3
- package/dist/chunks/{ripgrep-p1nm93x7.js → job-qn4ba14w.js} +5 -5
- package/dist/chunks/{ripgrep-r36g8kg2.js → job-qp7xcb4s.js} +15 -15
- package/dist/chunks/{ripgrep-qsdy395h.js → job-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-54zxgqzr.js → job-qwjmgwmn.js} +8 -8
- package/dist/chunks/{ripgrep-f2n192rq.js → job-r8xr0va3.js} +4 -4
- package/dist/chunks/{ripgrep-wc7bkbrs.js → job-rb7cysfw.js} +9 -9
- package/dist/chunks/{ripgrep-6d4369ev.js → job-rc8j1xt1.js} +5 -5
- package/dist/chunks/{ripgrep-rdw6cm16.js → job-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-cwa6csj7.js → job-rey5gbxv.js} +9 -9
- package/dist/chunks/{ripgrep-t550f9t1.js → job-rhjbct0v.js} +4 -4
- package/dist/chunks/{ripgrep-h5w29vws.js → job-rk1r2hx8.js} +1 -1
- package/dist/chunks/{ripgrep-s8vezypb.js → job-rwtjgree.js} +26 -26
- package/dist/chunks/{ripgrep-921pky8x.js → job-s2yhstx6.js} +29 -29
- package/dist/chunks/{ripgrep-zs8srxkn.js → job-sgsdap7d.js} +22 -22
- package/dist/chunks/{ripgrep-1n7xvyes.js → job-srtvgg2d.js} +9 -9
- package/dist/chunks/{ripgrep-fm2qvscf.js → job-sxz6gkc3.js} +7 -7
- package/dist/chunks/{ripgrep-zv0jyrj3.js → job-t62vap4r.js} +5 -5
- package/dist/chunks/{ripgrep-tazgh4e4.js → job-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-18rbsmj0.js → job-tbtg7k2g.js} +42 -34
- package/dist/chunks/{ripgrep-tcezcvh9.js → job-tcezcvh9.js} +1 -1
- package/dist/chunks/{ripgrep-vyrd71eq.js → job-tdhe5xga.js} +11 -11
- package/dist/chunks/{ripgrep-tdstcens.js → job-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-3cfzdc8e.js → job-tn0aqsam.js} +5 -5
- package/dist/chunks/{ripgrep-7d3cxzax.js → job-tq0ersfe.js} +27 -27
- package/dist/chunks/{ripgrep-tvtrv512.js → job-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-a4pew0st.js → job-txbrvd03.js} +48 -48
- package/dist/chunks/{ripgrep-zf7qa2ng.js → job-v54cehp4.js} +55 -55
- package/dist/chunks/{ripgrep-cdm0dq9n.js → job-v6gb7zv2.js} +6 -6
- package/dist/chunks/{ripgrep-y3fm06sq.js → job-v6jt2rw3.js} +3 -3
- package/dist/chunks/{ripgrep-txehjzrx.js → job-vdpw8b0t.js} +20 -20
- package/dist/chunks/{ripgrep-jyx4k4a6.js → job-vdqv4tww.js} +11 -11
- package/dist/chunks/{ripgrep-veqvce7d.js → job-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-fzjz7zmc.js → job-vf68ak62.js} +22 -22
- package/dist/chunks/{ripgrep-k0a3z2qz.js → job-vfjhn2wd.js} +4 -4
- package/dist/chunks/{ripgrep-d8j7dsnb.js → job-vk5bz9xj.js} +8 -8
- package/dist/chunks/{ripgrep-gafqwe43.js → job-vmgq4x8b.js} +2 -2
- package/dist/chunks/{ripgrep-qwk9htef.js → job-vmzrcmtw.js} +9 -9
- package/dist/chunks/{ripgrep-sf4xqwvj.js → job-vsq07z0a.js} +28 -14
- package/dist/chunks/{ripgrep-dxh6ecs0.js → job-vz4zcjem.js} +5 -5
- package/dist/chunks/{ripgrep-vzcthcp8.js → job-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-vzs5sf6e.js → job-vzs5sf6e.js} +1 -1
- package/dist/chunks/{ripgrep-w3wsvvr9.js → job-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-xgw0etvz.js → job-w4cz4w8n.js} +2 -2
- package/dist/chunks/{ripgrep-e6q37ddf.js → job-w6ebfasv.js} +9 -9
- package/dist/chunks/{ripgrep-fgmy5dam.js → job-w85vjd23.js} +30 -30
- package/dist/chunks/{ripgrep-psazpmmj.js → job-wd3x2cqz.js} +2 -2
- package/dist/chunks/{ripgrep-wd87259q.js → job-wd87259q.js} +1 -1
- package/dist/chunks/job-wm3q5ckg.js +427 -0
- package/dist/chunks/{ripgrep-m3ra8jyf.js → job-wpv4xhp3.js} +13 -13
- package/dist/chunks/{ripgrep-pzz9wtjp.js → job-wt6bjq2d.js} +6 -93
- package/dist/chunks/{ripgrep-xd3pt1yp.js → job-wtj8vade.js} +3 -3
- package/dist/chunks/{ripgrep-k5f615bv.js → job-wtmkasd2.js} +10 -10
- package/dist/chunks/{ripgrep-pjerk14q.js → job-wy2r7fzd.js} +38 -38
- package/dist/chunks/{ripgrep-6e52v1r2.js → job-wygg9rvv.js} +17 -17
- package/dist/chunks/{ripgrep-01g11k9t.js → job-x01dckpp.js} +20 -17
- package/dist/chunks/{ripgrep-x1ezjp6w.js → job-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-keqxcydf.js → job-x5y9z3y2.js} +45 -26
- package/dist/chunks/{ripgrep-1sxym04w.js → job-x7n7fr05.js} +26 -26
- package/dist/chunks/{ripgrep-45gjfn9y.js → job-xgdw0hys.js} +8 -8
- package/dist/chunks/{ripgrep-xkntkrq7.js → job-xkntkrq7.js} +2 -2
- package/dist/chunks/{ripgrep-d3qdrwa5.js → job-xp9nh6c1.js} +39 -39
- package/dist/chunks/{ripgrep-8zh4h089.js → job-xvp1j2dc.js} +5 -5
- package/dist/chunks/{ripgrep-ncxf1vrd.js → job-y083drbn.js} +5 -5
- package/dist/chunks/{ripgrep-y1fvbwt7.js → job-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-y71avatq.js → job-y71avatq.js} +1 -1
- package/dist/chunks/{ripgrep-jb2d75z1.js → job-ydesmw24.js} +11 -11
- package/dist/chunks/{ripgrep-bmw6bt9k.js → job-ykd9stzd.js} +20 -20
- package/dist/chunks/{ripgrep-v8kmpyqg.js → job-ynzdndxd.js} +21 -21
- package/dist/chunks/{ripgrep-pa6447g9.js → job-ypqa2cd5.js} +24 -24
- package/dist/chunks/{ripgrep-yrhqyw5v.js → job-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-s4enseaf.js → job-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-bjtzbw4r.js → job-z07pqspn.js} +3 -3
- package/dist/chunks/{ripgrep-z0bkrqjs.js → job-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-29x78va6.js → job-z63w68vq.js} +6 -6
- package/dist/chunks/{ripgrep-gjepqxj6.js → job-z8bzfx2e.js} +39 -39
- package/dist/chunks/{ripgrep-v9tf4bbz.js → job-zayhf9qs.js} +21 -21
- package/dist/chunks/{ripgrep-t2az9yje.js → job-zee1rnkq.js} +4 -4
- package/dist/chunks/{ripgrep-zeh9ct20.js → job-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-zr2ceqn5.js → job-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-tgqx6wbb.js → job-zr3nw1y0.js} +5 -5
- package/dist/chunks/{ripgrep-zxq2ej10.js → job-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +142 -142
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -362
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +5 -3
- package/dist/integration.js +85 -84
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -359
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -108
- package/dist/mcp/instructions.js +129 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +96 -96
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +100 -100
- package/dist/plugin/command.js +100 -99
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +104 -0
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -162
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +354 -353
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +226 -226
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -125
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +115 -114
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +101 -101
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +12 -12
- package/dist/types/credential.d.ts +6 -1
- package/dist/types/form.d.ts +5 -1
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +0 -2
- package/dist/types/integration/connection.d.ts +42 -0
- package/dist/types/integration.d.ts +24 -0
- package/dist/types/plugin/provider/chatgpt.d.ts +33 -0
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/session/error.d.ts +5 -0
- package/dist/types/session/history.d.ts +48 -0
- package/dist/types/session/transfer.d.ts +30 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +9 -8
- package/dist/chunks/ripgrep-1x11rq2a.js +0 -18
- package/dist/chunks/ripgrep-by268fe6.js +0 -252
- package/dist/chunks/ripgrep-dneah854.js +0 -26
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → job-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → job-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → job-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → job-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → job-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → job-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → job-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → job-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → job-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-34c7v6d4.js → job-34c7v6d4.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → job-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → job-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → job-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → job-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → job-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → job-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → job-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → job-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → job-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → job-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → job-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → job-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → job-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → job-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → job-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → job-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → job-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → job-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → job-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → job-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → job-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → job-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → job-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → job-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → job-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → job-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → job-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → job-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → job-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → job-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → job-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → job-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → job-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → job-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → job-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → job-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → job-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → job-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → job-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → job-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → job-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → job-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → job-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → job-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → job-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → job-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → job-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → job-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → job-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → job-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → job-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → job-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → job-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → job-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → job-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → job-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → job-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → job-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → job-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → job-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → job-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → job-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → job-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → job-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → job-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → job-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → job-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → job-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → job-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → job-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → job-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → job-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → job-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → job-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → job-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → job-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → job-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → job-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → job-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → job-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → job-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → job-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → job-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → job-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → job-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → job-z9919s4g.js} +0 -0
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node87
|
|
4
|
+
} from "./job-vdqv4tww.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service75,
|
|
7
|
+
node79
|
|
8
|
+
} from "./job-x01dckpp.js";
|
|
9
9
|
import {
|
|
10
10
|
Service81,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
node85
|
|
12
|
+
} from "./job-k9rsy0a9.js";
|
|
13
13
|
import {
|
|
14
14
|
Ref4,
|
|
15
15
|
Service80,
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
node84
|
|
17
|
+
} from "./job-frdvpnjn.js";
|
|
18
18
|
import {
|
|
19
19
|
canonical3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./job-pdpyt1kt.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionEvent2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./job-ec1grn59.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service67,
|
|
26
|
+
node71
|
|
27
|
+
} from "./job-kfcwqfca.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service24,
|
|
30
|
+
node27
|
|
31
|
+
} from "./job-deaeaxqh.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./job-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/location-lifecycle.ts
|
|
37
37
|
var exports_location_lifecycle = {};
|
|
38
38
|
__export(exports_location_lifecycle, {
|
|
39
39
|
LocationLifecycle: () => exports_location_lifecycle,
|
|
40
|
-
Service: () =>
|
|
41
|
-
node: () =>
|
|
40
|
+
Service: () => Service21,
|
|
41
|
+
node: () => node24
|
|
42
42
|
});
|
|
43
43
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
44
44
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
45
45
|
import { LocationEvent } from "@opencode/schema/location-event";
|
|
46
46
|
var isSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service21 extends Context.Service()("@opencode/LocationLifecycle") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
51
51
|
const bus = yield* Service83;
|
|
52
52
|
const location = yield* Service80;
|
|
53
|
-
const permission = yield*
|
|
54
|
-
const forms = yield*
|
|
55
|
-
const rpc = yield*
|
|
53
|
+
const permission = yield* Service67;
|
|
54
|
+
const forms = yield* Service75;
|
|
55
|
+
const rpc = yield* Service24;
|
|
56
56
|
const project = yield* Service81;
|
|
57
57
|
const scope = yield* Effect.scope;
|
|
58
58
|
yield* project.activate(location.project.id);
|
|
@@ -75,15 +75,15 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
75
75
|
location: Ref4.make({ directory: location.directory, workspaceID: location.workspaceID })
|
|
76
76
|
});
|
|
77
77
|
}).pipe(Effect.uninterruptible));
|
|
78
|
-
return
|
|
78
|
+
return Service21.of({
|
|
79
79
|
isClosed: () => closed,
|
|
80
80
|
shutdown
|
|
81
81
|
});
|
|
82
82
|
}));
|
|
83
|
-
var
|
|
84
|
-
service:
|
|
83
|
+
var node24 = makeLocationNode({
|
|
84
|
+
service: Service21,
|
|
85
85
|
layer,
|
|
86
|
-
deps: [
|
|
86
|
+
deps: [node87, node84, node71, node85, node79, node27]
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Service21, node24, exports_location_lifecycle };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./job-6msgmcgs.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./job-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useragent2
|
|
3
|
+
} from "./job-2b6sywcb.js";
|
|
4
|
+
import {
|
|
5
|
+
Service83
|
|
6
|
+
} from "./job-vdqv4tww.js";
|
|
7
|
+
import {
|
|
8
|
+
ID15,
|
|
9
|
+
OAuth3,
|
|
10
|
+
Event20,
|
|
11
|
+
Service76
|
|
12
|
+
} from "./job-tbtg7k2g.js";
|
|
13
|
+
import {
|
|
14
|
+
key2
|
|
15
|
+
} from "./job-mpk0rfs5.js";
|
|
16
|
+
import {
|
|
17
|
+
ID13,
|
|
18
|
+
MethodID2
|
|
19
|
+
} from "./job-x5y9z3y2.js";
|
|
20
|
+
import {
|
|
21
|
+
ID12,
|
|
22
|
+
mergeOverlay2
|
|
23
|
+
} from "./job-5svcwqmc.js";
|
|
24
|
+
import {
|
|
25
|
+
ID11,
|
|
26
|
+
VariantID2,
|
|
27
|
+
Info25
|
|
28
|
+
} from "./job-vf68ak62.js";
|
|
29
|
+
import {
|
|
30
|
+
success2,
|
|
31
|
+
error2
|
|
32
|
+
} from "./job-pjvnvgmy.js";
|
|
33
|
+
|
|
34
|
+
// src/plugin/provider/chatgpt.ts
|
|
35
|
+
import { define } from "@opencode/plugin/effect/plugin";
|
|
36
|
+
import { Deferred, Duration, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
37
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
38
|
+
var registrationClientID = "dynamic_agent_client";
|
|
39
|
+
var agentName = "OpenCode";
|
|
40
|
+
var issuer = "https://auth.openai.com";
|
|
41
|
+
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
|
+
var resource = "https://api.openai.com/v1";
|
|
43
|
+
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
+
var providerID = ID12.openai;
|
|
45
|
+
var integrationID = ID13.make("openai");
|
|
46
|
+
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
|
+
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
|
+
var fallbackModels = new Set([
|
|
49
|
+
"gpt-5.5",
|
|
50
|
+
"gpt-5.5-fast",
|
|
51
|
+
"gpt-5.6-luna",
|
|
52
|
+
"gpt-5.6-luna-fast",
|
|
53
|
+
"gpt-5.6-sol",
|
|
54
|
+
"gpt-5.6-sol-fast",
|
|
55
|
+
"gpt-5.6-terra",
|
|
56
|
+
"gpt-5.6-terra-fast",
|
|
57
|
+
"gpt-6-astra",
|
|
58
|
+
"gpt-6-astra-fast"
|
|
59
|
+
]);
|
|
60
|
+
var nonRetryableSharingCodes = [
|
|
61
|
+
"subscription_sharing_usage_limit_exceeded",
|
|
62
|
+
"subscription_sharing_user_not_eligible",
|
|
63
|
+
"subscription_sharing_unsupported_capability",
|
|
64
|
+
"subscription_sharing_route_not_supported",
|
|
65
|
+
"subscription_sharing_invalid_user",
|
|
66
|
+
"chatpass_v2_scope_not_authorized",
|
|
67
|
+
"chatpass_v2_invalid_authorization_context"
|
|
68
|
+
];
|
|
69
|
+
var RemoteModel = Schema.Struct({
|
|
70
|
+
slug: Schema.String,
|
|
71
|
+
display_name: Schema.String,
|
|
72
|
+
visibility: Schema.String,
|
|
73
|
+
supported_in_api: Schema.Boolean,
|
|
74
|
+
context_window: Schema.Int.check(Schema.isGreaterThan(1)),
|
|
75
|
+
input_modalities: Schema.Array(Schema.String),
|
|
76
|
+
supported_reasoning_levels: Schema.optional(Schema.Array(Schema.Struct({ effort: Schema.String })))
|
|
77
|
+
});
|
|
78
|
+
var RemoteModels = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
79
|
+
var decodeCachedModels = Schema.decodeUnknownOption(Schema.Array(RemoteModel));
|
|
80
|
+
var decodeMetadata = Schema.decodeUnknownOption(Schema.Struct({
|
|
81
|
+
clientID: Schema.String,
|
|
82
|
+
scopes: Schema.optional(Schema.Array(Schema.String)),
|
|
83
|
+
models: Schema.optional(Schema.Array(RemoteModel))
|
|
84
|
+
}));
|
|
85
|
+
var signIn = (app, savedClientID, storage) => ({
|
|
86
|
+
integrationID,
|
|
87
|
+
method: {
|
|
88
|
+
id: methodID,
|
|
89
|
+
type: "oauth",
|
|
90
|
+
label: "Sign in with ChatGPT"
|
|
91
|
+
},
|
|
92
|
+
authorize: () => Effect.gen(function* () {
|
|
93
|
+
const storedHostID = yield* storage.get("chatgpt-agent-host-id");
|
|
94
|
+
const hostID = typeof storedHostID === "string" ? storedHostID : `urn:uuid:${crypto.randomUUID()}`;
|
|
95
|
+
if (typeof storedHostID !== "string")
|
|
96
|
+
yield* storage.set("chatgpt-agent-host-id", hostID);
|
|
97
|
+
const pkce = yield* Effect.promise(generatePKCE);
|
|
98
|
+
const state = randomValue();
|
|
99
|
+
const nonce = randomValue();
|
|
100
|
+
const savedID = savedClientID();
|
|
101
|
+
const received = yield* Deferred.make();
|
|
102
|
+
const { createServer } = yield* Effect.promise(() => import("node:http"));
|
|
103
|
+
const server = createServer((request, response) => {
|
|
104
|
+
const url = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
105
|
+
if (url.pathname !== "/auth/callback") {
|
|
106
|
+
response.writeHead(404).end("Not found");
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const error = url.searchParams.get("error_description") ?? url.searchParams.get("error");
|
|
110
|
+
const authorizationCode = url.searchParams.get("code");
|
|
111
|
+
if (error) {
|
|
112
|
+
Effect.runFork(Deferred.fail(received, new Error(error)));
|
|
113
|
+
response.writeHead(400, { "Content-Type": "text/html" }).end(error2(error, { provider: "ChatGPT" }));
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (!authorizationCode || url.searchParams.get("state") !== state) {
|
|
117
|
+
const message = authorizationCode ? "Invalid OAuth state" : "Missing authorization code";
|
|
118
|
+
Effect.runFork(Deferred.fail(received, new Error(message)));
|
|
119
|
+
response.writeHead(400, { "Content-Type": "text/html" }).end(error2(message, { provider: "ChatGPT" }));
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (!Effect.runSync(Deferred.succeed(received, {
|
|
123
|
+
code: authorizationCode,
|
|
124
|
+
clientID: url.searchParams.get("client_id") ?? undefined,
|
|
125
|
+
response
|
|
126
|
+
})))
|
|
127
|
+
response.writeHead(409).end("OAuth callback already received");
|
|
128
|
+
});
|
|
129
|
+
const port = yield* listen(server);
|
|
130
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => server.close()));
|
|
131
|
+
const redirect = `http://127.0.0.1:${port}/auth/callback`;
|
|
132
|
+
return {
|
|
133
|
+
mode: "auto",
|
|
134
|
+
url: authorizeURL(redirect, pkce, state, nonce, savedID, hostID),
|
|
135
|
+
instructions: "Complete authorization in your browser. This window will close automatically.",
|
|
136
|
+
callback: Effect.gen(function* () {
|
|
137
|
+
const result = yield* Deferred.await(received);
|
|
138
|
+
const respond = (error) => Effect.sync(() => result.response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "ChatGPT" }) : success2({ provider: "ChatGPT" })));
|
|
139
|
+
return yield* Effect.gen(function* () {
|
|
140
|
+
if (savedID && result.clientID && result.clientID !== savedID)
|
|
141
|
+
return yield* Effect.fail(new Error("ChatGPT returned a different client than this connection. Connect again."));
|
|
142
|
+
const clientID = savedID ?? result.clientID;
|
|
143
|
+
if (!clientID)
|
|
144
|
+
return yield* Effect.fail(new Error("ChatGPT sign-in did not return a client ID. Connect again."));
|
|
145
|
+
const tokens = yield* exchange(result.code, clientID, redirect, pkce, app);
|
|
146
|
+
if (!tokens.scope?.split(" ").includes(tokenSharingScope))
|
|
147
|
+
return yield* Effect.fail(new Error("ChatGPT sign-in finished without token sharing. Sign in again and allow token sharing, or connect OpenAI with an API key."));
|
|
148
|
+
if (!tokens.id_token)
|
|
149
|
+
return yield* Effect.fail(new Error("ChatGPT sign-in did not return an ID token."));
|
|
150
|
+
yield* verifyIDToken2(tokens.id_token, clientID, nonce);
|
|
151
|
+
return credential(tokens, clientID);
|
|
152
|
+
}).pipe(Effect.tap(() => respond()), Effect.tapError((error) => respond(error instanceof Error ? error.message : "ChatGPT sign-in failed")), Effect.onInterrupt(() => Effect.sync(() => result.response.destroy())));
|
|
153
|
+
})
|
|
154
|
+
};
|
|
155
|
+
}),
|
|
156
|
+
refresh: (value) => refresh(value, app)
|
|
157
|
+
});
|
|
158
|
+
function listen(server) {
|
|
159
|
+
return Effect.callback((resume) => {
|
|
160
|
+
const onError = (error) => resume(Effect.fail(error));
|
|
161
|
+
server.once("error", onError);
|
|
162
|
+
server.listen(0, "127.0.0.1", () => {
|
|
163
|
+
server.off("error", onError);
|
|
164
|
+
const address = server.address();
|
|
165
|
+
if (!address || typeof address === "string")
|
|
166
|
+
return resume(Effect.fail(new Error("Missing OAuth callback port")));
|
|
167
|
+
resume(Effect.succeed(address.port));
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
var ChatGPTPlugin2 = define({
|
|
172
|
+
id: "opencode.provider.chatgpt",
|
|
173
|
+
effect: Effect.fn(function* (ctx) {
|
|
174
|
+
const bus = yield* Service83;
|
|
175
|
+
const credentials = yield* Service76;
|
|
176
|
+
const loading = Semaphore.makeUnsafe(1);
|
|
177
|
+
let chatgpt;
|
|
178
|
+
let available;
|
|
179
|
+
let source;
|
|
180
|
+
const load = Effect.fn("ChatGPTPlugin.load")(function* () {
|
|
181
|
+
const previous = key2(source);
|
|
182
|
+
const connection = yield* ctx.integration.connection.active(integrationID);
|
|
183
|
+
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
184
|
+
return;
|
|
185
|
+
})) : undefined;
|
|
186
|
+
chatgpt = credential?.type === "oauth" && credential.methodID === methodID ? credential : undefined;
|
|
187
|
+
source = chatgpt ? connection : undefined;
|
|
188
|
+
if (previous !== key2(source)) {
|
|
189
|
+
const metadata = Option.getOrUndefined(decodeMetadata(chatgpt?.metadata));
|
|
190
|
+
const stored = metadata ? yield* ctx.storage.get(modelCacheKey(metadata.clientID)) : undefined;
|
|
191
|
+
available = Option.getOrUndefined(decodeCachedModels(stored));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
yield* ctx.integration.transform((editor) => {
|
|
195
|
+
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
|
+
});
|
|
197
|
+
yield* Effect.forEach(yield* credentials.list(ID13.make("openai")), (entry) => {
|
|
198
|
+
const value = entry.value;
|
|
199
|
+
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
|
+
return Effect.void;
|
|
201
|
+
const metadata = Option.getOrUndefined(decodeMetadata(value.metadata));
|
|
202
|
+
if (!metadata)
|
|
203
|
+
return Effect.void;
|
|
204
|
+
return Effect.gen(function* () {
|
|
205
|
+
const saved = yield* ctx.storage.get(modelCacheKey(metadata.clientID));
|
|
206
|
+
if (!Option.isSome(decodeCachedModels(saved)) && metadata.models)
|
|
207
|
+
yield* ctx.storage.set(modelCacheKey(metadata.clientID), metadata.models);
|
|
208
|
+
const { models: _, ...rest } = value.metadata ?? {};
|
|
209
|
+
yield* credentials.update(entry.id, {
|
|
210
|
+
value: OAuth3.make({ ...value, methodID, metadata: rest })
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}, { discard: true });
|
|
214
|
+
yield* load();
|
|
215
|
+
yield* ctx.session.hook("retry", (event) => Effect.sync(() => {
|
|
216
|
+
if (!chatgpt || !nonRetryableSharingCodes.some((code) => event.error.response?.body.includes(code)))
|
|
217
|
+
return;
|
|
218
|
+
event.decision = { retry: false };
|
|
219
|
+
}), { providerID });
|
|
220
|
+
yield* ctx.provider.transform((providers) => {
|
|
221
|
+
const item = providers.get(providerID);
|
|
222
|
+
if (!item)
|
|
223
|
+
return;
|
|
224
|
+
if (!chatgpt || !source)
|
|
225
|
+
return;
|
|
226
|
+
providers.update(providerID, (provider) => {
|
|
227
|
+
provider.settings = mergeOverlay2(provider.settings, {
|
|
228
|
+
baseURL: resource,
|
|
229
|
+
transport: "http",
|
|
230
|
+
compaction: { type: "summary" }
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
const updated = providers.get(providerID);
|
|
234
|
+
if (!updated)
|
|
235
|
+
return;
|
|
236
|
+
providers.add({
|
|
237
|
+
info: updated.provider,
|
|
238
|
+
models: available ? deriveModels2(available, Array.from(item.models.values())) : Array.from(item.models.values()).filter((model) => fallbackModels.has(model.id)),
|
|
239
|
+
sourceConnection: source
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
yield* ctx.model.transform((models) => {
|
|
243
|
+
for (const model of models.list(providerID)) {
|
|
244
|
+
models.update(model.providerID, model.id, (draft) => {
|
|
245
|
+
if (!chatgpt)
|
|
246
|
+
return;
|
|
247
|
+
draft.settings = { ...draft.settings, compaction: { type: "summary" } };
|
|
248
|
+
if (Schema.is(Schema.Struct({ mode: Schema.Literal("pro") }))(draft.body?.reasoning)) {
|
|
249
|
+
draft.enabled = false;
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (available && !available.some((remote) => remote.slug === (draft.modelID ?? draft.id))) {
|
|
253
|
+
draft.enabled = false;
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
draft.cost = [];
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
|
|
261
|
+
const connection = source;
|
|
262
|
+
const credential = connection?.type === "credential" ? (yield* credentials.get(ID15.make(connection.id)))?.value : undefined;
|
|
263
|
+
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
|
+
return;
|
|
265
|
+
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
266
|
+
if (!metadata)
|
|
267
|
+
return;
|
|
268
|
+
const models = yield* fetchModels2(credential.access, ctx.app).pipe(Effect.timeout(15000), Effect.catch(() => Effect.logWarning("failed to refresh ChatGPT models").pipe(Effect.as(undefined))));
|
|
269
|
+
if (!models)
|
|
270
|
+
return;
|
|
271
|
+
yield* loading.withPermit(Effect.gen(function* () {
|
|
272
|
+
if (key2(connection) !== key2(source) || key2(connection) !== key2(yield* ctx.integration.connection.active(integrationID)))
|
|
273
|
+
return;
|
|
274
|
+
if (JSON.stringify(models) === JSON.stringify(available))
|
|
275
|
+
return;
|
|
276
|
+
yield* ctx.storage.set(modelCacheKey(metadata.clientID), models);
|
|
277
|
+
available = models;
|
|
278
|
+
yield* ctx.provider.reload();
|
|
279
|
+
}));
|
|
280
|
+
});
|
|
281
|
+
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
|
+
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
|
+
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
285
|
+
})
|
|
286
|
+
});
|
|
287
|
+
function headers(app) {
|
|
288
|
+
return { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": useragent2(app) };
|
|
289
|
+
}
|
|
290
|
+
function exchange(code, clientID, redirect, pkce, app) {
|
|
291
|
+
return request(tokenURL, {
|
|
292
|
+
method: "POST",
|
|
293
|
+
headers: headers(app),
|
|
294
|
+
body: new URLSearchParams({
|
|
295
|
+
grant_type: "authorization_code",
|
|
296
|
+
client_id: clientID,
|
|
297
|
+
code,
|
|
298
|
+
code_verifier: pkce.verifier,
|
|
299
|
+
redirect_uri: redirect,
|
|
300
|
+
resource
|
|
301
|
+
}).toString()
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function refresh(value, app) {
|
|
305
|
+
return Effect.gen(function* () {
|
|
306
|
+
const metadata = Option.getOrUndefined(decodeMetadata(value.metadata));
|
|
307
|
+
if (!metadata)
|
|
308
|
+
return yield* Effect.fail(new Error("This ChatGPT connection has no registered client ID. Connect again."));
|
|
309
|
+
const tokens = yield* request(tokenURL, {
|
|
310
|
+
method: "POST",
|
|
311
|
+
headers: headers(app),
|
|
312
|
+
body: new URLSearchParams({
|
|
313
|
+
grant_type: "refresh_token",
|
|
314
|
+
client_id: metadata.clientID,
|
|
315
|
+
refresh_token: value.refresh,
|
|
316
|
+
resource
|
|
317
|
+
}).toString()
|
|
318
|
+
});
|
|
319
|
+
return credential(tokens, metadata.clientID, metadata.scopes);
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
function fetchModels2(token, app, baseURL = resource) {
|
|
323
|
+
return Effect.gen(function* () {
|
|
324
|
+
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
325
|
+
const response = yield* http.execute(HttpClientRequest.get(`${baseURL}/models`).pipe(HttpClientRequest.bearerToken(token), HttpClientRequest.setHeader("User-Agent", useragent2(app))));
|
|
326
|
+
const data = yield* HttpClientResponse.schemaBodyJson(RemoteModels)(response);
|
|
327
|
+
const models = data.models.filter((model) => model.visibility === "list" && model.supported_in_api);
|
|
328
|
+
if (!models.length)
|
|
329
|
+
return yield* Effect.fail(new Error("No ChatGPT models are available for this account."));
|
|
330
|
+
return models;
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function deriveModels2(remote, existing) {
|
|
334
|
+
const byID = new Map(remote.map((model) => [model.slug, model]));
|
|
335
|
+
const known = new Set(existing.map((model) => model.id));
|
|
336
|
+
return [
|
|
337
|
+
...existing.flatMap((model) => {
|
|
338
|
+
const found = byID.get(model.modelID);
|
|
339
|
+
return found ? [deriveModel(found, model)] : [];
|
|
340
|
+
}),
|
|
341
|
+
...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info25.default(ID12.openai, ID11.make(model.slug))))
|
|
342
|
+
];
|
|
343
|
+
}
|
|
344
|
+
function deriveModel(remote, previous) {
|
|
345
|
+
return {
|
|
346
|
+
...previous,
|
|
347
|
+
name: previous.id === previous.modelID ? remote.display_name : previous.name,
|
|
348
|
+
package: previous.package ?? "@opencode/ai/providers/openai",
|
|
349
|
+
capabilities: {
|
|
350
|
+
...previous.capabilities,
|
|
351
|
+
input: remote.input_modalities.filter((modality) => modality === "text" || modality === "image")
|
|
352
|
+
},
|
|
353
|
+
variants: [
|
|
354
|
+
...previous.variants.filter((variant) => typeof variant.settings?.reasoningEffort !== "string"),
|
|
355
|
+
...(remote.supported_reasoning_levels ?? []).map(({ effort }) => previous.variants.find((variant) => variant.id === effort && variant.settings?.reasoningEffort === effort) ?? { id: VariantID2.make(effort), settings: { reasoningEffort: effort } })
|
|
356
|
+
],
|
|
357
|
+
limit: { context: remote.context_window, output: previous.limit.output }
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function verifyIDToken2(token, clientID, nonce, jwksURL = new URL(`${issuer}/.well-known/jwks.json`)) {
|
|
361
|
+
return Effect.tryPromise({
|
|
362
|
+
try: async () => {
|
|
363
|
+
const { createRemoteJWKSet, jwtVerify } = await import("jose");
|
|
364
|
+
const { payload } = await jwtVerify(token, createRemoteJWKSet(jwksURL), {
|
|
365
|
+
issuer,
|
|
366
|
+
audience: clientID,
|
|
367
|
+
algorithms: ["RS256"],
|
|
368
|
+
requiredClaims: ["exp", "nonce", "sub"]
|
|
369
|
+
});
|
|
370
|
+
if (typeof payload.sub !== "string" || !payload.sub.trim())
|
|
371
|
+
throw new Error("ID token subject is missing");
|
|
372
|
+
if (payload.nonce !== nonce)
|
|
373
|
+
throw new Error("ID token nonce does not match this sign-in attempt");
|
|
374
|
+
},
|
|
375
|
+
catch: (cause) => new Error("ChatGPT sign-in returned an invalid ID token.", { cause })
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function request(url, init) {
|
|
379
|
+
return Effect.tryPromise({
|
|
380
|
+
try: async (signal) => {
|
|
381
|
+
const response = await fetch(url, { ...init, signal });
|
|
382
|
+
if (!response.ok)
|
|
383
|
+
throw new Error(`Request failed: ${response.status}`);
|
|
384
|
+
return response.json();
|
|
385
|
+
},
|
|
386
|
+
catch: (cause) => cause
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
function credential(tokens, clientID, scopes) {
|
|
390
|
+
return OAuth3.make({
|
|
391
|
+
type: "oauth",
|
|
392
|
+
methodID,
|
|
393
|
+
refresh: tokens.refresh_token,
|
|
394
|
+
access: tokens.access_token,
|
|
395
|
+
expires: Date.now() + (tokens.expires_in ?? 3600) * 1000,
|
|
396
|
+
metadata: { clientID, scopes: tokens.scope?.split(" ").filter(Boolean) ?? scopes ?? [] }
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
async function generatePKCE() {
|
|
400
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
|
|
401
|
+
const verifier = Array.from(crypto.getRandomValues(new Uint8Array(43)), (byte) => chars[byte % chars.length]).join("");
|
|
402
|
+
const challenge = base64UrlEncode(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)));
|
|
403
|
+
return { verifier, challenge };
|
|
404
|
+
}
|
|
405
|
+
function randomValue() {
|
|
406
|
+
return base64UrlEncode(crypto.getRandomValues(new Uint8Array(32)).buffer);
|
|
407
|
+
}
|
|
408
|
+
function base64UrlEncode(buffer) {
|
|
409
|
+
return Buffer.from(buffer).toString("base64url");
|
|
410
|
+
}
|
|
411
|
+
function authorizeURL(redirect, pkce, state, nonce, savedID, hostID) {
|
|
412
|
+
return `${issuer}/api/accounts/authorize?${new URLSearchParams({
|
|
413
|
+
client_id: savedID ?? registrationClientID,
|
|
414
|
+
...savedID ? {} : { agent_name_hint: agentName },
|
|
415
|
+
ext_agent_host_id: hostID,
|
|
416
|
+
response_type: "code",
|
|
417
|
+
redirect_uri: redirect,
|
|
418
|
+
scope: `openid profile email offline_access resource.invoke ${tokenSharingScope}`,
|
|
419
|
+
resource,
|
|
420
|
+
state,
|
|
421
|
+
nonce,
|
|
422
|
+
code_challenge_method: "S256",
|
|
423
|
+
code_challenge: pkce.challenge
|
|
424
|
+
})}`;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export { ChatGPTPlugin2, fetchModels2, deriveModels2, verifyIDToken2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./job-frdvpnjn.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service51
|
|
7
|
+
} from "./job-f09mb087.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service56
|
|
10
|
+
} from "./job-jk9p3pr1.js";
|
|
11
11
|
import {
|
|
12
12
|
make10
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./job-73tb2d7t.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./job-qsdy395h.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./job-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/formatter.ts
|
|
22
22
|
var exports_formatter = {};
|
|
23
23
|
__export(exports_formatter, {
|
|
24
24
|
ConfigFormatterPlugin: () => exports_formatter,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin10
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -30,11 +30,11 @@ import { Global } from "@opencode/util/global";
|
|
|
30
30
|
import { Npm } from "@opencode/util/npm";
|
|
31
31
|
import { AppProcess } from "@opencode/util/process";
|
|
32
32
|
import { Effect } from "effect";
|
|
33
|
-
var
|
|
33
|
+
var Plugin10 = define({
|
|
34
34
|
id: "opencode.config.formatter",
|
|
35
35
|
effect: Effect.fn(function* (ctx) {
|
|
36
|
-
const config = yield*
|
|
37
|
-
const formatter = yield*
|
|
36
|
+
const config = yield* Service51;
|
|
37
|
+
const formatter = yield* Service56;
|
|
38
38
|
const fs = yield* FSUtil.Service;
|
|
39
39
|
const global = yield* Global.Service;
|
|
40
40
|
const location = yield* Service80;
|
|
@@ -74,4 +74,4 @@ var Plugin3 = define({
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
export {
|
|
77
|
+
export { Plugin10, exports_formatter };
|