@opencode/core 0.0.0-dev-21641 → 0.0.0-dev-21651
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 +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{instance-034tev2y.js → persistent-pty-034tev2y.js} +2 -2
- package/dist/chunks/{instance-mdvh07w7.js → persistent-pty-04qzb6ng.js} +15 -15
- package/dist/chunks/{instance-qrmqkw27.js → persistent-pty-0a4e2wep.js} +18 -18
- package/dist/chunks/{instance-vy2h0p7t.js → persistent-pty-0gxwnce6.js} +14 -14
- package/dist/chunks/{instance-79ascwz8.js → persistent-pty-0r8hms5j.js} +27 -27
- package/dist/chunks/{instance-2zj16vbw.js → persistent-pty-0vawvjhj.js} +6 -6
- package/dist/chunks/{instance-c4wf1ysj.js → persistent-pty-10jwkg0d.js} +20 -20
- package/dist/chunks/{instance-mf1ymtqj.js → persistent-pty-14x9rdgq.js} +21 -21
- package/dist/chunks/{instance-pfam02kk.js → persistent-pty-1689f439.js} +5 -5
- package/dist/chunks/{instance-aq1tnhw0.js → persistent-pty-18qnwgya.js} +5 -5
- package/dist/chunks/{instance-1ep2p91f.js → persistent-pty-1ep2p91f.js} +2 -2
- package/dist/chunks/{instance-ykhahs5v.js → persistent-pty-1h6ms3ts.js} +35 -35
- package/dist/chunks/{instance-nd09pmcx.js → persistent-pty-1ncazf2z.js} +19 -19
- package/dist/chunks/{instance-1x2knyw4.js → persistent-pty-1x2knyw4.js} +1 -1
- package/dist/chunks/{instance-ccqcnw0e.js → persistent-pty-1xxray5a.js} +21 -21
- package/dist/chunks/{instance-8sxdqgb0.js → persistent-pty-1z6jjy5p.js} +6 -6
- package/dist/chunks/{instance-cs87y13h.js → persistent-pty-231a8wys.js} +8 -8
- package/dist/chunks/{instance-gxna9qj8.js → persistent-pty-26d30kmm.js} +28 -28
- package/dist/chunks/{instance-ka99wkw2.js → persistent-pty-27zy431c.js} +4 -4
- package/dist/chunks/{instance-bw4xbwfn.js → persistent-pty-2aabkt2r.js} +11 -11
- package/dist/chunks/{instance-xc7x0jwv.js → persistent-pty-2bky7t1z.js} +70 -70
- package/dist/chunks/{instance-yyk2zdd2.js → persistent-pty-2dwppexq.js} +42 -42
- package/dist/chunks/{instance-4h8x6jdk.js → persistent-pty-2ex3p3f1.js} +12 -12
- package/dist/chunks/{instance-71sd8a42.js → persistent-pty-2f50b9jg.js} +1 -1
- package/dist/chunks/{instance-qkm1qb3q.js → persistent-pty-2hep2db8.js} +11 -11
- package/dist/chunks/{instance-n1nj23tb.js → persistent-pty-2m6p7yk7.js} +16 -16
- package/dist/chunks/{instance-fp2av3pw.js → persistent-pty-2xk6ct32.js} +19 -19
- package/dist/chunks/{instance-2z1j29yd.js → persistent-pty-2z1j29yd.js} +1 -1
- package/dist/chunks/{instance-0t1mekc8.js → persistent-pty-3837d0nm.js} +6 -6
- package/dist/chunks/{instance-tfnjv676.js → persistent-pty-3b8pv6kk.js} +24 -24
- package/dist/chunks/{instance-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-gsjs8xe3.js → persistent-pty-3k9f0r09.js} +19 -19
- package/dist/chunks/{instance-7xg2jm5b.js → persistent-pty-3kdbrncp.js} +5 -5
- package/dist/chunks/{instance-3nnrz6f6.js → persistent-pty-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instance-xewy3d53.js → persistent-pty-3pjdfsqh.js} +8 -8
- package/dist/chunks/{instance-vsbb40rd.js → persistent-pty-3y9jhrfk.js} +17 -17
- package/dist/chunks/{instance-a41wq1zg.js → persistent-pty-3z6cn8x0.js} +13 -13
- package/dist/chunks/{instance-97pvg7tb.js → persistent-pty-437171mk.js} +9 -9
- package/dist/chunks/{instance-6wz3wy1g.js → persistent-pty-44etcz8n.js} +5 -5
- package/dist/chunks/{instance-mb1ys4h0.js → persistent-pty-4b0snw21.js} +12 -12
- package/dist/chunks/{instance-5mjn8n6s.js → persistent-pty-4ccqqpnm.js} +4 -4
- package/dist/chunks/{instance-nhxzfzhp.js → persistent-pty-4dzz3k2c.js} +10 -10
- package/dist/chunks/{instance-gcnhbd6s.js → persistent-pty-4h1ntjay.js} +7 -7
- package/dist/chunks/{instance-nskgx1xy.js → persistent-pty-4jq3hvv0.js} +8 -8
- package/dist/chunks/{instance-wkataeax.js → persistent-pty-4nnbnrz1.js} +11 -11
- package/dist/chunks/{instance-c2sed5cq.js → persistent-pty-4pa8nav4.js} +3 -3
- package/dist/chunks/{instance-n26ndsk8.js → persistent-pty-4s573z1s.js} +4 -4
- package/dist/chunks/{instance-4v008n1t.js → persistent-pty-4v008n1t.js} +1 -1
- package/dist/chunks/{instance-tdptfwvd.js → persistent-pty-4v888qby.js} +3 -3
- package/dist/chunks/{instance-4xvmh7wp.js → persistent-pty-4xvmh7wp.js} +3 -3
- package/dist/chunks/{instance-yy9yh1zy.js → persistent-pty-506rfma8.js} +13 -13
- package/dist/chunks/{instance-8jb2vj22.js → persistent-pty-53fkqhzs.js} +14 -14
- package/dist/chunks/{instance-1narx8j0.js → persistent-pty-57y9frfy.js} +12 -12
- package/dist/chunks/{instance-qz6fnwq9.js → persistent-pty-5dzbshvg.js} +4 -4
- package/dist/chunks/{instance-w2eysc6j.js → persistent-pty-5enarcya.js} +6 -6
- package/dist/chunks/{instance-0pv52n9j.js → persistent-pty-5kfkg5r8.js} +5 -5
- package/dist/chunks/{instance-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{instance-s2e6s221.js → persistent-pty-5r569r17.js} +13 -13
- package/dist/chunks/{instance-cvkqj1s3.js → persistent-pty-5s24fm1p.js} +14 -14
- package/dist/chunks/{instance-fka6syst.js → persistent-pty-5vgcj10y.js} +6 -6
- package/dist/chunks/{instance-f35f93zp.js → persistent-pty-5zrxpy3q.js} +5 -5
- package/dist/chunks/{instance-ybq2x5w5.js → persistent-pty-603avsaw.js} +11 -11
- package/dist/chunks/{instance-9y5b6854.js → persistent-pty-630bcr6j.js} +11 -11
- package/dist/chunks/{instance-mn6tycs6.js → persistent-pty-64tk1142.js} +2 -2
- package/dist/chunks/{instance-sn4dp65s.js → persistent-pty-65xym8dq.js} +26 -26
- package/dist/chunks/{instance-dz0r9je1.js → persistent-pty-66hjg21n.js} +31 -31
- package/dist/chunks/{instance-6esdw8yj.js → persistent-pty-6esdw8yj.js} +1 -1
- package/dist/chunks/{instance-es4ckx34.js → persistent-pty-6g0s59t4.js} +16 -16
- package/dist/chunks/{instance-6pjqjmy2.js → persistent-pty-6pjqjmy2.js} +1 -1
- package/dist/chunks/{instance-thtq1t3d.js → persistent-pty-6wm2ekws.js} +17 -17
- package/dist/chunks/{instance-76cb1hcw.js → persistent-pty-76cb1hcw.js} +1 -1
- package/dist/chunks/{instance-40d435vb.js → persistent-pty-77ffb5fa.js} +5 -5
- package/dist/chunks/{instance-0421tmwc.js → persistent-pty-799ckdtf.js} +9 -9
- package/dist/chunks/{instance-smzpb4qx.js → persistent-pty-79fsmkt2.js} +10 -10
- package/dist/chunks/{instance-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-7h8n1k9e.js → persistent-pty-7q3wyea1.js} +23 -23
- package/dist/chunks/{instance-ak0aewvz.js → persistent-pty-7vhe8rph.js} +15 -15
- package/dist/chunks/{instance-7w2ypzdf.js → persistent-pty-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instance-dzd5qgxq.js → persistent-pty-7xcfq1ha.js} +6 -6
- package/dist/chunks/{instance-fxn4g1bv.js → persistent-pty-7yz8t82k.js} +5 -5
- package/dist/chunks/{instance-jc8qqhy4.js → persistent-pty-8rcbafry.js} +3 -3
- package/dist/chunks/{instance-mksvdkta.js → persistent-pty-8tqac9jx.js} +8 -8
- package/dist/chunks/{instance-8wtp7s3z.js → persistent-pty-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instance-019pepzp.js → persistent-pty-8xz0jfv3.js} +6 -6
- package/dist/chunks/{instance-yx2krnhd.js → persistent-pty-8y3ed661.js} +9 -9
- package/dist/chunks/{instance-pkmkbjbs.js → persistent-pty-8zn70gxd.js} +8 -8
- package/dist/chunks/{instance-91rj84md.js → persistent-pty-91rj84md.js} +1 -1
- package/dist/chunks/{instance-end80c8k.js → persistent-pty-96jdb81n.js} +3 -3
- package/dist/chunks/{instance-benw8c0p.js → persistent-pty-97arjhc9.js} +11 -11
- package/dist/chunks/{instance-998yhzzq.js → persistent-pty-998yhzzq.js} +3 -3
- package/dist/chunks/{instance-643ga4pe.js → persistent-pty-9e7skq3b.js} +50 -50
- package/dist/chunks/{instance-5dnx8fh9.js → persistent-pty-9k8g54ar.js} +14 -14
- package/dist/chunks/{instance-03rv3xxr.js → persistent-pty-9mw7dhxy.js} +46 -46
- package/dist/chunks/{instance-dwa4y1he.js → persistent-pty-9nc01p2h.js} +13 -13
- package/dist/chunks/{instance-e5dqjz6v.js → persistent-pty-9p9xqj3m.js} +8 -8
- package/dist/chunks/{instance-qvg0xc96.js → persistent-pty-a4316p25.js} +24 -24
- package/dist/chunks/{instance-e526twks.js → persistent-pty-a4ab7jhs.js} +3 -3
- package/dist/chunks/{instance-3g836nb0.js → persistent-pty-a4extrcm.js} +11 -11
- package/dist/chunks/{instance-2e0h6wjp.js → persistent-pty-a9ya4442.js} +29 -29
- package/dist/chunks/{instance-cgwkqn27.js → persistent-pty-acqhz89c.js} +33 -33
- package/dist/chunks/{instance-py2y684m.js → persistent-pty-ak32zwvb.js} +11 -11
- package/dist/chunks/{instance-21eye7vx.js → persistent-pty-amwp0aeg.js} +42 -42
- package/dist/chunks/{instance-ybc5hkqb.js → persistent-pty-ap300940.js} +4 -4
- package/dist/chunks/{instance-zba5tm1j.js → persistent-pty-ar2j3j0f.js} +4 -4
- package/dist/chunks/{instance-w6cgdp5v.js → persistent-pty-avrfdzax.js} +15 -15
- package/dist/chunks/{instance-ayjs7tqn.js → persistent-pty-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instance-b0mv4wxm.js → persistent-pty-b0mv4wxm.js} +2 -2
- package/dist/chunks/{instance-5se3rbtp.js → persistent-pty-b0wr9pq4.js} +12 -12
- package/dist/chunks/{instance-dytf95nn.js → persistent-pty-b25rcpjn.js} +5 -5
- package/dist/chunks/{instance-635rwy07.js → persistent-pty-b3dt0wfc.js} +85 -85
- package/dist/chunks/{instance-2xjd1gex.js → persistent-pty-b430ghfg.js} +48 -48
- package/dist/chunks/{instance-b6vsg801.js → persistent-pty-b6vsg801.js} +2 -2
- package/dist/chunks/{instance-kkp7zrme.js → persistent-pty-br64vc86.js} +4 -4
- package/dist/chunks/{instance-bstexjd6.js → persistent-pty-bstexjd6.js} +1 -1
- package/dist/chunks/{instance-8dqwvc3g.js → persistent-pty-c0ahb6m2.js} +49 -49
- package/dist/chunks/{instance-c3cfh5w6.js → persistent-pty-c3cfh5w6.js} +2 -2
- package/dist/chunks/{instance-aef5n06x.js → persistent-pty-c3z1dwp4.js} +32 -32
- package/dist/chunks/{instance-h2xt6wet.js → persistent-pty-c4970w7t.js} +6 -6
- package/dist/chunks/{instance-3tfzn32a.js → persistent-pty-c5mdmb7d.js} +7 -7
- package/dist/chunks/{instance-932en0hc.js → persistent-pty-c97kafxv.js} +12 -12
- package/dist/chunks/{instance-c9t2ty9q.js → persistent-pty-c9t2ty9q.js} +1 -1
- package/dist/chunks/{instance-0rvbv8dn.js → persistent-pty-cmtp12gq.js} +9 -9
- package/dist/chunks/{instance-m03db124.js → persistent-pty-cn8x8bav.js} +9 -9
- package/dist/chunks/{instance-8h479pk7.js → persistent-pty-csnq1vx8.js} +4 -4
- package/dist/chunks/{instance-d2dx6a7h.js → persistent-pty-d2dx6a7h.js} +1 -1
- package/dist/chunks/{instance-d4v9tmah.js → persistent-pty-d4v9tmah.js} +2 -2
- package/dist/chunks/{instance-abbph779.js → persistent-pty-d622t3vc.js} +15 -15
- package/dist/chunks/persistent-pty-d77dj7jw.js +18 -0
- package/dist/chunks/{instance-d8qd4w10.js → persistent-pty-d8qd4w10.js} +3 -3
- package/dist/chunks/persistent-pty-ddefqdxn.js +257 -0
- package/dist/chunks/{instance-0ss1ygn7.js → persistent-pty-dh62xe4r.js} +3 -3
- package/dist/chunks/persistent-pty-dj18ndtz.js +26 -0
- package/dist/chunks/{instance-r6wgv8c9.js → persistent-pty-dkq45v8d.js} +2 -2
- package/dist/chunks/{instance-dhdpjt8g.js → persistent-pty-dpy78jr7.js} +21 -21
- package/dist/chunks/{instance-9622d4vt.js → persistent-pty-dpyjajp2.js} +21 -21
- package/dist/chunks/{instance-e834z07m.js → persistent-pty-e834z07m.js} +1 -1
- package/dist/chunks/{instance-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-057a905h.js → persistent-pty-ep8g8f2q.js} +18 -18
- package/dist/chunks/{instance-m8z5e2ce.js → persistent-pty-epts1v3z.js} +2 -2
- package/dist/chunks/{instance-w47qp9je.js → persistent-pty-epv93m9y.js} +13 -13
- package/dist/chunks/{instance-ebdpzygg.js → persistent-pty-etps9a87.js} +16 -16
- package/dist/chunks/{instance-vb1hb692.js → persistent-pty-evvj0048.js} +6 -6
- package/dist/chunks/{instance-4z5wzpcn.js → persistent-pty-f2m57aq3.js} +7 -7
- package/dist/chunks/{instance-fffv3p7h.js → persistent-pty-fffv3p7h.js} +1 -1
- package/dist/chunks/{instance-x3t9xer4.js → persistent-pty-fvc4bqe2.js} +5 -5
- package/dist/chunks/{instance-wr3re1en.js → persistent-pty-fznmdakp.js} +4 -4
- package/dist/chunks/persistent-pty-fzppqy49.js +523 -0
- package/dist/chunks/{instance-66a4zrw5.js → persistent-pty-g45kmxae.js} +12 -12
- package/dist/chunks/{instance-g5h9c0rr.js → persistent-pty-g5h9c0rr.js} +2 -2
- package/dist/chunks/{instance-h1krfj2j.js → persistent-pty-gbkbh0za.js} +30 -30
- package/dist/chunks/{instance-xh28yaa3.js → persistent-pty-gd1vvcjv.js} +9 -9
- package/dist/chunks/{instance-q45e6md9.js → persistent-pty-gsnt20he.js} +19 -19
- package/dist/chunks/{instance-p3bdjd75.js → persistent-pty-gtwwgaxd.js} +17 -17
- package/dist/chunks/{instance-9e6f5ka6.js → persistent-pty-h1fcnfrv.js} +14 -14
- package/dist/chunks/{instance-mkcmjcp5.js → persistent-pty-h4ja5x6t.js} +8 -8
- package/dist/chunks/{instance-s389g6rp.js → persistent-pty-h9gq6eq0.js} +2 -2
- package/dist/chunks/{instance-c4ktk0av.js → persistent-pty-hffck5p6.js} +27 -27
- package/dist/chunks/{instance-aj7g8w0t.js → persistent-pty-hqqyr421.js} +26 -26
- package/dist/chunks/{instance-bgdafpbn.js → persistent-pty-hsn14kaz.js} +50 -50
- package/dist/chunks/{instance-j113cymg.js → persistent-pty-j113cymg.js} +1 -1
- package/dist/chunks/{instance-z52esc5y.js → persistent-pty-j4mbz3fw.js} +7 -7
- package/dist/chunks/{instance-bstch1wt.js → persistent-pty-j975cw6z.js} +4 -4
- package/dist/chunks/{instance-rhng211m.js → persistent-pty-jc99n3kj.js} +20 -19
- package/dist/chunks/{instance-wa9sj95e.js → persistent-pty-jcq455ft.js} +10 -10
- package/dist/chunks/{instance-3dfnask5.js → persistent-pty-jefvzq89.js} +11 -11
- package/dist/chunks/{instance-6285fq4d.js → persistent-pty-jfjbts63.js} +8 -8
- package/dist/chunks/{instance-b7jk63p6.js → persistent-pty-jmz0pryv.js} +15 -15
- package/dist/chunks/{instance-xt6gvx32.js → persistent-pty-jrqenxex.js} +11 -11
- package/dist/chunks/{instance-4w3nch3z.js → persistent-pty-k0c2abhw.js} +15 -15
- package/dist/chunks/{instance-gtghw66j.js → persistent-pty-k6e6yg7w.js} +42 -42
- package/dist/chunks/{instance-k814nvkf.js → persistent-pty-k814nvkf.js} +1 -1
- package/dist/chunks/{instance-0p88zpcm.js → persistent-pty-kedzwwnr.js} +4 -4
- package/dist/chunks/{instance-jb5x7epa.js → persistent-pty-kgeqanye.js} +18 -18
- package/dist/chunks/{instance-ndz5nh7p.js → persistent-pty-kjzbhe9f.js} +23 -23
- package/dist/chunks/{instance-263kv34p.js → persistent-pty-knck272c.js} +25 -25
- package/dist/chunks/{instance-nqsqkrgf.js → persistent-pty-kqnnmbvx.js} +32 -32
- package/dist/chunks/{instance-qs8dqg3k.js → persistent-pty-kzatpa33.js} +28 -28
- package/dist/chunks/{instance-m1714858.js → persistent-pty-m1714858.js} +1 -1
- package/dist/chunks/{instance-vmfhgzt5.js → persistent-pty-m37sd98t.js} +4 -4
- package/dist/chunks/{instance-9kfxcdfw.js → persistent-pty-m3kqm4cm.js} +2 -2
- package/dist/chunks/{instance-wxxnmnk9.js → persistent-pty-m8qqb4k3.js} +38 -38
- package/dist/chunks/{instance-e6d4carx.js → persistent-pty-m9458166.js} +30 -30
- package/dist/chunks/{instance-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-maspj1v3.js → persistent-pty-maspj1v3.js} +1 -1
- package/dist/chunks/{instance-ngyanjke.js → persistent-pty-mb72d0pe.js} +5 -5
- package/dist/chunks/{instance-x2pp485p.js → persistent-pty-mcbaxyan.js} +9 -9
- package/dist/chunks/{instance-f8b6bmk9.js → persistent-pty-mgn9jeqr.js} +85 -85
- package/dist/chunks/{instance-dgyds9m6.js → persistent-pty-mgqesnpe.js} +8 -8
- package/dist/chunks/{instance-b3qt6n5e.js → persistent-pty-mqpc6sp9.js} +14 -14
- package/dist/chunks/{instance-cvg4qkkk.js → persistent-pty-mr4m2xt3.js} +18 -18
- package/dist/chunks/{instance-07pgb3x5.js → persistent-pty-msgnwe08.js} +4 -4
- package/dist/chunks/{instance-n0p0277s.js → persistent-pty-n0p0277s.js} +1 -1
- package/dist/chunks/{instance-xg8ch27q.js → persistent-pty-n8km3ktm.js} +24 -24
- package/dist/chunks/{instance-29fq8x7w.js → persistent-pty-n8ys9nef.js} +25 -25
- package/dist/chunks/{instance-8w97pe4x.js → persistent-pty-n9qkr232.js} +9 -9
- package/dist/chunks/{instance-770pw0s1.js → persistent-pty-nah043kf.js} +4 -4
- package/dist/chunks/{instance-cyw0hgcw.js → persistent-pty-nbtna00v.js} +18 -18
- package/dist/chunks/{instance-fekxwpm0.js → persistent-pty-ncjgtf7q.js} +11 -11
- package/dist/chunks/{instance-r0wpwzbc.js → persistent-pty-nf6qtgmx.js} +15 -15
- package/dist/chunks/{instance-ee15qck3.js → persistent-pty-nvk1va1n.js} +28 -28
- package/dist/chunks/{instance-p015t6z3.js → persistent-pty-p015t6z3.js} +2 -2
- package/dist/chunks/{instance-184a1rnm.js → persistent-pty-p0tsr9h6.js} +7 -7
- package/dist/chunks/{instance-j0sbyfgz.js → persistent-pty-p5fvs1tf.js} +27 -27
- package/dist/chunks/{instance-ndtgrced.js → persistent-pty-p8zvtb4f.js} +16 -16
- package/dist/chunks/{instance-r6xrhh99.js → persistent-pty-pb7j0m6g.js} +19 -19
- package/dist/chunks/{instance-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{instance-y3nk2kzt.js → persistent-pty-pnb0v8tr.js} +16 -16
- package/dist/chunks/{instance-e3xe61ee.js → persistent-pty-ptp6ncr1.js} +22 -22
- package/dist/chunks/{instance-q1mbbp6t.js → persistent-pty-q7hewr9v.js} +22 -22
- package/dist/chunks/{instance-qjgzc4b4.js → persistent-pty-qjgzc4b4.js} +1 -1
- package/dist/chunks/{instance-9kgv9zpv.js → persistent-pty-qkzpeykj.js} +20 -20
- package/dist/chunks/{instance-etaatxhn.js → persistent-pty-qq9errcn.js} +32 -32
- package/dist/chunks/{instance-9abypapv.js → persistent-pty-qqef8819.js} +36 -36
- package/dist/chunks/{instance-qdvsamhb.js → persistent-pty-qwe9t09h.js} +32 -32
- package/dist/chunks/{instance-9qtzb502.js → persistent-pty-qycnq4qn.js} +17 -17
- package/dist/chunks/{instance-062ja7nb.js → persistent-pty-qyt594kh.js} +24 -24
- package/dist/chunks/{instance-r0yr0wbs.js → persistent-pty-r0yr0wbs.js} +1 -1
- package/dist/chunks/{instance-rb9dy4dg.js → persistent-pty-rb9dy4dg.js} +1 -1
- package/dist/chunks/{instance-c9nxf8hy.js → persistent-pty-rf77k6n7.js} +21 -21
- package/dist/chunks/{instance-18g90bpv.js → persistent-pty-rmt6m6se.js} +5 -5
- package/dist/chunks/{instance-rt5dr6hb.js → persistent-pty-rt5dr6hb.js} +1 -1
- package/dist/chunks/{instance-fv41sqmf.js → persistent-pty-rth52m3v.js} +11 -11
- package/dist/chunks/{instance-10kkr2v5.js → persistent-pty-s2dg58v9.js} +11 -11
- package/dist/chunks/{instance-a465j6ww.js → persistent-pty-s6p20e1k.js} +8 -8
- package/dist/chunks/{instance-5t0rc2x5.js → persistent-pty-s9ty2h8k.js} +11 -11
- package/dist/chunks/{instance-01trdk4e.js → persistent-pty-sd1t0gyg.js} +1 -1
- package/dist/chunks/{instance-sqjzf8x2.js → persistent-pty-sqjzf8x2.js} +1 -1
- package/dist/chunks/{instance-w5t2v68b.js → persistent-pty-ssg99487.js} +35 -35
- package/dist/chunks/{instance-tczq8hjw.js → persistent-pty-tczq8hjw.js} +1 -1
- package/dist/chunks/{instance-enkpkfwx.js → persistent-pty-tg1vr1qt.js} +8 -8
- package/dist/chunks/{instance-4tqs0jzk.js → persistent-pty-tmd1r8tg.js} +4 -4
- package/dist/chunks/{instance-qfeyg0ce.js → persistent-pty-tndygt87.js} +9 -9
- package/dist/chunks/{instance-tw8zr1ps.js → persistent-pty-tw8zr1ps.js} +1 -1
- package/dist/chunks/{instance-twv2r8f4.js → persistent-pty-twv2r8f4.js} +2 -2
- package/dist/chunks/{instance-7772sstq.js → persistent-pty-v1smpbvx.js} +24 -24
- package/dist/chunks/{instance-v2r1d0zg.js → persistent-pty-v2r1d0zg.js} +1 -1
- package/dist/chunks/{instance-93pnaaqa.js → persistent-pty-v568fy96.js} +42 -42
- package/dist/chunks/{instance-vd3b3yk9.js → persistent-pty-vd3b3yk9.js} +1 -1
- package/dist/chunks/{instance-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-mpjpcg5e.js → persistent-pty-vm0wcjea.js} +10 -10
- package/dist/chunks/{instance-mtrbqqrq.js → persistent-pty-vrpz8t5t.js} +5 -5
- package/dist/chunks/{instance-skmar0xn.js → persistent-pty-vt63w9ze.js} +17 -17
- package/dist/chunks/{instance-hfnmjrv2.js → persistent-pty-vxsjar9r.js} +7 -7
- package/dist/chunks/{instance-9150gt3p.js → persistent-pty-w2jp9fqe.js} +33 -33
- package/dist/chunks/{instance-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-9nmmcy3f.js → persistent-pty-w7s37af3.js} +7 -7
- package/dist/chunks/{instance-yqveydy6.js → persistent-pty-w9w8mt4n.js} +4 -4
- package/dist/chunks/{instance-wakvkjy4.js → persistent-pty-wakvkjy4.js} +1 -1
- package/dist/chunks/{instance-5t7qnrbf.js → persistent-pty-wbrbrqnn.js} +3 -3
- package/dist/chunks/{instance-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{instance-e191mv4p.js → persistent-pty-wgxpxc97.js} +43 -43
- package/dist/chunks/{instance-96has99t.js → persistent-pty-wjfsv5vx.js} +178 -178
- package/dist/chunks/{instance-nc72wgnk.js → persistent-pty-wjj9j73p.js} +29 -29
- package/dist/chunks/{instance-agyjn1qf.js → persistent-pty-wqb48wsw.js} +45 -45
- package/dist/chunks/{instance-fme36196.js → persistent-pty-ws8qaw4q.js} +21 -21
- package/dist/chunks/{instance-jmjdpnd3.js → persistent-pty-ww71evjc.js} +20 -20
- package/dist/chunks/{instance-esgjes53.js → persistent-pty-xcarn5dh.js} +4 -4
- package/dist/chunks/{instance-p5jsan2v.js → persistent-pty-xcawzme1.js} +20 -20
- package/dist/chunks/{instance-tge5hkw0.js → persistent-pty-xmb6acqt.js} +8 -8
- package/dist/chunks/{instance-b5szyexk.js → persistent-pty-xqtsmx9f.js} +11 -11
- package/dist/chunks/{instance-jfm41t20.js → persistent-pty-xx92f0z9.js} +3 -3
- package/dist/chunks/{instance-z827xawd.js → persistent-pty-xz8jn1n5.js} +45 -45
- package/dist/chunks/{instance-8pw73atm.js → persistent-pty-xzhmj86d.js} +4 -4
- package/dist/chunks/{instance-xcmymtr1.js → persistent-pty-y4rx9zcm.js} +20 -20
- package/dist/chunks/{instance-yb20nhc3.js → persistent-pty-yb20nhc3.js} +1 -1
- package/dist/chunks/{instance-9yw7q74z.js → persistent-pty-ypqy3h3f.js} +13 -13
- package/dist/chunks/{instance-6xzp1e9z.js → persistent-pty-yte8j0g9.js} +14 -14
- package/dist/chunks/{instance-00v81f22.js → persistent-pty-yw5cr2kg.js} +25 -25
- package/dist/chunks/{instance-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-26qqh6c2.js → persistent-pty-z18nf20h.js} +9 -9
- package/dist/chunks/{instance-z38nccrw.js → persistent-pty-z38nccrw.js} +1 -1
- package/dist/chunks/{instance-xd2vqhy1.js → persistent-pty-z5dq5ktq.js} +28 -28
- package/dist/chunks/{instance-kt6jvn8v.js → persistent-pty-z5ya83ez.js} +15 -15
- package/dist/chunks/{instance-p2skkwsg.js → persistent-pty-z600r55a.js} +33 -33
- package/dist/chunks/{instance-4jwczs9z.js → persistent-pty-z6k1srac.js} +14 -14
- package/dist/chunks/{instance-sx4k8dnq.js → persistent-pty-zgfrp2wc.js} +18 -18
- package/dist/chunks/{instance-zkg84ctx.js → persistent-pty-zkg84ctx.js} +1 -1
- package/dist/chunks/{instance-8rhgew23.js → persistent-pty-zkvx2ye6.js} +20 -20
- package/dist/chunks/{instance-39x48ya0.js → persistent-pty-zntgk0c3.js} +16 -16
- package/dist/chunks/{instance-dsfs4g6t.js → persistent-pty-zx0t21mj.js} +13 -13
- 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 +87 -87
- 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 +116 -116
- package/dist/config/plugin/command.js +212 -212
- 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 +123 -123
- 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 +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +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 +87 -87
- 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 +1 -1
- 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 +97 -97
- 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 +72 -72
- 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 +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +102 -102
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- 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 +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- 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 +156 -156
- 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 +83 -83
- 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 +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -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 +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- 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 +2 -2
- 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 +116 -116
- 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 +113 -113
- 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 +125 -125
- 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 +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- 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 +170 -170
- 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 +351 -351
- 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 +4 -4
- 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 +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- 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 +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +164 -164
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +93 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- 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 +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +109 -109
- 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 +139 -139
- package/dist/tool/plugin/edit.js +120 -120
- 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 +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +132 -132
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/job.d.ts +1 -4
- package/dist/types/permission.d.ts +0 -1
- package/dist/types/persistent-pty/daemon.d.ts +0 -6
- package/dist/types/session/diff.d.ts +0 -1
- package/dist/types/session/error.d.ts +6 -16
- package/dist/types/session/inbox.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +0 -1
- package/dist/types/session/schema.d.ts +6 -12
- package/dist/types/session/stats.d.ts +12 -11
- package/dist/types/session/store.d.ts +0 -6
- package/dist/types/session/transfer.d.ts +19 -25
- package/dist/types/session.d.ts +0 -6
- package/dist/types/tool/plugin/opencode.d.ts +0 -2
- package/dist/types/tool/plugin/subagent.d.ts +0 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- 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 +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- 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 +102 -102
- package/package.json +8 -8
- package/dist/chunks/instance-6zjm2phc.js +0 -18
- package/dist/chunks/instance-j2jyevz2.js +0 -257
- package/dist/chunks/instance-mnx6182w.js +0 -523
- package/dist/chunks/instance-qxc5czc4.js +0 -26
- /package/dist/chunks/{instance-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2bv980vf.js → persistent-pty-2bv980vf.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5fjb7ams.js → persistent-pty-5fjb7ams.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → persistent-pty-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a058387c.js → persistent-pty-a058387c.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hcxmzztb.js → persistent-pty-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jze0r7bz.js → persistent-pty-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-m18g726c.js → persistent-pty-m18g726c.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-pkyv6v7h.js → persistent-pty-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-ve7vex1e.js → persistent-pty-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wjj7prxr.js → persistent-pty-wjj7prxr.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-4ccqqpnm.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-vd3b3yk9.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./persistent-pty-ar2j3j0f.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID10,
|
|
14
|
+
Service71,
|
|
15
|
+
node75,
|
|
16
|
+
Event14
|
|
17
|
+
} from "./persistent-pty-m9458166.js";
|
|
18
18
|
import {
|
|
19
19
|
Service82,
|
|
20
20
|
node86
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-epts1v3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/provider.ts
|
|
27
27
|
var exports_provider3 = {};
|
|
@@ -30,13 +30,13 @@ __export(exports_provider3, {
|
|
|
30
30
|
Compaction: () => Compaction3,
|
|
31
31
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
32
32
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
33
|
-
Event: () =>
|
|
34
|
-
ID: () =>
|
|
35
|
-
Info: () =>
|
|
33
|
+
Event: () => Event13,
|
|
34
|
+
ID: () => ID9,
|
|
35
|
+
Info: () => Info18,
|
|
36
36
|
LoadError: () => LoadError3,
|
|
37
37
|
Provider: () => exports_provider3,
|
|
38
|
-
Request: () =>
|
|
39
|
-
Service: () =>
|
|
38
|
+
Request: () => Request2,
|
|
39
|
+
Service: () => Service68,
|
|
40
40
|
Settings: () => Settings2,
|
|
41
41
|
Transport: () => Transport2,
|
|
42
42
|
aisdk: () => aisdk2,
|
|
@@ -48,7 +48,7 @@ __export(exports_provider3, {
|
|
|
48
48
|
mergeOverlay: () => mergeOverlay2,
|
|
49
49
|
modelSettings: () => modelSettings2,
|
|
50
50
|
nativeSettings: () => nativeSettings2,
|
|
51
|
-
node: () =>
|
|
51
|
+
node: () => node72,
|
|
52
52
|
packageName: () => packageName2,
|
|
53
53
|
timeout: () => timeout2,
|
|
54
54
|
timeouts: () => timeouts2
|
|
@@ -323,8 +323,8 @@ var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
|
323
323
|
var decode = Schema.decodeUnknownSync(Legacy);
|
|
324
324
|
|
|
325
325
|
// src/provider.ts
|
|
326
|
-
import { Event as
|
|
327
|
-
var
|
|
326
|
+
import { Event as Event13 } from "@opencode/schema/provider";
|
|
327
|
+
var ID9 = Provider.ID;
|
|
328
328
|
var AISDK_PREFIX2 = "aisdk:";
|
|
329
329
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
330
330
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -534,13 +534,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
534
534
|
return result;
|
|
535
535
|
}, new Map).values());
|
|
536
536
|
}
|
|
537
|
-
var
|
|
537
|
+
var Request2 = Provider.Request;
|
|
538
538
|
var Compaction3 = Provider.Compaction;
|
|
539
539
|
var Transport2 = Provider.Transport;
|
|
540
540
|
var Settings2 = Provider.Settings;
|
|
541
|
-
var
|
|
541
|
+
var Info18 = Provider.Info;
|
|
542
542
|
|
|
543
|
-
class
|
|
543
|
+
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
544
544
|
}
|
|
545
545
|
var definitions = new WeakMap;
|
|
546
546
|
function index(providerID, models) {
|
|
@@ -553,9 +553,9 @@ function index(providerID, models) {
|
|
|
553
553
|
definitions.set(models, indexes);
|
|
554
554
|
return result;
|
|
555
555
|
}
|
|
556
|
-
var layer = Layer.effect(
|
|
556
|
+
var layer = Layer.effect(Service68, Effect2.gen(function* () {
|
|
557
557
|
const bus = yield* Service85;
|
|
558
|
-
const integrations = yield*
|
|
558
|
+
const integrations = yield* Service71;
|
|
559
559
|
const location = yield* Service82;
|
|
560
560
|
const state = create3({
|
|
561
561
|
name: "provider",
|
|
@@ -567,7 +567,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
567
567
|
const current = records.get(id);
|
|
568
568
|
if (current)
|
|
569
569
|
return current;
|
|
570
|
-
const added = { provider:
|
|
570
|
+
const added = { provider: Info18.empty(id), models: new Map };
|
|
571
571
|
records.set(id, added);
|
|
572
572
|
maps.add(added.models);
|
|
573
573
|
return added;
|
|
@@ -648,7 +648,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
648
648
|
const available = Array.from(records.values()).filter((record) => {
|
|
649
649
|
if (record.provider.activation === "disabled")
|
|
650
650
|
return false;
|
|
651
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
651
|
+
const integration = byID.get(record.provider.integrationID ?? ID10.make(record.provider.id));
|
|
652
652
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
653
653
|
return false;
|
|
654
654
|
if (record.provider.activation === "enabled")
|
|
@@ -674,8 +674,8 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
674
674
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
675
675
|
});
|
|
676
676
|
});
|
|
677
|
-
yield* bus.subscribe([
|
|
678
|
-
return
|
|
677
|
+
yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
678
|
+
return Service68.of({
|
|
679
679
|
transform: state.transform,
|
|
680
680
|
reload: state.reload,
|
|
681
681
|
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -684,7 +684,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
684
684
|
snapshot
|
|
685
685
|
});
|
|
686
686
|
}));
|
|
687
|
-
var
|
|
687
|
+
var node72 = makeLocationNode({ service: Service68, layer, deps: [node89, node75, node86] });
|
|
688
688
|
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
689
689
|
const module = yield* Effect2.tryPromise({
|
|
690
690
|
try: () => {
|
|
@@ -706,4 +706,4 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
706
706
|
return module;
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
709
|
+
export { rewrite2, native2, exports_aisdk_native, ID9, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info18, Service68, node72, exports_provider3, Event13 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID10,
|
|
3
|
+
Service71,
|
|
4
|
+
node75
|
|
5
|
+
} from "./persistent-pty-m9458166.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID9,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service68,
|
|
19
|
+
node72
|
|
20
|
+
} from "./persistent-pty-wjj9j73p.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service59,
|
|
23
|
+
node62
|
|
24
|
+
} from "./persistent-pty-g45kmxae.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
26
|
+
ID8,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service67,
|
|
30
|
+
node71,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./persistent-pty-a9ya4442.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/model-resolver.ts
|
|
38
38
|
var exports_model_resolver = {};
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service58,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer23,
|
|
52
|
+
node: () => node61,
|
|
53
53
|
resolveModel: () => resolveModel2,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -59,8 +59,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
59
59
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
60
60
|
import { Npm } from "@opencode/util/npm";
|
|
61
61
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
62
|
-
providerID:
|
|
63
|
-
modelID:
|
|
62
|
+
providerID: ID9,
|
|
63
|
+
modelID: ID8,
|
|
64
64
|
variant: VariantID2
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
@@ -69,8 +69,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
72
|
-
providerID:
|
|
73
|
-
modelID:
|
|
72
|
+
providerID: ID9,
|
|
73
|
+
modelID: ID8,
|
|
74
74
|
package: Schema.String
|
|
75
75
|
}) {
|
|
76
76
|
get message() {
|
|
@@ -80,8 +80,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
80
80
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
81
81
|
|
|
82
82
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
83
|
-
providerID:
|
|
84
|
-
modelID:
|
|
83
|
+
providerID: ID9,
|
|
84
|
+
modelID: ID8,
|
|
85
85
|
package: Schema.String,
|
|
86
86
|
detail: Schema.String
|
|
87
87
|
}) {
|
|
@@ -91,8 +91,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
94
|
-
providerID:
|
|
95
|
-
modelID:
|
|
94
|
+
providerID: ID9,
|
|
95
|
+
modelID: ID8,
|
|
96
96
|
package: Schema.String,
|
|
97
97
|
phase: InitializationPhase2,
|
|
98
98
|
detail: Schema.String
|
|
@@ -103,8 +103,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
106
|
-
providerID:
|
|
107
|
-
modelID:
|
|
106
|
+
providerID: ID9,
|
|
107
|
+
modelID: ID8,
|
|
108
108
|
variables: Schema.Array(Schema.String)
|
|
109
109
|
}) {
|
|
110
110
|
get message() {
|
|
@@ -113,8 +113,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
116
|
-
providerID:
|
|
117
|
-
modelID:
|
|
116
|
+
providerID: ID9,
|
|
117
|
+
modelID: ID8,
|
|
118
118
|
route: Schema.String
|
|
119
119
|
}) {
|
|
120
120
|
get message() {
|
|
@@ -122,7 +122,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
class
|
|
125
|
+
class Service58 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -234,7 +234,7 @@ var nativeCredentialSettings = (model, specifier, credential) => {
|
|
|
234
234
|
return tokenSettings(specifier, credential.access);
|
|
235
235
|
if (specifier.startsWith("@opencode/ai/providers/amazon-bedrock"))
|
|
236
236
|
return { auth: "sigv4" };
|
|
237
|
-
if (model.providerID ===
|
|
237
|
+
if (model.providerID === ID9.azure)
|
|
238
238
|
return tokenSettings(specifier, "azure-cli");
|
|
239
239
|
return {};
|
|
240
240
|
};
|
|
@@ -269,15 +269,15 @@ var causeMessage = (cause) => {
|
|
|
269
269
|
};
|
|
270
270
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
271
271
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
272
|
-
var
|
|
273
|
-
const providers = yield*
|
|
274
|
-
const models = yield*
|
|
275
|
-
const integrations = yield*
|
|
272
|
+
var layer23 = Layer.effect(Service58, Effect.gen(function* () {
|
|
273
|
+
const providers = yield* Service68;
|
|
274
|
+
const models = yield* Service67;
|
|
275
|
+
const integrations = yield* Service71;
|
|
276
276
|
const npm = yield* Npm.Service;
|
|
277
|
-
const aisdk = yield*
|
|
277
|
+
const aisdk = yield* Service59;
|
|
278
278
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
279
279
|
const provider = yield* providers.get(selected.providerID);
|
|
280
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
280
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID10.make(selected.providerID));
|
|
281
281
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
282
282
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
283
283
|
const runtimeInfo = {
|
|
@@ -304,7 +304,7 @@ var layer21 = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
304
304
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service58.of({
|
|
308
308
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
309
309
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
310
310
|
if (!selected)
|
|
@@ -321,10 +321,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
321
321
|
const name = packageName2(packageName);
|
|
322
322
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
service:
|
|
326
|
-
layer:
|
|
327
|
-
deps: [
|
|
324
|
+
var node61 = makeLocationNode({
|
|
325
|
+
service: Service58,
|
|
326
|
+
layer: layer23,
|
|
327
|
+
deps: [node72, node71, node75, Npm.node, node62]
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
330
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service58, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node61, exports_model_resolver };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-2hep2db8.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-4ccqqpnm.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event16,
|
|
10
|
+
Service73
|
|
11
|
+
} from "./persistent-pty-gbkbh0za.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID10,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-m9458166.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID9,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-wjj9j73p.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID8,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info17
|
|
24
|
+
} from "./persistent-pty-a9ya4442.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./persistent-pty-yb20nhc3.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./persistent-pty-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./persistent-pty-evvj0048.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID9.openai;
|
|
47
|
+
var integrationID = ID10.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -180,7 +180,7 @@ var ChatGPTPlugin2 = define({
|
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
182
|
const bus = yield* Service85;
|
|
183
|
-
const credentials = yield*
|
|
183
|
+
const credentials = yield* Service73;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID10.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID8.make(model.slug))).map((model) => deriveModel(model, Info17.default(ID9.openai, ID8.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service40,
|
|
3
|
+
node43
|
|
4
|
+
} from "./persistent-pty-v1smpbvx.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make21,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-9p9xqj3m.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions2 = {};
|
|
17
|
+
__export(exports_instructions2, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions2,
|
|
19
|
+
Service: () => Service29,
|
|
20
|
+
node: () => node32
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -61,19 +61,19 @@ var update = (previous, current) => {
|
|
|
61
61
|
`);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class Service29 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
65
65
|
}
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const references = yield*
|
|
68
|
-
return
|
|
66
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
67
|
+
const references = yield* Service40;
|
|
68
|
+
return Service29.of({
|
|
69
69
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
70
70
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
71
71
|
name: reference.name,
|
|
72
72
|
path: reference.path,
|
|
73
73
|
description: reference.description
|
|
74
74
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
75
|
-
return
|
|
76
|
-
key:
|
|
75
|
+
return make21({
|
|
76
|
+
key: Key4.make("core/reference-guidance"),
|
|
77
77
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
78
78
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
79
79
|
render: {
|
|
@@ -85,6 +85,6 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
85
85
|
})
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
|
-
var
|
|
88
|
+
var node32 = makeLocationNode({ service: Service29, layer, deps: [node43] });
|
|
89
89
|
|
|
90
|
-
export {
|
|
90
|
+
export { Service29, node32, exports_instructions2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./persistent-pty-wjj9j73p.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-evvj0048.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
11
11
|
import { Form } from "@opencode/schema/form";
|
|
12
|
-
var providerID =
|
|
12
|
+
var providerID = ID9.make("cloudflare-workers-ai");
|
|
13
13
|
var CloudflareWorkersAIPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-4ccqqpnm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service44
|
|
6
|
+
} from "./persistent-pty-7q3wyea1.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Error4
|
|
9
|
+
} from "./persistent-pty-3b8pv6kk.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service62
|
|
12
|
+
} from "./persistent-pty-s9ty2h8k.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-7xcfq1ha.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-77ffb5fa.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./persistent-pty-tw8zr1ps.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./persistent-pty-xzhmj86d.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-1z6jjy5p.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make9
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
54
|
+
var make9 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service85;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service44;
|
|
58
|
+
const toolOutput = yield* Service62;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make3 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error4({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -223,4 +223,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
223
223
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
export { Outcome2,
|
|
226
|
+
export { Outcome2, make9, exports_step };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-rb9dy4dg.js";
|
|
4
4
|
import {
|
|
5
5
|
ID6,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service44
|
|
7
|
+
} from "./persistent-pty-7q3wyea1.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-4pa8nav4.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-7xcfq1ha.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-998yhzzq.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/session/diff.ts
|
|
22
22
|
var exports_diff = {};
|
|
@@ -81,7 +81,7 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service44;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|