@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,61 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-cache-kh81xvt5.js";
|
|
5
5
|
import {
|
|
6
6
|
reserveSequence2,
|
|
7
7
|
Service85,
|
|
8
8
|
node89
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-8reangzk.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-cache-ec1grn59.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-cache-gftt206x.js";
|
|
16
16
|
import {
|
|
17
17
|
update2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-cache-nz56sr1f.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath2,
|
|
21
21
|
RelativePath2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./repository-cache-z5v4ffb3.js";
|
|
23
23
|
import {
|
|
24
24
|
ProjectTable2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./repository-cache-rj3eygr5.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionTable2,
|
|
28
28
|
SessionMessageTable2,
|
|
29
29
|
SessionInboxTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./repository-cache-c1fqxshp.js";
|
|
31
|
+
import {
|
|
32
|
+
apply2,
|
|
33
|
+
initialize3,
|
|
34
|
+
advanceEpoch2,
|
|
35
|
+
rewind2
|
|
36
|
+
} from "./repository-cache-1ze9gtzp.js";
|
|
37
|
+
import {
|
|
38
|
+
decodeMessageRowSync2
|
|
39
|
+
} from "./repository-cache-zx24wvbj.js";
|
|
31
40
|
import {
|
|
32
41
|
projectAdmitted2,
|
|
33
42
|
projectDelivered2,
|
|
34
43
|
projectCancelled2,
|
|
35
44
|
projectDeliveryChanged2
|
|
36
|
-
} from "./
|
|
37
|
-
import {
|
|
38
|
-
apply2,
|
|
39
|
-
initialize3,
|
|
40
|
-
advanceEpoch2,
|
|
41
|
-
reset2
|
|
42
|
-
} from "./instance-c9wbyant.js";
|
|
45
|
+
} from "./repository-cache-gkge597h.js";
|
|
43
46
|
import {
|
|
44
47
|
initialize2
|
|
45
|
-
} from "./
|
|
48
|
+
} from "./repository-cache-p7pstqch.js";
|
|
46
49
|
import {
|
|
47
50
|
Slug2
|
|
48
|
-
} from "./
|
|
51
|
+
} from "./repository-cache-gebd4c9n.js";
|
|
49
52
|
import {
|
|
50
53
|
__export
|
|
51
|
-
} from "./
|
|
54
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
52
55
|
|
|
53
56
|
// src/session/projector.ts
|
|
54
57
|
var exports_projector = {};
|
|
55
58
|
__export(exports_projector, {
|
|
56
59
|
SessionAlreadyProjected: () => SessionAlreadyProjected2,
|
|
57
60
|
SessionProjector: () => exports_projector,
|
|
58
|
-
node: () =>
|
|
61
|
+
node: () => node37
|
|
59
62
|
});
|
|
60
63
|
import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
|
|
61
64
|
import { DateTime, Effect, Layer, Schema, Stream } from "effect";
|
|
@@ -68,7 +71,6 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
68
71
|
import { Money } from "@opencode/schema/money";
|
|
69
72
|
import { Worktree } from "@opencode/schema/worktree";
|
|
70
73
|
import { Project } from "@opencode/schema/project";
|
|
71
|
-
var decodeMessage = Schema.decodeUnknownSync(SessionMessage2.Info);
|
|
72
74
|
var encodeMessage = Schema.encodeSync(SessionMessage2.Info);
|
|
73
75
|
|
|
74
76
|
class SessionAlreadyProjected2 extends Error {
|
|
@@ -156,20 +158,34 @@ var projectFork = Effect.fn("SessionProjector.projectFork")(function* (db, event
|
|
|
156
158
|
return yield* Effect.die(new SessionAlreadyProjected2);
|
|
157
159
|
if (event.data.instructionEntries)
|
|
158
160
|
yield* initialize2(db, event.data.sessionID, event.data.instructionEntries, event.created);
|
|
161
|
+
const forkedID = (seq) => SessionMessage2.ID.make(`${SessionMessage2.ID.fromEvent(event.id)}_${seq}`);
|
|
159
162
|
let cursor = -1;
|
|
160
163
|
while (copiedSeq !== undefined) {
|
|
161
164
|
const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.parentID), gt(SessionMessageTable2.seq, cursor), lt(SessionMessageTable2.seq, copiedSeq + 1), sql`${SessionMessageTable2.type} != 'assistant' or json_extract(${SessionMessageTable2.data}, '$.time.completed') is not null`, sql`${SessionMessageTable2.type} != 'shell' or json_extract(${SessionMessageTable2.data}, '$.status') != 'running'`, sql`${SessionMessageTable2.type} != 'compaction' or json_extract(${SessionMessageTable2.data}, '$.status') != 'running'`)).orderBy(asc(SessionMessageTable2.seq)).limit(ForkBatchSize).all().pipe(Effect.orDie);
|
|
162
165
|
if (rows.length === 0)
|
|
163
166
|
break;
|
|
164
|
-
yield*
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
const values = yield* Effect.forEach(rows, (row) => Effect.gen(function* () {
|
|
168
|
+
const copy = {
|
|
169
|
+
id: forkedID(row.seq),
|
|
170
|
+
session_id: event.data.sessionID,
|
|
171
|
+
type: row.type,
|
|
172
|
+
seq: row.seq,
|
|
173
|
+
time_created: row.time_created,
|
|
174
|
+
time_updated: row.time_updated,
|
|
175
|
+
data: row.data
|
|
176
|
+
};
|
|
177
|
+
const keepID = row.type === "compaction" ? row.data.metadata?.keepID : undefined;
|
|
178
|
+
if (typeof keepID !== "string")
|
|
179
|
+
return copy;
|
|
180
|
+
const kept = yield* db.select({ seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.parentID), eq(SessionMessageTable2.id, SessionMessage2.ID.make(keepID)))).get().pipe(Effect.orDie);
|
|
181
|
+
if (!kept)
|
|
182
|
+
return copy;
|
|
183
|
+
return {
|
|
184
|
+
...copy,
|
|
185
|
+
data: { ...row.data, metadata: { ...row.data.metadata, keepID: forkedID(kept.seq) } }
|
|
186
|
+
};
|
|
187
|
+
}));
|
|
188
|
+
yield* db.insert(SessionMessageTable2).values(values).run().pipe(Effect.orDie);
|
|
173
189
|
cursor = rows.at(-1).seq;
|
|
174
190
|
}
|
|
175
191
|
if (copiedSeq !== undefined)
|
|
@@ -179,7 +195,6 @@ var projectFork = Effect.fn("SessionProjector.projectFork")(function* (db, event
|
|
|
179
195
|
});
|
|
180
196
|
function run(db, event) {
|
|
181
197
|
return Effect.gen(function* () {
|
|
182
|
-
const decodeRow = (row) => decodeMessage({ ...row.data, id: row.id, type: row.type });
|
|
183
198
|
const updateMessage = (message) => {
|
|
184
199
|
const encoded = encodeMessage(message);
|
|
185
200
|
const { id, type, ...data } = encoded;
|
|
@@ -213,7 +228,7 @@ function run(db, event) {
|
|
|
213
228
|
const row = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.sessionID), eq(SessionMessageTable2.type, "assistant"))).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
|
|
214
229
|
if (!row)
|
|
215
230
|
return;
|
|
216
|
-
const message =
|
|
231
|
+
const message = decodeMessageRowSync2(row);
|
|
217
232
|
return message.type === "assistant" && !message.time.completed ? message : undefined;
|
|
218
233
|
});
|
|
219
234
|
},
|
|
@@ -222,7 +237,7 @@ function run(db, event) {
|
|
|
222
237
|
const row = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.id, messageID), eq(SessionMessageTable2.session_id, event.data.sessionID), eq(SessionMessageTable2.type, "assistant"))).get().pipe(Effect.orDie);
|
|
223
238
|
if (!row)
|
|
224
239
|
return;
|
|
225
|
-
const message =
|
|
240
|
+
const message = decodeMessageRowSync2(row);
|
|
226
241
|
return message.type === "assistant" ? message : undefined;
|
|
227
242
|
});
|
|
228
243
|
},
|
|
@@ -231,7 +246,7 @@ function run(db, event) {
|
|
|
231
246
|
const row = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.sessionID), eq(SessionMessageTable2.type, "shell"), sql`json_extract(${SessionMessageTable2.data}, '$.shellID') = ${shellID}`)).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
|
|
232
247
|
if (!row)
|
|
233
248
|
return;
|
|
234
|
-
const message =
|
|
249
|
+
const message = decodeMessageRowSync2(row);
|
|
235
250
|
return message.type === "shell" ? message : undefined;
|
|
236
251
|
});
|
|
237
252
|
},
|
|
@@ -240,7 +255,7 @@ function run(db, event) {
|
|
|
240
255
|
const row = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.sessionID), eq(SessionMessageTable2.type, "compaction"), sql`json_extract(${SessionMessageTable2.data}, '$.status') = 'running'`)).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
|
|
241
256
|
if (!row)
|
|
242
257
|
return;
|
|
243
|
-
const message =
|
|
258
|
+
const message = decodeMessageRowSync2(row);
|
|
244
259
|
return message.type === "compaction" ? message : undefined;
|
|
245
260
|
});
|
|
246
261
|
},
|
|
@@ -354,6 +369,8 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
354
369
|
time_updated: sql`${SessionTable2.time_updated}`
|
|
355
370
|
}).where(eq(SessionTable2.id, event.data.sessionID)).run().pipe(Effect.orDie);
|
|
356
371
|
});
|
|
372
|
+
yield* bus.project(SessionEvent2.Archived, (event) => db.update(SessionTable2).set({ time_archived: event.created, time_updated: event.created }).where(eq(SessionTable2.id, event.data.sessionID)).run().pipe(Effect.orDie));
|
|
373
|
+
yield* bus.project(SessionEvent2.Unarchived, (event) => db.update(SessionTable2).set({ time_archived: null, time_updated: event.created }).where(eq(SessionTable2.id, event.data.sessionID)).run().pipe(Effect.orDie));
|
|
357
374
|
yield* bus.project(SessionEvent2.MessageContentUpdated, (event) => run(db, event));
|
|
358
375
|
yield* bus.project(SessionEvent2.UsageRecorded, (event) => applyUsage(db, event.data.sessionID, event.data));
|
|
359
376
|
yield* bus.project(SessionEvent2.Forked, (event) => projectFork(db, event));
|
|
@@ -459,7 +476,7 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
459
476
|
yield* db.delete(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, event.data.sessionID), gte(SessionMessageTable2.seq, boundary.seq))).run().pipe(Effect.orDie);
|
|
460
477
|
yield* db.delete(SessionInboxTable2).where(and(eq(SessionInboxTable2.session_id, event.data.sessionID), gte(SessionInboxTable2.enqueued_seq, boundary.seq))).run().pipe(Effect.orDie);
|
|
461
478
|
yield* db.update(SessionTable2).set({ revert: null, time_updated: event.created }).where(eq(SessionTable2.id, event.data.sessionID)).run().pipe(Effect.orDie);
|
|
462
|
-
yield*
|
|
479
|
+
yield* rewind2(db, event.data.sessionID, boundary.seq);
|
|
463
480
|
}));
|
|
464
481
|
yield* bus.subscribe([SessionEvent2.Step.Ended, SessionEvent2.Step.Failed, SessionEvent2.UsageRecorded]).pipe(Stream.runForEach((event) => {
|
|
465
482
|
if (event.type === SessionEvent2.Step.Failed.type && (event.data.cost === undefined || event.data.tokens === undefined))
|
|
@@ -467,6 +484,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
467
484
|
return publishSessionUsage(db, bus, event.data.sessionID);
|
|
468
485
|
}), Effect.forkScoped({ startImmediately: true }));
|
|
469
486
|
}));
|
|
470
|
-
var
|
|
487
|
+
var node37 = makeGlobalNode({ name: "session-projector", layer, deps: [node89, node90] });
|
|
471
488
|
|
|
472
|
-
export { SessionAlreadyProjected2,
|
|
489
|
+
export { SessionAlreadyProjected2, node37, exports_projector };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./repository-cache-9m35c2r0.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-tzaz3z0t.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { isArrayNonEmpty } from "effect/Array";
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Form } from "@opencode/schema/form";
|
|
13
|
-
var providerID =
|
|
13
|
+
var providerID = ID13.make("cloudflare-ai-gateway");
|
|
14
14
|
var accountIdField = Form.StringField.make({
|
|
15
15
|
type: "string",
|
|
16
16
|
key: "accountId",
|
|
@@ -1,32 +1,32 @@
|
|
|
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
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-cache-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID13,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./repository-cache-9m35c2r0.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./repository-cache-54ma36ye.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-cache-tzaz3z0t.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -50,7 +50,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
50
50
|
}));
|
|
51
51
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
52
52
|
var browser = (app) => ({
|
|
53
|
-
integrationID:
|
|
53
|
+
integrationID: ID14.make("openai"),
|
|
54
54
|
method: {
|
|
55
55
|
id: browserMethodID,
|
|
56
56
|
type: "oauth",
|
|
@@ -123,7 +123,7 @@ function addressInUse(error) {
|
|
|
123
123
|
return "code" in error && error.code === "EADDRINUSE";
|
|
124
124
|
}
|
|
125
125
|
var headless = (app) => ({
|
|
126
|
-
integrationID:
|
|
126
|
+
integrationID: ID14.make("openai"),
|
|
127
127
|
method: {
|
|
128
128
|
id: headlessMethodID,
|
|
129
129
|
type: "oauth",
|
|
@@ -165,7 +165,7 @@ var headless = (app) => ({
|
|
|
165
165
|
}),
|
|
166
166
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
167
167
|
});
|
|
168
|
-
var
|
|
168
|
+
var OpenAIPlugin2 = define({
|
|
169
169
|
id: "opencode.provider.openai",
|
|
170
170
|
effect: Effect.fn(function* (ctx) {
|
|
171
171
|
const bus = yield* Service85;
|
|
@@ -183,9 +183,9 @@ var OpenAIPlugin3 = define({
|
|
|
183
183
|
editor.method.update(headless(ctx.app));
|
|
184
184
|
});
|
|
185
185
|
yield* load();
|
|
186
|
-
const configured = yield* configuredSettings2(
|
|
186
|
+
const configured = yield* configuredSettings2(ID13.openai);
|
|
187
187
|
yield* ctx.provider.transform((providers) => {
|
|
188
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID13.openai);
|
|
189
189
|
if (!item)
|
|
190
190
|
return;
|
|
191
191
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -205,7 +205,7 @@ var OpenAIPlugin3 = define({
|
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
yield* ctx.model.transform((models) => {
|
|
208
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID13.openai)) {
|
|
209
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
210
210
|
if (!chatgpt)
|
|
211
211
|
return;
|
|
@@ -236,14 +236,14 @@ var OpenAIPlugin3 = define({
|
|
|
236
236
|
}));
|
|
237
237
|
evt.headers.originator = "opencode";
|
|
238
238
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID13.openai });
|
|
240
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
241
241
|
delete evt.options.maxTokens;
|
|
242
242
|
});
|
|
243
243
|
for (const name of ["context", "compaction"])
|
|
244
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID13.openai });
|
|
245
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
246
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
function headers(contentType, app) {
|
|
@@ -334,4 +334,4 @@ function claim(token) {
|
|
|
334
334
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
export {
|
|
337
|
+
export { OpenAIPlugin2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-c2sed5cq.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -17,6 +17,7 @@ __export(exports_error, {
|
|
|
17
17
|
CompactionConflictError: () => CompactionConflictError2,
|
|
18
18
|
ForkEmptyError: () => ForkEmptyError2,
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
|
+
InvalidListCursorError: () => InvalidListCursorError2,
|
|
20
21
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
22
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
23
|
NotFoundError: () => NotFoundError9,
|
|
@@ -36,6 +37,12 @@ class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
|
36
37
|
}) {
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
class InvalidListCursorError2 extends Schema.TaggedError()("Session.InvalidListCursorError", {}) {
|
|
41
|
+
get message() {
|
|
42
|
+
return "Invalid cursor";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
39
46
|
class MessageNotFoundError2 extends Schema.TaggedError()("Session.MessageNotFoundError", {
|
|
40
47
|
sessionID: SessionSchema2.ID,
|
|
41
48
|
messageID: SessionMessage2.ID
|
|
@@ -116,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
116
123
|
}) {
|
|
117
124
|
}
|
|
118
125
|
|
|
119
|
-
export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|
|
126
|
+
export { NotFoundError9, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service45,
|
|
3
|
+
node48
|
|
4
|
+
} from "./repository-cache-8d1pd201.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key3,
|
|
7
7
|
removed2,
|
|
8
8
|
make20,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-rhjbct0v.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions4 = {};
|
|
17
|
+
__export(exports_instructions4, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions4,
|
|
19
|
+
Service: () => Service38,
|
|
20
|
+
node: () => node41
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,11 +57,11 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service38 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service45;
|
|
64
|
+
return Service38.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
@@ -69,7 +69,7 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
69
69
|
description: reference.description
|
|
70
70
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
71
71
|
return make20({
|
|
72
|
-
key:
|
|
72
|
+
key: Key3.make("core/reference-guidance"),
|
|
73
73
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
74
74
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
75
75
|
render: {
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node41 = makeLocationNode({ service: Service38, layer, deps: [node48] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service38, node41, exports_instructions4 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service55,
|
|
6
|
+
node58
|
|
7
|
+
} from "./repository-cache-0vtn597b.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service13,
|
|
17
|
+
node: () => node15,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service13 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service55;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service13.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node15 = makeLocationNode({ service: Service13, layer, deps: [node58] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service13, readText2, syncTextBom2, node15, exports_file_mutation };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-cache-hgz4x7wa.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/local.ts
|
|
11
11
|
var exports_local = {};
|
|
@@ -1,33 +1,33 @@
|
|
|
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
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./repository-cache-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./repository-cache-g5g9rrdp.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID13,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service78
|
|
22
|
+
} from "./repository-cache-9m35c2r0.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID12,
|
|
25
|
+
Info20
|
|
26
|
+
} from "./repository-cache-h1f52gh9.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./repository-cache-pjvnvgmy.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/gitlab.ts
|
|
33
33
|
import os from "os";
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID13.gitlab;
|
|
39
|
+
var integrationID = ID14.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,7 +57,7 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
60
|
+
const providers = yield* Service78;
|
|
61
61
|
const bus = yield* Service85;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info20.default(providerID, ID12.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID13.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|