@opencode/core 0.0.0-dev-21163 → 0.0.0-dev-21165
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +75 -75
- package/dist/chunks/{snapshot-djsc6asp.js → aisdk-01n1kwcd.js} +50 -50
- package/dist/chunks/{snapshot-m9gt5bdn.js → aisdk-04kyr8dc.js} +16 -16
- package/dist/chunks/{snapshot-0v80x1f6.js → aisdk-07bfhn93.js} +4 -4
- package/dist/chunks/{snapshot-q1a6xb3r.js → aisdk-08rc9xny.js} +5 -5
- package/dist/chunks/{snapshot-xhg5qrkn.js → aisdk-09vf9mn1.js} +22 -22
- package/dist/chunks/{snapshot-d3twtd49.js → aisdk-0f7ygtf0.js} +13 -13
- package/dist/chunks/{snapshot-q1wtg1gk.js → aisdk-0nrhkkag.js} +11 -11
- package/dist/chunks/{snapshot-0vbcp93d.js → aisdk-0vbcp93d.js} +2 -2
- package/dist/chunks/{snapshot-n9h5d100.js → aisdk-16s6cm5x.js} +11 -11
- package/dist/chunks/{snapshot-347v34hz.js → aisdk-16zn0pm4.js} +5 -5
- package/dist/chunks/{snapshot-bzeyqsqd.js → aisdk-1ep4rre3.js} +4 -4
- package/dist/chunks/{snapshot-snk2tj6r.js → aisdk-1twacjpa.js} +32 -32
- package/dist/chunks/{snapshot-eqyse9qm.js → aisdk-1wcjck60.js} +13 -13
- package/dist/chunks/{snapshot-8xdzhf48.js → aisdk-1xnz6qps.js} +26 -26
- package/dist/chunks/{snapshot-bm6m2f01.js → aisdk-1zcpefwj.js} +29 -29
- package/dist/chunks/{snapshot-3wd8382n.js → aisdk-251gbjhp.js} +5 -5
- package/dist/chunks/{snapshot-t9kr6xs7.js → aisdk-2a8f9bg8.js} +19 -19
- package/dist/chunks/{snapshot-d49pgqdb.js → aisdk-2cnsnyjd.js} +13 -13
- package/dist/chunks/{snapshot-03phhxcy.js → aisdk-2rgxr6yb.js} +10 -10
- package/dist/chunks/{snapshot-210p74nv.js → aisdk-2ykqrg29.js} +6 -6
- package/dist/chunks/{snapshot-w2q8zjmz.js → aisdk-2zj1tk32.js} +27 -27
- package/dist/chunks/{snapshot-3fc6dm20.js → aisdk-3fc6dm20.js} +1 -1
- package/dist/chunks/{snapshot-7q4bfbvn.js → aisdk-3h8s31n6.js} +7 -7
- package/dist/chunks/{snapshot-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{snapshot-3hwn7j4h.js → aisdk-3hwn7j4h.js} +2 -2
- package/dist/chunks/{snapshot-pym14gm6.js → aisdk-3npajrg6.js} +56 -56
- package/dist/chunks/{snapshot-3smtnn6g.js → aisdk-3smtnn6g.js} +1 -1
- package/dist/chunks/{snapshot-3tvqynh2.js → aisdk-3tvqynh2.js} +1 -1
- package/dist/chunks/{snapshot-3zsf4n22.js → aisdk-3zsf4n22.js} +1 -1
- package/dist/chunks/{snapshot-2erqmtdk.js → aisdk-426b87s3.js} +35 -35
- package/dist/chunks/{snapshot-gxaq7zhw.js → aisdk-4k3vg5dq.js} +18 -18
- package/dist/chunks/{snapshot-dxcm25gw.js → aisdk-4nj4bn9q.js} +9 -9
- package/dist/chunks/{snapshot-fn366g0y.js → aisdk-4rp1d96y.js} +25 -25
- package/dist/chunks/{snapshot-phz50fbd.js → aisdk-4xdpab2z.js} +5 -5
- package/dist/chunks/{snapshot-d3718gj5.js → aisdk-51zbrdrj.js} +35 -35
- package/dist/chunks/{snapshot-143qq2q9.js → aisdk-5epte933.js} +3 -3
- package/dist/chunks/{snapshot-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{snapshot-7bxgp08m.js → aisdk-5mqg4y6p.js} +9 -9
- package/dist/chunks/{snapshot-cqjagng5.js → aisdk-5xqnd2py.js} +31 -31
- package/dist/chunks/{snapshot-mk05kat5.js → aisdk-64hykmhj.js} +24 -24
- package/dist/chunks/{snapshot-6827pfxn.js → aisdk-6827pfxn.js} +1 -1
- package/dist/chunks/{snapshot-3dp5zkcc.js → aisdk-6h8mhza0.js} +18 -18
- package/dist/chunks/{snapshot-62b0hcmy.js → aisdk-6jg6e7qm.js} +11 -11
- package/dist/chunks/{snapshot-rntct4v8.js → aisdk-6pcp10ab.js} +46 -46
- package/dist/chunks/{snapshot-xsredejr.js → aisdk-6qdkdryh.js} +188 -188
- package/dist/chunks/{snapshot-94jw5d4f.js → aisdk-6ranmm6y.js} +17 -17
- package/dist/chunks/{snapshot-r682d5ha.js → aisdk-6se6dzbq.js} +5 -5
- package/dist/chunks/{snapshot-6xb47vfp.js → aisdk-6xb47vfp.js} +1 -1
- package/dist/chunks/{snapshot-3raex6t0.js → aisdk-6xwgnd5y.js} +8 -8
- package/dist/chunks/{snapshot-w39jehkq.js → aisdk-6yz0wx8n.js} +5 -5
- package/dist/chunks/{snapshot-jf7ekgm9.js → aisdk-70a8yax9.js} +8 -8
- package/dist/chunks/{snapshot-y9jvxck8.js → aisdk-70qy5gsz.js} +13 -13
- package/dist/chunks/{snapshot-9m2243zx.js → aisdk-74dbrd1v.js} +11 -11
- package/dist/chunks/{snapshot-eh6ej367.js → aisdk-76rvckpe.js} +5 -5
- package/dist/chunks/{snapshot-775gj3j1.js → aisdk-775gj3j1.js} +2 -2
- package/dist/chunks/{snapshot-3b5z0erk.js → aisdk-79s4y9te.js} +11 -11
- package/dist/chunks/{snapshot-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{snapshot-bmr56wjg.js → aisdk-7cx595n2.js} +9 -9
- package/dist/chunks/{snapshot-6wh7xaz2.js → aisdk-7jgz7t5s.js} +13 -13
- package/dist/chunks/{snapshot-bf7csrhb.js → aisdk-7m1d6sc0.js} +15 -15
- package/dist/chunks/{snapshot-1b80kj0v.js → aisdk-7nb0j301.js} +10 -10
- package/dist/chunks/{snapshot-m0ke1azk.js → aisdk-7q3bkqfb.js} +20 -20
- package/dist/chunks/{snapshot-aeg5ttrh.js → aisdk-83ey9fxt.js} +13 -13
- package/dist/chunks/{snapshot-w1eejvng.js → aisdk-84txncab.js} +5 -5
- package/dist/chunks/{snapshot-6283stes.js → aisdk-875hp0v4.js} +22 -22
- package/dist/chunks/{snapshot-8n55hgev.js → aisdk-8bxrgrk0.js} +19 -19
- package/dist/chunks/{snapshot-e6ekz585.js → aisdk-8f56w51t.js} +25 -25
- package/dist/chunks/{snapshot-8m6m0r52.js → aisdk-8m6m0r52.js} +1 -1
- package/dist/chunks/{snapshot-rk7s9xkn.js → aisdk-8wbxkt1z.js} +4 -4
- package/dist/chunks/{snapshot-f9693ket.js → aisdk-91mz4wj7.js} +26 -26
- package/dist/chunks/{snapshot-8v6pyhej.js → aisdk-9hn6k4tm.js} +8 -8
- package/dist/chunks/{snapshot-bqk1xv54.js → aisdk-9j4ry0rw.js} +14 -14
- package/dist/chunks/{snapshot-m14r162y.js → aisdk-9mcrn8z0.js} +9 -9
- package/dist/chunks/{snapshot-camn9k3d.js → aisdk-9n365qnn.js} +27 -27
- package/dist/chunks/aisdk-9sh4wc5j.js +18 -0
- package/dist/chunks/{snapshot-c6xh4c6j.js → aisdk-9w7t8wnk.js} +6 -6
- package/dist/chunks/{snapshot-w5na3y5v.js → aisdk-a09060d2.js} +22 -22
- package/dist/chunks/{snapshot-hmpj5xfy.js → aisdk-a3f1fsja.js} +21 -21
- package/dist/chunks/{snapshot-7sbkp4xb.js → aisdk-a46v4e4v.js} +4 -4
- package/dist/chunks/{snapshot-x661k3y3.js → aisdk-addxnjmp.js} +4 -4
- package/dist/chunks/{snapshot-qvb3nf84.js → aisdk-ahd542yp.js} +8 -8
- package/dist/chunks/{snapshot-85gwbv31.js → aisdk-an9zbwa9.js} +25 -25
- package/dist/chunks/{snapshot-k1gpp38j.js → aisdk-ap4w3rzp.js} +13 -13
- package/dist/chunks/{snapshot-2ny3jh00.js → aisdk-ax9sbbz8.js} +10 -10
- package/dist/chunks/{snapshot-fj7gaszw.js → aisdk-b12fh71z.js} +12 -12
- package/dist/chunks/{snapshot-bfegkxfd.js → aisdk-b4ytdsdb.js} +11 -11
- package/dist/chunks/{snapshot-hvq4weyw.js → aisdk-b8xm5rgb.js} +15 -15
- package/dist/chunks/aisdk-bdfb4q3w.js +26 -0
- package/dist/chunks/{snapshot-bzpwbrxf.js → aisdk-bjnty173.js} +35 -35
- package/dist/chunks/{snapshot-ywt8jp22.js → aisdk-bjx1sjef.js} +9 -9
- package/dist/chunks/{snapshot-xspp19dx.js → aisdk-bpxb72je.js} +33 -33
- package/dist/chunks/{snapshot-c1fqxshp.js → aisdk-c1fqxshp.js} +3 -3
- package/dist/chunks/{snapshot-m1rtee8r.js → aisdk-cbkgmcqe.js} +37 -37
- package/dist/chunks/{snapshot-5haf30hz.js → aisdk-cbtmrey0.js} +38 -38
- package/dist/chunks/{snapshot-ft3hqk2c.js → aisdk-cpneeje0.js} +9 -9
- package/dist/chunks/{snapshot-79y18c4v.js → aisdk-d0q8q246.js} +32 -32
- package/dist/chunks/{snapshot-mwky8rtw.js → aisdk-d31g3ckh.js} +328 -328
- package/dist/chunks/{snapshot-rhzmt3es.js → aisdk-d335wv2a.js} +27 -27
- package/dist/chunks/{snapshot-kqnkx5cp.js → aisdk-d48x6jcz.js} +11 -11
- package/dist/chunks/{snapshot-6k8an2y9.js → aisdk-d5t2jb6p.js} +33 -33
- package/dist/chunks/{snapshot-3sxvetjy.js → aisdk-dbt3qtfn.js} +24 -24
- package/dist/chunks/{snapshot-wygkcgsy.js → aisdk-dgwyq2v0.js} +51 -51
- package/dist/chunks/{snapshot-jwcy2c2z.js → aisdk-dpkg50ah.js} +4 -4
- package/dist/chunks/{snapshot-drwq78ky.js → aisdk-drwq78ky.js} +1 -1
- package/dist/chunks/{snapshot-qr1s19a1.js → aisdk-dyhakcmm.js} +3 -3
- package/dist/chunks/{snapshot-wd0x6d30.js → aisdk-e2nch71j.js} +8 -8
- package/dist/chunks/{snapshot-5qd3pb7m.js → aisdk-e3qxr5gk.js} +2 -2
- package/dist/chunks/{snapshot-cd9wyv5p.js → aisdk-e7298pbw.js} +26 -26
- package/dist/chunks/{snapshot-v6gb7zv2.js → aisdk-edbfpfck.js} +6 -6
- package/dist/chunks/{snapshot-eej6y6fw.js → aisdk-eej6y6fw.js} +2 -2
- package/dist/chunks/{snapshot-ef5x83kb.js → aisdk-ef5x83kb.js} +1 -1
- package/dist/chunks/{snapshot-84jw3qpq.js → aisdk-egt26144.js} +31 -31
- package/dist/chunks/{snapshot-z4qtxhqf.js → aisdk-ekjfvpgh.js} +15 -15
- package/dist/chunks/{snapshot-s2yckgzf.js → aisdk-eyy6pa5s.js} +5 -5
- package/dist/chunks/{snapshot-q2w9h836.js → aisdk-f0jrrk8m.js} +38 -38
- package/dist/chunks/{snapshot-y3zkdgh7.js → aisdk-f1nb0rk8.js} +28 -28
- package/dist/chunks/{snapshot-qmh7t0e0.js → aisdk-f4kv1xja.js} +17 -17
- package/dist/chunks/{snapshot-yfa5tj4a.js → aisdk-f6qjwz0a.js} +19 -19
- package/dist/chunks/{snapshot-7dqw4kz8.js → aisdk-fcrkznn8.js} +5 -5
- package/dist/chunks/{snapshot-fcy631f0.js → aisdk-fcy631f0.js} +1 -1
- package/dist/chunks/{snapshot-wr7ps67x.js → aisdk-fegk541e.js} +5 -5
- package/dist/chunks/{snapshot-dec9hyae.js → aisdk-fn24ytry.js} +16 -16
- package/dist/chunks/{snapshot-04ryjj00.js → aisdk-fpcy6920.js} +9 -9
- package/dist/chunks/{snapshot-hfqhg2b8.js → aisdk-fq42x2x4.js} +17 -17
- package/dist/chunks/{snapshot-9msepacv.js → aisdk-fsem3xgy.js} +12 -12
- package/dist/chunks/{snapshot-khmqacep.js → aisdk-fxaymqdw.js} +4 -4
- package/dist/chunks/{snapshot-tn3z2tca.js → aisdk-g2gn91pk.js} +27 -27
- package/dist/chunks/{snapshot-gd4qta3r.js → aisdk-gd4qta3r.js} +1 -1
- package/dist/chunks/{snapshot-415az79b.js → aisdk-gkb8hfxz.js} +9 -9
- package/dist/chunks/{snapshot-qq5jvte1.js → aisdk-gnza20my.js} +3 -3
- package/dist/chunks/{snapshot-q1szfc13.js → aisdk-gtg0yfsx.js} +4 -4
- package/dist/chunks/{snapshot-n6s2wxqy.js → aisdk-h2hf2vvh.js} +11 -11
- package/dist/chunks/{snapshot-gv3y5r8d.js → aisdk-h3405n8r.js} +9 -9
- package/dist/chunks/{snapshot-h6vf3j39.js → aisdk-h6vf3j39.js} +1 -1
- package/dist/chunks/{snapshot-h7s7r6s9.js → aisdk-h7s7r6s9.js} +2 -2
- package/dist/chunks/{snapshot-n1n192bv.js → aisdk-h9wp8z5w.js} +4 -4
- package/dist/chunks/{snapshot-hgz4x7wa.js → aisdk-hgz4x7wa.js} +1 -1
- package/dist/chunks/{snapshot-qhphvxes.js → aisdk-hhkdq0n7.js} +8 -8
- package/dist/chunks/{snapshot-a8aatv38.js → aisdk-hqnngn8j.js} +11 -11
- package/dist/chunks/{snapshot-qh0k1p1d.js → aisdk-hsxxxj2g.js} +25 -25
- package/dist/chunks/{snapshot-j0cf4nzm.js → aisdk-hy512mf0.js} +20 -20
- package/dist/chunks/{snapshot-b03ryzq6.js → aisdk-hydvx0bh.js} +1 -1
- package/dist/chunks/{snapshot-91qna3x0.js → aisdk-j09zfasm.js} +3 -3
- package/dist/chunks/{snapshot-gj8ct3zv.js → aisdk-j0wfdg0j.js} +74 -74
- package/dist/chunks/{snapshot-nxrgqcj9.js → aisdk-j5ea0gxc.js} +30 -30
- package/dist/chunks/{snapshot-g1b1wp2e.js → aisdk-j7b563xx.js} +12 -12
- package/dist/chunks/{snapshot-2mxt17n5.js → aisdk-j7shp2nh.js} +6 -6
- package/dist/chunks/{snapshot-b21nzxaa.js → aisdk-j8s3b3b0.js} +4 -4
- package/dist/chunks/{snapshot-3a56ctkk.js → aisdk-jbnyf9pt.js} +14 -14
- package/dist/chunks/{snapshot-es4zr9pq.js → aisdk-jfsx45fr.js} +8 -8
- package/dist/chunks/{snapshot-2nykmre5.js → aisdk-jmtx8h4d.js} +9 -9
- package/dist/chunks/{snapshot-m7dmhh8f.js → aisdk-jncq68bc.js} +13 -13
- package/dist/chunks/{snapshot-3b09jk82.js → aisdk-jq16bmns.js} +22 -22
- package/dist/chunks/{snapshot-e9hx7ajy.js → aisdk-jq76mnv4.js} +30 -30
- package/dist/chunks/{snapshot-7qet95x0.js → aisdk-jztcgc0p.js} +22 -22
- package/dist/chunks/{snapshot-en2e8yfm.js → aisdk-k3525xym.js} +20 -20
- package/dist/chunks/{snapshot-2n9dancj.js → aisdk-k3sfpeqe.js} +3 -3
- package/dist/chunks/{snapshot-z8y4g21a.js → aisdk-k5zc9ap2.js} +14 -14
- package/dist/chunks/{snapshot-2nsmqgb6.js → aisdk-k9vwfj98.js} +3 -3
- package/dist/chunks/{snapshot-077jc6hy.js → aisdk-kamb3qsf.js} +19 -19
- package/dist/chunks/{snapshot-n1nekz5z.js → aisdk-kcyv1s8t.js} +33 -33
- package/dist/chunks/{snapshot-7j7jdcww.js → aisdk-ke19jgsp.js} +47 -47
- package/dist/chunks/{snapshot-p32gghmn.js → aisdk-kkgz0y6d.js} +14 -14
- package/dist/chunks/{snapshot-kqx1b4hy.js → aisdk-kqx1b4hy.js} +4 -4
- package/dist/chunks/{snapshot-kwb1v3vj.js → aisdk-kwb1v3vj.js} +1 -1
- package/dist/chunks/{snapshot-e3jt2v5b.js → aisdk-m4qw7nje.js} +14 -14
- package/dist/chunks/{snapshot-nrt5px6v.js → aisdk-m66w712w.js} +28 -28
- package/dist/chunks/{snapshot-ktd4dqz2.js → aisdk-m6q0me2f.js} +14 -14
- package/dist/chunks/{snapshot-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{snapshot-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
- package/dist/chunks/{snapshot-40v9kngq.js → aisdk-mbbzmfev.js} +9 -9
- package/dist/chunks/{snapshot-kyd66f1c.js → aisdk-mjp5m37f.js} +36 -36
- package/dist/chunks/{snapshot-s9d01kr9.js → aisdk-mvj51z83.js} +3 -3
- package/dist/chunks/{snapshot-m2hjyvdx.js → aisdk-n19kh25r.js} +10 -10
- package/dist/chunks/{snapshot-fj8d9ky6.js → aisdk-n4d3d4w3.js} +11 -11
- package/dist/chunks/{snapshot-5vty9d1v.js → aisdk-n4dsv9re.js} +5 -5
- package/dist/chunks/{snapshot-v8xncc8s.js → aisdk-n4k6cgy2.js} +23 -23
- package/dist/chunks/{snapshot-d4fh8taq.js → aisdk-n5q83168.js} +5 -5
- package/dist/chunks/{snapshot-ytwc37vz.js → aisdk-n7nced9r.js} +31 -31
- package/dist/chunks/{snapshot-r0rvp0ej.js → aisdk-n7z5axv5.js} +54 -54
- package/dist/chunks/{snapshot-sdwcvaj2.js → aisdk-njdy6mf5.js} +1 -1
- package/dist/chunks/{snapshot-ed1g29hy.js → aisdk-nma959mg.js} +3 -3
- package/dist/chunks/{snapshot-xshtvwne.js → aisdk-nwdmf1ca.js} +4 -4
- package/dist/chunks/{snapshot-bzsrs4wb.js → aisdk-nxcy3rgr.js} +10 -10
- package/dist/chunks/{snapshot-34f31van.js → aisdk-nxxzakdb.js} +23 -23
- package/dist/chunks/{snapshot-syp4sv4b.js → aisdk-p7nf93c6.js} +4 -4
- package/dist/chunks/{snapshot-chsa9tsb.js → aisdk-p8593brn.js} +11 -11
- package/dist/chunks/{snapshot-kkp8zx71.js → aisdk-pct1c8gm.js} +4 -4
- package/dist/chunks/{snapshot-pjvnvgmy.js → aisdk-pjvnvgmy.js} +1 -1
- package/dist/chunks/{snapshot-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/aisdk-prbmj0rt.js +112 -0
- package/dist/chunks/{snapshot-adjewt1g.js → aisdk-q25vhvzg.js} +17 -17
- package/dist/chunks/{snapshot-26q7jvhr.js → aisdk-q87czp7c.js} +56 -56
- package/dist/chunks/{snapshot-ebm4wmmx.js → aisdk-q9e3qk30.js} +9 -9
- package/dist/chunks/{snapshot-vaxg751d.js → aisdk-qfja8fnv.js} +7 -7
- package/dist/chunks/{snapshot-cm0xwavf.js → aisdk-qk802j1v.js} +18 -18
- package/dist/chunks/{snapshot-qnc92qwc.js → aisdk-qnc92qwc.js} +1 -1
- package/dist/chunks/{snapshot-b674v2dg.js → aisdk-qne3fa44.js} +5 -5
- package/dist/chunks/{snapshot-9pa8tak9.js → aisdk-qp9vg2jq.js} +2 -2
- package/dist/chunks/{snapshot-qsdy395h.js → aisdk-qsdy395h.js} +1 -1
- package/dist/chunks/{snapshot-gpk600j1.js → aisdk-qz02d4gv.js} +7 -7
- package/dist/chunks/{snapshot-mj4y2amk.js → aisdk-r1616k2y.js} +36 -36
- package/dist/chunks/{snapshot-84htwe8c.js → aisdk-r63tr39a.js} +85 -85
- package/dist/chunks/{snapshot-r8xr0va3.js → aisdk-r8xr0va3.js} +1 -1
- package/dist/chunks/{snapshot-54ma36ye.js → aisdk-r94pvvab.js} +4 -4
- package/dist/chunks/{snapshot-m8jd5x1y.js → aisdk-rdnccvzq.js} +21 -21
- package/dist/chunks/{snapshot-rdw6cm16.js → aisdk-rdw6cm16.js} +1 -1
- package/dist/chunks/{snapshot-rert0e01.js → aisdk-rert0e01.js} +2 -2
- package/dist/chunks/{snapshot-rhjbct0v.js → aisdk-rhjbct0v.js} +1 -1
- package/dist/chunks/{snapshot-rj3eygr5.js → aisdk-rj3eygr5.js} +2 -2
- package/dist/chunks/{snapshot-qxwd849a.js → aisdk-rk0dasmj.js} +18 -18
- package/dist/chunks/{snapshot-6pc27hjz.js → aisdk-rkprpv83.js} +6 -6
- package/dist/chunks/{snapshot-zee1rnkq.js → aisdk-rpg9c19m.js} +4 -4
- package/dist/chunks/{snapshot-hkw38179.js → aisdk-rqg4wh3j.js} +16 -16
- package/dist/chunks/{snapshot-scmhh9pc.js → aisdk-rvyy05ds.js} +10 -10
- package/dist/chunks/{snapshot-dg21j1ns.js → aisdk-rxp2hjjc.js} +45 -45
- package/dist/chunks/{snapshot-16x4r2s1.js → aisdk-rytb5km2.js} +20 -20
- package/dist/chunks/{snapshot-pnaxc6j9.js → aisdk-s5met55r.js} +8 -8
- package/dist/chunks/{snapshot-c5ed65gp.js → aisdk-s8e7q1bf.js} +10 -10
- package/dist/chunks/{snapshot-hsxaxx1c.js → aisdk-s97ksm5h.js} +36 -36
- package/dist/chunks/{snapshot-sa8ekw3f.js → aisdk-sa8ekw3f.js} +2 -2
- package/dist/chunks/{snapshot-ggw6bs31.js → aisdk-sre1ae28.js} +22 -22
- package/dist/chunks/{snapshot-a1njnwz6.js → aisdk-sv0nqeds.js} +3 -3
- package/dist/chunks/{snapshot-syv4x271.js → aisdk-syv4x271.js} +1 -1
- package/dist/chunks/{snapshot-wz6jmfs0.js → aisdk-t0tv9tfj.js} +12 -12
- package/dist/chunks/{snapshot-mc5t502r.js → aisdk-t37sm7kz.js} +20 -20
- package/dist/chunks/{snapshot-kv4b22ns.js → aisdk-t42p1cja.js} +16 -16
- package/dist/chunks/aisdk-t4evg6pt.js +257 -0
- package/dist/chunks/{snapshot-xgz548nj.js → aisdk-t5zv7wm8.js} +48 -48
- package/dist/chunks/{snapshot-36e2pc4w.js → aisdk-t7g3dyv2.js} +5 -5
- package/dist/chunks/{snapshot-tazgh4e4.js → aisdk-tazgh4e4.js} +1 -1
- package/dist/chunks/{snapshot-tcezcvh9.js → aisdk-tcezcvh9.js} +1 -1
- package/dist/chunks/{snapshot-tdstcens.js → aisdk-tdstcens.js} +1 -1
- package/dist/chunks/{snapshot-4wwf6t92.js → aisdk-tkrq73cj.js} +6 -6
- package/dist/chunks/{snapshot-tm0kqsz3.js → aisdk-tm0kqsz3.js} +1 -1
- package/dist/chunks/{snapshot-6hqckrrx.js → aisdk-tq7jj42n.js} +16 -16
- package/dist/chunks/{snapshot-7azh8zbv.js → aisdk-tqfcd1w8.js} +21 -21
- package/dist/chunks/{snapshot-ndy2c9ss.js → aisdk-trg32b58.js} +45 -45
- package/dist/chunks/{snapshot-xfktpdj6.js → aisdk-tt8gc4fv.js} +6 -6
- package/dist/chunks/{snapshot-tyaq71bb.js → aisdk-ty6fs3bm.js} +30 -30
- package/dist/chunks/{snapshot-tyytaxap.js → aisdk-tyytaxap.js} +1 -1
- package/dist/chunks/{snapshot-94qkbmw6.js → aisdk-v1rq52jb.js} +8 -8
- package/dist/chunks/{snapshot-hg3614cy.js → aisdk-v210v162.js} +11 -11
- package/dist/chunks/{snapshot-8pz94dzf.js → aisdk-v62c8qgf.js} +23 -23
- package/dist/chunks/{snapshot-v7p4zvkq.js → aisdk-v7p4zvkq.js} +2 -2
- package/dist/chunks/{snapshot-xtahemgj.js → aisdk-vcj3ae1a.js} +33 -33
- package/dist/chunks/{snapshot-akmtzpb0.js → aisdk-ven1q1z5.js} +11 -11
- package/dist/chunks/{snapshot-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{snapshot-yt82vp1a.js → aisdk-vk0zt8k2.js} +1 -1
- package/dist/chunks/{snapshot-58s85cax.js → aisdk-vy5h1a70.js} +11 -11
- package/dist/chunks/{snapshot-vzs5sf6e.js → aisdk-vzs5sf6e.js} +1 -1
- package/dist/chunks/{snapshot-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{snapshot-tmf823cr.js → aisdk-w4c76cxy.js} +7 -7
- package/dist/chunks/{snapshot-6panyeh0.js → aisdk-w6dwx825.js} +25 -25
- package/dist/chunks/{snapshot-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{snapshot-xrgc67sb.js → aisdk-wh8ww6es.js} +2 -2
- package/dist/chunks/{snapshot-erbqd3nv.js → aisdk-wmt8s7k7.js} +44 -44
- package/dist/chunks/{snapshot-hat53091.js → aisdk-wyyhv6hk.js} +29 -29
- package/dist/chunks/{snapshot-78zkn3vy.js → aisdk-x1k21vny.js} +24 -24
- package/dist/chunks/{snapshot-4y0vwgtn.js → aisdk-x5zd51fp.js} +23 -23
- package/dist/chunks/{snapshot-q6y0t2xd.js → aisdk-x7mwngbm.js} +29 -29
- package/dist/chunks/{snapshot-8bqq47bs.js → aisdk-xh163gfe.js} +4 -4
- package/dist/chunks/{snapshot-nakxk70k.js → aisdk-xs79w4qk.js} +14 -14
- package/dist/chunks/{snapshot-63rftvt3.js → aisdk-xy7hnjrw.js} +19 -19
- package/dist/chunks/{snapshot-q9317srt.js → aisdk-y0rx6xhh.js} +18 -18
- package/dist/chunks/{snapshot-y1fvbwt7.js → aisdk-y1fvbwt7.js} +1 -1
- package/dist/chunks/{snapshot-v8v7jg08.js → aisdk-y4djh4py.js} +88 -88
- package/dist/chunks/{snapshot-qtv1rbvp.js → aisdk-ya0qrc6d.js} +14 -14
- package/dist/chunks/{snapshot-5g4kkmpn.js → aisdk-yh0vgczd.js} +13 -13
- package/dist/chunks/{snapshot-h7abwd3r.js → aisdk-ypty8jpq.js} +40 -40
- package/dist/chunks/{snapshot-3g8j9he4.js → aisdk-yqc6bamn.js} +1 -1
- package/dist/chunks/{snapshot-jm9njkm8.js → aisdk-yssedqtc.js} +5 -5
- package/dist/chunks/{snapshot-g4k7z9cy.js → aisdk-yzke4xj3.js} +24 -24
- package/dist/chunks/{snapshot-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{snapshot-0ekyh4s7.js → aisdk-z4gd07h5.js} +34 -34
- package/dist/chunks/{snapshot-d0btjp9b.js → aisdk-z51sas7x.js} +22 -22
- package/dist/chunks/{snapshot-zr2ceqn5.js → aisdk-zr2ceqn5.js} +1 -1
- package/dist/chunks/{snapshot-435smvjz.js → aisdk-zs4gxsec.js} +27 -27
- package/dist/chunks/{snapshot-n9j93z9k.js → aisdk-zsq5y3wa.js} +52 -52
- package/dist/chunks/{snapshot-zxq2ej10.js → aisdk-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +108 -108
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -84
- 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 +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +123 -123
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +10 -10
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -94
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +157 -157
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +208 -208
- package/dist/shell/parse.js +8 -8
- 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 +132 -132
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- 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 +130 -130
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +209 -209
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/permission/saved.d.ts +26 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- 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 +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/snapshot-4k437ew3.js +0 -257
- package/dist/chunks/snapshot-619r8v3y.js +0 -18
- package/dist/chunks/snapshot-9esz1w1b.js +0 -73
- package/dist/chunks/snapshot-g34gxbpj.js +0 -26
- /package/dist/chunks/{snapshot-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{snapshot-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{snapshot-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{snapshot-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{snapshot-1kg9ymc8.js → aisdk-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{snapshot-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{snapshot-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{snapshot-2axfhc9x.js → aisdk-2axfhc9x.js} +0 -0
- /package/dist/chunks/{snapshot-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
- /package/dist/chunks/{snapshot-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{snapshot-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{snapshot-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{snapshot-3t0ybcrp.js → aisdk-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{snapshot-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{snapshot-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{snapshot-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{snapshot-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{snapshot-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{snapshot-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{snapshot-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{snapshot-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{snapshot-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{snapshot-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{snapshot-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{snapshot-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{snapshot-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{snapshot-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{snapshot-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{snapshot-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{snapshot-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{snapshot-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{snapshot-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{snapshot-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{snapshot-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{snapshot-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{snapshot-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{snapshot-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{snapshot-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{snapshot-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{snapshot-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{snapshot-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{snapshot-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{snapshot-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{snapshot-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{snapshot-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{snapshot-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{snapshot-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{snapshot-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{snapshot-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{snapshot-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{snapshot-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{snapshot-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{snapshot-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{snapshot-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{snapshot-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{snapshot-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{snapshot-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{snapshot-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{snapshot-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{snapshot-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{snapshot-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{snapshot-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{snapshot-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{snapshot-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{snapshot-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{snapshot-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{snapshot-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{snapshot-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
- /package/dist/chunks/{snapshot-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{snapshot-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{snapshot-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{snapshot-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{snapshot-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{snapshot-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{snapshot-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{snapshot-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{snapshot-pyv0edze.js → aisdk-pyv0edze.js} +0 -0
- /package/dist/chunks/{snapshot-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{snapshot-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{snapshot-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{snapshot-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{snapshot-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{snapshot-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{snapshot-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{snapshot-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{snapshot-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{snapshot-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{snapshot-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{snapshot-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{snapshot-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{snapshot-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{snapshot-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
- /package/dist/chunks/{snapshot-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{snapshot-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{snapshot-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{snapshot-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{snapshot-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{snapshot-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{snapshot-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{snapshot-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{snapshot-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
name15,
|
|
3
3
|
ps2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-qk802j1v.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
9
|
match2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-y1fvbwt7.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/shell/parse.ts
|
|
16
16
|
var exports_parse = {};
|
|
17
17
|
__export(exports_parse, {
|
|
18
18
|
ShellParse: () => exports_parse,
|
|
19
|
-
scan: () =>
|
|
19
|
+
scan: () => scan2,
|
|
20
20
|
scanPortable: () => scanPortable2
|
|
21
21
|
});
|
|
22
22
|
import { Effect } from "effect";
|
|
@@ -166,7 +166,7 @@ var ARITY = {
|
|
|
166
166
|
"yarn run": 3
|
|
167
167
|
};
|
|
168
168
|
var PREFIX_LENGTH = Math.max(...Object.values(ARITY));
|
|
169
|
-
var
|
|
169
|
+
var scan2 = Effect.fnUntraced(function* (command, shell, cwd, options) {
|
|
170
170
|
if (options?.portable || (options?.wasm ?? shellParserWasm).bash === "")
|
|
171
171
|
return yield* scanPortable2(command, shell, cwd);
|
|
172
172
|
return yield* scanLegacy(command, shell, cwd);
|
|
@@ -353,4 +353,4 @@ async function initialize() {
|
|
|
353
353
|
return { bash, ps };
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
export {
|
|
356
|
+
export { scan2, scanPortable2, exports_parse };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-rvyy05ds.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./aisdk-fsem3xgy.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./aisdk-5xqnd2py.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-wyyhv6hk.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID13,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-d5t2jb6p.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
get4
|
|
26
|
+
} from "./aisdk-r94pvvab.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./aisdk-9w7t8wnk.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -50,7 +50,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
50
50
|
}));
|
|
51
51
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
52
52
|
var browser = (app) => ({
|
|
53
|
-
integrationID:
|
|
53
|
+
integrationID: ID14.make("openai"),
|
|
54
54
|
method: {
|
|
55
55
|
id: browserMethodID,
|
|
56
56
|
type: "oauth",
|
|
@@ -123,7 +123,7 @@ function addressInUse(error) {
|
|
|
123
123
|
return "code" in error && error.code === "EADDRINUSE";
|
|
124
124
|
}
|
|
125
125
|
var headless = (app) => ({
|
|
126
|
-
integrationID:
|
|
126
|
+
integrationID: ID14.make("openai"),
|
|
127
127
|
method: {
|
|
128
128
|
id: headlessMethodID,
|
|
129
129
|
type: "oauth",
|
|
@@ -165,10 +165,10 @@ var headless = (app) => ({
|
|
|
165
165
|
}),
|
|
166
166
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
167
167
|
});
|
|
168
|
-
var
|
|
168
|
+
var OpenAIPlugin2 = define({
|
|
169
169
|
id: "opencode.provider.openai",
|
|
170
170
|
effect: Effect.fn(function* (ctx) {
|
|
171
|
-
const bus = yield*
|
|
171
|
+
const bus = yield* Service85;
|
|
172
172
|
const loading = Semaphore.makeUnsafe(1);
|
|
173
173
|
let chatgpt;
|
|
174
174
|
const load = Effect.fn("OpenAIPlugin.load")(function* () {
|
|
@@ -183,9 +183,9 @@ var OpenAIPlugin3 = define({
|
|
|
183
183
|
editor.method.update(headless(ctx.app));
|
|
184
184
|
});
|
|
185
185
|
yield* load();
|
|
186
|
-
const configured = yield* configuredSettings2(
|
|
186
|
+
const configured = yield* configuredSettings2(ID13.openai);
|
|
187
187
|
yield* ctx.provider.transform((providers) => {
|
|
188
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID13.openai);
|
|
189
189
|
if (!item)
|
|
190
190
|
return;
|
|
191
191
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -205,7 +205,7 @@ var OpenAIPlugin3 = define({
|
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
yield* ctx.model.transform((models) => {
|
|
208
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID13.openai)) {
|
|
209
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
210
210
|
if (!chatgpt)
|
|
211
211
|
return;
|
|
@@ -235,15 +235,15 @@ var OpenAIPlugin3 = define({
|
|
|
235
235
|
return;
|
|
236
236
|
}));
|
|
237
237
|
evt.headers.originator = "opencode";
|
|
238
|
-
evt.headers["session-id"] = session ?
|
|
239
|
-
}), { providerID:
|
|
238
|
+
evt.headers["session-id"] = session ? get4(session) : evt.sessionID;
|
|
239
|
+
}), { providerID: ID13.openai });
|
|
240
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
241
241
|
delete evt.options.maxTokens;
|
|
242
242
|
});
|
|
243
243
|
for (const name of ["context", "compaction"])
|
|
244
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID13.openai });
|
|
245
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
246
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
function headers(contentType, app) {
|
|
@@ -334,4 +334,4 @@ function claim(token) {
|
|
|
334
334
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
export {
|
|
337
|
+
export { OpenAIPlugin2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-qfja8fnv.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-rvyy05ds.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./aisdk-fsem3xgy.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID15,
|
|
9
|
+
Event19,
|
|
10
|
+
Service80
|
|
11
|
+
} from "./aisdk-5xqnd2py.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-addxnjmp.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID14,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-wyyhv6hk.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID13,
|
|
24
|
+
Service78
|
|
25
|
+
} from "./aisdk-d5t2jb6p.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID12
|
|
28
|
+
} from "./aisdk-s97ksm5h.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./aisdk-9w7t8wnk.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/azure.ts
|
|
34
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -70,11 +70,11 @@ function make7(endpoints = {
|
|
|
70
70
|
return define({
|
|
71
71
|
id: "opencode.provider.azure",
|
|
72
72
|
effect: Effect.fn(function* (ctx) {
|
|
73
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
74
74
|
const processes = yield* AppProcess.Service;
|
|
75
|
-
const bus = yield*
|
|
76
|
-
const credentials = yield*
|
|
77
|
-
const providers = yield*
|
|
75
|
+
const bus = yield* Service85;
|
|
76
|
+
const credentials = yield* Service80;
|
|
77
|
+
const providers = yield* Service78;
|
|
78
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
79
79
|
const tokens = new Map;
|
|
80
80
|
const resourceIDs = new Map;
|
|
@@ -100,11 +100,11 @@ function make7(endpoints = {
|
|
|
100
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
101
101
|
yield* ctx.integration.transform((editor) => {
|
|
102
102
|
editor.method.update({
|
|
103
|
-
integrationID:
|
|
103
|
+
integrationID: ID13.azure,
|
|
104
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
105
105
|
});
|
|
106
106
|
editor.method.update({
|
|
107
|
-
integrationID:
|
|
107
|
+
integrationID: ID13.azure,
|
|
108
108
|
method: {
|
|
109
109
|
type: "key",
|
|
110
110
|
label: "API key",
|
|
@@ -122,7 +122,7 @@ function make7(endpoints = {
|
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "external",
|
|
@@ -142,8 +142,8 @@ function make7(endpoints = {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
145
|
-
const connection = yield* ctx.integration.connection.active(
|
|
146
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
147
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
148
148
|
});
|
|
149
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -182,7 +182,7 @@ function make7(endpoints = {
|
|
|
182
182
|
}));
|
|
183
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
184
184
|
const connection = loaded.connection;
|
|
185
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
186
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
187
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
188
188
|
if (loaded.connection !== connection)
|
|
@@ -204,11 +204,11 @@ function make7(endpoints = {
|
|
|
204
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
205
205
|
if (!found)
|
|
206
206
|
return;
|
|
207
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
208
208
|
return;
|
|
209
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
210
210
|
return;
|
|
211
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
212
212
|
id.toLowerCase(),
|
|
213
213
|
id
|
|
214
214
|
]));
|
|
@@ -221,11 +221,11 @@ function make7(endpoints = {
|
|
|
221
221
|
yield* ctx.model.reload();
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
224
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
225
225
|
Object.assign(loaded, yield* load());
|
|
226
226
|
yield* ctx.provider.transform((evt) => {
|
|
227
227
|
for (const item of evt.list()) {
|
|
228
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
229
229
|
continue;
|
|
230
230
|
const resourceName = resourceFor(item.provider);
|
|
231
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -240,7 +240,7 @@ function make7(endpoints = {
|
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID13.azure);
|
|
244
244
|
if (!item)
|
|
245
245
|
return;
|
|
246
246
|
evt.add({
|
|
@@ -251,7 +251,7 @@ function make7(endpoints = {
|
|
|
251
251
|
});
|
|
252
252
|
yield* ctx.model.transform((models) => {
|
|
253
253
|
for (const item of models.provider.list()) {
|
|
254
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
255
255
|
continue;
|
|
256
256
|
const resourceName = resourceFor(item.provider);
|
|
257
257
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -263,20 +263,20 @@ function make7(endpoints = {
|
|
|
263
263
|
}
|
|
264
264
|
if (!loaded.deployments)
|
|
265
265
|
return;
|
|
266
|
-
const catalog = models.list(
|
|
266
|
+
const catalog = models.list(ID13.azure);
|
|
267
267
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
268
268
|
for (const model of catalog) {
|
|
269
269
|
if (!deployed.has(model.id))
|
|
270
|
-
models.remove(
|
|
270
|
+
models.remove(ID13.azure, model.id);
|
|
271
271
|
}
|
|
272
272
|
for (const [id, model] of deployed) {
|
|
273
|
-
models.update(
|
|
273
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
yield* bus.subscribe(
|
|
276
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
277
277
|
yield* refresh().pipe(Effect.forkScoped);
|
|
278
278
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
279
|
-
const connection = yield* ctx.integration.connection.active(
|
|
279
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
280
280
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
281
281
|
return;
|
|
282
282
|
})) : undefined;
|
|
@@ -288,7 +288,7 @@ function make7(endpoints = {
|
|
|
288
288
|
return `Bearer ${current.access}`;
|
|
289
289
|
});
|
|
290
290
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID13.azure)
|
|
292
292
|
return;
|
|
293
293
|
const authorization = yield* bearer(evt.request.url);
|
|
294
294
|
if (!authorization)
|
|
@@ -297,9 +297,9 @@ function make7(endpoints = {
|
|
|
297
297
|
evt.request.headers.delete("x-api-key");
|
|
298
298
|
evt.request.headers.set("authorization", authorization);
|
|
299
299
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
300
|
-
}), { providerID:
|
|
300
|
+
}), { providerID: ID13.azure });
|
|
301
301
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
302
|
-
if (evt.model.providerID !==
|
|
302
|
+
if (evt.model.providerID !== ID13.azure)
|
|
303
303
|
return;
|
|
304
304
|
const authorization = yield* bearer(evt.url);
|
|
305
305
|
if (!authorization)
|
|
@@ -308,7 +308,7 @@ function make7(endpoints = {
|
|
|
308
308
|
delete evt.headers["x-api-key"];
|
|
309
309
|
evt.headers.authorization = authorization;
|
|
310
310
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
311
|
-
}), { providerID:
|
|
311
|
+
}), { providerID: ID13.azure });
|
|
312
312
|
})
|
|
313
313
|
});
|
|
314
314
|
}
|
|
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
|
|
|
342
342
|
const model = catalogModel(models, deployment);
|
|
343
343
|
if (!model)
|
|
344
344
|
return [];
|
|
345
|
-
const id =
|
|
345
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
346
346
|
const info = {
|
|
347
347
|
...structuredClone(model),
|
|
348
348
|
id,
|
|
349
|
-
modelID:
|
|
349
|
+
modelID: ID12.make(deployment.name),
|
|
350
350
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
351
351
|
};
|
|
352
352
|
return [[id, info]];
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./aisdk-fsem3xgy.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
7
|
External2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service80,
|
|
9
|
+
node84
|
|
10
|
+
} from "./aisdk-5xqnd2py.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
15
|
key2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-addxnjmp.js";
|
|
17
17
|
import {
|
|
18
18
|
validateAnswer2,
|
|
19
19
|
validateFields2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-1xnz6qps.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/integration.ts
|
|
26
26
|
var exports_integration = {};
|
|
@@ -35,18 +35,18 @@ __export(exports_integration, {
|
|
|
35
35
|
CommandAttemptStatus: () => CommandAttemptStatus2,
|
|
36
36
|
CommandMethod: () => CommandMethod2,
|
|
37
37
|
EnvMethod: () => EnvMethod2,
|
|
38
|
-
Event: () =>
|
|
38
|
+
Event: () => Event18,
|
|
39
39
|
ExternalMethod: () => ExternalMethod2,
|
|
40
|
-
ID: () =>
|
|
41
|
-
Info: () =>
|
|
40
|
+
ID: () => ID14,
|
|
41
|
+
Info: () => Info23,
|
|
42
42
|
Integration: () => exports_integration,
|
|
43
43
|
KeyMethod: () => KeyMethod2,
|
|
44
44
|
Method: () => Method2,
|
|
45
45
|
MethodID: () => MethodID2,
|
|
46
46
|
OAuthMethod: () => OAuthMethod2,
|
|
47
47
|
Ref: () => Ref3,
|
|
48
|
-
Service: () =>
|
|
49
|
-
node: () =>
|
|
48
|
+
Service: () => Service79,
|
|
49
|
+
node: () => node83
|
|
50
50
|
});
|
|
51
51
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
52
52
|
import {
|
|
@@ -68,8 +68,8 @@ import {
|
|
|
68
68
|
import { Integration } from "@opencode/schema/integration";
|
|
69
69
|
import { AppProcess } from "@opencode/util/process";
|
|
70
70
|
import { ChildProcess } from "effect/process";
|
|
71
|
-
import { Event as
|
|
72
|
-
var
|
|
71
|
+
import { Event as Event18 } from "@opencode/schema/integration";
|
|
72
|
+
var ID14 = Integration.ID;
|
|
73
73
|
var MethodID2 = Integration.MethodID;
|
|
74
74
|
var AttemptID2 = Integration.AttemptID;
|
|
75
75
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -78,7 +78,7 @@ var KeyMethod2 = Integration.KeyMethod;
|
|
|
78
78
|
var ExternalMethod2 = Integration.ExternalMethod;
|
|
79
79
|
var EnvMethod2 = Integration.EnvMethod;
|
|
80
80
|
var Method2 = Integration.Method;
|
|
81
|
-
var
|
|
81
|
+
var Info23 = Integration.Info;
|
|
82
82
|
var Attempt2 = Integration.Attempt;
|
|
83
83
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
84
84
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -101,20 +101,20 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
104
|
-
integrationID:
|
|
104
|
+
integrationID: ID14,
|
|
105
105
|
attemptID: AttemptID2
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
108
|
var Ref3 = Integration.Ref;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service79 extends Context.Service()("@opencode/Integration") {
|
|
111
111
|
}
|
|
112
112
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
113
113
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
114
114
|
var scrubInterval = Duration.seconds(30);
|
|
115
|
-
var layer = Layer.effect(
|
|
116
|
-
const credentials = yield*
|
|
117
|
-
const bus = yield*
|
|
115
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
116
|
+
const credentials = yield* Service80;
|
|
117
|
+
const bus = yield* Service85;
|
|
118
118
|
const processes = yield* AppProcess.Service;
|
|
119
119
|
const scope = yield* Scope.Scope;
|
|
120
120
|
const attempts = SynchronizedRef.makeUnsafe(new Map);
|
|
@@ -214,7 +214,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
214
214
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
215
215
|
return [...credentials, ...env];
|
|
216
216
|
};
|
|
217
|
-
const project = (entry, connections) =>
|
|
217
|
+
const project = (entry, connections) => Info23.make({
|
|
218
218
|
id: entry.ref.id,
|
|
219
219
|
name: entry.ref.name,
|
|
220
220
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -447,7 +447,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
447
447
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
448
448
|
return CommandAttempt2.make({ attemptID, time });
|
|
449
449
|
});
|
|
450
|
-
return
|
|
450
|
+
return Service79.of({
|
|
451
451
|
transform: state.transform,
|
|
452
452
|
reload: state.reload,
|
|
453
453
|
revision: state.revision,
|
|
@@ -629,10 +629,10 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
}));
|
|
632
|
-
var
|
|
633
|
-
service:
|
|
632
|
+
var node83 = makeLocationNode({
|
|
633
|
+
service: Service79,
|
|
634
634
|
layer,
|
|
635
|
-
deps: [
|
|
635
|
+
deps: [node84, node89, AppProcess.node]
|
|
636
636
|
});
|
|
637
637
|
|
|
638
|
-
export {
|
|
638
|
+
export { ID14, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info23, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service79, node83, exports_integration, Event18 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./aisdk-fsem3xgy.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-zsq5y3wa.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service82,
|
|
15
|
+
node86
|
|
16
|
+
} from "./aisdk-fn24ytry.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-rdw6cm16.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info8,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service49,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node54
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info8, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service49 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const bus = yield*
|
|
61
|
+
const location = yield* Service82;
|
|
62
|
+
const bus = yield* Service85;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info8));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service49.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node54 = makeLocationNode({
|
|
191
|
+
service: Service49,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node86, node89]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info8, Mode2, DiffError2, InitializeError2, Service49, node54, exports_vcs };
|