@opencode/core 0.0.0-beta-19398 → 0.0.0-beta-19422
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 +73 -73
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +5 -5
- package/dist/bus.js +71 -71
- package/dist/catalog.js +81 -81
- package/dist/chunks/{location-mutation-m5erp1k4.js → pty-074gn8c1.js} +2 -2
- package/dist/chunks/{location-mutation-zjccgr9f.js → pty-0996nyz8.js} +9 -9
- package/dist/chunks/{location-mutation-t5dz2dvd.js → pty-09ms4exh.js} +26 -26
- package/dist/chunks/{location-mutation-cyznyexp.js → pty-0a1gtahz.js} +38 -38
- package/dist/chunks/{location-mutation-m46exch3.js → pty-0bps82y7.js} +6 -6
- package/dist/chunks/{location-mutation-hrf55331.js → pty-0cgfpp4r.js} +10 -10
- package/dist/chunks/{location-mutation-p0kdf59p.js → pty-0dydqtd7.js} +22 -22
- package/dist/chunks/{location-mutation-g63tzfz2.js → pty-0egdkte1.js} +84 -84
- package/dist/chunks/{location-mutation-rd25f8yh.js → pty-0gvt7rgj.js} +8 -8
- package/dist/chunks/{location-mutation-ghv39z3q.js → pty-0jqc4bxs.js} +6 -6
- package/dist/chunks/{location-mutation-ey5r276z.js → pty-0mak23yj.js} +24 -24
- package/dist/chunks/{location-mutation-0paq2nw3.js → pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-mutation-0q0f95c6.js → pty-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-mutation-1zk7d5w4.js → pty-0q0rgwg5.js} +13 -13
- package/dist/chunks/{location-mutation-gkm5mcy5.js → pty-0s7p0jdy.js} +32 -32
- package/dist/chunks/{location-mutation-ps2ghfx6.js → pty-0sw24r53.js} +16 -16
- package/dist/chunks/{location-mutation-q9hbvwne.js → pty-0zs7y9px.js} +25 -25
- package/dist/chunks/{location-mutation-fvscxbve.js → pty-10a65abh.js} +4 -4
- package/dist/chunks/{location-mutation-za4kfshb.js → pty-118zhgj2.js} +41 -41
- package/dist/chunks/{location-mutation-1acjjqhc.js → pty-1acjjqhc.js} +1 -1
- package/dist/chunks/{location-mutation-mhkvc446.js → pty-1bbkgx8g.js} +3 -3
- package/dist/chunks/{location-mutation-vnaah6bw.js → pty-1cept2jt.js} +35 -35
- package/dist/chunks/{location-mutation-1dazxqgg.js → pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-mutation-1eyaby9q.js → pty-1eyaby9q.js} +2 -2
- package/dist/chunks/{location-mutation-tpw3wqby.js → pty-1hptgsqz.js} +8 -8
- package/dist/chunks/{location-mutation-p4nzc36k.js → pty-1hvj6sc5.js} +22 -22
- package/dist/chunks/{location-mutation-8vv3zxpc.js → pty-1j4evvde.js} +20 -20
- package/dist/chunks/{location-mutation-rdg9mn3e.js → pty-1p5bxmfk.js} +17 -17
- package/dist/chunks/{location-mutation-52r26j8c.js → pty-1pqaee8n.js} +14 -14
- package/dist/chunks/{location-mutation-3v97kze0.js → pty-1syfdjz1.js} +36 -36
- package/dist/chunks/{location-mutation-gyqj5dqq.js → pty-1vccm05t.js} +34 -34
- package/dist/chunks/{location-mutation-trqnt801.js → pty-1yd1r7d9.js} +9 -9
- package/dist/chunks/{location-mutation-mfqp6xfm.js → pty-1ygqh575.js} +6 -6
- package/dist/chunks/{location-mutation-21r38tys.js → pty-21r38tys.js} +1 -1
- package/dist/chunks/{location-mutation-1f01g00k.js → pty-21rtx38p.js} +37 -37
- package/dist/chunks/{location-mutation-6h73sxmp.js → pty-2402vzrj.js} +5 -5
- package/dist/chunks/{location-mutation-326n6wzt.js → pty-24p38q2n.js} +4 -4
- package/dist/chunks/{location-mutation-26xsg9sg.js → pty-25xantg0.js} +21 -21
- package/dist/chunks/{location-mutation-2a5m3afh.js → pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-mutation-7wdjtyr9.js → pty-2f04pwep.js} +3 -3
- package/dist/chunks/{location-mutation-fxqygnfa.js → pty-2tfmgkzg.js} +4 -4
- package/dist/chunks/{location-mutation-8y31xnqm.js → pty-2vgzs72b.js} +5 -5
- package/dist/chunks/{location-mutation-y871meh9.js → pty-36mqef8b.js} +14 -14
- package/dist/chunks/{location-mutation-zm48185g.js → pty-3806s53b.js} +34 -34
- package/dist/chunks/{location-mutation-1sm8r3sx.js → pty-3ez202fs.js} +86 -86
- package/dist/chunks/{location-mutation-3fc6dm20.js → pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-mutation-3hepkmqq.js → pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-mutation-bzx4zv3s.js → pty-3re90bff.js} +23 -23
- package/dist/chunks/{location-mutation-3smtnn6g.js → pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-mutation-0mbwctnz.js → pty-3t5j4r89.js} +3 -3
- package/dist/chunks/{location-mutation-3tvqynh2.js → pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-mutation-sd5675wn.js → pty-3yjn18yr.js} +40 -47
- package/dist/chunks/{location-mutation-s0hza5ac.js → pty-3ythc6yv.js} +4 -4
- package/dist/chunks/{location-mutation-cnymy2f0.js → pty-40t0jw83.js} +165 -165
- package/dist/chunks/{location-mutation-k52252t7.js → pty-46x4mgr1.js} +4 -4
- package/dist/chunks/{location-mutation-bs9q8pck.js → pty-47rhjnbj.js} +8 -8
- package/dist/chunks/{location-mutation-aggs0gse.js → pty-4bx7125q.js} +22 -22
- package/dist/chunks/{location-mutation-wtvz3wcx.js → pty-4g19d5n9.js} +7 -7
- package/dist/chunks/{location-mutation-27hkvsk8.js → pty-4hs31730.js} +7 -7
- package/dist/chunks/{location-mutation-m2s78sav.js → pty-4kwjx591.js} +15 -15
- package/dist/chunks/{location-mutation-er8gb86w.js → pty-4p6varyr.js} +26 -26
- package/dist/chunks/{location-mutation-qx1qep3t.js → pty-4vfmzcq2.js} +4 -4
- package/dist/chunks/{location-mutation-x09zjz10.js → pty-4x28bm1w.js} +17 -17
- package/dist/chunks/{location-mutation-3ft82nyq.js → pty-520ygn4x.js} +4 -4
- package/dist/chunks/{location-mutation-y6bqj6hh.js → pty-5bdfnctw.js} +3 -3
- package/dist/chunks/{location-mutation-a1bz86dw.js → pty-5c4hm403.js} +3 -3
- package/dist/chunks/{location-mutation-5daktx2q.js → pty-5daktx2q.js} +1 -1
- package/dist/chunks/{location-mutation-mmxv3gw3.js → pty-5en82wpx.js} +12 -12
- package/dist/chunks/{location-mutation-5t3nmthw.js → pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-mutation-nz1x447f.js → pty-5wtnxghh.js} +6 -6
- package/dist/chunks/{location-mutation-p1n7jv0z.js → pty-5xtr5t3c.js} +9 -9
- package/dist/chunks/{location-mutation-669tq793.js → pty-669tq793.js} +1 -1
- package/dist/chunks/{location-mutation-hzee8rjr.js → pty-697x4nhd.js} +9 -9
- package/dist/chunks/{location-mutation-cw3cq2se.js → pty-69az8s64.js} +17 -17
- package/dist/chunks/{location-mutation-hds58mhb.js → pty-6f93rc7r.js} +2 -2
- package/dist/chunks/{location-mutation-dgemy49w.js → pty-6kpj1tx7.js} +20 -20
- package/dist/chunks/{location-mutation-6msgmcgs.js → pty-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-mutation-b2jx7zxs.js → pty-710w2ech.js} +1 -1
- package/dist/chunks/{location-mutation-4jhgwcfy.js → pty-71amxv98.js} +37 -37
- package/dist/chunks/{location-mutation-71q4at8m.js → pty-71q4at8m.js} +1 -1
- package/dist/chunks/{location-mutation-19hac7dy.js → pty-74b9qssb.js} +23 -23
- package/dist/chunks/{location-mutation-t61n1tw8.js → pty-7axzvjgy.js} +19 -19
- package/dist/chunks/{location-mutation-7bmhse3q.js → pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-mutation-fcrkznn8.js → pty-7dqw4kz8.js} +5 -5
- package/dist/chunks/{location-mutation-w7fytw90.js → pty-7j3yyt51.js} +19 -19
- package/dist/chunks/{location-mutation-z1z2vb6z.js → pty-7xwree33.js} +11 -11
- package/dist/chunks/{location-mutation-a2ew8a62.js → pty-806j49yq.js} +4 -4
- package/dist/chunks/{location-mutation-kvgx6hxn.js → pty-80kf8gxa.js} +18 -18
- package/dist/chunks/{location-mutation-rsym84ch.js → pty-81swgkk7.js} +7 -7
- package/dist/chunks/{location-mutation-981wd75n.js → pty-89av3hdm.js} +23 -23
- package/dist/chunks/{location-mutation-51qfk2sn.js → pty-8adgct9d.js} +5 -5
- package/dist/chunks/{location-mutation-m75h0q20.js → pty-8c67r9ne.js} +18 -18
- package/dist/chunks/{location-mutation-8d7r5vzw.js → pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-mutation-8hmgw1ak.js → pty-8hmgw1ak.js} +1 -1
- package/dist/chunks/{location-mutation-ehntj2pc.js → pty-8n66hw90.js} +39 -39
- package/dist/chunks/{location-mutation-8ga6zesv.js → pty-8n7wwas9.js} +29 -29
- package/dist/chunks/{location-mutation-q1c4k7jk.js → pty-8qk9tw02.js} +1 -1
- package/dist/chunks/{location-mutation-t8wk4avw.js → pty-8xttkpaf.js} +9 -9
- package/dist/chunks/{location-mutation-v271ywhn.js → pty-98hm5tys.js} +53 -53
- package/dist/chunks/{location-mutation-5sz580sy.js → pty-9b10rcng.js} +22 -22
- package/dist/chunks/{location-mutation-jtp7wgq3.js → pty-9qn3qky1.js} +6 -6
- package/dist/chunks/{location-mutation-vhsk3ep2.js → pty-9qzqnsj5.js} +16 -16
- package/dist/chunks/{location-mutation-p1wf2k30.js → pty-a5gt7g2r.js} +9 -9
- package/dist/chunks/{location-mutation-xsdh20fb.js → pty-a9ab9jmj.js} +5 -5
- package/dist/chunks/{location-mutation-aaet6srn.js → pty-aaet6srn.js} +2 -2
- package/dist/chunks/{location-mutation-8k159x2e.js → pty-ayp837g2.js} +24 -24
- package/dist/chunks/{location-mutation-r5rdn9gc.js → pty-b0anzbtp.js} +17 -16
- package/dist/chunks/{location-mutation-b6gygkdw.js → pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-mutation-pjedbq3k.js → pty-bdqrk2vk.js} +4 -4
- package/dist/chunks/{location-mutation-6qxca1fz.js → pty-bkj6dszq.js} +22 -22
- package/dist/chunks/{location-mutation-9b5secnr.js → pty-bmn9pzgf.js} +8 -8
- package/dist/chunks/{location-mutation-rm353m6a.js → pty-c2wghy26.js} +11 -11
- package/dist/chunks/{location-mutation-avcnr8ja.js → pty-c3grgfa4.js} +26 -26
- package/dist/chunks/{location-mutation-whvneb9k.js → pty-c4rpq3bt.js} +3 -3
- package/dist/chunks/{location-mutation-cfyxn8mg.js → pty-cff1m34y.js} +9 -9
- package/dist/chunks/{location-mutation-sedkckjb.js → pty-ckrdk9yx.js} +12 -12
- package/dist/chunks/{location-mutation-5ecgp29h.js → pty-cq2rc4ba.js} +12 -12
- package/dist/chunks/{location-mutation-510m7gjw.js → pty-d1khqved.js} +5 -5
- package/dist/chunks/{location-mutation-ka2k270b.js → pty-dc76j9wz.js} +8 -8
- package/dist/chunks/{location-mutation-ea47fqf8.js → pty-dda9r64d.js} +27 -27
- package/dist/chunks/{location-mutation-zcrspsvn.js → pty-dhmh7aw6.js} +4 -4
- package/dist/chunks/{location-mutation-8p4f9s12.js → pty-dj2t23y0.js} +2 -2
- package/dist/chunks/{location-mutation-844ef7ks.js → pty-dv1qgsyq.js} +8 -8
- package/dist/chunks/{location-mutation-xn33xk03.js → pty-e1vr1ezn.js} +8 -8
- package/dist/chunks/{location-mutation-ydnbdpr3.js → pty-e6shh598.js} +22 -22
- package/dist/chunks/{location-mutation-p44d8wdy.js → pty-ead3g9p8.js} +5 -5
- package/dist/chunks/{location-mutation-02nrjc1r.js → pty-eaj1djv9.js} +4 -4
- package/dist/chunks/{location-mutation-tryp60pv.js → pty-edbbhmy9.js} +4 -4
- package/dist/chunks/{location-mutation-82sjhv5t.js → pty-egz44y69.js} +12 -12
- package/dist/chunks/{location-mutation-nzt9a98p.js → pty-ek89c1t4.js} +15 -15
- package/dist/chunks/{location-mutation-p14yjxpe.js → pty-esam66tc.js} +12 -12
- package/dist/chunks/{location-mutation-01qzhqb7.js → pty-esy06pf9.js} +43 -43
- package/dist/chunks/{location-mutation-etq0c3wd.js → pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-mutation-kqg17zeb.js → pty-evwc8rkj.js} +18 -18
- package/dist/chunks/{location-mutation-r17fvq36.js → pty-f37g46dm.js} +31 -31
- package/dist/chunks/{location-mutation-1nx36s23.js → pty-f40p4esb.js} +25 -25
- package/dist/chunks/pty-f4wpvzrh.js +247 -0
- package/dist/chunks/{location-mutation-c1rv2yct.js → pty-f8pbz4jd.js} +23 -23
- package/dist/chunks/{location-mutation-8kwzm53y.js → pty-f9adwtm7.js} +4 -4
- package/dist/chunks/{location-mutation-7ybwwvvx.js → pty-fa0cr6zp.js} +3 -3
- package/dist/chunks/{location-mutation-rstnkd3y.js → pty-ffx4mq6v.js} +1 -1
- package/dist/chunks/{location-mutation-h7ygw6q4.js → pty-fhs97t90.js} +9 -9
- package/dist/chunks/{location-mutation-9nhtjm7a.js → pty-fmkfbeq2.js} +30 -30
- package/dist/chunks/{location-mutation-12fsa0de.js → pty-fnaehh3j.js} +46 -46
- package/dist/chunks/{location-mutation-0gaj4617.js → pty-fvanntqq.js} +4 -4
- package/dist/chunks/{location-mutation-fxbjtjnd.js → pty-fxbjtjnd.js} +1 -1
- package/dist/chunks/pty-fy0kqqt2.js +22 -0
- package/dist/chunks/{location-mutation-yvvy1a1h.js → pty-g0eh8qf4.js} +15 -15
- package/dist/chunks/{location-mutation-bta0jsnn.js → pty-g5pz3fvh.js} +26 -26
- package/dist/chunks/{location-mutation-hhb7sktp.js → pty-gad8dwyr.js} +14 -14
- package/dist/chunks/{location-mutation-6ds839xg.js → pty-gbaa2wnh.js} +28 -28
- package/dist/chunks/{location-mutation-kqaz0ej3.js → pty-gc1qnngx.js} +1 -1
- package/dist/chunks/{location-mutation-gd4qta3r.js → pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-mutation-zerdtc7d.js → pty-gj9xpvv3.js} +2 -2
- package/dist/chunks/{location-mutation-ttrnch24.js → pty-gs60z27v.js} +7 -7
- package/dist/chunks/{location-mutation-ppxehy7v.js → pty-gswf14xw.js} +17 -17
- package/dist/chunks/{location-mutation-gv6a8nnw.js → pty-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-mutation-h03wrkyp.js → pty-h03wrkyp.js} +2 -2
- package/dist/chunks/pty-h47he10w.js +4 -0
- package/dist/chunks/{location-mutation-h6vf3j39.js → pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-mutation-f828m53h.js → pty-hdnk95c8.js} +2 -2
- package/dist/chunks/{location-mutation-dk6r9dar.js → pty-hhcdszkw.js} +33 -33
- package/dist/chunks/{location-mutation-j56e64zr.js → pty-j56e64zr.js} +1 -1
- package/dist/chunks/{location-mutation-j0mn1je3.js → pty-jct9c584.js} +16 -16
- package/dist/chunks/{location-mutation-pnhga6ht.js → pty-jdnfkhzv.js} +13 -13
- package/dist/chunks/{location-mutation-yed0t1d5.js → pty-jfpr744w.js} +18 -18
- package/dist/chunks/{location-mutation-wc0kbtjh.js → pty-jjcsnrt3.js} +32 -32
- package/dist/chunks/{location-mutation-9crejs1k.js → pty-jtpgvawt.js} +16 -16
- package/dist/chunks/{location-mutation-6nf03a2p.js → pty-jwjk5r35.js} +6 -6
- package/dist/chunks/{location-mutation-m512vzfg.js → pty-jwqvw401.js} +3 -3
- package/dist/chunks/{location-mutation-rmdyxgmk.js → pty-jypjtz10.js} +8 -8
- package/dist/chunks/{location-mutation-ds2mmwsg.js → pty-k0nnq3t9.js} +6 -6
- package/dist/chunks/{location-mutation-r6hbbyz4.js → pty-k5wm7z2v.js} +15 -15
- package/dist/chunks/{location-mutation-7358hqzw.js → pty-ka7qgscn.js} +5 -5
- package/dist/chunks/{location-mutation-wvx0h6x9.js → pty-kbm5dhv8.js} +19 -19
- package/dist/chunks/{location-mutation-kg06axw8.js → pty-kg06axw8.js} +1 -1
- package/dist/chunks/{location-mutation-b5efxae6.js → pty-kh3ehkc0.js} +4 -4
- package/dist/chunks/{location-mutation-t768js4p.js → pty-kh47ysn5.js} +8 -8
- package/dist/chunks/{location-mutation-6mv28wt3.js → pty-kpg3dnpr.js} +20 -20
- package/dist/chunks/{location-mutation-88x5955g.js → pty-ks2km4ey.js} +32 -32
- package/dist/chunks/{location-mutation-2c2zxp3e.js → pty-kvnd5f0t.js} +8 -8
- package/dist/chunks/{location-mutation-cfpkc3c9.js → pty-m0jqrx5p.js} +2 -2
- package/dist/chunks/{location-mutation-m9w0rfyh.js → pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-mutation-zx352kk7.js → pty-md7n9knh.js} +22 -22
- package/dist/chunks/{location-mutation-hhmedmrs.js → pty-mkar22rr.js} +37 -37
- package/dist/chunks/{location-mutation-mkcjrzeh.js → pty-mkcjrzeh.js} +1 -1
- package/dist/chunks/{location-mutation-dcqbhrtj.js → pty-mzz8vzet.js} +15 -15
- package/dist/chunks/{location-mutation-hjt4xg1x.js → pty-nhy5jxhy.js} +4 -4
- package/dist/chunks/{location-mutation-k8756053.js → pty-ntqw7r1f.js} +10 -10
- package/dist/chunks/{location-mutation-0xtb2bpj.js → pty-nttnax9e.js} +15 -16
- package/dist/chunks/{location-mutation-t8r3ep1g.js → pty-p0cja4mf.js} +5 -5
- package/dist/chunks/{location-mutation-zf5mq5hd.js → pty-p5270nfw.js} +5 -5
- package/dist/chunks/{location-mutation-rk7m7srh.js → pty-p5czsp41.js} +6 -6
- package/dist/chunks/{location-mutation-tregh9zc.js → pty-p72z5xx6.js} +2 -2
- package/dist/chunks/{location-mutation-csw82taa.js → pty-pbc3mjh9.js} +50 -50
- package/dist/chunks/{location-mutation-kw1gmdxk.js → pty-pjdb2e90.js} +35 -35
- package/dist/chunks/{location-mutation-pjvnvgmy.js → pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-mutation-pknna89w.js → pty-pknna89w.js} +1 -1
- package/dist/chunks/{location-mutation-rtvpdrsv.js → pty-pqk2nt5r.js} +8 -8
- package/dist/chunks/{location-mutation-knva4kt0.js → pty-pvmn2x7n.js} +8 -8
- package/dist/chunks/pty-q509s3k3.js +18 -0
- package/dist/chunks/{location-mutation-tkfj7zmc.js → pty-q94b1st6.js} +9 -9
- package/dist/chunks/{location-mutation-7tms9jw2.js → pty-qads99dt.js} +10 -10
- package/dist/chunks/{location-mutation-mtk4wbwh.js → pty-qajrhsjs.js} +17 -17
- package/dist/chunks/{location-mutation-vyjfqv4t.js → pty-qbmqvd4g.js} +18 -18
- package/dist/chunks/{location-mutation-wvt7g9ep.js → pty-qhgcdxv6.js} +24 -24
- package/dist/chunks/{location-mutation-8n1yswe0.js → pty-qppnhhc2.js} +14 -14
- package/dist/chunks/{location-mutation-qsdy395h.js → pty-qsdy395h.js} +1 -1
- package/dist/chunks/{location-mutation-sb3d3j8p.js → pty-qvdq40c0.js} +7 -7
- package/dist/chunks/{location-mutation-57f52h2e.js → pty-qvmkbn54.js} +6 -6
- package/dist/chunks/{location-mutation-0v53mg2y.js → pty-r98e92ep.js} +4 -4
- package/dist/chunks/{location-mutation-w79zsp0s.js → pty-rfnzy394.js} +1 -1
- package/dist/chunks/{location-mutation-3dv89ket.js → pty-rj7dx2h5.js} +9 -9
- package/dist/chunks/{location-mutation-mhn5tcby.js → pty-ry3m58dy.js} +11 -11
- package/dist/chunks/{location-mutation-n9sdwvwy.js → pty-s198arwq.js} +35 -35
- package/dist/chunks/{location-mutation-y2ccry63.js → pty-s5xwk3mk.js} +13 -13
- package/dist/chunks/{location-mutation-380vjcmd.js → pty-s7xtjryh.js} +1 -1
- package/dist/chunks/{location-mutation-nwwfgs0n.js → pty-s8s1e1cz.js} +27 -25
- package/dist/chunks/{location-mutation-qk64x1h5.js → pty-seak0fhn.js} +11 -11
- package/dist/chunks/{location-mutation-5t94bsj9.js → pty-sfvqjyek.js} +6 -6
- package/dist/chunks/{location-mutation-tj1a712e.js → pty-sfwr2w0j.js} +9 -9
- package/dist/chunks/{location-mutation-vyjzrkx0.js → pty-srpeewqc.js} +9 -9
- package/dist/chunks/{location-mutation-xw1r19dr.js → pty-stse86ng.js} +11 -11
- package/dist/chunks/{location-mutation-nydj1emx.js → pty-sw07yjb5.js} +13 -13
- package/dist/chunks/{location-mutation-1scpfsh2.js → pty-t3kscp9x.js} +33 -33
- package/dist/chunks/{location-mutation-r6gw4gsf.js → pty-t7pp6j4t.js} +42 -42
- package/dist/chunks/{location-mutation-3xztec2w.js → pty-t97t2t7r.js} +11 -11
- package/dist/chunks/{location-mutation-kcwf74x3.js → pty-t9e6e84n.js} +1 -1
- package/dist/chunks/{location-mutation-tazgh4e4.js → pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-mutation-tcezcvh9.js → pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-mutation-tdstcens.js → pty-tdstcens.js} +1 -1
- package/dist/chunks/{location-mutation-3cfzdc8e.js → pty-tn0aqsam.js} +5 -5
- package/dist/chunks/{location-mutation-jtpp2ykg.js → pty-tnznc2wb.js} +25 -25
- package/dist/chunks/{location-mutation-tvtrv512.js → pty-tvtrv512.js} +1 -1
- package/dist/chunks/{location-mutation-gtsm3tea.js → pty-twcs6fsf.js} +9 -9
- package/dist/chunks/{location-mutation-82b3faa1.js → pty-v29tykb6.js} +15 -15
- package/dist/chunks/{location-mutation-mx4qes0k.js → pty-v4gcmn1h.js} +15 -15
- package/dist/chunks/{location-mutation-v7q5x8q4.js → pty-v84jj1d3.js} +35 -35
- package/dist/chunks/{location-mutation-veqvce7d.js → pty-veqvce7d.js} +1 -1
- package/dist/chunks/{location-mutation-0tpcnmcw.js → pty-vnnhbf40.js} +6 -6
- package/dist/chunks/{location-mutation-xmsvvm95.js → pty-vyy6b7xa.js} +20 -20
- package/dist/chunks/{location-mutation-vzcthcp8.js → pty-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-mutation-paegk39x.js → pty-w1k39n5e.js} +4 -4
- package/dist/chunks/{location-mutation-w3wsvvr9.js → pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-mutation-ch56cc6g.js → pty-wagd5xb7.js} +32 -32
- package/dist/chunks/{location-mutation-b83fz2rh.js → pty-wbck336m.js} +9 -9
- package/dist/chunks/{location-mutation-gvcpdg76.js → pty-wcvnc3wq.js} +18 -18
- package/dist/chunks/{location-mutation-wd87259q.js → pty-wd87259q.js} +1 -1
- package/dist/chunks/{location-mutation-7yg93r1e.js → pty-wfjxtpcj.js} +24 -24
- package/dist/chunks/{location-mutation-gxw8tk06.js → pty-whr1jkby.js} +18 -18
- package/dist/chunks/{location-mutation-j55g5gc5.js → pty-wk58jv74.js} +10 -10
- package/dist/chunks/{location-mutation-dmpamw93.js → pty-wp4jr60n.js} +5 -5
- package/dist/chunks/{location-mutation-gy8bp4n5.js → pty-wqkncbjv.js} +3 -3
- package/dist/chunks/{location-mutation-fqj9nv8j.js → pty-x0vzmp4x.js} +8 -8
- package/dist/chunks/{location-mutation-x1ezjp6w.js → pty-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-mutation-x43y2vfs.js → pty-x43y2vfs.js} +2 -2
- package/dist/chunks/{location-mutation-pzpywyfj.js → pty-xay24vqs.js} +38 -38
- package/dist/chunks/{location-mutation-a33f6fh4.js → pty-xhcbj5xc.js} +11 -11
- package/dist/chunks/pty-xz4tz1py.js +462 -0
- package/dist/chunks/{location-mutation-fra1pztx.js → pty-y09ge0g8.js} +11 -11
- package/dist/chunks/{location-mutation-y1fvbwt7.js → pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-mutation-jwcy2c2z.js → pty-y71avatq.js} +4 -4
- package/dist/chunks/{location-mutation-jah5aqqf.js → pty-ydpc6wdy.js} +7 -7
- package/dist/chunks/{location-mutation-cwkw9hxx.js → pty-yhp80jsc.js} +13 -13
- package/dist/chunks/{location-mutation-p6cfp1ja.js → pty-yjq2qjwg.js} +30 -30
- package/dist/chunks/{location-mutation-3ey06gfw.js → pty-yme990fg.js} +14 -14
- package/dist/chunks/{location-mutation-00zne7qa.js → pty-yn742g3f.js} +23 -23
- package/dist/chunks/{location-mutation-yrhqyw5v.js → pty-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-mutation-yrznvahk.js → pty-yrznvahk.js} +2 -2
- package/dist/chunks/{location-mutation-z0bkrqjs.js → pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-mutation-1z2mvqeh.js → pty-z0wxwbgt.js} +76 -76
- package/dist/chunks/{location-mutation-36ch212h.js → pty-z3pg8v1h.js} +8 -8
- package/dist/chunks/{location-mutation-z63w68vq.js → pty-z63w68vq.js} +2 -2
- package/dist/chunks/pty-z7by1xyg.js +260 -0
- package/dist/chunks/{location-mutation-sy45pk4d.js → pty-zd1mjem4.js} +9 -9
- package/dist/chunks/{location-mutation-zbqs32x3.js → pty-zdxpjn9v.js} +56 -56
- package/dist/chunks/{location-mutation-zeh9ct20.js → pty-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-mutation-zr2ceqn5.js → pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-mutation-gz0k60p5.js → pty-zt549x9j.js} +11 -11
- package/dist/chunks/{location-mutation-4b6bntqd.js → pty-zxgnc9zk.js} +1 -1
- package/dist/chunks/{location-mutation-zxq2ej10.js → pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +115 -115
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +113 -113
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -362
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +88 -88
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +96 -96
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +87 -87
- package/dist/git.js +7 -7
- 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 +3 -3
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +353 -353
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +80 -80
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +131 -131
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +350 -350
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +120 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +84 -84
- package/dist/model.js +8 -8
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +98 -98
- 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 +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +76 -76
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +72 -72
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- 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.js +224 -224
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +94 -94
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +111 -111
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +121 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +100 -100
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +86 -86
- 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 +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +115 -115
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +104 -104
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +105 -105
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +11 -11
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/context.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +18 -37
- package/dist/types/session/runner/step.d.ts +1 -1
- package/dist/types/session/store.d.ts +1 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +71 -71
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +342 -342
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +87 -87
- package/package.json +8 -8
- package/dist/chunks/location-mutation-0mesazry.js +0 -4
- package/dist/chunks/location-mutation-8amm28tb.js +0 -462
- package/dist/chunks/location-mutation-8c4fmeec.js +0 -247
- package/dist/chunks/location-mutation-ht5y0zrb.js +0 -18
- package/dist/chunks/location-mutation-hv8hjp39.js +0 -270
- package/dist/chunks/location-mutation-pv53ra6t.js +0 -22
- /package/dist/chunks/{location-mutation-0qkdqm5v.js → pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-mutation-0zkw76rk.js → pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-mutation-17cy0kzp.js → pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-mutation-1cnp2v09.js → pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-mutation-1kg9ymc8.js → pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-mutation-2710q6r3.js → pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-mutation-2axfhc9x.js → pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-mutation-2c3vjs8z.js → pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-mutation-359p4xyc.js → pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-mutation-3asan66x.js → pty-3asan66x.js} +0 -0
- /package/dist/chunks/{location-mutation-3v8g72cx.js → pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-mutation-3w5fmr99.js → pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-mutation-3wcehsnq.js → pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-mutation-43n2bw4t.js → pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-mutation-4knz6hnm.js → pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-mutation-4vcrnpx2.js → pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-mutation-4y7fprxs.js → pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-mutation-53557ph1.js → pty-53557ph1.js} +0 -0
- /package/dist/chunks/{location-mutation-550bvhaj.js → pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-mutation-6prwharc.js → pty-6prwharc.js} +0 -0
- /package/dist/chunks/{location-mutation-7akdwqpd.js → pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-mutation-7m9af43g.js → pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-mutation-822emrt2.js → pty-822emrt2.js} +0 -0
- /package/dist/chunks/{location-mutation-88xbtdfr.js → pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-mutation-8n3pysct.js → pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-mutation-922hggd3.js → pty-922hggd3.js} +0 -0
- /package/dist/chunks/{location-mutation-9a4afbnw.js → pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-mutation-9rqn6x4v.js → pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-mutation-a6k6eb26.js → pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-mutation-af5trqkr.js → pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-mutation-afrmfg78.js → pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-mutation-aqzs7mqg.js → pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-mutation-atq7p7m5.js → pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-mutation-bkyjaxrp.js → pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-mutation-bmr6ed5q.js → pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-mutation-cf4snx6d.js → pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-mutation-cvy3z8tj.js → pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-mutation-d9fn303g.js → pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-mutation-d9jj8t3e.js → pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-mutation-dajrwvna.js → pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-mutation-dap0rakb.js → pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-mutation-df08tz66.js → pty-df08tz66.js} +0 -0
- /package/dist/chunks/{location-mutation-dy18nga0.js → pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-mutation-e5kj55wp.js → pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-mutation-e73j6tqm.js → pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-mutation-ec1grn59.js → pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-mutation-eh3zwz77.js → pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-mutation-emrn6kk6.js → pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-mutation-f0mxakyp.js → pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-mutation-f6n9ztr4.js → pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-mutation-faypxj3z.js → pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-mutation-fd410y7t.js → pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-mutation-fxgpk5d8.js → pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-mutation-g4wezp1m.js → pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-mutation-g86h250q.js → pty-g86h250q.js} +0 -0
- /package/dist/chunks/{location-mutation-gebd4c9n.js → pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-mutation-gftt206x.js → pty-gftt206x.js} +0 -0
- /package/dist/chunks/{location-mutation-hjbc5kem.js → pty-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-mutation-hk9envan.js → pty-hk9envan.js} +0 -0
- /package/dist/chunks/{location-mutation-hrnqkpcd.js → pty-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{location-mutation-j2ntwpah.js → pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-mutation-j5zkgpj8.js → pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-mutation-jr7sbwjy.js → pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-mutation-jwfs4k6c.js → pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-mutation-jzg6c2d5.js → pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mutation-mp448xyj.js → pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-mutation-msx8hqn2.js → pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-mutation-n05xt0ee.js → pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-mutation-n3j8tn72.js → pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-mutation-njntx4h6.js → pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-mutation-paphc93g.js → pty-paphc93g.js} +0 -0
- /package/dist/chunks/{location-mutation-q3sfg36h.js → pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-mutation-q74kybfr.js → pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-mutation-qaymkmh1.js → pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-mutation-qb87gjwd.js → pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-mutation-qfa1cgps.js → pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-mutation-qrg20bc0.js → pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-mutation-rcb2kzg1.js → pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-mutation-sdp7kfr6.js → pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-mutation-sk3qaz4a.js → pty-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-mutation-ssg3fenm.js → pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-mutation-twg0f83k.js → pty-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-mutation-w803qqfp.js → pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-mutation-wer8tq1h.js → pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-mutation-wtztk69x.js → pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-mutation-x0ckcb58.js → pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-mutation-x61499pn.js → pty-x61499pn.js} +0 -0
- /package/dist/chunks/{location-mutation-y44na4kk.js → pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-mutation-y8cydn3q.js → pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-mutation-ygaqb7jw.js → pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-mutation-ym463w8f.js → pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-mutation-z9919s4g.js → pty-z9919s4g.js} +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Metadata2,
|
|
3
|
+
useragent2,
|
|
4
|
+
node44
|
|
5
|
+
} from "./pty-gs60z27v.js";
|
|
6
|
+
import {
|
|
7
|
+
provenance2,
|
|
8
|
+
compatible2
|
|
9
|
+
} from "./pty-w1k39n5e.js";
|
|
10
|
+
import {
|
|
11
|
+
Service75,
|
|
12
|
+
node80
|
|
13
|
+
} from "./pty-dc76j9wz.js";
|
|
14
|
+
import {
|
|
15
|
+
DeclinedError2
|
|
16
|
+
} from "./pty-s198arwq.js";
|
|
17
|
+
import {
|
|
18
|
+
CancelledError2
|
|
19
|
+
} from "./pty-1pqaee8n.js";
|
|
20
|
+
import {
|
|
21
|
+
Error3
|
|
22
|
+
} from "./pty-9b10rcng.js";
|
|
23
|
+
import {
|
|
24
|
+
Service23,
|
|
25
|
+
node28
|
|
26
|
+
} from "./pty-8xttkpaf.js";
|
|
27
|
+
import {
|
|
28
|
+
make14
|
|
29
|
+
} from "./pty-nhy5jxhy.js";
|
|
30
|
+
import {
|
|
31
|
+
toLLMMessages2
|
|
32
|
+
} from "./pty-rfnzy394.js";
|
|
33
|
+
import {
|
|
34
|
+
__export
|
|
35
|
+
} from "./pty-9rqn6x4v.js";
|
|
36
|
+
|
|
37
|
+
// src/session/model-request.ts
|
|
38
|
+
var exports_model_request = {};
|
|
39
|
+
__export(exports_model_request, {
|
|
40
|
+
Service: () => Service22,
|
|
41
|
+
SessionModelRequest: () => exports_model_request,
|
|
42
|
+
baseTranscript: () => baseTranscript2,
|
|
43
|
+
boundImages: () => boundImages2,
|
|
44
|
+
layer: () => layer11,
|
|
45
|
+
node: () => node27,
|
|
46
|
+
unsupportedParts: () => unsupportedParts2
|
|
47
|
+
});
|
|
48
|
+
import {
|
|
49
|
+
GenerationOptions,
|
|
50
|
+
HttpOptions,
|
|
51
|
+
LanguageModel,
|
|
52
|
+
LLM,
|
|
53
|
+
LLMRequest,
|
|
54
|
+
Message,
|
|
55
|
+
SystemPart
|
|
56
|
+
} from "@opencode/ai";
|
|
57
|
+
import { Cause, Context, Effect, Layer, Result, Stream } from "effect";
|
|
58
|
+
import { HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
59
|
+
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
60
|
+
var IMAGE_BYTES_TRIGGER = 25 * 1024 * 1024;
|
|
61
|
+
var IMAGE_BYTES_TARGET = 15 * 1024 * 1024;
|
|
62
|
+
var IMAGE_REMOVED = "[This image was removed to reduce the request size and is no longer visible. Do not make claims about its contents from memory. If needed, retrieve it again with an available tool or ask the user to attach it again.]";
|
|
63
|
+
var GENERATION_KEYS = new Set(Object.keys(GenerationOptions.fields));
|
|
64
|
+
var baseTranscript2 = (input) => {
|
|
65
|
+
const providerMetadataKey = input.model.model.route.providerMetadataKey ?? input.model.model.provider;
|
|
66
|
+
return {
|
|
67
|
+
providerMetadataKey,
|
|
68
|
+
system: [
|
|
69
|
+
input.agent.system ? input.agent.system : make14(input.tools.definitions.map((tool) => tool.name)),
|
|
70
|
+
input.initial
|
|
71
|
+
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
72
|
+
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
var mimeToModality = (mime) => {
|
|
76
|
+
if (mime.startsWith("image/"))
|
|
77
|
+
return "image";
|
|
78
|
+
if (mime.startsWith("audio/"))
|
|
79
|
+
return "audio";
|
|
80
|
+
if (mime.startsWith("video/"))
|
|
81
|
+
return "video";
|
|
82
|
+
if (mime === "application/pdf")
|
|
83
|
+
return "pdf";
|
|
84
|
+
};
|
|
85
|
+
var unsupportedMedia = (mime, name, capabilities) => {
|
|
86
|
+
const modality = mimeToModality(mime);
|
|
87
|
+
if (!modality || capabilities.input.some((item) => item.startsWith(modality)))
|
|
88
|
+
return;
|
|
89
|
+
return {
|
|
90
|
+
type: "text",
|
|
91
|
+
text: `ERROR: Cannot read ${name ? `"${name}"` : modality} (this model does not support ${modality} input). Inform the user.`
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
var unsupportedParts2 = (messages, capabilities) => messages.map((message) => Message.make({
|
|
95
|
+
...message,
|
|
96
|
+
content: message.content.map((part) => {
|
|
97
|
+
if (part.type === "media") {
|
|
98
|
+
return unsupportedMedia(part.mediaType, part.filename, capabilities) ?? part;
|
|
99
|
+
}
|
|
100
|
+
if (part.type !== "tool-result" || part.result.type !== "content")
|
|
101
|
+
return part;
|
|
102
|
+
return {
|
|
103
|
+
...part,
|
|
104
|
+
result: {
|
|
105
|
+
...part.result,
|
|
106
|
+
value: part.result.value.map((item) => {
|
|
107
|
+
if (item.type !== "file")
|
|
108
|
+
return item;
|
|
109
|
+
return unsupportedMedia(item.mime, item.name, capabilities) ?? item;
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
})
|
|
114
|
+
}));
|
|
115
|
+
var boundImages2 = (messages) => {
|
|
116
|
+
const isImage = (mime) => mime.toLowerCase().startsWith("image/");
|
|
117
|
+
const size = (data) => typeof data === "string" ? Buffer.byteLength(data) : Math.ceil(data.byteLength / 3) * 4;
|
|
118
|
+
const imageBytes = messages.reduce((total, message) => total + message.content.reduce((sum, part) => {
|
|
119
|
+
if (part.type === "media" && isImage(part.mediaType))
|
|
120
|
+
return sum + size(part.data);
|
|
121
|
+
if (part.type !== "tool-result" || part.result.type !== "content")
|
|
122
|
+
return sum;
|
|
123
|
+
return sum + part.result.value.reduce((bytes, item) => bytes + (item.type === "file" && isImage(item.mime) ? Buffer.byteLength(item.uri) : 0), 0);
|
|
124
|
+
}, 0), 0);
|
|
125
|
+
if (imageBytes <= IMAGE_BYTES_TRIGGER)
|
|
126
|
+
return messages;
|
|
127
|
+
let removed = 0;
|
|
128
|
+
return messages.map((message) => Message.make({
|
|
129
|
+
...message,
|
|
130
|
+
content: message.content.map((part) => {
|
|
131
|
+
if (part.type === "media" && isImage(part.mediaType) && imageBytes - removed > IMAGE_BYTES_TARGET) {
|
|
132
|
+
removed += size(part.data);
|
|
133
|
+
return Message.text(IMAGE_REMOVED);
|
|
134
|
+
}
|
|
135
|
+
if (part.type !== "tool-result" || part.result.type !== "content")
|
|
136
|
+
return part;
|
|
137
|
+
return {
|
|
138
|
+
...part,
|
|
139
|
+
result: {
|
|
140
|
+
...part.result,
|
|
141
|
+
value: part.result.value.map((item) => {
|
|
142
|
+
if (item.type !== "file" || !isImage(item.mime) || imageBytes - removed <= IMAGE_BYTES_TARGET)
|
|
143
|
+
return item;
|
|
144
|
+
removed += Buffer.byteLength(item.uri);
|
|
145
|
+
return { type: "text", text: IMAGE_REMOVED };
|
|
146
|
+
})
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
})
|
|
150
|
+
}));
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
class Service22 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
154
|
+
}
|
|
155
|
+
var layer11 = Layer.effect(Service22, Effect.gen(function* () {
|
|
156
|
+
const hooks = yield* Service75;
|
|
157
|
+
const transport = yield* Service23;
|
|
158
|
+
const app = yield* Metadata2;
|
|
159
|
+
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
160
|
+
const session = input.session;
|
|
161
|
+
const model = input.model;
|
|
162
|
+
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
163
|
+
const tools = input.tools ?? {
|
|
164
|
+
definitions: [],
|
|
165
|
+
execute: () => new Error3({ message: "Tools are not available for this request" })
|
|
166
|
+
};
|
|
167
|
+
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
168
|
+
const shaped = yield* shape({ sessionID: session.id, model: model.ref, system: input.system, messages: input.messages, options: {} }, Object.fromEntries(Array.from(given, ([d, t]) => [t.name, d])));
|
|
169
|
+
const byName = new Map(tools.definitions.map((t) => [t.name, t]));
|
|
170
|
+
const hooked = new Map(Object.entries(shaped.tools ?? {}).flatMap(([name, d]) => {
|
|
171
|
+
const t = given.get(d) ?? byName.get(name);
|
|
172
|
+
return t ? [[name, { ...t, description: d.description, inputSchema: d.input }]] : [];
|
|
173
|
+
}));
|
|
174
|
+
const entries = Object.entries(shaped.options);
|
|
175
|
+
const generation = Object.fromEntries(entries.filter(([k]) => GENERATION_KEYS.has(k)));
|
|
176
|
+
const providerOptions = Object.fromEntries(entries.filter(([k]) => !GENERATION_KEYS.has(k)));
|
|
177
|
+
const root = session.fork?.sessionID ?? session.id;
|
|
178
|
+
const base = LLM.request({
|
|
179
|
+
model: model.model,
|
|
180
|
+
http: {
|
|
181
|
+
headers: {
|
|
182
|
+
"x-session-affinity": session.id,
|
|
183
|
+
"X-Session-Id": session.id,
|
|
184
|
+
...session.parentID ? { "x-parent-session-id": session.parentID } : {},
|
|
185
|
+
"User-Agent": useragent2(app),
|
|
186
|
+
"x-opencode-project": session.projectID,
|
|
187
|
+
"x-opencode-session": session.id,
|
|
188
|
+
"x-opencode-client": app.name
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
promptCacheKey: /^ses_[0-9a-f]{64}$/.test(root) ? root.slice(4) : root,
|
|
192
|
+
system: shaped.system,
|
|
193
|
+
messages: boundImages2(unsupportedParts2(shaped.messages, model.capabilities)),
|
|
194
|
+
tools: Array.from(hooked, ([name, t]) => ({ ...t, name })),
|
|
195
|
+
toolChoice: input.toolChoice,
|
|
196
|
+
generation: Object.keys(generation).length === 0 ? undefined : generation,
|
|
197
|
+
providerOptions: Object.keys(providerOptions).length === 0 ? undefined : providerOptions
|
|
198
|
+
});
|
|
199
|
+
const baseURL = base.model.route.endpoint.baseURL;
|
|
200
|
+
const modelHook = yield* hooks.trigger("session", "model.request", {
|
|
201
|
+
...scope,
|
|
202
|
+
baseURL: typeof baseURL === "string" ? baseURL : undefined,
|
|
203
|
+
headers: { ...base.http?.headers }
|
|
204
|
+
});
|
|
205
|
+
const route = modelHook.baseURL !== undefined && modelHook.baseURL !== baseURL ? base.model.route.with({ endpoint: { baseURL: modelHook.baseURL } }) : base.model.route;
|
|
206
|
+
const request = LLMRequest.update(base, {
|
|
207
|
+
model: route === base.model.route ? base.model : LanguageModel.update(base.model, { route }),
|
|
208
|
+
http: new HttpOptions({
|
|
209
|
+
body: base.http?.body,
|
|
210
|
+
headers: Object.keys(modelHook.headers).length === 0 ? undefined : modelHook.headers,
|
|
211
|
+
query: base.http?.query
|
|
212
|
+
})
|
|
213
|
+
});
|
|
214
|
+
const selected = provenance2(model);
|
|
215
|
+
if (selected && !compatible2(selected, provenance2({ model: request.model, ref: model.ref })) && request.messages.some((message) => message.content.some((part) => part.type === "compaction")))
|
|
216
|
+
return yield* Effect.die(new Error("Provider context is incompatible with the route selected by model request hooks"));
|
|
217
|
+
const hasHttpHooks = (yield* hooks.has("session", "http.request", model.ref.providerID)) || (yield* hooks.has("session", "http.response", model.ref.providerID));
|
|
218
|
+
const http = hasHttpHooks ? (req, handler) => Effect.gen(function* () {
|
|
219
|
+
const before = yield* hooks.trigger("session", "http.request", {
|
|
220
|
+
...scope,
|
|
221
|
+
request: yield* HttpClientRequest.toWeb(req)
|
|
222
|
+
});
|
|
223
|
+
let sent = HttpClientRequest.fromWeb(before.request);
|
|
224
|
+
if (before.request.body)
|
|
225
|
+
sent = HttpClientRequest.bodyUint8Array(sent, new Uint8Array(yield* Effect.promise(() => before.request.clone().arrayBuffer())), before.request.headers.get("content-type") ?? undefined);
|
|
226
|
+
const res = yield* handler(sent);
|
|
227
|
+
const after = yield* hooks.trigger("session", "http.response", {
|
|
228
|
+
...scope,
|
|
229
|
+
request: before.request,
|
|
230
|
+
response: new Response([204, 205, 304].includes(res.status) ? null : yield* Stream.toReadableStreamEffect(res.stream), { status: res.status, headers: res.headers })
|
|
231
|
+
});
|
|
232
|
+
return HttpClientResponse.fromWeb(sent, after.response);
|
|
233
|
+
}).pipe(Effect.mapError((cause) => cause instanceof Error ? cause : new Error(String(cause)))) : undefined;
|
|
234
|
+
const webSocket = input.webSocket === "session" && !hasHttpHooks && model.capabilities.responsesWebsockets === true && model.websocket;
|
|
235
|
+
return {
|
|
236
|
+
event: shaped,
|
|
237
|
+
request,
|
|
238
|
+
options: { ...http ? { http } : {}, ...webSocket ? { webSocket: transport.bind(session.id) } : {} },
|
|
239
|
+
retry: (event) => hooks.trigger("session", "retry", event).pipe(Effect.asVoid),
|
|
240
|
+
executeTool: (call) => tools.execute({ ...call, definitions: hooked }).pipe(Effect.catchCauseFilter((cause) => {
|
|
241
|
+
const decline = cause.reasons.flatMap((r) => Cause.isDieReason(r) && (r.defect instanceof DeclinedError2 || r.defect instanceof CancelledError2) ? [r.defect] : [])[0];
|
|
242
|
+
return decline ? Result.succeed(decline) : Result.fail(cause);
|
|
243
|
+
}, (decline) => Effect.fail(decline)))
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
const context = (agent) => (draft, tools) => hooks.trigger("session", "context", { ...draft, agent, tools });
|
|
247
|
+
return Service22.of({
|
|
248
|
+
primary: (input) => prepare("primary", input, context(input.agent)),
|
|
249
|
+
generate: (input) => prepare("generate", input, context(input.agent)),
|
|
250
|
+
compaction: (input) => prepare("compaction", input, context(input.agent)),
|
|
251
|
+
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
252
|
+
});
|
|
253
|
+
}));
|
|
254
|
+
var node27 = makeLocationNode({
|
|
255
|
+
service: Service22,
|
|
256
|
+
layer: layer11,
|
|
257
|
+
deps: [node80, node28, node44]
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service22, layer11, node27, exports_model_request };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-gs60z27v.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-1ygqh575.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin8,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint4
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint4 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin8 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin24 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint4, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin24 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint4, Plugin8, exports_firecrawl };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./pty-jwqvw401.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node84
|
|
8
|
+
} from "./pty-ckrdk9yx.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service49,
|
|
11
|
+
node53
|
|
12
|
+
} from "./pty-0bps82y7.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pty-922hggd3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service77,
|
|
19
|
+
node82
|
|
20
|
+
} from "./pty-xay24vqs.js";
|
|
21
21
|
import {
|
|
22
22
|
Ref4
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./pty-0sw24r53.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service50,
|
|
26
|
+
node54
|
|
27
|
+
} from "./pty-bmn9pzgf.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./pty-gftt206x.js";
|
|
31
31
|
import {
|
|
32
32
|
NotFoundError9
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./pty-wqkncbjv.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./pty-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
Service46
|
|
39
|
+
} from "./pty-dhmh7aw6.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./
|
|
41
|
+
Service73,
|
|
42
|
+
node78
|
|
43
|
+
} from "./pty-nttnax9e.js";
|
|
44
44
|
import {
|
|
45
45
|
Item2,
|
|
46
46
|
serialized2,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Service47,
|
|
48
|
+
node51,
|
|
49
49
|
moveIDs2
|
|
50
|
-
} from "./
|
|
50
|
+
} from "./pty-0zs7y9px.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
52
|
+
Service45,
|
|
53
|
+
node50
|
|
54
|
+
} from "./pty-8n66hw90.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./
|
|
56
|
+
node19
|
|
57
|
+
} from "./pty-7j3yyt51.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./pty-9rqn6x4v.js";
|
|
61
61
|
|
|
62
62
|
// src/session/move.ts
|
|
63
63
|
var exports_move = {};
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service14,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node18
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,19 +83,19 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service14 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
|
-
const projects = yield*
|
|
92
|
-
const locations = yield*
|
|
93
|
-
const store = yield*
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
91
|
+
const projects = yield* Service77;
|
|
92
|
+
const locations = yield* Service50;
|
|
93
|
+
const store = yield* Service73;
|
|
94
|
+
const execution = yield* Service45;
|
|
95
|
+
const instances = yield* Service49;
|
|
96
|
+
const admission = yield* Service47;
|
|
97
97
|
const database = yield* Service80;
|
|
98
|
-
const bus = yield*
|
|
98
|
+
const bus = yield* Service79;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
100
100
|
const session = yield* store.get(sessionID);
|
|
101
101
|
if (!session)
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service46.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(cause) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service14.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node18 = makeGlobalNode({
|
|
167
|
+
service: Service14,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
|
-
node80,
|
|
173
|
-
node60,
|
|
174
|
-
node75,
|
|
175
|
-
node45,
|
|
176
|
-
node48,
|
|
177
|
-
node46,
|
|
178
|
-
node85,
|
|
179
172
|
node82,
|
|
180
|
-
|
|
173
|
+
node54,
|
|
174
|
+
node78,
|
|
175
|
+
node50,
|
|
176
|
+
node53,
|
|
177
|
+
node51,
|
|
178
|
+
node85,
|
|
179
|
+
node84,
|
|
180
|
+
node19
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service14, node18, exports_move };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-9qn3qky1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/aisdk.ts
|
|
12
12
|
var exports_aisdk = {};
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service69,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node74
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
131
|
-
providerID:
|
|
131
|
+
providerID: ID12,
|
|
132
132
|
cause: Schema.Defect()
|
|
133
133
|
}) {
|
|
134
134
|
}
|
|
@@ -136,9 +136,9 @@ function initError(providerID) {
|
|
|
136
136
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class Service69 extends Context.Service()("@opencode/AISDK") {
|
|
140
140
|
}
|
|
141
|
-
var locationLayer2 = Layer.effect(
|
|
141
|
+
var locationLayer2 = Layer.effect(Service69, Effect.gen(function* () {
|
|
142
142
|
let sdkHooks = [];
|
|
143
143
|
let languageHooks = [];
|
|
144
144
|
const languages = new Map;
|
|
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
176
176
|
}
|
|
177
177
|
return event;
|
|
178
178
|
});
|
|
179
|
-
const service =
|
|
179
|
+
const service = Service69.of({
|
|
180
180
|
hook: {
|
|
181
181
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
182
182
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -809,6 +809,6 @@ function providerErrorMessage(error) {
|
|
|
809
809
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
810
810
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
811
811
|
}
|
|
812
|
-
var
|
|
812
|
+
var node74 = makeLocationNode({ service: Service69, layer: locationLayer2, deps: [] });
|
|
813
813
|
|
|
814
|
-
export { InitError2,
|
|
814
|
+
export { InitError2, Service69, locationLayer2, node74, exports_aisdk };
|
package/dist/codemode/catalog.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
render2,
|
|
3
3
|
update3,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
4
|
+
make13,
|
|
5
|
+
exports_instructions4
|
|
6
|
+
} from "../chunks/pty-t97t2t7r.js";
|
|
7
|
+
import"../chunks/pty-3fc6dm20.js";
|
|
8
|
+
import"../chunks/pty-eaj1djv9.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
exports_instructions4 as CodeModeInstructions,
|
|
11
|
+
make13 as make,
|
|
12
12
|
render2 as render,
|
|
13
13
|
update3 as update
|
|
14
14
|
};
|
package/dist/codemode/tool.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
create2,
|
|
3
3
|
catalog2,
|
|
4
4
|
exports_tool2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/pty-x43y2vfs.js";
|
|
6
|
+
import"../chunks/pty-3w5fmr99.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_tool2 as CodeModeTool,
|
|
9
9
|
catalog2 as catalog,
|