@opencode/core 0.0.0-dev-21049 → 0.0.0-dev-21051
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 +77 -77
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +77 -77
- package/dist/chunks/{tool-xkskqrtp.js → aisdk-native-008af25k.js} +41 -41
- package/dist/chunks/{tool-vzjqqmke.js → aisdk-native-010tvgv6.js} +13 -13
- package/dist/chunks/{tool-cdb4d5hn.js → aisdk-native-02bkpz0r.js} +8 -8
- package/dist/chunks/{tool-49zdgxhw.js → aisdk-native-079mcvfn.js} +314 -314
- package/dist/chunks/{tool-v4nfzjvf.js → aisdk-native-0ejd5hp1.js} +8 -8
- package/dist/chunks/{tool-e0yqexzb.js → aisdk-native-0enb1j4g.js} +56 -56
- package/dist/chunks/{tool-ga7mt0se.js → aisdk-native-0q5x20jn.js} +14 -14
- package/dist/chunks/{tool-0vbcp93d.js → aisdk-native-0vbcp93d.js} +2 -2
- package/dist/chunks/{tool-w6v0a0a0.js → aisdk-native-11p8rrv3.js} +18 -18
- package/dist/chunks/{tool-vdnkbznm.js → aisdk-native-11wbwpks.js} +45 -45
- package/dist/chunks/{tool-eeaf82dq.js → aisdk-native-15nepkqg.js} +8 -8
- package/dist/chunks/{tool-n9asf4py.js → aisdk-native-1bb4enwx.js} +21 -21
- package/dist/chunks/{tool-qa5pp94n.js → aisdk-native-1bk8h6hd.js} +11 -11
- package/dist/chunks/{tool-15qc111y.js → aisdk-native-1mxm48s2.js} +11 -11
- package/dist/chunks/{tool-wn04sytp.js → aisdk-native-1pzpkc83.js} +7 -7
- package/dist/chunks/{tool-j49xa6cy.js → aisdk-native-1qkxh0ae.js} +1 -1
- package/dist/chunks/{tool-wqm3ja7g.js → aisdk-native-22q7dyb9.js} +37 -37
- package/dist/chunks/{tool-r9z49qnw.js → aisdk-native-25rmky1b.js} +23 -23
- package/dist/chunks/{tool-wd141nz2.js → aisdk-native-26htbs1v.js} +25 -25
- package/dist/chunks/{tool-gv51xe32.js → aisdk-native-273q5b94.js} +16 -16
- package/dist/chunks/{tool-fmabef4g.js → aisdk-native-2bptt429.js} +23 -23
- package/dist/chunks/{tool-f8a4hwr2.js → aisdk-native-2dzcqkzj.js} +11 -11
- package/dist/chunks/{tool-7kfb2kjh.js → aisdk-native-2r0tk30k.js} +14 -14
- package/dist/chunks/{tool-jgxf7b5z.js → aisdk-native-2shgedck.js} +3 -3
- package/dist/chunks/{tool-s2b5phw1.js → aisdk-native-2wx2janp.js} +16 -16
- package/dist/chunks/{tool-fr6f0teb.js → aisdk-native-381ssprr.js} +26 -26
- package/dist/chunks/{tool-cqw1m3c7.js → aisdk-native-398b0mpv.js} +17 -17
- package/dist/chunks/{tool-enceqnms.js → aisdk-native-39cces62.js} +9 -9
- package/dist/chunks/{tool-v5qvjexb.js → aisdk-native-3d0p5b3f.js} +4 -4
- package/dist/chunks/{tool-3fc6dm20.js → aisdk-native-3fc6dm20.js} +1 -1
- package/dist/chunks/{tool-n19kh25r.js → aisdk-native-3g642jy4.js} +9 -9
- package/dist/chunks/{tool-3hepkmqq.js → aisdk-native-3hepkmqq.js} +1 -1
- package/dist/chunks/{tool-3hwn7j4h.js → aisdk-native-3hwn7j4h.js} +2 -2
- package/dist/chunks/{tool-b44y2phb.js → aisdk-native-3k0p0jfb.js} +31 -31
- package/dist/chunks/{tool-15zrfa03.js → aisdk-native-3mmmnspj.js} +6 -6
- package/dist/chunks/{tool-5ezpm4ww.js → aisdk-native-3q62727x.js} +18 -18
- package/dist/chunks/{tool-s2j6jbe4.js → aisdk-native-3rebnpvr.js} +11 -11
- package/dist/chunks/{tool-5gq9j52j.js → aisdk-native-3s6v29w0.js} +18 -18
- package/dist/chunks/{tool-95f8ca4q.js → aisdk-native-3scxypky.js} +15 -15
- package/dist/chunks/{tool-3smtnn6g.js → aisdk-native-3smtnn6g.js} +1 -1
- package/dist/chunks/{tool-3tvqynh2.js → aisdk-native-3tvqynh2.js} +1 -1
- package/dist/chunks/{tool-3zsf4n22.js → aisdk-native-3zsf4n22.js} +1 -1
- package/dist/chunks/{tool-62jddv0q.js → aisdk-native-4321prz8.js} +94 -94
- package/dist/chunks/{tool-c29z7hcx.js → aisdk-native-4kggagv6.js} +30 -30
- package/dist/chunks/{tool-mbdexebc.js → aisdk-native-4mbxqphm.js} +9 -9
- package/dist/chunks/{tool-g5j27e7f.js → aisdk-native-4r20f2w4.js} +9 -9
- package/dist/chunks/{tool-wyszaa0p.js → aisdk-native-4vv9qs6z.js} +20 -20
- package/dist/chunks/{tool-cmmdg65p.js → aisdk-native-4w5f3qm5.js} +7 -7
- package/dist/chunks/{tool-s1s9gt8f.js → aisdk-native-52ygqbmm.js} +16 -16
- package/dist/chunks/{tool-v4cvsrx9.js → aisdk-native-54m2cnn7.js} +44 -44
- package/dist/chunks/{tool-54ma36ye.js → aisdk-native-54ma36ye.js} +1 -1
- package/dist/chunks/{tool-5m9w47nd.js → aisdk-native-5m9w47nd.js} +1 -1
- package/dist/chunks/{tool-pbzbjmff.js → aisdk-native-5v915pcj.js} +40 -40
- package/dist/chunks/aisdk-native-619r8v3y.js +18 -0
- package/dist/chunks/{tool-jc5z6esd.js → aisdk-native-66q82xp0.js} +8 -8
- package/dist/chunks/{tool-xa2yqved.js → aisdk-native-68qhygb3.js} +32 -32
- package/dist/chunks/{tool-2bekqz3a.js → aisdk-native-69h1251q.js} +15 -15
- package/dist/chunks/{tool-kp9fp1hg.js → aisdk-native-6a4v6yfy.js} +27 -27
- package/dist/chunks/{tool-q9099wq0.js → aisdk-native-6fjvkjmf.js} +11 -11
- package/dist/chunks/{tool-w92k2e0p.js → aisdk-native-6pc27hjz.js} +4 -4
- package/dist/chunks/{tool-yy7ctzsd.js → aisdk-native-6sn6p2pf.js} +23 -23
- package/dist/chunks/{tool-z082bpte.js → aisdk-native-6w1q372k.js} +28 -28
- package/dist/chunks/{tool-6xb47vfp.js → aisdk-native-6xb47vfp.js} +1 -1
- package/dist/chunks/{tool-t7t1s02j.js → aisdk-native-721tnm3v.js} +22 -22
- package/dist/chunks/{tool-775gj3j1.js → aisdk-native-775gj3j1.js} +2 -2
- package/dist/chunks/{tool-7bmhse3q.js → aisdk-native-7bmhse3q.js} +1 -1
- package/dist/chunks/{tool-xahevxwt.js → aisdk-native-7cftm1w2.js} +22 -22
- package/dist/chunks/{tool-fcrkznn8.js → aisdk-native-7dqw4kz8.js} +5 -5
- package/dist/chunks/{tool-r0b0zdb7.js → aisdk-native-7e82qy14.js} +19 -19
- package/dist/chunks/{tool-6mvkgxje.js → aisdk-native-7p6q788q.js} +5 -5
- package/dist/chunks/{tool-a79qvj6d.js → aisdk-native-7t6mhvrf.js} +27 -27
- package/dist/chunks/{tool-jh7q4nc1.js → aisdk-native-7x5xkrby.js} +15 -15
- package/dist/chunks/{tool-cwq5cw92.js → aisdk-native-80jw6vs9.js} +6 -6
- package/dist/chunks/{tool-52zr48d6.js → aisdk-native-851gv83v.js} +17 -17
- package/dist/chunks/{tool-5kmqhqkx.js → aisdk-native-85dwj67f.js} +10 -10
- package/dist/chunks/{tool-xjjxg6fg.js → aisdk-native-8cdjgwsz.js} +18 -18
- package/dist/chunks/{tool-99va16k7.js → aisdk-native-8g7rtrkc.js} +20 -20
- package/dist/chunks/{tool-8m6m0r52.js → aisdk-native-8m6m0r52.js} +1 -1
- package/dist/chunks/{tool-2th9fvys.js → aisdk-native-8q35wntr.js} +19 -19
- package/dist/chunks/{tool-70qn9w1v.js → aisdk-native-8y126c3t.js} +22 -22
- package/dist/chunks/{tool-m6vhnv41.js → aisdk-native-8y2qb0hx.js} +10 -10
- package/dist/chunks/{tool-87b0tycv.js → aisdk-native-8yhjyr9d.js} +24 -24
- package/dist/chunks/{tool-6jpn1xds.js → aisdk-native-8ynqte5x.js} +1 -1
- package/dist/chunks/{tool-j09zfasm.js → aisdk-native-91qna3x0.js} +3 -3
- package/dist/chunks/{tool-dx4kydrk.js → aisdk-native-9abagn6q.js} +6 -6
- package/dist/chunks/{tool-pa8pe2x7.js → aisdk-native-9hn6k4tm.js} +8 -8
- package/dist/chunks/{tool-87t3sg69.js → aisdk-native-9tt4g7j2.js} +10 -10
- package/dist/chunks/{tool-6yybhc5e.js → aisdk-native-9y5rdyqg.js} +5 -5
- package/dist/chunks/{tool-9pa8tak9.js → aisdk-native-9y9sk2j9.js} +2 -2
- package/dist/chunks/{tool-fdv8dmm1.js → aisdk-native-9yr7k9wa.js} +16 -16
- package/dist/chunks/{tool-0spfg2bb.js → aisdk-native-a0hd3gf5.js} +11 -11
- package/dist/chunks/{tool-wwx93a2b.js → aisdk-native-a14zh5kh.js} +17 -17
- package/dist/chunks/{tool-v42hp0t0.js → aisdk-native-a3ka8327.js} +50 -50
- package/dist/chunks/{tool-fprpd8rr.js → aisdk-native-a9ghp7p9.js} +9 -9
- package/dist/chunks/{tool-vx1yezxz.js → aisdk-native-abvg2g3b.js} +4 -4
- package/dist/chunks/{tool-qbxqra2w.js → aisdk-native-ad0n8s1d.js} +4 -4
- package/dist/chunks/{tool-dp9e102f.js → aisdk-native-awfc3sk5.js} +16 -16
- package/dist/chunks/{tool-143qq2q9.js → aisdk-native-axe3mf62.js} +3 -3
- package/dist/chunks/{tool-zyk1yjk8.js → aisdk-native-b3f8fkhc.js} +5 -5
- package/dist/chunks/{tool-d9rb3zvs.js → aisdk-native-b6721ypw.js} +69 -69
- package/dist/chunks/{tool-e58xrjgm.js → aisdk-native-b7enwak2.js} +14 -14
- package/dist/chunks/{tool-s43hmkm2.js → aisdk-native-bepehkn3.js} +13 -13
- package/dist/chunks/{tool-98wwwshm.js → aisdk-native-bh180fv7.js} +28 -28
- package/dist/chunks/{tool-ywt8jp22.js → aisdk-native-bjx1sjef.js} +9 -9
- package/dist/chunks/{tool-xkgdf0k8.js → aisdk-native-bpadz85f.js} +23 -23
- package/dist/chunks/{tool-cyt5dtwd.js → aisdk-native-bqxzme6r.js} +12 -12
- package/dist/chunks/{tool-c1fqxshp.js → aisdk-native-c1fqxshp.js} +3 -3
- package/dist/chunks/{tool-1w2t7fyn.js → aisdk-native-c1t8fmew.js} +18 -18
- package/dist/chunks/{tool-11w9b7qd.js → aisdk-native-c2srr62n.js} +27 -27
- package/dist/chunks/{tool-r6ewd7yw.js → aisdk-native-c4pwt2rn.js} +11 -11
- package/dist/chunks/{tool-teddrkej.js → aisdk-native-c7y1skz3.js} +23 -23
- package/dist/chunks/{tool-mx9vqzsb.js → aisdk-native-c8bydgjz.js} +6 -6
- package/dist/chunks/{tool-axr9kwmj.js → aisdk-native-c92w93zz.js} +50 -50
- package/dist/chunks/{tool-376dj1j3.js → aisdk-native-ce3ak8x1.js} +10 -10
- package/dist/chunks/{tool-m01k28hg.js → aisdk-native-cjdt50vb.js} +22 -22
- package/dist/chunks/{tool-djs19gy2.js → aisdk-native-cvz7dbtj.js} +4 -4
- package/dist/chunks/{tool-zsr4wwhv.js → aisdk-native-d2czbp48.js} +4 -4
- package/dist/chunks/{tool-jvf3yq6v.js → aisdk-native-dhmh7aw6.js} +4 -4
- package/dist/chunks/{tool-f0nz223j.js → aisdk-native-dpkg50ah.js} +4 -4
- package/dist/chunks/{tool-dqxsqydv.js → aisdk-native-dqxsqydv.js} +1 -1
- package/dist/chunks/{tool-57b9ws8p.js → aisdk-native-drwq78ky.js} +5 -5
- package/dist/chunks/{tool-g8a3dkpa.js → aisdk-native-dw489vd8.js} +20 -20
- package/dist/chunks/{tool-5ds65g7m.js → aisdk-native-e1s4wqg9.js} +153 -153
- package/dist/chunks/{tool-bnpshxh6.js → aisdk-native-e6yzqt19.js} +13 -13
- package/dist/chunks/{tool-560byads.js → aisdk-native-ecz5zhv4.js} +4 -4
- package/dist/chunks/{tool-eej6y6fw.js → aisdk-native-eej6y6fw.js} +2 -2
- package/dist/chunks/{tool-ef5x83kb.js → aisdk-native-ef5x83kb.js} +1 -1
- package/dist/chunks/{tool-tp63ett8.js → aisdk-native-egevmj8j.js} +8 -8
- package/dist/chunks/{tool-70h0erza.js → aisdk-native-ehq653hx.js} +33 -33
- package/dist/chunks/{tool-cnrvnbz5.js → aisdk-native-ejt476fx.js} +31 -31
- package/dist/chunks/{tool-9zt3hyj2.js → aisdk-native-enb1xj7b.js} +34 -34
- package/dist/chunks/{tool-e0f7tvrt.js → aisdk-native-eqxrb13a.js} +32 -32
- package/dist/chunks/{tool-0eyv36ts.js → aisdk-native-et0jya6v.js} +35 -35
- package/dist/chunks/{tool-yp2x3t23.js → aisdk-native-f2n192rq.js} +4 -4
- package/dist/chunks/{tool-jabbs2pc.js → aisdk-native-fhtdfcm7.js} +50 -50
- package/dist/chunks/{tool-tkwrxyh9.js → aisdk-native-fnm4shcz.js} +35 -35
- package/dist/chunks/{tool-jvtxec42.js → aisdk-native-frhr46j1.js} +24 -24
- package/dist/chunks/{tool-d43tgzm4.js → aisdk-native-fsbk27r1.js} +9 -9
- package/dist/chunks/{tool-x2a7tbvm.js → aisdk-native-fse9jg0q.js} +26 -26
- package/dist/chunks/{tool-230ecda4.js → aisdk-native-ftjbx2ks.js} +9 -9
- package/dist/chunks/{tool-g686f6pq.js → aisdk-native-g686f6pq.js} +2 -2
- package/dist/chunks/{tool-yd6x1vtb.js → aisdk-native-g913321p.js} +17 -17
- package/dist/chunks/{tool-gd4qta3r.js → aisdk-native-gd4qta3r.js} +1 -1
- package/dist/chunks/{tool-9b00c1fb.js → aisdk-native-gebtr55s.js} +5 -5
- package/dist/chunks/{tool-47jkzegy.js → aisdk-native-gj71zhbs.js} +5 -5
- package/dist/chunks/{tool-wpvb0vtd.js → aisdk-native-gpss4wwy.js} +13 -13
- package/dist/chunks/{tool-jjw2fst0.js → aisdk-native-gtwhtt0h.js} +11 -11
- package/dist/chunks/{tool-4ka8hhjj.js → aisdk-native-h65t9g6n.js} +5 -5
- package/dist/chunks/{tool-h6vf3j39.js → aisdk-native-h6vf3j39.js} +1 -1
- package/dist/chunks/{tool-h7s7r6s9.js → aisdk-native-h7s7r6s9.js} +2 -2
- package/dist/chunks/{tool-jqsqbmjz.js → aisdk-native-hg1rff0q.js} +43 -43
- package/dist/chunks/{tool-hgz4x7wa.js → aisdk-native-hgz4x7wa.js} +1 -1
- package/dist/chunks/{tool-8f721ffb.js → aisdk-native-hj7nmpjn.js} +4 -4
- package/dist/chunks/{tool-0n5ns49k.js → aisdk-native-hkffa77z.js} +4 -4
- package/dist/chunks/{tool-khmqacep.js → aisdk-native-hq3c8me3.js} +4 -4
- package/dist/chunks/aisdk-native-hqm082jq.js +26 -0
- package/dist/chunks/aisdk-native-htsjadtn.js +513 -0
- package/dist/chunks/{tool-92jqywd0.js → aisdk-native-hzzbqshb.js} +14 -14
- package/dist/chunks/{tool-0nxben1n.js → aisdk-native-j3v1eade.js} +43 -43
- package/dist/chunks/{tool-nncsyyge.js → aisdk-native-jhehqk0m.js} +12 -12
- package/dist/chunks/{tool-3wfexhse.js → aisdk-native-jnacsbzs.js} +13 -13
- package/dist/chunks/{tool-1hz0wgam.js → aisdk-native-jtwanzew.js} +32 -32
- package/dist/chunks/{tool-fkpfeb1d.js → aisdk-native-jwr31e3p.js} +24 -24
- package/dist/chunks/{tool-0qrpzpdx.js → aisdk-native-kbeztzy5.js} +14 -14
- package/dist/chunks/{tool-vb6sw3y2.js → aisdk-native-kd9hdyt0.js} +23 -23
- package/dist/chunks/{tool-nck54nhp.js → aisdk-native-kphtarne.js} +22 -22
- package/dist/chunks/{tool-5kpd3qqk.js → aisdk-native-krwb5j49.js} +5 -5
- package/dist/chunks/{tool-mcgg1rg4.js → aisdk-native-kwb1v3vj.js} +8 -12
- package/dist/chunks/{tool-jcc9efy7.js → aisdk-native-m2qf0jmb.js} +15 -15
- package/dist/chunks/{tool-g6q255vp.js → aisdk-native-m42jgnaw.js} +25 -25
- package/dist/chunks/{tool-m22hh5g2.js → aisdk-native-m6pb96vv.js} +36 -36
- package/dist/chunks/{tool-61xwzbr6.js → aisdk-native-m7mcxe69.js} +35 -35
- package/dist/chunks/{tool-m9w0rfyh.js → aisdk-native-m9w0rfyh.js} +1 -1
- package/dist/chunks/{tool-exasynrg.js → aisdk-native-maajvyg3.js} +3 -3
- package/dist/chunks/{tool-maspj1v3.js → aisdk-native-maspj1v3.js} +1 -1
- package/dist/chunks/{tool-jb4mrxfg.js → aisdk-native-mnezmyq2.js} +17 -17
- package/dist/chunks/{tool-3cdf983x.js → aisdk-native-mq17ps7g.js} +37 -37
- package/dist/chunks/{tool-7myztyss.js → aisdk-native-mrwjgnb4.js} +47 -47
- package/dist/chunks/{tool-f8c51dk5.js → aisdk-native-nghxt8jb.js} +16 -16
- package/dist/chunks/{tool-29eykq4v.js → aisdk-native-nhgczrmr.js} +15 -15
- package/dist/chunks/{tool-sxcaecc0.js → aisdk-native-nma959mg.js} +3 -3
- package/dist/chunks/{tool-12t6z3cz.js → aisdk-native-nnz1d6gs.js} +4 -4
- package/dist/chunks/{tool-5714egxe.js → aisdk-native-nr0qqafd.js} +3 -3
- package/dist/chunks/{tool-c00bz1vb.js → aisdk-native-nrc1b7h0.js} +15 -15
- package/dist/chunks/{tool-xcd5qje4.js → aisdk-native-p14nvcd2.js} +32 -32
- package/dist/chunks/{tool-1b7ejmxt.js → aisdk-native-p2k81g6c.js} +8 -8
- package/dist/chunks/{tool-afrtgck4.js → aisdk-native-ph842b28.js} +4 -4
- package/dist/chunks/{tool-b92e8n45.js → aisdk-native-phy9b8nv.js} +10 -10
- package/dist/chunks/{tool-pjvnvgmy.js → aisdk-native-pjvnvgmy.js} +1 -1
- package/dist/chunks/{tool-pknna89w.js → aisdk-native-pknna89w.js} +1 -1
- package/dist/chunks/{tool-mqqhst8y.js → aisdk-native-pp79t3cy.js} +4 -4
- package/dist/chunks/{tool-kkcq69qv.js → aisdk-native-pt1v18f1.js} +23 -23
- package/dist/chunks/{tool-9rpqzg1a.js → aisdk-native-pt9p70az.js} +17 -17
- package/dist/chunks/{tool-0dy26cax.js → aisdk-native-ptx0qjva.js} +22 -22
- package/dist/chunks/{tool-t3zshges.js → aisdk-native-q3q2eqaw.js} +11 -11
- package/dist/chunks/{tool-47bgsghd.js → aisdk-native-q3xw6r34.js} +3 -3
- package/dist/chunks/{tool-yyptd6zt.js → aisdk-native-q94ykb3t.js} +8 -8
- package/dist/chunks/{tool-prg7pynr.js → aisdk-native-qbwp9c4c.js} +3 -3
- package/dist/chunks/{tool-pr04h4tn.js → aisdk-native-qksfsay4.js} +3 -3
- package/dist/chunks/{tool-6hh8tjw2.js → aisdk-native-qm0v3jhh.js} +7 -7
- package/dist/chunks/{tool-qnc92qwc.js → aisdk-native-qnc92qwc.js} +1 -1
- package/dist/chunks/{tool-jmsw07fh.js → aisdk-native-qqcvef69.js} +6 -6
- package/dist/chunks/{tool-qsdy395h.js → aisdk-native-qsdy395h.js} +1 -1
- package/dist/chunks/{tool-vsp43hx6.js → aisdk-native-r03h3vm2.js} +11 -11
- package/dist/chunks/{tool-qmqgtz8f.js → aisdk-native-r2m716tb.js} +9 -9
- package/dist/chunks/{tool-pf9eybg4.js → aisdk-native-r3hz3j8e.js} +20 -20
- package/dist/chunks/{tool-tyjrg911.js → aisdk-native-r9w3djhf.js} +9 -9
- package/dist/chunks/{tool-rdw6cm16.js → aisdk-native-rdw6cm16.js} +1 -1
- package/dist/chunks/{tool-m1z5ek08.js → aisdk-native-re585wd9.js} +8 -8
- package/dist/chunks/{tool-rert0e01.js → aisdk-native-rert0e01.js} +2 -2
- package/dist/chunks/{tool-rj3eygr5.js → aisdk-native-rj3eygr5.js} +2 -2
- package/dist/chunks/{tool-93jnn70z.js → aisdk-native-rmh16r2t.js} +8 -8
- package/dist/chunks/{tool-sgs6tqcg.js → aisdk-native-rmt63kh8.js} +18 -18
- package/dist/chunks/{tool-dvr9mxdx.js → aisdk-native-rszj9r21.js} +8 -8
- package/dist/chunks/{tool-qdafbg7b.js → aisdk-native-rz6m8xsg.js} +81 -81
- package/dist/chunks/{tool-en4jjy2t.js → aisdk-native-s1ba9g1h.js} +25 -25
- package/dist/chunks/{tool-t550f9t1.js → aisdk-native-s8d7rejh.js} +4 -4
- package/dist/chunks/{tool-sa8ekw3f.js → aisdk-native-sa8ekw3f.js} +2 -2
- package/dist/chunks/{tool-9z41w441.js → aisdk-native-scg1e0re.js} +9 -9
- package/dist/chunks/{tool-t27cpqqf.js → aisdk-native-sqtpzcye.js} +14 -14
- package/dist/chunks/{tool-syv4x271.js → aisdk-native-syv4x271.js} +1 -1
- package/dist/chunks/{tool-h28ky92f.js → aisdk-native-t681h3sd.js} +14 -14
- package/dist/chunks/{tool-tazgh4e4.js → aisdk-native-tazgh4e4.js} +1 -1
- package/dist/chunks/{tool-tcezcvh9.js → aisdk-native-tcezcvh9.js} +1 -1
- package/dist/chunks/{tool-tdstcens.js → aisdk-native-tdstcens.js} +1 -1
- package/dist/chunks/{tool-tm0kqsz3.js → aisdk-native-tm0kqsz3.js} +1 -1
- package/dist/chunks/{tool-tyytaxap.js → aisdk-native-tyytaxap.js} +1 -1
- package/dist/chunks/{tool-e8ajjxsc.js → aisdk-native-tzv7x8xt.js} +28 -28
- package/dist/chunks/{tool-6g7e4dd5.js → aisdk-native-v0es1rhs.js} +7 -7
- package/dist/chunks/{tool-gg52rjyc.js → aisdk-native-v3eeyfzh.js} +30 -30
- package/dist/chunks/{tool-v7p4zvkq.js → aisdk-native-v7p4zvkq.js} +2 -2
- package/dist/chunks/{tool-espax8zg.js → aisdk-native-v7z2bvyd.js} +4 -4
- package/dist/chunks/{tool-jpakg8mx.js → aisdk-native-vb0gwjbw.js} +15 -14
- package/dist/chunks/{tool-rxva3spn.js → aisdk-native-vdg1ww06.js} +15 -15
- package/dist/chunks/{tool-veqvce7d.js → aisdk-native-veqvce7d.js} +1 -1
- package/dist/chunks/{tool-09qqh49h.js → aisdk-native-vex79ryr.js} +28 -28
- package/dist/chunks/{tool-1gjkdexd.js → aisdk-native-vrn7tf8n.js} +13 -13
- package/dist/chunks/{tool-eh6ej367.js → aisdk-native-vrzt526f.js} +5 -5
- package/dist/chunks/{tool-vq6g8cn6.js → aisdk-native-vw2nzy3g.js} +15 -15
- package/dist/chunks/{tool-7b2ys08c.js → aisdk-native-vy5ncaap.js} +5 -5
- package/dist/chunks/{tool-vzs5sf6e.js → aisdk-native-vzs5sf6e.js} +1 -1
- package/dist/chunks/{tool-4704tty5.js → aisdk-native-w1ec883z.js} +2 -2
- package/dist/chunks/{tool-84txncab.js → aisdk-native-w1eejvng.js} +5 -5
- package/dist/chunks/{tool-6yz0wx8n.js → aisdk-native-w39jehkq.js} +5 -5
- package/dist/chunks/{tool-w3wsvvr9.js → aisdk-native-w3wsvvr9.js} +1 -1
- package/dist/chunks/{tool-gpvphjq8.js → aisdk-native-w426nh98.js} +7 -7
- package/dist/chunks/{tool-kwh0g9yr.js → aisdk-native-w4ca3e8f.js} +6 -6
- package/dist/chunks/{tool-fwa0h3zy.js → aisdk-native-w60hm8mp.js} +37 -37
- package/dist/chunks/{tool-t0stdxg1.js → aisdk-native-wa4pnch6.js} +18 -18
- package/dist/chunks/{tool-wd87259q.js → aisdk-native-wd87259q.js} +1 -1
- package/dist/chunks/{tool-4k48dskj.js → aisdk-native-wgfck8n7.js} +32 -32
- package/dist/chunks/{tool-3pytycam.js → aisdk-native-wt9cbver.js} +6 -6
- package/dist/chunks/{tool-a6j5r86g.js → aisdk-native-wy7a91sf.js} +5 -5
- package/dist/chunks/{tool-n721bpxh.js → aisdk-native-wzv7bxem.js} +39 -39
- package/dist/chunks/{tool-x661k3y3.js → aisdk-native-x661k3y3.js} +1 -1
- package/dist/chunks/{tool-d0ge418f.js → aisdk-native-x7qq1cjx.js} +5 -5
- package/dist/chunks/{tool-k7b35hhb.js → aisdk-native-x82s4bnv.js} +5 -5
- package/dist/chunks/{tool-4fjma7m8.js → aisdk-native-xkdmv6m9.js} +18 -18
- package/dist/chunks/{tool-twvynhvt.js → aisdk-native-xnjwc1jk.js} +9 -9
- package/dist/chunks/{tool-z44d18ne.js → aisdk-native-xnkk1qxn.js} +11 -11
- package/dist/chunks/{tool-ehyjreag.js → aisdk-native-xtcvfnhf.js} +23 -23
- package/dist/chunks/{tool-ktw141zw.js → aisdk-native-xx7asykb.js} +9 -9
- package/dist/chunks/{tool-he27pt63.js → aisdk-native-xybefm6f.js} +1 -1
- package/dist/chunks/{tool-y1fvbwt7.js → aisdk-native-y1fvbwt7.js} +1 -1
- package/dist/chunks/aisdk-native-y1y5pc1g.js +253 -0
- package/dist/chunks/{tool-btsvt50k.js → aisdk-native-yvf1mb83.js} +8 -8
- package/dist/chunks/{tool-z0bkrqjs.js → aisdk-native-z0bkrqjs.js} +1 -1
- package/dist/chunks/{tool-bhwamkf8.js → aisdk-native-z9xv2jj0.js} +27 -27
- package/dist/chunks/{tool-n9axg7zh.js → aisdk-native-zc4xsnwf.js} +4 -4
- package/dist/chunks/{tool-8022akpp.js → aisdk-native-zmnrvc3m.js} +33 -33
- package/dist/chunks/{tool-zr2ceqn5.js → aisdk-native-zr2ceqn5.js} +1 -1
- package/dist/chunks/{tool-7grdpmn4.js → aisdk-native-zt1js7wt.js} +32 -32
- package/dist/chunks/{tool-vw9027f9.js → aisdk-native-zw7zwf81.js} +43 -43
- package/dist/chunks/{tool-2z796rds.js → aisdk-native-zwxp6kbe.js} +20 -20
- package/dist/chunks/{tool-zxq2ej10.js → aisdk-native-zxq2ej10.js} +1 -1
- package/dist/chunks/{tool-vgsjm2js.js → aisdk-native-zy12j2tq.js} +15 -15
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- 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 +118 -120
- package/dist/config/plugin/command.js +207 -209
- package/dist/config/plugin/compaction.js +154 -156
- package/dist/config/plugin/compatibility.js +134 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -119
- package/dist/config/plugin/image.js +116 -118
- package/dist/config/plugin/instruction.js +116 -118
- package/dist/config/plugin/location-watcher.js +116 -118
- package/dist/config/plugin/mcp.js +125 -127
- package/dist/config/plugin/policy.js +117 -119
- package/dist/config/plugin/provider.js +116 -118
- package/dist/config/plugin/reference.js +118 -120
- package/dist/config/plugin/shell.js +116 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -139
- package/dist/config/plugin/snapshot.js +116 -118
- package/dist/config/plugin/source.js +119 -121
- package/dist/config/plugin/tool-output.js +117 -119
- package/dist/config/plugin/websearch.js +115 -117
- package/dist/config/plugin/worktree.js +118 -120
- package/dist/config/variable.js +1 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- 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 +366 -368
- 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 +214 -216
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- 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 +357 -359
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +85 -85
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +354 -356
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +129 -129
- 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.js +104 -104
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- 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 +3 -3
- package/dist/plugin/host.js +211 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -119
- 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 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -114
- 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 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -127
- package/dist/plugin/provider/local.js +122 -124
- 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 -127
- package/dist/plugin/provider/openai.js +116 -118
- package/dist/plugin/provider/opencode.js +99 -99
- 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 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +167 -169
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -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 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -224
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +103 -103
- 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 +91 -91
- 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 +99 -99
- 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 +131 -131
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -217
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- 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 +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 +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -226
- 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 +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -166
- package/dist/session/shell.js +130 -132
- 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 +205 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +213 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -134
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- 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 +122 -122
- 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 +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -210
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +212 -214
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- 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/config/variable.d.ts +1 -43
- 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 +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +23 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- 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/websearch.js +86 -86
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/tool-q0xm7vwc.js +0 -25
- package/dist/chunks/tool-qc068m1q.js +0 -18
- package/dist/chunks/tool-qtqva6ax.js +0 -253
- package/dist/chunks/tool-vn4qg1y1.js +0 -513
- package/dist/chunks/tool-y7mkpdv1.js +0 -26
- /package/dist/chunks/{tool-0qkdqm5v.js → aisdk-native-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{tool-0zkw76rk.js → aisdk-native-0zkw76rk.js} +0 -0
- /package/dist/chunks/{tool-17cy0kzp.js → aisdk-native-17cy0kzp.js} +0 -0
- /package/dist/chunks/{tool-1cnp2v09.js → aisdk-native-1cnp2v09.js} +0 -0
- /package/dist/chunks/{tool-1kg9ymc8.js → aisdk-native-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{tool-24dcb14g.js → aisdk-native-24dcb14g.js} +0 -0
- /package/dist/chunks/{tool-2710q6r3.js → aisdk-native-2710q6r3.js} +0 -0
- /package/dist/chunks/{tool-2axfhc9x.js → aisdk-native-2axfhc9x.js} +0 -0
- /package/dist/chunks/{tool-2bv980vf.js → aisdk-native-2bv980vf.js} +0 -0
- /package/dist/chunks/{tool-2c3vjs8z.js → aisdk-native-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{tool-359p4xyc.js → aisdk-native-359p4xyc.js} +0 -0
- /package/dist/chunks/{tool-3asan66x.js → aisdk-native-3asan66x.js} +0 -0
- /package/dist/chunks/{tool-3t0ybcrp.js → aisdk-native-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{tool-3v8g72cx.js → aisdk-native-3v8g72cx.js} +0 -0
- /package/dist/chunks/{tool-3wcehsnq.js → aisdk-native-3wcehsnq.js} +0 -0
- /package/dist/chunks/{tool-43n2bw4t.js → aisdk-native-43n2bw4t.js} +0 -0
- /package/dist/chunks/{tool-4knz6hnm.js → aisdk-native-4knz6hnm.js} +0 -0
- /package/dist/chunks/{tool-4vcrnpx2.js → aisdk-native-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{tool-4y7fprxs.js → aisdk-native-4y7fprxs.js} +0 -0
- /package/dist/chunks/{tool-53557ph1.js → aisdk-native-53557ph1.js} +0 -0
- /package/dist/chunks/{tool-550bvhaj.js → aisdk-native-550bvhaj.js} +0 -0
- /package/dist/chunks/{tool-5qd3pb7m.js → aisdk-native-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{tool-6prwharc.js → aisdk-native-6prwharc.js} +0 -0
- /package/dist/chunks/{tool-6q2bdcd1.js → aisdk-native-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{tool-7akdwqpd.js → aisdk-native-7akdwqpd.js} +0 -0
- /package/dist/chunks/{tool-7m9af43g.js → aisdk-native-7m9af43g.js} +0 -0
- /package/dist/chunks/{tool-822emrt2.js → aisdk-native-822emrt2.js} +0 -0
- /package/dist/chunks/{tool-84wd9syh.js → aisdk-native-84wd9syh.js} +0 -0
- /package/dist/chunks/{tool-88xbtdfr.js → aisdk-native-88xbtdfr.js} +0 -0
- /package/dist/chunks/{tool-8n3pysct.js → aisdk-native-8n3pysct.js} +0 -0
- /package/dist/chunks/{tool-8wj87zfr.js → aisdk-native-8wj87zfr.js} +0 -0
- /package/dist/chunks/{tool-9a4afbnw.js → aisdk-native-9a4afbnw.js} +0 -0
- /package/dist/chunks/{tool-9rqn6x4v.js → aisdk-native-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-a6k6eb26.js → aisdk-native-a6k6eb26.js} +0 -0
- /package/dist/chunks/{tool-af5trqkr.js → aisdk-native-af5trqkr.js} +0 -0
- /package/dist/chunks/{tool-afrmfg78.js → aisdk-native-afrmfg78.js} +0 -0
- /package/dist/chunks/{tool-aqzs7mqg.js → aisdk-native-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{tool-atq7p7m5.js → aisdk-native-atq7p7m5.js} +0 -0
- /package/dist/chunks/{tool-bkyjaxrp.js → aisdk-native-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{tool-bmr6ed5q.js → aisdk-native-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{tool-cf4snx6d.js → aisdk-native-cf4snx6d.js} +0 -0
- /package/dist/chunks/{tool-cvy3z8tj.js → aisdk-native-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{tool-d9fn303g.js → aisdk-native-d9fn303g.js} +0 -0
- /package/dist/chunks/{tool-d9jj8t3e.js → aisdk-native-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{tool-dajrwvna.js → aisdk-native-dajrwvna.js} +0 -0
- /package/dist/chunks/{tool-dap0rakb.js → aisdk-native-dap0rakb.js} +0 -0
- /package/dist/chunks/{tool-df08tz66.js → aisdk-native-df08tz66.js} +0 -0
- /package/dist/chunks/{tool-dy18nga0.js → aisdk-native-dy18nga0.js} +0 -0
- /package/dist/chunks/{tool-e5kj55wp.js → aisdk-native-e5kj55wp.js} +0 -0
- /package/dist/chunks/{tool-e73j6tqm.js → aisdk-native-e73j6tqm.js} +0 -0
- /package/dist/chunks/{tool-ec1grn59.js → aisdk-native-ec1grn59.js} +0 -0
- /package/dist/chunks/{tool-eh3zwz77.js → aisdk-native-eh3zwz77.js} +0 -0
- /package/dist/chunks/{tool-emrn6kk6.js → aisdk-native-emrn6kk6.js} +0 -0
- /package/dist/chunks/{tool-f0mxakyp.js → aisdk-native-f0mxakyp.js} +0 -0
- /package/dist/chunks/{tool-f6n9ztr4.js → aisdk-native-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{tool-faypxj3z.js → aisdk-native-faypxj3z.js} +0 -0
- /package/dist/chunks/{tool-fd410y7t.js → aisdk-native-fd410y7t.js} +0 -0
- /package/dist/chunks/{tool-g4wezp1m.js → aisdk-native-g4wezp1m.js} +0 -0
- /package/dist/chunks/{tool-g86h250q.js → aisdk-native-g86h250q.js} +0 -0
- /package/dist/chunks/{tool-gebd4c9n.js → aisdk-native-gebd4c9n.js} +0 -0
- /package/dist/chunks/{tool-gftt206x.js → aisdk-native-gftt206x.js} +0 -0
- /package/dist/chunks/{tool-hcxmzztb.js → aisdk-native-hcxmzztb.js} +0 -0
- /package/dist/chunks/{tool-hk9envan.js → aisdk-native-hk9envan.js} +0 -0
- /package/dist/chunks/{tool-j2ntwpah.js → aisdk-native-j2ntwpah.js} +0 -0
- /package/dist/chunks/{tool-j5zkgpj8.js → aisdk-native-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{tool-jjkms2e6.js → aisdk-native-jjkms2e6.js} +0 -0
- /package/dist/chunks/{tool-jr7sbwjy.js → aisdk-native-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{tool-jwfs4k6c.js → aisdk-native-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{tool-jze0r7bz.js → aisdk-native-jze0r7bz.js} +0 -0
- /package/dist/chunks/{tool-jzg6c2d5.js → aisdk-native-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{tool-m18g726c.js → aisdk-native-m18g726c.js} +0 -0
- /package/dist/chunks/{tool-mp448xyj.js → aisdk-native-mp448xyj.js} +0 -0
- /package/dist/chunks/{tool-msx8hqn2.js → aisdk-native-msx8hqn2.js} +0 -0
- /package/dist/chunks/{tool-n05xt0ee.js → aisdk-native-n05xt0ee.js} +0 -0
- /package/dist/chunks/{tool-n3j8tn72.js → aisdk-native-n3j8tn72.js} +0 -0
- /package/dist/chunks/{tool-njntx4h6.js → aisdk-native-njntx4h6.js} +0 -0
- /package/dist/chunks/{tool-pkyv6v7h.js → aisdk-native-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{tool-pyv0edze.js → aisdk-native-pyv0edze.js} +0 -0
- /package/dist/chunks/{tool-q3sfg36h.js → aisdk-native-q3sfg36h.js} +0 -0
- /package/dist/chunks/{tool-q74kybfr.js → aisdk-native-q74kybfr.js} +0 -0
- /package/dist/chunks/{tool-qaymkmh1.js → aisdk-native-qaymkmh1.js} +0 -0
- /package/dist/chunks/{tool-qb87gjwd.js → aisdk-native-qb87gjwd.js} +0 -0
- /package/dist/chunks/{tool-qfa1cgps.js → aisdk-native-qfa1cgps.js} +0 -0
- /package/dist/chunks/{tool-qg3g05ea.js → aisdk-native-qg3g05ea.js} +0 -0
- /package/dist/chunks/{tool-qrg20bc0.js → aisdk-native-qrg20bc0.js} +0 -0
- /package/dist/chunks/{tool-rcb2kzg1.js → aisdk-native-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{tool-sdp7kfr6.js → aisdk-native-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{tool-ssg3fenm.js → aisdk-native-ssg3fenm.js} +0 -0
- /package/dist/chunks/{tool-ve7vex1e.js → aisdk-native-ve7vex1e.js} +0 -0
- /package/dist/chunks/{tool-w803qqfp.js → aisdk-native-w803qqfp.js} +0 -0
- /package/dist/chunks/{tool-wc3fc9cn.js → aisdk-native-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{tool-wer8tq1h.js → aisdk-native-wer8tq1h.js} +0 -0
- /package/dist/chunks/{tool-wjj7prxr.js → aisdk-native-wjj7prxr.js} +0 -0
- /package/dist/chunks/{tool-wtztk69x.js → aisdk-native-wtztk69x.js} +0 -0
- /package/dist/chunks/{tool-x0ckcb58.js → aisdk-native-x0ckcb58.js} +0 -0
- /package/dist/chunks/{tool-x61499pn.js → aisdk-native-x61499pn.js} +0 -0
- /package/dist/chunks/{tool-y44na4kk.js → aisdk-native-y44na4kk.js} +0 -0
- /package/dist/chunks/{tool-y8f7s663.js → aisdk-native-y8f7s663.js} +0 -0
- /package/dist/chunks/{tool-ygaqb7jw.js → aisdk-native-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{tool-ym463w8f.js → aisdk-native-ym463w8f.js} +0 -0
- /package/dist/chunks/{tool-z5v4ffb3.js → aisdk-native-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{tool-z9919s4g.js → aisdk-native-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service73,
|
|
4
|
+
node77
|
|
5
|
+
} from "./aisdk-native-2bptt429.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID8,
|
|
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
|
+
Service67,
|
|
19
|
+
node71
|
|
20
|
+
} from "./aisdk-native-079mcvfn.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service54,
|
|
23
|
+
node57
|
|
24
|
+
} from "./aisdk-native-2dzcqkzj.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
26
|
+
ID6,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service62,
|
|
30
|
+
node66,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./aisdk-native-mq17ps7g.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./aisdk-native-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: () => Service53,
|
|
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: () => layer25,
|
|
52
|
+
node: () => node56,
|
|
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: ID8,
|
|
63
|
+
modelID: ID6,
|
|
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: ID8,
|
|
73
|
+
modelID: ID6,
|
|
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: ID8,
|
|
84
|
+
modelID: ID6,
|
|
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: ID8,
|
|
95
|
+
modelID: ID6,
|
|
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: ID8,
|
|
107
|
+
modelID: ID6,
|
|
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: ID8,
|
|
117
|
+
modelID: ID6,
|
|
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 Service53 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -236,7 +236,7 @@ var nativeCredentialSettings = (model, specifier, credential) => {
|
|
|
236
236
|
return tokenSettings(specifier, credential.access);
|
|
237
237
|
if (specifier.startsWith("@opencode/ai/providers/amazon-bedrock"))
|
|
238
238
|
return { auth: "sigv4" };
|
|
239
|
-
if (model.providerID ===
|
|
239
|
+
if (model.providerID === ID8.azure)
|
|
240
240
|
return tokenSettings(specifier, "azure-cli");
|
|
241
241
|
return {};
|
|
242
242
|
};
|
|
@@ -271,12 +271,12 @@ var causeMessage = (cause) => {
|
|
|
271
271
|
};
|
|
272
272
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
273
273
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
274
|
-
var
|
|
275
|
-
const providers = yield*
|
|
276
|
-
const models = yield*
|
|
277
|
-
const integrations = yield*
|
|
274
|
+
var layer25 = Layer.effect(Service53, Effect.gen(function* () {
|
|
275
|
+
const providers = yield* Service67;
|
|
276
|
+
const models = yield* Service62;
|
|
277
|
+
const integrations = yield* Service73;
|
|
278
278
|
const npm = yield* Npm.Service;
|
|
279
|
-
const aisdk = yield*
|
|
279
|
+
const aisdk = yield* Service54;
|
|
280
280
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
281
281
|
const provider = yield* providers.get(selected.providerID);
|
|
282
282
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
@@ -306,7 +306,7 @@ var layer22 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
306
306
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
|
-
return
|
|
309
|
+
return Service53.of({
|
|
310
310
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
311
311
|
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)))));
|
|
312
312
|
if (!selected)
|
|
@@ -323,10 +323,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
323
323
|
const name = packageName2(packageName);
|
|
324
324
|
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;
|
|
325
325
|
}
|
|
326
|
-
var
|
|
327
|
-
service:
|
|
328
|
-
layer:
|
|
329
|
-
deps: [
|
|
326
|
+
var node56 = makeLocationNode({
|
|
327
|
+
service: Service53,
|
|
328
|
+
layer: layer25,
|
|
329
|
+
deps: [node71, node66, node77, Npm.node, node57]
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
332
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service53, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer25, node56, exports_model_resolver };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service84
|
|
3
|
+
} from "./aisdk-native-b7enwak2.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service42,
|
|
6
|
+
Event8
|
|
7
|
+
} from "./aisdk-native-kphtarne.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin37,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin37 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const bus = yield*
|
|
24
|
-
const wellknown = yield*
|
|
23
|
+
const bus = yield* Service84;
|
|
24
|
+
const wellknown = yield* Service42;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin33 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event8.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin37, exports_plugin };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./aisdk-native-awfc3sk5.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service40
|
|
9
|
+
} from "./aisdk-native-a3ka8327.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalSource2,
|
|
12
12
|
GitSource2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-3k0p0jfb.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-native-qsdy395h.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/reference.ts
|
|
22
22
|
var exports_reference = {};
|
|
23
23
|
__export(exports_reference, {
|
|
24
24
|
ConfigReferencePlugin: () => exports_reference,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin31
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Effect } from "effect";
|
|
30
30
|
import { Global } from "@opencode/util/global";
|
|
31
|
-
var
|
|
31
|
+
var Plugin31 = define({
|
|
32
32
|
id: "opencode.config.reference",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
35
|
-
const location = yield*
|
|
34
|
+
const config = yield* Service40;
|
|
35
|
+
const location = yield* Service81;
|
|
36
36
|
const global = yield* Global.Service;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
|
|
38
38
|
yield* ctx.reference.transform((editor) => {
|
|
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
|
|
|
72
72
|
return path.isAbsolute(value) ? value : path.resolve(directory, value);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { Plugin31, exports_reference };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service83,
|
|
9
|
+
node87
|
|
10
|
+
} from "./aisdk-native-bqxzme6r.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service81,
|
|
13
|
+
node85
|
|
14
|
+
} from "./aisdk-native-awfc3sk5.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-native-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID7,
|
|
27
|
+
Service: () => Service64,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node68,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID7 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service64 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service81;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID7.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -136,25 +136,25 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
136
136
|
for (const [file, snapshot] of input.files) {
|
|
137
137
|
const absolute = path.resolve(worktree, file);
|
|
138
138
|
if (!FSUtil.contains(worktree, absolute))
|
|
139
|
-
return yield* new
|
|
139
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
140
140
|
files.set(file, TreeID2.make(snapshot));
|
|
141
141
|
}
|
|
142
142
|
return files;
|
|
143
143
|
});
|
|
144
144
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
145
145
|
if (!enabled())
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
147
147
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
148
148
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
149
149
|
});
|
|
150
|
-
return
|
|
150
|
+
return Service64.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
151
151
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
152
|
-
var
|
|
153
|
-
service:
|
|
152
|
+
var node68 = makeLocationNode({
|
|
153
|
+
service: Service64,
|
|
154
154
|
layer,
|
|
155
|
-
deps: [FSUtil.node,
|
|
155
|
+
deps: [FSUtil.node, node87, Global.node, node85]
|
|
156
156
|
});
|
|
157
|
-
var noopLayer3 = Layer.succeed(
|
|
157
|
+
var noopLayer3 = Layer.succeed(Service64, Service64.of({
|
|
158
158
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
159
159
|
reload: () => Effect.void,
|
|
160
160
|
capture: () => Effect.undefined,
|
|
@@ -163,13 +163,13 @@ var noopLayer3 = Layer.succeed(Service52, Service52.of({
|
|
|
163
163
|
restore: () => Effect.void
|
|
164
164
|
}));
|
|
165
165
|
function failure(operation, cause) {
|
|
166
|
-
if (cause instanceof
|
|
166
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
167
167
|
return cause;
|
|
168
|
-
return new
|
|
168
|
+
return new Error5({
|
|
169
169
|
operation,
|
|
170
170
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
171
171
|
cause
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export {
|
|
175
|
+
export { ID7, Error5, Service64, node68, noopLayer3, exports_snapshot2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./aisdk-native-awfc3sk5.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service17
|
|
9
|
+
} from "./aisdk-native-851gv83v.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service9
|
|
12
|
+
} from "./aisdk-native-8g7rtrkc.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-hgz4x7wa.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service6
|
|
27
|
+
} from "./aisdk-native-zy12j2tq.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input7,
|
|
36
|
+
Plugin: () => Plugin25,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
38
|
+
name: () => name7,
|
|
39
39
|
toModelContent: () => toModelContent4
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name7 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input7 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin25 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service6;
|
|
62
|
+
const access = yield* Service17;
|
|
63
|
+
const sessionInstructions = yield* Service9;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service81;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name7,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input7,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -182,4 +182,4 @@ var toModelContent4 = (path, offset, output) => {
|
|
|
182
182
|
`);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
export {
|
|
185
|
+
export { name7, Input7, Plugin25, toModelContent4, exports_read };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service75
|
|
3
|
+
} from "./aisdk-native-398b0mpv.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service68
|
|
6
|
+
} from "./aisdk-native-wzv7bxem.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input13,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin50,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name14,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name14 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input13 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service75;
|
|
57
|
+
const permission = yield* Service68;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name14,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input13,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { name14, description6, Input13, Output9, CancelledError2, toModelContent7, Plugin50, exports_question };
|