@opencode/core 2.0.32 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{instance-be7qvw84.js → repository-cache-00x4qneg.js} +8 -8
- package/dist/chunks/{instance-s5jrf6ry.js → repository-cache-065m31h9.js} +11 -11
- package/dist/chunks/{instance-g2wa2e5b.js → repository-cache-0fztarvd.js} +13 -11
- package/dist/chunks/{instance-ydjrys25.js → repository-cache-0qb6tpgj.js} +23 -23
- package/dist/chunks/{instance-0vbcp93d.js → repository-cache-0vbcp93d.js} +2 -2
- package/dist/chunks/{instance-xjvxx86v.js → repository-cache-0vf8bfn5.js} +6 -6
- package/dist/chunks/{instance-5zbw8dq9.js → repository-cache-0vtn597b.js} +21 -21
- package/dist/chunks/{instance-v5qm4ejs.js → repository-cache-0xfcnhey.js} +27 -27
- package/dist/chunks/{instance-pbh24ypk.js → repository-cache-15e8hpnt.js} +19 -19
- package/dist/chunks/{instance-yp2x3t23.js → repository-cache-1acjjqhc.js} +4 -4
- package/dist/chunks/repository-cache-1ep4rre3.js +42 -0
- package/dist/chunks/{instance-nbm6td7p.js → repository-cache-1ngx28bn.js} +4 -4
- package/dist/chunks/{instance-q97qe3v1.js → repository-cache-1ptgpzsy.js} +24 -25
- package/dist/chunks/{instance-ypne3kk7.js → repository-cache-1q92ejr7.js} +21 -21
- package/dist/chunks/{instance-c9wbyant.js → repository-cache-1ze9gtzp.js} +9 -9
- package/dist/chunks/{instance-ngdgjn5a.js → repository-cache-21n0xhjn.js} +13 -13
- package/dist/chunks/{instance-6btvgc07.js → repository-cache-2577k5af.js} +54 -37
- package/dist/chunks/{instance-ft79q47f.js → repository-cache-2ky2kwtz.js} +4 -4
- package/dist/chunks/{instance-zdhmwdxf.js → repository-cache-2v5tj3gs.js} +21 -21
- package/dist/chunks/{instance-9k44apjz.js → repository-cache-37cqxn50.js} +11 -4
- package/dist/chunks/{instance-eb2yw134.js → repository-cache-3fcx2j2w.js} +18 -18
- package/dist/chunks/{instance-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-vqtt4fqa.js → repository-cache-3hkcw4we.js} +13 -13
- package/dist/chunks/{instance-3hwn7j4h.js → repository-cache-3hwn7j4h.js} +2 -2
- package/dist/chunks/{instance-2j1fd8ns.js → repository-cache-3ns80m0h.js} +20 -20
- package/dist/chunks/{instance-wdgmgtm0.js → repository-cache-3rq8r7zt.js} +17 -14
- package/dist/chunks/{instance-3smtnn6g.js → repository-cache-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → repository-cache-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-j3ftvw7y.js → repository-cache-3ty6jwen.js} +6 -6
- package/dist/chunks/{instance-3zsf4n22.js → repository-cache-3zsf4n22.js} +1 -1
- package/dist/chunks/{instance-dw46b8bx.js → repository-cache-43x4yszk.js} +20 -20
- package/dist/chunks/{instance-e5wkangg.js → repository-cache-46mephjz.js} +47 -49
- package/dist/chunks/{instance-jxa04fe5.js → repository-cache-47cwnsyn.js} +14 -14
- package/dist/chunks/{instance-s1kmd63q.js → repository-cache-4bk9s89f.js} +14 -14
- package/dist/chunks/{instance-wmhjcbrh.js → repository-cache-4prqf89h.js} +29 -29
- package/dist/chunks/{instance-echrm7fx.js → repository-cache-4tyzw6xh.js} +5 -5
- package/dist/chunks/{instance-5nrew705.js → repository-cache-4v4bfvma.js} +5 -5
- package/dist/chunks/{instance-9rd468vk.js → repository-cache-4wehpdsn.js} +24 -24
- package/dist/chunks/{instance-54ma36ye.js → repository-cache-54ma36ye.js} +1 -1
- package/dist/chunks/{instance-wh6zw745.js → repository-cache-57myy5jh.js} +5 -5
- package/dist/chunks/{instance-nnq6jpzr.js → repository-cache-5dycw2n2.js} +22 -22
- package/dist/chunks/{instance-xt4njr3s.js → repository-cache-5f5dfnyg.js} +17 -13
- package/dist/chunks/{instance-bg9pb3hs.js → repository-cache-5m84d531.js} +6 -6
- package/dist/chunks/{instance-5m9w47nd.js → repository-cache-5m9w47nd.js} +1 -1
- package/dist/chunks/{instance-c01nkdt4.js → repository-cache-63t8kvdx.js} +16 -16
- package/dist/chunks/{instance-dqxsqydv.js → repository-cache-6827pfxn.js} +2 -2
- package/dist/chunks/{instance-0f5g2b67.js → repository-cache-6bq45c98.js} +46 -46
- package/dist/chunks/{instance-z8epvsg6.js → repository-cache-6e57763q.js} +5 -5
- package/dist/chunks/{instance-y56ehv6b.js → repository-cache-6hjx5zpb.js} +9 -9
- package/dist/chunks/{instance-xn7k1yjr.js → repository-cache-6kthashm.js} +27 -27
- package/dist/chunks/{instance-mee8ct06.js → repository-cache-6nq3099y.js} +2 -2
- package/dist/chunks/{instance-hzzj1pg2.js → repository-cache-6qn8gjqg.js} +18 -18
- package/dist/chunks/{instance-zy2kjt51.js → repository-cache-6s242g8e.js} +39 -39
- package/dist/chunks/{instance-6xb47vfp.js → repository-cache-6xb47vfp.js} +1 -1
- package/dist/chunks/{instance-h8wg6m6b.js → repository-cache-6xjvsea3.js} +11 -11
- package/dist/chunks/{instance-j4d2njm3.js → repository-cache-7303zb1f.js} +18 -18
- package/dist/chunks/{instance-775gj3j1.js → repository-cache-775gj3j1.js} +2 -2
- package/dist/chunks/{instance-a0r8rfmp.js → repository-cache-77a66swy.js} +7 -7
- package/dist/chunks/{instance-f4mxpp6t.js → repository-cache-77d0na5t.js} +48 -48
- package/dist/chunks/{instance-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-8mprknbj.js → repository-cache-7jwh32ts.js} +32 -31
- package/dist/chunks/{instance-9s4s5645.js → repository-cache-7p9sqgn0.js} +16 -16
- package/dist/chunks/{instance-91qna3x0.js → repository-cache-7v6vae4w.js} +39 -21
- package/dist/chunks/{instance-84caq58q.js → repository-cache-7vt9yzvg.js} +11 -11
- package/dist/chunks/{instance-x20m8gm2.js → repository-cache-7z1jx34y.js} +23 -23
- package/dist/chunks/{instance-wjsh9s1s.js → repository-cache-83whknbm.js} +31 -31
- package/dist/chunks/{instance-s4bj6v34.js → repository-cache-842mqg42.js} +11 -11
- package/dist/chunks/{instance-7q6nqg1g.js → repository-cache-86eqfcce.js} +9 -9
- package/dist/chunks/{instance-agt7xfc2.js → repository-cache-8d1pd201.js} +26 -26
- package/dist/chunks/{instance-r730fk4b.js → repository-cache-8g2mbw9h.js} +19 -19
- package/dist/chunks/{instance-8m6m0r52.js → repository-cache-8m6m0r52.js} +1 -1
- package/dist/chunks/repository-cache-8mywswrd.js +86 -0
- package/dist/chunks/{instance-c0jw7tng.js → repository-cache-8reangzk.js} +9 -7
- package/dist/chunks/{instance-h14remhy.js → repository-cache-8t50b4ww.js} +23 -23
- package/dist/chunks/{instance-spnt6386.js → repository-cache-8vy56zzm.js} +28 -28
- package/dist/chunks/{instance-v742aeg8.js → repository-cache-94p6wp9x.js} +30 -25
- package/dist/chunks/{instance-5saajy9t.js → repository-cache-95tpv30c.js} +13 -13
- package/dist/chunks/{instance-1ajx6rf5.js → repository-cache-9hn6k4tm.js} +8 -8
- package/dist/chunks/{instance-b4gsa26k.js → repository-cache-9hzyxvsk.js} +17 -14
- package/dist/chunks/{instance-2ysm8pgm.js → repository-cache-9m35c2r0.js} +29 -29
- package/dist/chunks/{instance-bcmzxatv.js → repository-cache-9v5raxs8.js} +5 -5
- package/dist/chunks/repository-cache-9wrj4pc9.js +257 -0
- package/dist/chunks/{instance-wndqf9wb.js → repository-cache-a0kr73jj.js} +10 -10
- package/dist/chunks/{instance-vfjhn2wd.js → repository-cache-a3c7ahw6.js} +4 -4
- package/dist/chunks/{instance-y7nndgyc.js → repository-cache-a4db0rvv.js} +9 -9
- package/dist/chunks/{instance-hdb1y56n.js → repository-cache-a58n7r3a.js} +43 -43
- package/dist/chunks/{instance-gvm6138t.js → repository-cache-a75ad8v4.js} +1 -1
- package/dist/chunks/{instance-gqtdsdt7.js → repository-cache-addxnjmp.js} +4 -4
- package/dist/chunks/{instance-8q7cp091.js → repository-cache-b2ckp95n.js} +12 -12
- package/dist/chunks/{instance-0fhevdjt.js → repository-cache-b4nzaj04.js} +5 -5
- package/dist/chunks/{instance-2vs2nh1n.js → repository-cache-baaqp4zd.js} +4 -4
- package/dist/chunks/{instance-9jgxs1bn.js → repository-cache-bf4bmw04.js} +11 -11
- package/dist/chunks/{instance-wjr9rjd7.js → repository-cache-bjx1sjef.js} +6 -6
- package/dist/chunks/{instance-m8qsgghe.js → repository-cache-bq3hn31g.js} +50 -50
- package/dist/chunks/{instance-enbw0gbw.js → repository-cache-brcmb8c2.js} +46 -46
- package/dist/chunks/repository-cache-by5v678g.js +18 -0
- package/dist/chunks/{instance-d4n7pc7j.js → repository-cache-c15zmvx5.js} +10 -10
- package/dist/chunks/{instance-c1fqxshp.js → repository-cache-c1fqxshp.js} +3 -3
- package/dist/chunks/{instance-mtpeagzc.js → repository-cache-c2sed5cq.js} +3 -3
- package/dist/chunks/{instance-nj7hqrdc.js → repository-cache-c5ggqzvz.js} +5 -5
- package/dist/chunks/{instance-gea60fq5.js → repository-cache-cgc2saxs.js} +26 -26
- package/dist/chunks/{instance-hz56gd46.js → repository-cache-d2qeb4wf.js} +17 -17
- package/dist/chunks/{instance-xzyvagpz.js → repository-cache-djbskq1b.js} +26 -26
- package/dist/chunks/{instance-m8p0bf8a.js → repository-cache-dmpxat65.js} +4 -4
- package/dist/chunks/{instance-sz70a389.js → repository-cache-dqjdwcmj.js} +20 -13
- package/dist/chunks/repository-cache-dv4jvz6s.js +97 -0
- package/dist/chunks/{instance-j5s48rss.js → repository-cache-dzr38x1r.js} +11 -11
- package/dist/chunks/{instance-sxzvkvgj.js → repository-cache-dzse07y5.js} +6 -6
- package/dist/chunks/{instance-ye119z04.js → repository-cache-dzxp512b.js} +48 -48
- package/dist/chunks/{instance-sxcaecc0.js → repository-cache-e80seqcp.js} +3 -3
- package/dist/chunks/{instance-eej6y6fw.js → repository-cache-eej6y6fw.js} +2 -2
- package/dist/chunks/{instance-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-h82zpv65.js → repository-cache-ek4c2f0v.js} +6 -6
- package/dist/chunks/{instance-m7f5ga5x.js → repository-cache-ewj35nqb.js} +8 -8
- package/dist/chunks/{instance-7c25kt5f.js → repository-cache-exgm3bba.js} +14 -14
- package/dist/chunks/{instance-6h1sgzxr.js → repository-cache-ezhy60ay.js} +27 -27
- package/dist/chunks/{instance-7kf7gnm7.js → repository-cache-f39mejfg.js} +13 -13
- package/dist/chunks/{instance-zr0n9bt7.js → repository-cache-f94wsmf1.js} +4 -4
- package/dist/chunks/{instance-50a72dh7.js → repository-cache-fbxj9tpm.js} +4 -4
- package/dist/chunks/{instance-2k8khapm.js → repository-cache-fcrkznn8.js} +5 -5
- package/dist/chunks/repository-cache-fcy631f0.js +62 -0
- package/dist/chunks/{instance-tx5jepxr.js → repository-cache-fj6qct2w.js} +79 -66
- package/dist/chunks/{instance-14q6b86s.js → repository-cache-fmnd8f8t.js} +17 -17
- package/dist/chunks/{instance-edhgwctf.js → repository-cache-fncqf4dd.js} +5 -5
- package/dist/chunks/{instance-fww2ha2b.js → repository-cache-fww2ha2b.js} +2 -2
- package/dist/chunks/{instance-1w2wqhfv.js → repository-cache-fxaymqdw.js} +4 -4
- package/dist/chunks/{instance-ckerv63d.js → repository-cache-fzdrxngq.js} +4 -4
- package/dist/chunks/{instance-ypc4xgvm.js → repository-cache-g2kfam58.js} +22 -22
- package/dist/chunks/{instance-6vzwhms5.js → repository-cache-g5g9rrdp.js} +31 -31
- package/dist/chunks/{instance-kjzbdttd.js → repository-cache-g9rqxbv3.js} +6 -6
- package/dist/chunks/{instance-gd4qta3r.js → repository-cache-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-wfmvav8k.js → repository-cache-gec8gq51.js} +8 -8
- package/dist/chunks/{instance-vd5a229f.js → repository-cache-gkge597h.js} +24 -22
- package/dist/chunks/{instance-xnn7a7ef.js → repository-cache-gnrrjsmd.js} +16 -16
- package/dist/chunks/{instance-9b8s04gb.js → repository-cache-gp5jn49f.js} +27 -24
- package/dist/chunks/{instance-6tnrngrh.js → repository-cache-gpqw730e.js} +8 -8
- package/dist/chunks/{instance-9y6nqyzn.js → repository-cache-gpz4bnby.js} +5 -5
- package/dist/chunks/{instance-pwws2hp2.js → repository-cache-gtsbe4v4.js} +10 -10
- package/dist/chunks/{instance-p6p9qpe8.js → repository-cache-h1f52gh9.js} +30 -30
- package/dist/chunks/{instance-npg16c9q.js → repository-cache-h1schjng.js} +46 -28
- package/dist/chunks/{instance-h6vf3j39.js → repository-cache-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-k3e33c9f.js → repository-cache-h74mnx9x.js} +11 -11
- package/dist/chunks/{instance-a2pz59r9.js → repository-cache-h7q4kewv.js} +36 -36
- package/dist/chunks/{instance-6pn2td3v.js → repository-cache-haz4dce7.js} +15 -15
- package/dist/chunks/repository-cache-hbb7npd7.js +59 -0
- package/dist/chunks/{instance-cqpz2z25.js → repository-cache-hfkjwy2f.js} +18 -18
- package/dist/chunks/{instance-hgz4x7wa.js → repository-cache-hgz4x7wa.js} +1 -1
- package/dist/chunks/{instance-71svxegq.js → repository-cache-hh0jpq4c.js} +71 -74
- package/dist/chunks/{instance-ec8g0tcf.js → repository-cache-hjygm116.js} +26 -26
- package/dist/chunks/{instance-1kn978n9.js → repository-cache-hs0qwjvp.js} +96 -162
- package/dist/chunks/{instance-c4f3nvjn.js → repository-cache-ht1p01b4.js} +17 -17
- package/dist/chunks/{instance-00hj6bjn.js → repository-cache-j5w7gx2k.js} +32 -32
- package/dist/chunks/{instance-qxbyfn4m.js → repository-cache-jargxt5j.js} +11 -11
- package/dist/chunks/{instance-a7p9m6vg.js → repository-cache-jaym3td0.js} +18 -18
- package/dist/chunks/{instance-fxp0jy99.js → repository-cache-jnk63p10.js} +34 -34
- package/dist/chunks/{instance-hrtybn11.js → repository-cache-jsg4jcbs.js} +3 -3
- package/dist/chunks/{instance-ba4zj86y.js → repository-cache-k1jycaz7.js} +23 -23
- package/dist/chunks/{instance-jhx7q1qc.js → repository-cache-k9gaxmgh.js} +2 -2
- package/dist/chunks/{instance-6njkejes.js → repository-cache-kf0zwkk2.js} +24 -24
- package/dist/chunks/{instance-gxvgt8t9.js → repository-cache-kh81xvt5.js} +3 -3
- package/dist/chunks/{instance-jez41mts.js → repository-cache-knhxpfbp.js} +21 -21
- package/dist/chunks/{instance-m82ef0kx.js → repository-cache-kq77jz7h.js} +5 -5
- package/dist/chunks/{instance-74syfsk2.js → repository-cache-kqe08t1d.js} +11 -11
- package/dist/chunks/{instance-kwb1v3vj.js → repository-cache-kwb1v3vj.js} +1 -1
- package/dist/chunks/{instance-tdjzh3mn.js → repository-cache-kx8xg74a.js} +13 -13
- package/dist/chunks/{instance-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-maspj1v3.js → repository-cache-maspj1v3.js} +1 -1
- package/dist/chunks/{instance-a450qmf9.js → repository-cache-mhdex35g.js} +9 -9
- package/dist/chunks/{instance-pbjcynf2.js → repository-cache-mk935gd8.js} +11 -11
- package/dist/chunks/{instance-52w29975.js → repository-cache-mmfyj663.js} +3 -3
- package/dist/chunks/{instance-prvmgnqy.js → repository-cache-mn5j6xz9.js} +5 -5
- package/dist/chunks/{instance-y0r048qb.js → repository-cache-ms89s1xg.js} +181 -180
- package/dist/chunks/{instance-94t3kz80.js → repository-cache-mx97exft.js} +25 -25
- package/dist/chunks/{instance-g6vxq4t7.js → repository-cache-n268d91j.js} +12 -12
- package/dist/chunks/{instance-k74v33jx.js → repository-cache-na3b46a7.js} +22 -22
- package/dist/chunks/{instance-bwe2bky2.js → repository-cache-nbs22qen.js} +4 -4
- package/dist/chunks/{instance-9ar4pza7.js → repository-cache-njebe5fw.js} +19 -19
- package/dist/chunks/{instance-t5d9whg0.js → repository-cache-nxhdjhjw.js} +45 -45
- package/dist/chunks/{instance-h7s7r6s9.js → repository-cache-nz56sr1f.js} +18 -19
- package/dist/chunks/{instance-s1xtywav.js → repository-cache-p7pstqch.js} +15 -15
- package/dist/chunks/{instance-8dp3pqp7.js → repository-cache-pfhhvb3w.js} +5 -5
- package/dist/chunks/{instance-pjvnvgmy.js → repository-cache-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-pknna89w.js → repository-cache-pknna89w.js} +1 -1
- package/dist/chunks/{instance-karq4mt3.js → repository-cache-pmx6p9t5.js} +34 -34
- package/dist/chunks/{instance-nfnvba5x.js → repository-cache-pmx89wj9.js} +12 -12
- package/dist/chunks/{instance-saq4k3ef.js → repository-cache-pnf7bv7v.js} +33 -33
- package/dist/chunks/{instance-snpj5a6q.js → repository-cache-ps8kb85m.js} +11 -11
- package/dist/chunks/{instance-w92k2e0p.js → repository-cache-py3kkmfq.js} +8 -8
- package/dist/chunks/{instance-127b9nq3.js → repository-cache-q0p071b0.js} +3 -3
- package/dist/chunks/{instance-4hxt5e23.js → repository-cache-qcy13bhz.js} +19 -22
- package/dist/chunks/{instance-g6q9qykm.js → repository-cache-qmqgtz8f.js} +9 -9
- package/dist/chunks/{instance-qnc92qwc.js → repository-cache-qnc92qwc.js} +1 -1
- package/dist/chunks/{instance-n886b0hh.js → repository-cache-qsbh95pa.js} +18 -18
- package/dist/chunks/{instance-qsdy395h.js → repository-cache-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-4p9mf0mj.js → repository-cache-r38tb40c.js} +11 -11
- package/dist/chunks/{instance-4q4vnebt.js → repository-cache-r8mc9fw8.js} +7 -7
- package/dist/chunks/{instance-f60ec8ph.js → repository-cache-r8qzytx6.js} +11 -11
- package/dist/chunks/{instance-dy6575tn.js → repository-cache-r8tt5pdh.js} +21 -21
- package/dist/chunks/{instance-j99dhamb.js → repository-cache-rd8qctj1.js} +6 -6
- package/dist/chunks/{instance-rdw6cm16.js → repository-cache-rdw6cm16.js} +1 -1
- package/dist/chunks/{instance-rert0e01.js → repository-cache-rert0e01.js} +2 -2
- package/dist/chunks/{instance-8dc76097.js → repository-cache-rfmm8jvy.js} +28 -28
- package/dist/chunks/{instance-02nrjc1r.js → repository-cache-rhjbct0v.js} +6 -6
- package/dist/chunks/{instance-rj3eygr5.js → repository-cache-rj3eygr5.js} +2 -2
- package/dist/chunks/{instance-76an7qnj.js → repository-cache-rjf4ffg7.js} +11 -11
- package/dist/chunks/{instance-8x4cb7ds.js → repository-cache-rmtct2jg.js} +16 -16
- package/dist/chunks/{instance-4y7j986s.js → repository-cache-rpjgfq5s.js} +9 -9
- package/dist/chunks/{instance-azaahc9x.js → repository-cache-rrymd76b.js} +20 -20
- package/dist/chunks/{instance-0x6zefqk.js → repository-cache-s2b0mt3v.js} +4 -4
- package/dist/chunks/{instance-yw8t9dwe.js → repository-cache-s5met55r.js} +8 -8
- package/dist/chunks/{instance-sa8ekw3f.js → repository-cache-sa8ekw3f.js} +2 -2
- package/dist/chunks/{instance-2wamsapc.js → repository-cache-savvjd0x.js} +33 -23
- package/dist/chunks/{instance-egzk2yjk.js → repository-cache-scqf7y3w.js} +84 -87
- package/dist/chunks/{instance-fjz5gha3.js → repository-cache-sxy57xts.js} +122 -100
- package/dist/chunks/{instance-syv4x271.js → repository-cache-syv4x271.js} +1 -1
- package/dist/chunks/{instance-sz15zhhw.js → repository-cache-sz15zhhw.js} +1 -1
- package/dist/chunks/{instance-99kqc9z2.js → repository-cache-szwj80cc.js} +28 -29
- package/dist/chunks/{instance-mn1n5f3s.js → repository-cache-t4rnqcab.js} +3 -3
- package/dist/chunks/repository-cache-t5gc52ef.js +112 -0
- package/dist/chunks/{instance-r1d9yajz.js → repository-cache-t5nm1h7p.js} +48 -48
- package/dist/chunks/{instance-tazgh4e4.js → repository-cache-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-89znhe33.js → repository-cache-tcezcvh9.js} +4 -4
- package/dist/chunks/{instance-s9w6dcwz.js → repository-cache-tdbmj82j.js} +8 -8
- package/dist/chunks/{instance-tdstcens.js → repository-cache-tdstcens.js} +1 -1
- package/dist/chunks/{instance-9mg0ha5m.js → repository-cache-tfp3dpkf.js} +5 -5
- package/dist/chunks/{instance-asvc535p.js → repository-cache-tgfxvvf8.js} +13 -13
- package/dist/chunks/{instance-tm0kqsz3.js → repository-cache-tm0kqsz3.js} +1 -1
- package/dist/chunks/{instance-5408hnnb.js → repository-cache-twy8yh4t.js} +15 -15
- package/dist/chunks/{instance-jxa15a22.js → repository-cache-txwpsv2p.js} +17 -17
- package/dist/chunks/{instance-tyytaxap.js → repository-cache-tyytaxap.js} +1 -1
- package/dist/chunks/{instance-a2gdg3s5.js → repository-cache-tza759th.js} +36 -36
- package/dist/chunks/{instance-pwjs67dv.js → repository-cache-tzaz3z0t.js} +6 -6
- package/dist/chunks/repository-cache-v061a9c2.js +517 -0
- package/dist/chunks/{instance-v0es1rhs.js → repository-cache-v210v162.js} +5 -5
- package/dist/chunks/{instance-rq74kqrf.js → repository-cache-v30mg9q2.js} +8 -8
- package/dist/chunks/{instance-ryr25ayn.js → repository-cache-v5dkyp31.js} +4 -4
- package/dist/chunks/{instance-b7n2911q.js → repository-cache-v7kdkfkp.js} +25 -25
- package/dist/chunks/{instance-v7p4zvkq.js → repository-cache-v7p4zvkq.js} +2 -2
- package/dist/chunks/{instance-tfzngn12.js → repository-cache-vbfgae2j.js} +4 -4
- package/dist/chunks/{instance-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-qzfs27nc.js → repository-cache-vhj1m4b0.js} +30 -23
- package/dist/chunks/{instance-s7ecmt2f.js → repository-cache-vhwx28nx.js} +22 -17
- package/dist/chunks/{instance-9nypp77e.js → repository-cache-vnm2wjz3.js} +12 -12
- package/dist/chunks/{instance-vzs5sf6e.js → repository-cache-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instance-79aanr6n.js → repository-cache-w12shgbp.js} +20 -20
- package/dist/chunks/{instance-84txncab.js → repository-cache-w1eejvng.js} +5 -5
- package/dist/chunks/repository-cache-w2nph7ph.js +26 -0
- package/dist/chunks/{instance-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-wd87259q.js → repository-cache-wd87259q.js} +1 -1
- package/dist/chunks/{instance-hy029169.js → repository-cache-wp7khyzv.js} +15 -15
- package/dist/chunks/{instance-0aedf7nq.js → repository-cache-wqz8rkkb.js} +21 -21
- package/dist/chunks/{instance-n240m50y.js → repository-cache-x06a86kn.js} +13 -13
- package/dist/chunks/{instance-3cy08nae.js → repository-cache-x2gnjtg4.js} +7 -7
- package/dist/chunks/{instance-s3v8c45g.js → repository-cache-x4jd4xmr.js} +51 -50
- package/dist/chunks/{instance-kjpxk16h.js → repository-cache-x7wne18b.js} +18 -18
- package/dist/chunks/{instance-57b9ws8p.js → repository-cache-xfkkasph.js} +7 -7
- package/dist/chunks/{instance-yx0rmv9r.js → repository-cache-xkrbr206.js} +8 -8
- package/dist/chunks/{instance-y1fvbwt7.js → repository-cache-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-3mksxvab.js → repository-cache-y50tnaxc.js} +9 -9
- package/dist/chunks/{instance-dpkg50ah.js → repository-cache-y71avatq.js} +4 -4
- package/dist/chunks/{instance-rr384mgp.js → repository-cache-y8tjtsy7.js} +9 -9
- package/dist/chunks/{instance-bcrfy1e8.js → repository-cache-yew0zm8m.js} +11 -11
- package/dist/chunks/{instance-xvr6z0ms.js → repository-cache-yfdycbsw.js} +14 -14
- package/dist/chunks/{instance-g95hkc6v.js → repository-cache-yfsa45n4.js} +29 -29
- package/dist/chunks/{instance-n86j2s3s.js → repository-cache-yjxqy5ha.js} +11 -11
- package/dist/chunks/{instance-1e477vzc.js → repository-cache-ys5mczsm.js} +8 -8
- package/dist/chunks/{instance-vz3ca5nz.js → repository-cache-yv2cmth8.js} +1 -1
- package/dist/chunks/{instance-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-3fc6dm20.js → repository-cache-z18fegx4.js} +4 -4
- package/dist/chunks/{instance-47jkzegy.js → repository-cache-z6c3x22d.js} +5 -5
- package/dist/chunks/{instance-n7jnsjte.js → repository-cache-z6dhcqsk.js} +24 -24
- package/dist/chunks/{instance-q3krtzxs.js → repository-cache-z86wre2g.js} +30 -30
- package/dist/chunks/{instance-8j7djd22.js → repository-cache-zmy0eq9j.js} +20 -20
- package/dist/chunks/{instance-nsdb0f42.js → repository-cache-znqen040.js} +11 -11
- package/dist/chunks/{instance-ksbyxnj1.js → repository-cache-zp864mkb.js} +21 -18
- package/dist/chunks/{instance-zr2ceqn5.js → repository-cache-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-vcnzat6y.js → repository-cache-zs22chpb.js} +26 -26
- package/dist/chunks/repository-cache-zx24wvbj.js +130 -0
- package/dist/chunks/{instance-zxq2ej10.js → repository-cache-zxq2ej10.js} +1 -1
- package/dist/chunks/{instance-kp7zea7r.js → repository-cache-zz6a9he3.js} +28 -28
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +155 -154
- package/dist/config/plugin/compatibility.js +135 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +10 -0
- package/dist/config/plugin/skill.js +138 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +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 +86 -83
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -367
- 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 +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +104 -104
- 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 +219 -218
- package/dist/filesystem/protected.js +3 -3
- 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 +108 -108
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +104 -103
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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 +361 -358
- 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 +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -355
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +2 -2
- 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-retry.js +10 -0
- package/dist/model.js +104 -104
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +3 -3
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -220
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- 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 +138 -137
- 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 +5 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +155 -154
- package/dist/session/history.js +19 -13
- package/dist/session/inbox.js +95 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +10 -10
- 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 +91 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +14 -0
- package/dist/session/revert.js +96 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -4
- package/dist/session/runner/step.js +128 -127
- package/dist/session/runner/to-llm-message.js +14 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -205
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -211
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- 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 +111 -111
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +209 -208
- package/dist/tool/plugin/todo.js +147 -0
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/account/sql.d.ts +3 -3
- package/dist/types/codemode/tool.d.ts +12 -12
- package/dist/types/config/discovery.d.ts +2 -2
- package/dist/types/config/plugin/entry-observer.d.ts +1 -1
- package/dist/types/config/plugin/instruction.d.ts +1 -1
- package/dist/types/config/plugin/skill-scan.d.ts +5 -0
- package/dist/types/config.d.ts +1 -1
- package/dist/types/credential/sql.d.ts +1 -4
- package/dist/types/credential.d.ts +0 -3
- package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
- package/dist/types/database/migration/20260805200742_import_legacy_credentials.d.ts +1 -1
- package/dist/types/database/path.d.ts +16 -16
- package/dist/types/database/sqlite.bun.d.ts +1 -1
- package/dist/types/database/sqlite.node.d.ts +1 -1
- package/dist/types/database/sqlite.workerd.d.ts +1 -1
- package/dist/types/effect/websocket-constructor.d.ts +2 -1
- package/dist/types/environment/files.d.ts +1 -1
- package/dist/types/event/sql.d.ts +2 -2
- package/dist/types/file-mutation.d.ts +4 -3
- package/dist/types/filesystem.d.ts +1 -1
- package/dist/types/form.d.ts +55 -55
- package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +27 -27
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +80 -80
- package/dist/types/github-copilot/responses/tool/file-search.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/image-generation.d.ts +5 -5
- package/dist/types/github-copilot/responses/tool/web-search-preview.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/web-search.d.ts +1 -1
- package/dist/types/image/photon-wasm.workerd.d.ts +1 -1
- package/dist/types/image/photon.d.ts +5 -5
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/integration.d.ts +257 -257
- package/dist/types/kv/sql.d.ts +1 -1
- package/dist/types/managed-policy.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +74 -74
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/model-retry.d.ts +14 -0
- package/dist/types/model.d.ts +76 -73
- package/dist/types/permission/saved.d.ts +26 -1
- package/dist/types/permission/sql.d.ts +1 -1
- package/dist/types/permission.d.ts +1 -1
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -1
- package/dist/types/persistent-pty/binary.node.d.ts +1 -1
- package/dist/types/plugin/command.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/module.d.ts +7 -7
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/digitalocean.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
- package/dist/types/plugin/provider/local.d.ts +2 -2
- package/dist/types/plugin/provider/ollama.d.ts +2 -2
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/plugin/provider/poe.d.ts +1 -1
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/provider/vllm.d.ts +2 -2
- package/dist/types/plugin/supervisor.d.ts +2 -2
- package/dist/types/plugin/websearch/exa.d.ts +1 -1
- package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
- package/dist/types/plugin/websearch/index.d.ts +1 -1
- package/dist/types/plugin/websearch/parallel.d.ts +1 -1
- package/dist/types/plugin/websearch/tavily.d.ts +1 -1
- package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
- package/dist/types/project/sql.d.ts +75 -75
- package/dist/types/provider.d.ts +3 -1
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/diff.d.ts +1 -1
- package/dist/types/session/error.d.ts +4 -0
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/execution.d.ts +2 -2
- package/dist/types/session/generate.d.ts +1 -1
- package/dist/types/session/history.d.ts +389 -1242
- package/dist/types/session/inbox.d.ts +110 -110
- package/dist/types/session/instruction-entry.d.ts +2 -2
- package/dist/types/session/instruction-state.d.ts +7 -3
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +7 -7
- package/dist/types/session/recent-text.d.ts +11 -0
- package/dist/types/session/revert.d.ts +1 -1
- package/dist/types/session/runner/index.d.ts +42 -46
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +86 -96
- package/dist/types/session/session.d.ts +29 -27
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/sql.d.ts +139 -139
- package/dist/types/session/stats.d.ts +1 -1
- package/dist/types/session/store.d.ts +8 -5
- package/dist/types/session/subagent-completion.d.ts +1 -1
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +31 -81
- package/dist/types/session.d.ts +24 -11
- package/dist/types/shell/result.d.ts +14 -14
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/state.d.ts +1 -1
- package/dist/types/tool/plugin/read.d.ts +2 -2
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/skill.d.ts +1 -1
- package/dist/types/tool/plugin/todo.d.ts +29 -0
- package/dist/types/tool/plugin/webfetch.d.ts +1 -1
- package/dist/types/tool/read-filesystem.d.ts +4 -4
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/util/error.d.ts +36 -32
- package/dist/types/v1/config/agent.d.ts +2 -2
- package/dist/types/v1/config/error.d.ts +51 -46
- package/dist/types/v1/config/migrate.d.ts +14 -14
- package/dist/types/v1/config/permission.d.ts +3 -3
- package/dist/types/wellknown.d.ts +4 -6
- package/dist/types/workspace/sql.d.ts +1 -1
- package/dist/types/worktree/git.d.ts +3 -3
- package/dist/types/worktree/sql.d.ts +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +10 -10
- package/dist/chunks/instance-0e3j8fc0.js +0 -257
- package/dist/chunks/instance-3x6psag0.js +0 -73
- package/dist/chunks/instance-4j4tgtq5.js +0 -69
- package/dist/chunks/instance-6hkj46ta.js +0 -26
- package/dist/chunks/instance-em3k6scw.js +0 -95
- package/dist/chunks/instance-rap9a73h.js +0 -18
- package/dist/chunks/instance-v4640cdb.js +0 -513
- package/dist/chunks/instance-zyk1yjk8.js +0 -80
- package/dist/session/provider-context.js +0 -20
- package/dist/types/session/provider-context.d.ts +0 -46
- /package/dist/chunks/{instance-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → repository-cache-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → repository-cache-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2bv980vf.js → repository-cache-2bv980vf.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → repository-cache-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3t0ybcrp.js → repository-cache-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → repository-cache-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → repository-cache-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → repository-cache-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-6q2bdcd1.js → repository-cache-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → repository-cache-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-84wd9syh.js → repository-cache-84wd9syh.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → repository-cache-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → repository-cache-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → repository-cache-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hcxmzztb.js → repository-cache-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → repository-cache-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jze0r7bz.js → repository-cache-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-m18g726c.js → repository-cache-m18g726c.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-pkyv6v7h.js → repository-cache-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{instance-pyv0edze.js → repository-cache-pyv0edze.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-ve7vex1e.js → repository-cache-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wjj7prxr.js → repository-cache-wjj7prxr.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → repository-cache-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → repository-cache-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
|
@@ -1,83 +1,84 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-cache-kh81xvt5.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-cache-8reangzk.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-cache-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID11,
|
|
14
|
+
Service68,
|
|
15
|
+
node72
|
|
16
|
+
} from "./repository-cache-wqz8rkkb.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./repository-cache-775gj3j1.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service72,
|
|
22
|
+
node76
|
|
23
|
+
} from "./repository-cache-h1f52gh9.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./repository-cache-h6vf3j39.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-cache-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
31
|
+
kept2,
|
|
32
|
+
messageToText2,
|
|
33
|
+
truncateToolOutput2,
|
|
34
|
+
serializeToolContent2
|
|
35
|
+
} from "./repository-cache-8mywswrd.js";
|
|
36
36
|
import {
|
|
37
|
+
isNativeCompaction2,
|
|
37
38
|
load5
|
|
38
|
-
} from "./
|
|
39
|
+
} from "./repository-cache-zx24wvbj.js";
|
|
39
40
|
import {
|
|
40
41
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
42
|
+
} from "./repository-cache-5f5dfnyg.js";
|
|
42
43
|
import {
|
|
43
44
|
outputLimit2,
|
|
44
45
|
baseTranscript2,
|
|
45
46
|
unsupportedParts2,
|
|
46
47
|
boundImages2,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "./
|
|
48
|
+
Service39,
|
|
49
|
+
node42
|
|
50
|
+
} from "./repository-cache-x4jd4xmr.js";
|
|
50
51
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
52
|
+
Service53,
|
|
53
|
+
node56
|
|
54
|
+
} from "./repository-cache-f39mejfg.js";
|
|
54
55
|
import {
|
|
55
56
|
isRetryable2,
|
|
56
57
|
policy2
|
|
57
|
-
} from "./
|
|
58
|
+
} from "./repository-cache-hbb7npd7.js";
|
|
58
59
|
import {
|
|
59
60
|
toSessionError2,
|
|
60
61
|
contentFilterError2
|
|
61
|
-
} from "./
|
|
62
|
+
} from "./repository-cache-mn5j6xz9.js";
|
|
62
63
|
import {
|
|
63
64
|
calculateCost2,
|
|
64
65
|
record2,
|
|
65
66
|
add2
|
|
66
|
-
} from "./
|
|
67
|
+
} from "./repository-cache-tdstcens.js";
|
|
67
68
|
import {
|
|
68
69
|
__export
|
|
69
|
-
} from "./
|
|
70
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
70
71
|
|
|
71
72
|
// src/session/compaction.ts
|
|
72
73
|
var exports_compaction2 = {};
|
|
73
74
|
__export(exports_compaction2, {
|
|
74
|
-
Service: () =>
|
|
75
|
+
Service: () => Service10,
|
|
75
76
|
SessionCompaction: () => exports_compaction2,
|
|
76
77
|
buildPrompt: () => buildPrompt2,
|
|
77
78
|
estimateContext: () => estimateContext2,
|
|
78
79
|
estimatePrompt: () => estimatePrompt2,
|
|
79
|
-
layer: () =>
|
|
80
|
-
node: () =>
|
|
80
|
+
layer: () => layer7,
|
|
81
|
+
node: () => node12,
|
|
81
82
|
recentUserMessages: () => recentUserMessages2
|
|
82
83
|
});
|
|
83
84
|
import {
|
|
@@ -93,13 +94,13 @@ import {
|
|
|
93
94
|
} from "@opencode/ai";
|
|
94
95
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
95
96
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
96
|
-
class
|
|
97
|
+
class Service10 extends Context.Service()("@opencode/SessionCompaction") {
|
|
97
98
|
}
|
|
98
99
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
99
100
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
100
101
|
var RESERVE_MIN = 16000;
|
|
102
|
+
var RESERVE_SHARE = 0.15;
|
|
101
103
|
var UNKNOWN_WINDOW = 200000;
|
|
102
|
-
var TOOL_OUTPUT_MAX_CHARS = 1250;
|
|
103
104
|
var IMAGE_TOKEN_ESTIMATE = 1500;
|
|
104
105
|
var PDF_TOKEN_ESTIMATE = 2000;
|
|
105
106
|
var SUMMARY_TEMPLATE = `You MUST use this format for your response (you may omit sections that aren't applicable). Do not include the <template> tags in your response.
|
|
@@ -172,14 +173,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
172
173
|
};
|
|
173
174
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
174
175
|
var LEGACY_HEADING = "## Additional Context";
|
|
175
|
-
var
|
|
176
|
-
const agents = yield*
|
|
176
|
+
var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
177
|
+
const agents = yield* Service68;
|
|
177
178
|
const bus = yield* Service85;
|
|
178
179
|
const llm = yield* LLMClient.Service;
|
|
179
|
-
const catalog = yield*
|
|
180
|
-
const models = yield*
|
|
180
|
+
const catalog = yield* Service72;
|
|
181
|
+
const models = yield* Service53;
|
|
181
182
|
const db = (yield* Service86).db;
|
|
182
|
-
const requests = yield*
|
|
183
|
+
const requests = yield* Service39;
|
|
183
184
|
const state = create3({
|
|
184
185
|
name: "session-compaction",
|
|
185
186
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -197,7 +198,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
197
198
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
198
199
|
return { status: "skipped" };
|
|
199
200
|
const native = context.model.compaction?.type === "native";
|
|
200
|
-
const agent = native ? undefined : yield* agents.get(
|
|
201
|
+
const agent = native ? undefined : yield* agents.get(ID11.make("compaction"));
|
|
201
202
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
202
203
|
return;
|
|
203
204
|
})))) ?? context.model;
|
|
@@ -217,14 +218,14 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
217
218
|
if (last?.type === "compaction" && last.status === "completed")
|
|
218
219
|
return false;
|
|
219
220
|
const measured = messages.findLastIndex((message) => hasMeasuredPrompt(message, context.model.ref));
|
|
220
|
-
if (measured < messages.findLastIndex(
|
|
221
|
+
if (measured < messages.findLastIndex(isNativeCompaction2))
|
|
221
222
|
return false;
|
|
222
223
|
return estimateContext2(context) >= ceiling;
|
|
223
224
|
};
|
|
224
225
|
const summarize = Effect.fnUntraced(function* (trigger, budget, keep) {
|
|
225
226
|
const context = trigger.context;
|
|
226
227
|
const split = splitConversation(context.messages, keep);
|
|
227
|
-
if (
|
|
228
|
+
if (split === undefined)
|
|
228
229
|
return yield* Effect.fail(NOTHING_TO_COMPACT);
|
|
229
230
|
const previous = previousCompaction(context.messages);
|
|
230
231
|
const prompt = buildPrompt2(previous !== undefined, previous?.summary.includes(LEGACY_HEADING) ?? false);
|
|
@@ -232,16 +233,16 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
232
233
|
`).filter((line) => line.startsWith("##"));
|
|
233
234
|
const filled = (text) => text.split(`
|
|
234
235
|
`).some((line) => headings.includes(line.trim()));
|
|
235
|
-
const prepared = yield* prepare(context,
|
|
236
|
+
const prepared = yield* prepare(context, context.messages, budget);
|
|
236
237
|
const send = (request) => Effect.gen(function* () {
|
|
237
238
|
const prompted = fitOutput(LLMRequest.update(request, { messages: [...request.messages, Message.user(prompt)] }), context.model.limit);
|
|
238
239
|
const reply = yield* stream(context, prompted, prepared.options);
|
|
239
240
|
if (filled(reply.text))
|
|
240
|
-
return
|
|
241
|
+
return reply;
|
|
241
242
|
const nudged = fitOutput(LLMRequest.update(prompted, { messages: [...prompted.messages, Message.user(NUDGE)] }), context.model.limit);
|
|
242
243
|
const retry = yield* stream(context, nudged, prepared.options);
|
|
243
244
|
if (filled(retry.text))
|
|
244
|
-
return
|
|
245
|
+
return retry;
|
|
245
246
|
return yield* Effect.fail({
|
|
246
247
|
error: {
|
|
247
248
|
type: "compaction.failed",
|
|
@@ -250,25 +251,24 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
250
251
|
});
|
|
251
252
|
});
|
|
252
253
|
const overhead = estimate2(prompt) + estimate2(NUDGE);
|
|
253
|
-
|
|
254
|
+
const fit = trigger.reason === "overflow" ? budget : Math.max(budget, summaryRoom(context.model.limit));
|
|
255
|
+
const result = yield* deliver(trigger, prepared, budget - overhead, send, {
|
|
256
|
+
fit: fit - overhead,
|
|
257
|
+
history: withoutTail(prepared.request, split.keepID)
|
|
258
|
+
});
|
|
259
|
+
if (!split.keepID)
|
|
260
|
+
return result;
|
|
261
|
+
return { ...result, metadata: { keepID: split.keepID, ...result.metadata } };
|
|
254
262
|
});
|
|
255
263
|
const compactNatively = Effect.fnUntraced(function* (trigger, budget, keep) {
|
|
256
264
|
const context = trigger.context;
|
|
257
|
-
if (!context.messages.some(
|
|
265
|
+
if (!context.messages.some(messageToText2))
|
|
258
266
|
return yield* Effect.fail(NOTHING_TO_COMPACT);
|
|
259
267
|
const unsupported = (message) => Effect.fail({ error: { type: "provider.unsupported-operation", message } });
|
|
260
268
|
const prepared = yield* prepare(context, context.messages, budget, "session");
|
|
261
|
-
const provenance = provenance2(context.model);
|
|
262
|
-
if (!provenance)
|
|
263
|
-
return yield* unsupported("Provider compaction requires a stable, configured endpoint");
|
|
264
|
-
const routed = provenance2({ model: prepared.request.model, ref: context.model.ref });
|
|
265
|
-
if (!compatible2(provenance, routed)) {
|
|
266
|
-
return yield* unsupported("Provider compaction requires the endpoint in provider/model settings, not a model.request rewrite");
|
|
267
|
-
}
|
|
268
269
|
const toResult = (window, usage) => spend(context.session.id, usage && record2(usage, context.model.cost)).pipe(Effect.as({
|
|
269
270
|
text: "",
|
|
270
|
-
|
|
271
|
-
providerContext: encode2(provenance, window)
|
|
271
|
+
native: { messages: JSON.parse(JSON.stringify(window)) }
|
|
272
272
|
}));
|
|
273
273
|
const send = (request) => {
|
|
274
274
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
@@ -284,22 +284,23 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
284
284
|
}
|
|
285
285
|
return unsupported(`Native compaction is not supported for ${request.model.provider}/${request.model.route.id}`);
|
|
286
286
|
};
|
|
287
|
-
return yield* deliver(trigger, prepared,
|
|
287
|
+
return yield* deliver(trigger, prepared, budget, send);
|
|
288
288
|
});
|
|
289
|
-
const deliver = Effect.fnUntraced(function* (trigger, prepared,
|
|
289
|
+
const deliver = Effect.fnUntraced(function* (trigger, prepared, target, send, shrink = { fit: target, history: prepared.request }) {
|
|
290
290
|
const context = trigger.context;
|
|
291
291
|
if (trigger.reason !== "manual") {
|
|
292
|
-
yield* bus.publish(SessionEvent2.Compaction.Started, { sessionID: context.session.id, reason: "auto"
|
|
292
|
+
yield* bus.publish(SessionEvent2.Compaction.Started, { sessionID: context.session.id, reason: "auto" });
|
|
293
293
|
}
|
|
294
294
|
if (prepared.event.result)
|
|
295
|
-
return yield* fromHook(context, prepared.event.result
|
|
295
|
+
return yield* fromHook(context, prepared.event.result);
|
|
296
296
|
const policy = yield* policy2(context.session.id);
|
|
297
297
|
let rejections = 0;
|
|
298
298
|
let rejected;
|
|
299
299
|
let asText = false;
|
|
300
|
+
let fit = shrink.fit;
|
|
300
301
|
while (true) {
|
|
301
|
-
const
|
|
302
|
-
const request =
|
|
302
|
+
const unchanged = asText ? undefined : estimateRequest(prepared.request) <= fit ? prepared.request : estimateRequest(shrink.history) <= target ? shrink.history : undefined;
|
|
303
|
+
const request = unchanged ?? flattenAndDropOldest(shrink.history, context, target) ?? (rejections > 0 ? undefined : asText ? flattenAndDropOldest(shrink.history, context, Number.POSITIVE_INFINITY) : shrink.history);
|
|
303
304
|
if (!request) {
|
|
304
305
|
return yield* Effect.fail({
|
|
305
306
|
error: {
|
|
@@ -316,7 +317,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
316
317
|
return yield* Effect.fail(cause);
|
|
317
318
|
const error = toSessionError2(cause);
|
|
318
319
|
const tooLarge = cause.reason._tag === "InvalidRequest" && cause.reason.classification === "payload-too-large";
|
|
319
|
-
if (tooLarge && request === prepared.request) {
|
|
320
|
+
if (tooLarge && (request === prepared.request || request === shrink.history)) {
|
|
320
321
|
asText = true;
|
|
321
322
|
continue;
|
|
322
323
|
}
|
|
@@ -326,6 +327,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
326
327
|
return yield* Effect.fail({ error });
|
|
327
328
|
rejected ??= estimateRequest(request);
|
|
328
329
|
target = Math.floor(rejected * step);
|
|
330
|
+
fit = target;
|
|
329
331
|
rejections++;
|
|
330
332
|
continue;
|
|
331
333
|
}
|
|
@@ -345,8 +347,9 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
345
347
|
const flattenAndDropOldest = (request, context, target) => {
|
|
346
348
|
const previous = previousCompaction(context.messages);
|
|
347
349
|
const end = request.messages.findLastIndex((message) => previous !== undefined && message.id === previous.id || message.content.some((part) => part.type === "compaction")) + 1;
|
|
348
|
-
const summary = previous !== undefined && !
|
|
349
|
-
const lead = summary ? toLLMMessages2([{ ...summary, recent: "" }], context.model.ref) : request.messages.slice(0, end);
|
|
350
|
+
const summary = previous !== undefined && !isNativeCompaction2(previous) ? previous : undefined;
|
|
351
|
+
const lead = summary ? toLLMMessages2([{ ...summary, metadata: { ...summary.metadata, recent: "" } }], context.model.ref) : request.messages.slice(0, end);
|
|
352
|
+
const recent = summary ? kept2(summary) : "";
|
|
350
353
|
const exchanges = request.messages.slice(end).reduce((groups, message) => {
|
|
351
354
|
const text = flattenMessage(message);
|
|
352
355
|
if (!text)
|
|
@@ -357,7 +360,7 @@ var layer6 = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
357
360
|
groups[groups.length - 1] += `
|
|
358
361
|
${text}`;
|
|
359
362
|
return groups;
|
|
360
|
-
},
|
|
363
|
+
}, recent ? [recent] : []);
|
|
361
364
|
const note = (omitted) => omitted ? `[${omitted} older ${omitted === 1 ? "exchange" : "exchanges"} omitted]
|
|
362
365
|
|
|
363
366
|
` : "";
|
|
@@ -373,7 +376,6 @@ ${text}`;
|
|
|
373
376
|
};
|
|
374
377
|
const stream = (context, request, options) => {
|
|
375
378
|
const sessionID = context.session.id;
|
|
376
|
-
const metadataKey = context.model.model.route.providerMetadataKey ?? context.model.model.provider;
|
|
377
379
|
const unusable = (error) => Effect.fail({ error });
|
|
378
380
|
return llm.stream(request, options).pipe(Stream.runFoldEffect(() => ({ text: "" }), (streamed, event) => {
|
|
379
381
|
if (LLMEvent.is.providerError(event)) {
|
|
@@ -387,7 +389,7 @@ ${text}`;
|
|
|
387
389
|
return bus.publish(SessionEvent2.Compaction.Delta, { sessionID, text: event.text }).pipe(Effect.as({ ...streamed, text: streamed.text + event.text }));
|
|
388
390
|
}
|
|
389
391
|
if (LLMEvent.is.stepFinish(event)) {
|
|
390
|
-
return spend(sessionID, record2(event.usage, context.model.cost)).pipe(Effect.as(
|
|
392
|
+
return spend(sessionID, record2(event.usage, context.model.cost)).pipe(Effect.as(streamed));
|
|
391
393
|
}
|
|
392
394
|
if (!LLMEvent.is.finish(event))
|
|
393
395
|
return Effect.succeed(streamed);
|
|
@@ -426,15 +428,14 @@ ${text}`;
|
|
|
426
428
|
inputTokens: { measured: budget, estimated: 0 }
|
|
427
429
|
});
|
|
428
430
|
};
|
|
429
|
-
const fromHook = (context, supplied
|
|
431
|
+
const fromHook = (context, supplied) => {
|
|
430
432
|
const usage = supplied.tokens && {
|
|
431
433
|
tokens: supplied.tokens,
|
|
432
434
|
cost: calculateCost2(context.model.cost, supplied.tokens)
|
|
433
435
|
};
|
|
434
436
|
return spend(context.session.id, usage).pipe(Effect.as({
|
|
435
437
|
text: supplied.summary,
|
|
436
|
-
|
|
437
|
-
providerState: supplied.providerState,
|
|
438
|
+
native: supplied.native,
|
|
438
439
|
metadata: supplied.metadata
|
|
439
440
|
}));
|
|
440
441
|
};
|
|
@@ -465,24 +466,22 @@ ${text}`;
|
|
|
465
466
|
sessionID,
|
|
466
467
|
reason,
|
|
467
468
|
model: context.model.ref,
|
|
468
|
-
|
|
469
|
-
providerContext: outcome.providerContext,
|
|
469
|
+
native: outcome.native,
|
|
470
470
|
text: outcome.text,
|
|
471
|
-
recent: outcome.recent,
|
|
472
471
|
...usage
|
|
473
472
|
}, { metadata: outcome.metadata });
|
|
474
473
|
return { status: "completed" };
|
|
475
474
|
});
|
|
476
|
-
return
|
|
475
|
+
return Service10.of({
|
|
477
476
|
transform: state.transform,
|
|
478
477
|
reload: state.reload,
|
|
479
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
480
479
|
});
|
|
481
480
|
}));
|
|
482
|
-
var
|
|
483
|
-
service:
|
|
484
|
-
layer:
|
|
485
|
-
deps: [
|
|
481
|
+
var node12 = makeLocationNode({
|
|
482
|
+
service: Service10,
|
|
483
|
+
layer: layer7,
|
|
484
|
+
deps: [node72, node89, node90, llmClient2, node76, node42, node56]
|
|
486
485
|
});
|
|
487
486
|
var previousCompaction = (messages) => {
|
|
488
487
|
const [first] = messages;
|
|
@@ -496,20 +495,23 @@ var transcript = (context, messages) => baseTranscript2({
|
|
|
496
495
|
messages
|
|
497
496
|
});
|
|
498
497
|
var splitConversation = (messages, keep) => {
|
|
499
|
-
const entries = messages.flatMap((message
|
|
500
|
-
const text =
|
|
501
|
-
return text ? [{ message, text
|
|
498
|
+
const entries = messages.flatMap((message) => {
|
|
499
|
+
const text = messageToText2(message);
|
|
500
|
+
return text ? [{ message, text }] : [];
|
|
502
501
|
});
|
|
503
502
|
if (entries.length === 0)
|
|
504
503
|
return;
|
|
505
|
-
const
|
|
504
|
+
const first = entries[recentStart(entries, keep, previousCompaction(messages))];
|
|
506
505
|
return {
|
|
507
|
-
|
|
508
|
-
recent: recent.map((entry) => entry.text).join(`
|
|
509
|
-
|
|
510
|
-
`)
|
|
506
|
+
keepID: first?.message.id
|
|
511
507
|
};
|
|
512
508
|
};
|
|
509
|
+
var withoutTail = (request, from) => {
|
|
510
|
+
const index = from === undefined ? -1 : request.messages.findIndex((message) => message.id === from);
|
|
511
|
+
if (index < 0)
|
|
512
|
+
return request;
|
|
513
|
+
return LLMRequest.update(request, { messages: request.messages.slice(0, index) });
|
|
514
|
+
};
|
|
513
515
|
var recentStart = (entries, keep, previous) => {
|
|
514
516
|
const dropped = Math.min(oldestToDrop(entries, (entry) => estimate2(entry.text), keep), entries.length - 1);
|
|
515
517
|
const userBoundary = entries.findLastIndex((entry, index) => index <= dropped && entry.message.type === "user");
|
|
@@ -518,7 +520,7 @@ var recentStart = (entries, keep, previous) => {
|
|
|
518
520
|
const latestUser = entries.findLastIndex((entry) => entry.message.type === "user");
|
|
519
521
|
if (latestUser > 0)
|
|
520
522
|
return latestUser;
|
|
521
|
-
return previous
|
|
523
|
+
return previous && kept2(previous) ? 0 : entries.length;
|
|
522
524
|
};
|
|
523
525
|
var oldestToDrop = (items, size, budget) => {
|
|
524
526
|
let total = 0;
|
|
@@ -532,69 +534,6 @@ var oldestToDrop = (items, size, budget) => {
|
|
|
532
534
|
}
|
|
533
535
|
return start;
|
|
534
536
|
};
|
|
535
|
-
var messageToText = (message) => {
|
|
536
|
-
switch (message.type) {
|
|
537
|
-
case "compaction":
|
|
538
|
-
case "system":
|
|
539
|
-
return "";
|
|
540
|
-
case "user": {
|
|
541
|
-
const skills = message.skills?.flatMap((skill) => skill.text === undefined ? [] : [`[Skill activated: ${skill.name}]
|
|
542
|
-
${skill.text}`]) ?? [];
|
|
543
|
-
const files = message.files?.map((file) => {
|
|
544
|
-
const name = file.name ?? (file.source.type === "uri" ? file.source.uri : "inline attachment");
|
|
545
|
-
return `[Attached ${file.mime}: ${name}]`;
|
|
546
|
-
}) ?? [];
|
|
547
|
-
return [...skills, `[User]: ${message.text}`, ...files].join(`
|
|
548
|
-
`);
|
|
549
|
-
}
|
|
550
|
-
case "location-switched":
|
|
551
|
-
return `[User]: The working directory has been changed to ${message.location.directory}.`;
|
|
552
|
-
case "assistant":
|
|
553
|
-
return message.content.flatMap((part) => {
|
|
554
|
-
if (part.type === "text")
|
|
555
|
-
return [`[Assistant]: ${part.text}`];
|
|
556
|
-
if (part.type === "reasoning")
|
|
557
|
-
return part.text ? [`[Assistant reasoning]: ${part.text}`] : [];
|
|
558
|
-
const input = typeof part.state.input === "string" ? part.state.input : JSON.stringify(part.state.input);
|
|
559
|
-
const call = `[Assistant tool call]: ${part.name}(${input})`;
|
|
560
|
-
if (part.state.status === "completed") {
|
|
561
|
-
return [call, `[Tool result]: ${truncateToolOutput(serializeToolContent(part.state.content))}`];
|
|
562
|
-
}
|
|
563
|
-
if (part.state.status === "error")
|
|
564
|
-
return [call, `[Tool error]: ${part.state.error.message}`];
|
|
565
|
-
return [call];
|
|
566
|
-
}).join(`
|
|
567
|
-
`);
|
|
568
|
-
case "synthetic":
|
|
569
|
-
return `[Synthetic context]: ${message.text}`;
|
|
570
|
-
case "skill":
|
|
571
|
-
return `[Skill activated: ${message.name}]
|
|
572
|
-
${message.text}`;
|
|
573
|
-
case "shell":
|
|
574
|
-
if (message.metadata?.background === true)
|
|
575
|
-
return "";
|
|
576
|
-
return `[Shell]: ${message.command}
|
|
577
|
-
${truncateToolOutput(message.output?.output ?? "")}`;
|
|
578
|
-
default:
|
|
579
|
-
return "";
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
var truncateToolOutput = (value) => {
|
|
583
|
-
if (value.length <= TOOL_OUTPUT_MAX_CHARS)
|
|
584
|
-
return value;
|
|
585
|
-
let end = 0;
|
|
586
|
-
let kept = 0;
|
|
587
|
-
for (const char of value) {
|
|
588
|
-
if (kept === TOOL_OUTPUT_MAX_CHARS)
|
|
589
|
-
break;
|
|
590
|
-
end += char.length;
|
|
591
|
-
kept++;
|
|
592
|
-
}
|
|
593
|
-
if (end === value.length)
|
|
594
|
-
return value;
|
|
595
|
-
return `${value.slice(0, end)}
|
|
596
|
-
[truncated]`;
|
|
597
|
-
};
|
|
598
537
|
var flattenMessage = (message) => {
|
|
599
538
|
if (message.role === "system")
|
|
600
539
|
return "";
|
|
@@ -608,18 +547,12 @@ var flattenMessage = (message) => {
|
|
|
608
547
|
if (part.type !== "tool-result")
|
|
609
548
|
return [];
|
|
610
549
|
const result = part.result;
|
|
611
|
-
const output = result.type === "content" ?
|
|
550
|
+
const output = result.type === "content" ? serializeToolContent2(result.value) : typeof result.value === "string" ? result.value : JSON.stringify(result.value) ?? "";
|
|
612
551
|
const label = result.type === "error" ? "Tool error" : "Tool result";
|
|
613
|
-
return [`[${label}]: ${
|
|
552
|
+
return [`[${label}]: ${truncateToolOutput2(output)}`];
|
|
614
553
|
}).join(`
|
|
615
554
|
`);
|
|
616
555
|
};
|
|
617
|
-
var serializeToolContent = (content) => content.map((item) => {
|
|
618
|
-
if (item.type === "text")
|
|
619
|
-
return item.text;
|
|
620
|
-
return `[Attached ${item.mime}${item.name === undefined ? "" : `: ${item.name}`}]`;
|
|
621
|
-
}).join(`
|
|
622
|
-
`);
|
|
623
556
|
var recentUserMessages2 = (messages, model, keep) => {
|
|
624
557
|
const users = messages.filter((message) => message.type === "user").map((message) => ({ ...message, skills: undefined }));
|
|
625
558
|
const sendable = boundImages2(unsupportedParts2(toLLMMessages2(users, model.ref), model.capabilities));
|
|
@@ -652,8 +585,9 @@ var calculateCeiling = (limit, buffer) => {
|
|
|
652
585
|
return Number.POSITIVE_INFINITY;
|
|
653
586
|
if (buffer !== undefined)
|
|
654
587
|
return window - buffer;
|
|
655
|
-
return window - Math.max(Math.floor(window *
|
|
588
|
+
return window - Math.max(Math.floor(window * RESERVE_SHARE), window >= 2 * RESERVE_MIN ? RESERVE_MIN : 0);
|
|
656
589
|
};
|
|
590
|
+
var summaryRoom = (limit) => Math.max(0, (limit.input || limit.context) - RESERVE_MIN);
|
|
657
591
|
var hasMeasuredPrompt = (message, model) => message.type === "assistant" && message.model.providerID === model.providerID && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
|
|
658
592
|
var fitOutput = (request, limit) => {
|
|
659
593
|
const current = request.generation?.maxTokens;
|
|
@@ -696,4 +630,4 @@ var estimateMedia = (mime) => {
|
|
|
696
630
|
return 0;
|
|
697
631
|
};
|
|
698
632
|
|
|
699
|
-
export {
|
|
633
|
+
export { Service10, buildPrompt2, layer7, node12, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-yew0zm8m.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-8reangzk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./repository-cache-7jwh32ts.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-cache-g5g9rrdp.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
ID13
|
|
17
|
+
} from "./repository-cache-9m35c2r0.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID12,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./repository-cache-h1f52gh9.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./repository-cache-pjvnvgmy.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/digitalocean.ts
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
|
-
import { Clock, Deferred, Effect, Option,
|
|
28
|
+
import { Clock, Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
30
|
-
var providerID =
|
|
31
|
-
var integrationID =
|
|
30
|
+
var providerID = ID13.make("digitalocean");
|
|
31
|
+
var integrationID = ID14.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID12.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -159,8 +159,8 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
163
|
-
yield* refresh().pipe(Effect.
|
|
162
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
|
+
yield* refresh().pipe(Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|
|
166
166
|
function listen(server) {
|