@opencode-ai/core 0.0.0-beta-18999 → 0.0.0-beta-19086
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 +2 -2
- package/dist/agent.js +70 -70
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +68 -68
- package/dist/catalog.js +78 -78
- package/dist/chunks/{model-resolver-0n1ech8q.js → schema-078tha6v.js} +89 -89
- package/dist/chunks/{model-resolver-0ag03ecw.js → schema-0ag03ecw.js} +2 -2
- package/dist/chunks/{model-resolver-nr5fgbs6.js → schema-0nhdpq2e.js} +7 -7
- package/dist/chunks/{model-resolver-0pc4kdn1.js → schema-0pc4kdn1.js} +2 -2
- package/dist/chunks/{model-resolver-0rz7yd7x.js → schema-0rz7yd7x.js} +1 -1
- package/dist/chunks/{model-resolver-gst5vhy7.js → schema-11qadcdt.js} +12 -12
- package/dist/chunks/{model-resolver-67ndm1z2.js → schema-1escsep2.js} +51 -51
- package/dist/chunks/{model-resolver-gfr7wgjb.js → schema-1j302hhe.js} +7 -7
- package/dist/chunks/{model-resolver-qp4cj2b0.js → schema-1jjzsk9c.js} +4 -4
- package/dist/chunks/{model-resolver-8gv3hynm.js → schema-1nf5m1zv.js} +13 -13
- package/dist/chunks/{model-resolver-czskr0xw.js → schema-1qtszg6j.js} +3 -3
- package/dist/chunks/{model-resolver-81kadfkq.js → schema-22x56hdn.js} +2 -2
- package/dist/chunks/{model-resolver-264e1nfp.js → schema-264e1nfp.js} +2 -2
- package/dist/chunks/{model-resolver-8ezmrsyj.js → schema-273erafq.js} +6 -2
- package/dist/chunks/{model-resolver-td9hry5r.js → schema-2c5k0n78.js} +4 -4
- package/dist/chunks/{model-resolver-tmfv98ar.js → schema-2g4twk0n.js} +8 -8
- package/dist/chunks/{model-resolver-2sqw2jjm.js → schema-2sqw2jjm.js} +3 -3
- package/dist/chunks/{model-resolver-326j4s6w.js → schema-326j4s6w.js} +2 -2
- package/dist/chunks/{model-resolver-4fhh1fay.js → schema-32ypdbhb.js} +8 -8
- package/dist/chunks/{model-resolver-3chx3ng6.js → schema-3chx3ng6.js} +1 -1
- package/dist/chunks/{model-resolver-3ep0k87g.js → schema-3ep0k87g.js} +3 -3
- package/dist/chunks/{model-resolver-3mc1hhwa.js → schema-3mc1hhwa.js} +3 -3
- package/dist/chunks/{model-resolver-rmrmrh60.js → schema-3rcd4hwd.js} +10 -10
- package/dist/chunks/{model-resolver-42zyazrq.js → schema-42zyazrq.js} +1 -1
- package/dist/chunks/{model-resolver-4fr8jywp.js → schema-43f3kvve.js} +2 -2
- package/dist/chunks/{model-resolver-c71vnwdm.js → schema-45pacypk.js} +3 -3
- package/dist/chunks/{model-resolver-p7kv5kq9.js → schema-4hbpra3r.js} +22 -22
- package/dist/chunks/{model-resolver-4v6g3p22.js → schema-4v6g3p22.js} +1 -1
- package/dist/chunks/{model-resolver-4w0ckvbq.js → schema-4w0ckvbq.js} +3 -3
- package/dist/chunks/{model-resolver-w53bf3d8.js → schema-4wg4838e.js} +6 -6
- package/dist/chunks/{model-resolver-nz4de5b9.js → schema-4xf915ct.js} +3 -9
- package/dist/chunks/{model-resolver-51t2tyks.js → schema-51t2tyks.js} +1 -1
- package/dist/chunks/{model-resolver-53jxjgr1.js → schema-53jxjgr1.js} +2 -2
- package/dist/chunks/{model-resolver-qa2w238n.js → schema-56r3658h.js} +3 -3
- package/dist/chunks/{model-resolver-zz8p0qp8.js → schema-57a903bc.js} +3 -3
- package/dist/chunks/{model-resolver-a8ftngxw.js → schema-57j2wsfm.js} +10 -10
- package/dist/chunks/{model-resolver-t3r0ngmb.js → schema-5djqxq12.js} +8 -7
- package/dist/chunks/{model-resolver-5swfpf97.js → schema-5j084t57.js} +3 -3
- package/dist/chunks/{model-resolver-r32713pr.js → schema-5qrxwkqv.js} +6 -6
- package/dist/chunks/{model-resolver-9w1bs40q.js → schema-5r9z69ez.js} +6 -6
- package/dist/chunks/{model-resolver-5vbk082d.js → schema-5vbk082d.js} +2 -2
- package/dist/chunks/{model-resolver-5y5kqjze.js → schema-5y5kqjze.js} +1 -1
- package/dist/chunks/{model-resolver-7qpdgm16.js → schema-600p3j5r.js} +96 -96
- package/dist/chunks/{model-resolver-1qdep925.js → schema-62kj29x0.js} +6 -6
- package/dist/chunks/schema-63c3fvvm.js +49 -0
- package/dist/chunks/{model-resolver-yr82tean.js → schema-65mjrg75.js} +12 -11
- package/dist/chunks/{model-resolver-66mds5ht.js → schema-66mds5ht.js} +1 -1
- package/dist/chunks/{model-resolver-nj6yqve1.js → schema-683rspwx.js} +10 -5
- package/dist/chunks/{model-resolver-68yag814.js → schema-68yag814.js} +1 -1
- package/dist/chunks/{model-resolver-1pfcdes2.js → schema-69tvj744.js} +4 -4
- package/dist/chunks/{model-resolver-0vkt3tck.js → schema-6b7ybj1y.js} +6 -6
- package/dist/chunks/{model-resolver-n120nzhy.js → schema-6bwmg5am.js} +2 -2
- package/dist/chunks/{model-resolver-6bxzghb6.js → schema-6bxzghb6.js} +1 -1
- package/dist/chunks/{model-resolver-6hppa3xw.js → schema-6hppa3xw.js} +2 -2
- package/dist/chunks/{model-resolver-6vbv4je1.js → schema-6vbv4je1.js} +2 -2
- package/dist/chunks/{model-resolver-6wsfy4sp.js → schema-6wsfy4sp.js} +2 -2
- package/dist/chunks/{model-resolver-qjkhdsbm.js → schema-7480bqmm.js} +7 -7
- package/dist/chunks/{model-resolver-ath9jwvp.js → schema-766yrv8h.js} +8 -8
- package/dist/chunks/{model-resolver-m721zqr5.js → schema-79anhy2w.js} +5 -5
- package/dist/chunks/{model-resolver-3rvvyz0j.js → schema-7cnts1xz.js} +24 -46
- package/dist/chunks/{model-resolver-7myqjfx6.js → schema-7myqjfx6.js} +1 -1
- package/dist/chunks/{model-resolver-z5qwd455.js → schema-7nm0rjt9.js} +2 -2
- package/dist/chunks/{model-resolver-xn34k971.js → schema-7vrvnzaw.js} +7 -7
- package/dist/chunks/{model-resolver-bsksdwjr.js → schema-82xa3tgg.js} +3 -3
- package/dist/chunks/{model-resolver-89ttfx5q.js → schema-89ttfx5q.js} +2 -2
- package/dist/chunks/{model-resolver-7hg4wk1y.js → schema-8ahgknnv.js} +4 -4
- package/dist/chunks/{model-resolver-m3k5wttq.js → schema-8c5xq4gn.js} +6 -6
- package/dist/chunks/{model-resolver-7fndj6sb.js → schema-8e4szv2f.js} +1 -1
- package/dist/chunks/{model-resolver-qtvfzxt9.js → schema-8egdkw7k.js} +6 -6
- package/dist/chunks/{model-resolver-8manx9kj.js → schema-8manx9kj.js} +2 -2
- package/dist/chunks/{model-resolver-tn3vtv4h.js → schema-8scqw7rh.js} +3 -3
- package/dist/chunks/{model-resolver-vsg6fsmg.js → schema-8tmvw628.js} +4 -4
- package/dist/chunks/{model-resolver-8y5vxhk7.js → schema-8y5vxhk7.js} +1 -1
- package/dist/chunks/{model-resolver-9dbv6hqn.js → schema-9dbv6hqn.js} +2 -2
- package/dist/chunks/{model-resolver-vbaqktrz.js → schema-9kt3hna5.js} +2 -2
- package/dist/chunks/{model-resolver-3tg0cqem.js → schema-a42y10z7.js} +5 -2
- package/dist/chunks/{model-resolver-wz5907jr.js → schema-a4wk7wxx.js} +7 -7
- package/dist/chunks/{model-resolver-nx1h5ew3.js → schema-a6mq1kfm.js} +17 -17
- package/dist/chunks/{model-resolver-a6xqkezx.js → schema-a6xqkezx.js} +1 -1
- package/dist/chunks/{model-resolver-tmcx57d7.js → schema-aeh43dyz.js} +4 -4
- package/dist/chunks/{model-resolver-pnesahrw.js → schema-aep5wxg9.js} +4 -4
- package/dist/chunks/{model-resolver-af42tqdk.js → schema-af42tqdk.js} +2 -2
- package/dist/chunks/{model-resolver-pk53j7qk.js → schema-aseryw3y.js} +11 -6
- package/dist/chunks/{model-resolver-r48cnx81.js → schema-attsg8d3.js} +2 -2
- package/dist/chunks/schema-axwdyrw6.js +173 -0
- package/dist/chunks/{model-resolver-h3jh27nc.js → schema-az8m3c6n.js} +2 -2
- package/dist/chunks/{model-resolver-qnbjsbym.js → schema-b4v20za7.js} +64 -60
- package/dist/chunks/{model-resolver-158s554p.js → schema-b9bp1awf.js} +9 -9
- package/dist/chunks/{model-resolver-y6z22yy0.js → schema-bbd9spwe.js} +2 -2
- package/dist/chunks/{model-resolver-36pw8tps.js → schema-bbwsb44a.js} +4 -4
- package/dist/chunks/{model-resolver-bd2mvb8t.js → schema-bd2mvb8t.js} +2 -2
- package/dist/chunks/{model-resolver-bnha4c96.js → schema-bnha4c96.js} +1 -1
- package/dist/chunks/{model-resolver-whbgthyk.js → schema-br63wb0q.js} +14 -14
- package/dist/chunks/{model-resolver-qc9f9sqe.js → schema-by2e2whs.js} +3 -3
- package/dist/chunks/{model-resolver-c54e84vp.js → schema-c54e84vp.js} +1 -1
- package/dist/chunks/{model-resolver-c55cgmsp.js → schema-c55cgmsp.js} +2 -2
- package/dist/chunks/{model-resolver-8tcjfzdf.js → schema-c5m7vmrw.js} +8 -8
- package/dist/chunks/{model-resolver-c8ya26sa.js → schema-c8ya26sa.js} +2 -2
- package/dist/chunks/{model-resolver-f4vh7ye9.js → schema-cdy2ypjf.js} +5 -5
- package/dist/chunks/{model-resolver-pm5ge93v.js → schema-ce4hyqkb.js} +12 -12
- package/dist/chunks/{model-resolver-vsqc2j7q.js → schema-chf795vd.js} +6 -7
- package/dist/chunks/{model-resolver-ckcq38kt.js → schema-ckcq38kt.js} +2 -2
- package/dist/chunks/{model-resolver-ax34jjm3.js → schema-ctegtqnq.js} +9 -9
- package/dist/chunks/{model-resolver-t54q55m1.js → schema-d26zqcqt.js} +7 -7
- package/dist/chunks/{model-resolver-d4h7vwhh.js → schema-d4h7vwhh.js} +2 -2
- package/dist/chunks/{model-resolver-18medfkf.js → schema-d6pj50wp.js} +6 -4
- package/dist/chunks/{model-resolver-psa1vmjb.js → schema-db3nafyd.js} +5 -5
- package/dist/chunks/{model-resolver-dexm22yg.js → schema-dexm22yg.js} +1 -1
- package/dist/chunks/{model-resolver-xq6chnhm.js → schema-df3kvyqj.js} +4 -4
- package/dist/chunks/{model-resolver-6a909wmz.js → schema-dj1xm95f.js} +2 -2
- package/dist/chunks/{model-resolver-dyax5m0p.js → schema-dkkkrjgz.js} +2 -2
- package/dist/chunks/{model-resolver-hwtjfpwk.js → schema-dt5yw4ma.js} +11 -13
- package/dist/chunks/{model-resolver-dtm6fkaa.js → schema-dtm6fkaa.js} +2 -2
- package/dist/chunks/{model-resolver-3ebhgms6.js → schema-dwvtf5ds.js} +6 -5
- package/dist/chunks/{model-resolver-dyhtrhy2.js → schema-dyhtrhy2.js} +1 -1
- package/dist/chunks/{model-resolver-e0n16vwa.js → schema-e0n16vwa.js} +2 -2
- package/dist/chunks/{model-resolver-m6rc87ej.js → schema-e2jftvbf.js} +11 -11
- package/dist/chunks/{model-resolver-50zp5qas.js → schema-e7nnc03a.js} +5 -5
- package/dist/chunks/{model-resolver-eb87q0yv.js → schema-eb87q0yv.js} +1 -1
- package/dist/chunks/{model-resolver-edxnhgvj.js → schema-edxnhgvj.js} +1 -1
- package/dist/chunks/{model-resolver-v1bt6mkm.js → schema-egn23jh0.js} +7 -7
- package/dist/chunks/{model-resolver-vcygwjbr.js → schema-enmke0a7.js} +5 -5
- package/dist/chunks/{model-resolver-p9kbbxty.js → schema-erys6mk6.js} +6 -6
- package/dist/chunks/{model-resolver-esv5q40e.js → schema-esv5q40e.js} +1 -1
- package/dist/chunks/{model-resolver-etbnsc4s.js → schema-etbnsc4s.js} +2 -2
- package/dist/chunks/{model-resolver-8gd72fyf.js → schema-eyr78tzb.js} +5 -5
- package/dist/chunks/{model-resolver-f2nhxfjt.js → schema-f2nhxfjt.js} +2 -2
- package/dist/chunks/{model-resolver-r6sdn3zs.js → schema-f3dqxhwr.js} +5 -5
- package/dist/chunks/{model-resolver-f8wvq04h.js → schema-f8wvq04h.js} +1 -1
- package/dist/chunks/{model-resolver-b2mj9w79.js → schema-fjb24bmd.js} +4 -4
- package/dist/chunks/{model-resolver-fqehnn9p.js → schema-fqehnn9p.js} +2 -2
- package/dist/chunks/{model-resolver-ns8veh4z.js → schema-fxa7vmmn.js} +5 -5
- package/dist/chunks/schema-g1j3gwgp.js +74 -0
- package/dist/chunks/{model-resolver-48xfm273.js → schema-g4r9xws8.js} +3 -3
- package/dist/chunks/{model-resolver-136c8mz3.js → schema-g70ev3a2.js} +4 -4
- package/dist/chunks/{model-resolver-g9dd0fv6.js → schema-g9dd0fv6.js} +2 -2
- package/dist/chunks/{model-resolver-gb1z7yet.js → schema-gb1z7yet.js} +2 -2
- package/dist/chunks/{model-resolver-gc513wew.js → schema-gc513wew.js} +2 -2
- package/dist/chunks/{model-resolver-bztt47zv.js → schema-gfvhypam.js} +4 -4
- package/dist/chunks/{model-resolver-njadyfry.js → schema-gn7btdpk.js} +21 -19
- package/dist/chunks/{model-resolver-grfz4hhj.js → schema-grfz4hhj.js} +1 -1
- package/dist/chunks/{model-resolver-03ddbsr9.js → schema-gtyed076.js} +65 -34
- package/dist/chunks/{model-resolver-hqw3c13n.js → schema-h08da7w8.js} +15 -15
- package/dist/chunks/{model-resolver-ef1eacza.js → schema-h0f1t520.js} +3 -3
- package/dist/chunks/{model-resolver-7g3szxan.js → schema-h3y8g5ka.js} +3 -3
- package/dist/chunks/{model-resolver-bb4yrkhg.js → schema-h4g121et.js} +4 -4
- package/dist/chunks/{model-resolver-dpwr0jqv.js → schema-h650edej.js} +5 -5
- package/dist/chunks/{model-resolver-kr9vgar1.js → schema-hbtzhcxr.js} +13 -5
- package/dist/chunks/{model-resolver-hgr9y616.js → schema-hgr9y616.js} +1 -1
- package/dist/chunks/{model-resolver-hpkeh7wf.js → schema-hpkeh7wf.js} +1 -1
- package/dist/chunks/{model-resolver-hs51b0fc.js → schema-hs51b0fc.js} +1 -1
- package/dist/chunks/{model-resolver-htmhxvv7.js → schema-htmhxvv7.js} +1 -1
- package/dist/chunks/{model-resolver-hvydqsq5.js → schema-hvydqsq5.js} +2 -2
- package/dist/chunks/{model-resolver-hy5n5jcn.js → schema-hy5n5jcn.js} +1 -1
- package/dist/chunks/{model-resolver-hzag9ake.js → schema-hzag9ake.js} +1 -1
- package/dist/chunks/{model-resolver-hzwx8p6y.js → schema-hzwx8p6y.js} +1 -1
- package/dist/chunks/{model-resolver-j0feex7e.js → schema-j0feex7e.js} +1 -1
- package/dist/chunks/{model-resolver-eqn19kbv.js → schema-j2a9eaz5.js} +3 -3
- package/dist/chunks/{model-resolver-dyrfpcd0.js → schema-j6s3yjyb.js} +68 -20
- package/dist/chunks/{model-resolver-n3ej23f6.js → schema-j8tff6ta.js} +5 -5
- package/dist/chunks/{model-resolver-jar52fmb.js → schema-jar52fmb.js} +3 -3
- package/dist/chunks/{model-resolver-h01zxzks.js → schema-jepqtr73.js} +6 -6
- package/dist/chunks/schema-jfv5epsj.js +60 -0
- package/dist/chunks/{model-resolver-pmxa1kd1.js → schema-jgzett5g.js} +4 -4
- package/dist/chunks/{model-resolver-yt21b5ce.js → schema-jq0ga1pd.js} +20 -18
- package/dist/chunks/{model-resolver-jqhp3fpz.js → schema-jqhp3fpz.js} +2 -2
- package/dist/chunks/{model-resolver-js6tcg3t.js → schema-jrpamtww.js} +4 -4
- package/dist/chunks/{model-resolver-djyc2dvw.js → schema-k030pceh.js} +6 -6
- package/dist/chunks/{model-resolver-k7hkdbw5.js → schema-k7hkdbw5.js} +2 -2
- package/dist/chunks/{model-resolver-kq3q54gz.js → schema-kq3q54gz.js} +1 -1
- package/dist/chunks/{model-resolver-je7dmgwr.js → schema-kwh3ary7.js} +14 -14
- package/dist/chunks/{model-resolver-4wsyak3y.js → schema-kx19mrsa.js} +7 -7
- package/dist/chunks/{model-resolver-dc1577g0.js → schema-kxb4nqfb.js} +3 -3
- package/dist/chunks/{model-resolver-m6a7zjhr.js → schema-m6a7zjhr.js} +1 -1
- package/dist/chunks/{model-resolver-m7jtgrng.js → schema-m7jtgrng.js} +2 -2
- package/dist/chunks/{model-resolver-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
- package/dist/chunks/{model-resolver-mnyszbxc.js → schema-mnyszbxc.js} +1 -1
- package/dist/chunks/{model-resolver-mv81kt5z.js → schema-mv81kt5z.js} +2 -2
- package/dist/chunks/{model-resolver-7a4wqe5w.js → schema-mw1qz6py.js} +5 -5
- package/dist/chunks/{model-resolver-my53s247.js → schema-my53s247.js} +1 -1
- package/dist/chunks/{model-resolver-emt5rhx5.js → schema-nec1705c.js} +6 -6
- package/dist/chunks/{model-resolver-895xgr1f.js → schema-ng85ggsa.js} +5 -5
- package/dist/chunks/{model-resolver-ngzr6ypz.js → schema-ngzr6ypz.js} +2 -2
- package/dist/chunks/{model-resolver-136r7v3c.js → schema-nj42wcp7.js} +7 -7
- package/dist/chunks/{model-resolver-nn16cgj7.js → schema-nn16cgj7.js} +1 -1
- package/dist/chunks/{model-resolver-ntev5d3k.js → schema-ntev5d3k.js} +3 -3
- package/dist/chunks/{model-resolver-7ke4vm17.js → schema-p0ye3rhn.js} +4 -4
- package/dist/chunks/{model-resolver-p1m5qwvv.js → schema-p1m5qwvv.js} +1 -1
- package/dist/chunks/{model-resolver-p5gyct0y.js → schema-p5gyct0y.js} +1 -1
- package/dist/chunks/{model-resolver-jsmyr6k0.js → schema-p6fb92cp.js} +5 -5
- package/dist/chunks/{model-resolver-y251tsy9.js → schema-paqdssck.js} +4 -4
- package/dist/chunks/{model-resolver-pves38xm.js → schema-pves38xm.js} +2 -2
- package/dist/chunks/{model-resolver-6htxnd6w.js → schema-pxfvvnmb.js} +9 -9
- package/dist/chunks/{model-resolver-kcz5s2sc.js → schema-q1h731cc.js} +43 -82
- package/dist/chunks/{model-resolver-q606pcse.js → schema-q606pcse.js} +3 -3
- package/dist/chunks/{model-resolver-15077vr8.js → schema-q8tyzv5h.js} +154 -154
- package/dist/chunks/{model-resolver-m1hg7kzv.js → schema-qa1y9c59.js} +9 -9
- package/dist/chunks/{model-resolver-zt42x7wk.js → schema-qbpdt1wp.js} +4 -4
- package/dist/chunks/{model-resolver-s2avg5mp.js → schema-qc2gqwkb.js} +4 -4
- package/dist/chunks/{model-resolver-qf52r0wh.js → schema-qf52r0wh.js} +1 -1
- package/dist/chunks/{model-resolver-qfvp8zq7.js → schema-qfvp8zq7.js} +1 -1
- package/dist/chunks/{model-resolver-vwkqrtae.js → schema-qgxnt6e7.js} +9 -9
- package/dist/chunks/{model-resolver-qpxzqy01.js → schema-qpxzqy01.js} +1 -1
- package/dist/chunks/{model-resolver-rtktz058.js → schema-qqxqwwkk.js} +4 -4
- package/dist/chunks/{model-resolver-s7cdvjvw.js → schema-qst7098g.js} +9 -9
- package/dist/chunks/{model-resolver-qz5gwjr7.js → schema-qz5gwjr7.js} +3 -3
- package/dist/chunks/{model-resolver-qen4dbg3.js → schema-qzbgfz7c.js} +6 -6
- package/dist/chunks/{model-resolver-r7a2r1m6.js → schema-r7a2r1m6.js} +2 -2
- package/dist/chunks/{model-resolver-r7z6wjth.js → schema-r7z6wjth.js} +1 -1
- package/dist/chunks/{model-resolver-r9d3d23r.js → schema-r9d3d23r.js} +1 -1
- package/dist/chunks/{model-resolver-mvw9jqgs.js → schema-r9srg7kj.js} +16 -16
- package/dist/chunks/{model-resolver-d88sh0qh.js → schema-ra2q36zd.js} +4 -4
- package/dist/chunks/{model-resolver-rahat93a.js → schema-rahat93a.js} +1 -1
- package/dist/chunks/{model-resolver-cs1jwk5c.js → schema-rfxr8z2j.js} +90 -29
- package/dist/chunks/{model-resolver-eh2wdxrj.js → schema-rgnjkg8c.js} +80 -20
- package/dist/chunks/{model-resolver-jr5m26np.js → schema-rpa95wsa.js} +14 -15
- package/dist/chunks/{model-resolver-rr7wbarq.js → schema-rr7wbarq.js} +1 -1
- package/dist/chunks/{model-resolver-z50wtwd6.js → schema-rrqa2v85.js} +33 -33
- package/dist/chunks/{model-resolver-k92s0cap.js → schema-rw7fhbhq.js} +19 -19
- package/dist/chunks/{model-resolver-s32nnj3r.js → schema-s32nnj3r.js} +1 -1
- package/dist/chunks/{model-resolver-fxa9gsr7.js → schema-s5c7wyma.js} +4 -4
- package/dist/chunks/{model-resolver-9d52kcc6.js → schema-saecaj3m.js} +3 -3
- package/dist/chunks/{model-resolver-fet3yrh0.js → schema-sdyyem7m.js} +59 -21
- package/dist/chunks/{model-resolver-aqjetpt7.js → schema-serjdnzw.js} +3 -3
- package/dist/chunks/{model-resolver-hfdhxhjt.js → schema-sjfp0nb7.js} +7 -7
- package/dist/chunks/{model-resolver-yrzmcphh.js → schema-snxnyba1.js} +6 -6
- package/dist/chunks/{model-resolver-0gpahtwn.js → schema-svrgfpe2.js} +2 -2
- package/dist/chunks/{model-resolver-e1252xh0.js → schema-syzvtymk.js} +13 -13
- package/dist/chunks/{model-resolver-ybr4xq6z.js → schema-t2za4q0q.js} +51 -31
- package/dist/chunks/{model-resolver-xghrvkpy.js → schema-tbzs2pmr.js} +6 -6
- package/dist/chunks/{model-resolver-1n8ee09s.js → schema-tm2rcafg.js} +11 -11
- package/dist/chunks/{model-resolver-myqa85b0.js → schema-v6sre6kn.js} +2 -2
- package/dist/chunks/{model-resolver-v9qxqszp.js → schema-v9qxqszp.js} +3 -3
- package/dist/chunks/{model-resolver-vcwr2vpf.js → schema-vcwr2vpf.js} +1 -1
- package/dist/chunks/{model-resolver-rr20669x.js → schema-vpm0h4mx.js} +10 -10
- package/dist/chunks/{model-resolver-d35eame8.js → schema-vq0y3v9f.js} +8 -8
- package/dist/chunks/{model-resolver-vynk8zbr.js → schema-vynk8zbr.js} +1 -1
- package/dist/chunks/{model-resolver-2kthdmar.js → schema-vytq6tc6.js} +8 -8
- package/dist/chunks/{model-resolver-w5r9s7kx.js → schema-w5r9s7kx.js} +1 -1
- package/dist/chunks/{model-resolver-2v2tc4x7.js → schema-wb7ccp3j.js} +2 -2
- package/dist/chunks/{model-resolver-wbkt8qpj.js → schema-wbkt8qpj.js} +1 -1
- package/dist/chunks/{model-resolver-yxwnec9y.js → schema-wdn309nm.js} +10 -10
- package/dist/chunks/{model-resolver-wdqva41w.js → schema-wdqva41w.js} +1 -1
- package/dist/chunks/{model-resolver-wf5w4wph.js → schema-wf5w4wph.js} +1 -1
- package/dist/chunks/{model-resolver-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
- package/dist/chunks/{model-resolver-x3vb5b1t.js → schema-x3vb5b1t.js} +1 -1
- package/dist/chunks/{model-resolver-x4az4y7r.js → schema-x4az4y7r.js} +1 -1
- package/dist/chunks/{model-resolver-qmw35mw3.js → schema-x4jfk7d8.js} +18 -18
- package/dist/chunks/{model-resolver-mz3md7e9.js → schema-x958486m.js} +13 -13
- package/dist/chunks/{model-resolver-165g8spq.js → schema-xbmv659f.js} +8 -8
- package/dist/chunks/{model-resolver-xdb88cdw.js → schema-xdb88cdw.js} +2 -2
- package/dist/chunks/{model-resolver-xe02v0q7.js → schema-xe02v0q7.js} +2 -2
- package/dist/chunks/{model-resolver-89rn8xzn.js → schema-xe5n6qar.js} +22 -22
- package/dist/chunks/{model-resolver-j44smbby.js → schema-xp4wtg3g.js} +3 -3
- package/dist/chunks/{model-resolver-2qq12ds3.js → schema-xvqr7khp.js} +3 -3
- package/dist/chunks/{model-resolver-xws7arpm.js → schema-xws7arpm.js} +1 -1
- package/dist/chunks/{model-resolver-f1jj19e8.js → schema-xx9qfgev.js} +1 -0
- package/dist/chunks/{model-resolver-mndv4v9k.js → schema-xyydncve.js} +10 -10
- package/dist/chunks/{model-resolver-c8n0v0wx.js → schema-y2b04s9v.js} +3 -3
- package/dist/chunks/{model-resolver-9ybkn4f3.js → schema-y41ny6h1.js} +10 -10
- package/dist/chunks/{model-resolver-egjtzeas.js → schema-y71jz153.js} +7 -7
- package/dist/chunks/{model-resolver-m0hk48gq.js → schema-ycjmzejc.js} +3 -3
- package/dist/chunks/{model-resolver-se5h029t.js → schema-ync59mnp.js} +5 -5
- package/dist/chunks/{model-resolver-ryxrw20d.js → schema-yp4wxmaw.js} +16 -15
- package/dist/chunks/{model-resolver-m0zebzgf.js → schema-z0nmzarz.js} +3 -3
- package/dist/chunks/{model-resolver-z8c1ty6e.js → schema-z8c1ty6e.js} +1 -1
- package/dist/chunks/{model-resolver-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
- package/dist/chunks/{model-resolver-jpjemq2p.js → schema-zdrrxqy8.js} +4 -4
- package/dist/chunks/{model-resolver-zmbmd7xf.js → schema-zmbmd7xf.js} +2 -2
- package/dist/chunks/{model-resolver-zn935gjz.js → schema-zn935gjz.js} +1 -1
- package/dist/chunks/{model-resolver-ranv4wm0.js → schema-zqt2cp2e.js} +3 -3
- package/dist/chunks/schema-zr29p06e.js +136 -0
- package/dist/chunks/{model-resolver-zseh86v1.js → schema-zseh86v1.js} +2 -2
- package/dist/chunks/{model-resolver-t9t544b9.js → schema-zwfcr2t4.js} +3 -1
- package/dist/chunks/{model-resolver-eptw9fc8.js → schema-zwp7atcb.js} +3 -3
- package/dist/chunks/{model-resolver-zyyhrfr9.js → schema-zyyhrfr9.js} +1 -1
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +4 -4
- package/dist/command.js +70 -70
- package/dist/config/discovery.js +79 -79
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +129 -129
- package/dist/config/plugin/command.js +211 -115
- package/dist/config/plugin/compaction.js +169 -168
- package/dist/config/plugin/entry-observer.js +111 -111
- package/dist/config/plugin/formatter.js +116 -116
- package/dist/config/plugin/image.js +128 -128
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +114 -114
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +113 -113
- package/dist/config/plugin/provider.js +112 -112
- package/dist/config/plugin/reference.js +116 -116
- package/dist/config/plugin/shell.js +115 -115
- package/dist/config/plugin/skill-file.js +98 -98
- package/dist/config/plugin/skill.js +132 -132
- package/dist/config/plugin/snapshot.js +114 -114
- package/dist/config/plugin/source.js +112 -112
- package/dist/config/plugin/tool-output.js +116 -116
- package/dist/config/plugin/websearch.js +112 -112
- package/dist/config/variable.js +4 -4
- package/dist/config/watch.js +2 -2
- package/dist/config.js +110 -110
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +347 -344
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +86 -86
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +88 -88
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +68 -68
- package/dist/file-mutation.js +87 -87
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +91 -91
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +92 -92
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +80 -80
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +94 -94
- package/dist/image.js +94 -94
- package/dist/instance/service.js +2 -2
- package/dist/instance.js +346 -343
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +80 -80
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +75 -75
- package/dist/job.js +72 -72
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +82 -82
- package/dist/location-mutation.js +79 -79
- package/dist/location-service-map.js +79 -79
- package/dist/location-services.js +347 -344
- package/dist/location.js +78 -78
- package/dist/mcp/client.js +87 -87
- package/dist/mcp/index.js +93 -93
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +87 -87
- package/dist/mime.js +2 -2
- package/dist/modal/models.js +11 -0
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +71 -71
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +95 -95
- package/dist/persistent-pty/binary.bun.js +2 -2
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/binary.workerd.js +1 -1
- package/dist/persistent-pty/daemon.js +2 -2
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +96 -96
- package/dist/plugin/command.js +94 -94
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +216 -216
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +319 -315
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +96 -96
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +120 -120
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +116 -116
- package/dist/plugin/provider/dynamic.js +3 -3
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +87 -84
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/modal.js +85 -0
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +77 -77
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +4 -4
- package/dist/plugin/provider/sdk-factory.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -156
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +2 -2
- package/dist/plugin/skill.js +129 -129
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor.js +334 -330
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/variant.js +3 -3
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +111 -111
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +217 -217
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +77 -77
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +14 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +2 -2
- package/dist/pty.js +84 -84
- package/dist/reference/instructions.js +80 -80
- package/dist/reference.js +78 -78
- package/dist/repository-cache.js +74 -74
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +89 -89
- package/dist/rpc.js +79 -79
- package/dist/schema.js +2 -2
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +139 -138
- package/dist/session/context.js +150 -150
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +211 -213
- package/dist/session/execution.js +117 -117
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +77 -77
- package/dist/session/info.js +4 -4
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +89 -89
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +134 -134
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +127 -82
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt.js +115 -115
- package/dist/session/revert.js +87 -87
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +76 -74
- package/dist/session/runner/step.js +143 -143
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/session.js +173 -173
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +99 -99
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +79 -79
- package/dist/session/subagent-completion.js +8 -4
- package/dist/session/subagent-job.js +216 -0
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +152 -152
- package/dist/session/to-session-error.js +108 -108
- package/dist/session/transfer.js +215 -213
- package/dist/session/usage.js +2 -2
- package/dist/session.js +207 -207
- package/dist/shell/parse.js +7 -7
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/result.js +2 -2
- package/dist/shell/scan.js +32 -4
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +129 -129
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +97 -97
- package/dist/skill.js +96 -96
- package/dist/snapshot.js +80 -80
- package/dist/state.js +4 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +121 -121
- package/dist/tool/plugin/edit.js +108 -108
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +111 -111
- package/dist/tool/plugin/grep.js +111 -111
- package/dist/tool/plugin/opencode.js +2 -2
- package/dist/tool/plugin/patch.js +108 -108
- package/dist/tool/plugin/question.js +97 -97
- package/dist/tool/plugin/read.js +114 -114
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +97 -97
- package/dist/tool/plugin/subagent.js +210 -209
- package/dist/tool/plugin/webfetch.js +98 -98
- package/dist/tool/plugin/websearch.js +100 -100
- package/dist/tool/plugin/write.js +108 -108
- package/dist/tool/read-filesystem.js +94 -94
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +114 -114
- package/dist/types/config/plugin/command.d.ts +3 -1
- package/dist/types/modal/models.d.ts +3 -0
- package/dist/types/plugin/provider/github-copilot.d.ts +6 -0
- package/dist/types/plugin/provider/modal.d.ts +3 -0
- package/dist/types/session/history.d.ts +32 -0
- package/dist/types/session/model-request.d.ts +3 -0
- package/dist/types/session/move.d.ts +15 -11
- package/dist/types/session/runner/retry.d.ts +7 -0
- package/dist/types/session/subagent-completion.d.ts +3 -0
- package/dist/types/session/subagent-job.d.ts +13 -0
- package/dist/types/session/transfer.d.ts +46 -0
- package/dist/types/session.d.ts +2 -8
- package/dist/types/state.d.ts +18 -0
- package/dist/types/tool/plugin/subagent.d.ts +2 -2
- package/dist/types/v1/config/migrate.d.ts +3 -2
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +81 -81
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +72 -72
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +69 -69
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +82 -82
- package/package.json +7 -7
- package/dist/chunks/model-resolver-pr1927s1.js +0 -68
- package/dist/chunks/model-resolver-zfc8v838.js +0 -34
- /package/dist/chunks/{model-resolver-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{model-resolver-0f48qthw.js → schema-0f48qthw.js} +0 -0
- /package/dist/chunks/{model-resolver-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
- /package/dist/chunks/{model-resolver-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{model-resolver-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{model-resolver-29n7vfk2.js → schema-29n7vfk2.js} +0 -0
- /package/dist/chunks/{model-resolver-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{model-resolver-2xb0r1c6.js → schema-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{model-resolver-39ktntah.js → schema-39ktntah.js} +0 -0
- /package/dist/chunks/{model-resolver-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{model-resolver-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{model-resolver-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
- /package/dist/chunks/{model-resolver-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{model-resolver-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{model-resolver-5va1yh78.js → schema-5va1yh78.js} +0 -0
- /package/dist/chunks/{model-resolver-61ek4hj9.js → schema-61ek4hj9.js} +0 -0
- /package/dist/chunks/{model-resolver-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
- /package/dist/chunks/{model-resolver-6zqxzw0a.js → schema-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{model-resolver-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{model-resolver-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{model-resolver-8rpfd2h6.js → schema-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{model-resolver-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{model-resolver-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{model-resolver-906y0b6d.js → schema-906y0b6d.js} +0 -0
- /package/dist/chunks/{model-resolver-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
- /package/dist/chunks/{model-resolver-9maxscqf.js → schema-9maxscqf.js} +0 -0
- /package/dist/chunks/{model-resolver-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
- /package/dist/chunks/{model-resolver-a02svayp.js → schema-a02svayp.js} +0 -0
- /package/dist/chunks/{model-resolver-a83yvq99.js → schema-a83yvq99.js} +0 -0
- /package/dist/chunks/{model-resolver-ayevdmef.js → schema-ayevdmef.js} +0 -0
- /package/dist/chunks/{model-resolver-b02txbh8.js → schema-b02txbh8.js} +0 -0
- /package/dist/chunks/{model-resolver-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
- /package/dist/chunks/{model-resolver-bjwj8hwv.js → schema-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{model-resolver-brsh5f65.js → schema-brsh5f65.js} +0 -0
- /package/dist/chunks/{model-resolver-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{model-resolver-bybkghrn.js → schema-bybkghrn.js} +0 -0
- /package/dist/chunks/{model-resolver-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
- /package/dist/chunks/{model-resolver-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
- /package/dist/chunks/{model-resolver-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
- /package/dist/chunks/{model-resolver-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
- /package/dist/chunks/{model-resolver-dht5baf0.js → schema-dht5baf0.js} +0 -0
- /package/dist/chunks/{model-resolver-dkmkay92.js → schema-dkmkay92.js} +0 -0
- /package/dist/chunks/{model-resolver-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
- /package/dist/chunks/{model-resolver-em6xpscd.js → schema-em6xpscd.js} +0 -0
- /package/dist/chunks/{model-resolver-emmqknsm.js → schema-emmqknsm.js} +0 -0
- /package/dist/chunks/{model-resolver-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
- /package/dist/chunks/{model-resolver-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
- /package/dist/chunks/{model-resolver-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{model-resolver-faypg4r1.js → schema-faypg4r1.js} +0 -0
- /package/dist/chunks/{model-resolver-fg7fz4q3.js → schema-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{model-resolver-fgbfdq62.js → schema-fgbfdq62.js} +0 -0
- /package/dist/chunks/{model-resolver-g23fad86.js → schema-g23fad86.js} +0 -0
- /package/dist/chunks/{model-resolver-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{model-resolver-ghm4673n.js → schema-ghm4673n.js} +0 -0
- /package/dist/chunks/{model-resolver-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
- /package/dist/chunks/{model-resolver-gy500k2r.js → schema-gy500k2r.js} +0 -0
- /package/dist/chunks/{model-resolver-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{model-resolver-j07kk359.js → schema-j07kk359.js} +0 -0
- /package/dist/chunks/{model-resolver-jqms80b0.js → schema-jqms80b0.js} +0 -0
- /package/dist/chunks/{model-resolver-jve7t217.js → schema-jve7t217.js} +0 -0
- /package/dist/chunks/{model-resolver-k3e42drn.js → schema-k3e42drn.js} +0 -0
- /package/dist/chunks/{model-resolver-k8b45nas.js → schema-k8b45nas.js} +0 -0
- /package/dist/chunks/{model-resolver-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{model-resolver-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
- /package/dist/chunks/{model-resolver-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{model-resolver-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
- /package/dist/chunks/{model-resolver-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
- /package/dist/chunks/{model-resolver-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
- /package/dist/chunks/{model-resolver-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{model-resolver-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{model-resolver-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
- /package/dist/chunks/{model-resolver-qc167nrn.js → schema-qc167nrn.js} +0 -0
- /package/dist/chunks/{model-resolver-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
- /package/dist/chunks/{model-resolver-r8f4w671.js → schema-r8f4w671.js} +0 -0
- /package/dist/chunks/{model-resolver-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
- /package/dist/chunks/{model-resolver-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
- /package/dist/chunks/{model-resolver-se76j685.js → schema-se76j685.js} +0 -0
- /package/dist/chunks/{model-resolver-sem2g21k.js → schema-sem2g21k.js} +0 -0
- /package/dist/chunks/{model-resolver-snpn6bap.js → schema-snpn6bap.js} +0 -0
- /package/dist/chunks/{model-resolver-sp575ygv.js → schema-sp575ygv.js} +0 -0
- /package/dist/chunks/{model-resolver-tmb1f636.js → schema-tmb1f636.js} +0 -0
- /package/dist/chunks/{model-resolver-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{model-resolver-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{model-resolver-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
- /package/dist/chunks/{model-resolver-vac9eqd2.js → schema-vac9eqd2.js} +0 -0
- /package/dist/chunks/{model-resolver-vpjkya7h.js → schema-vpjkya7h.js} +0 -0
- /package/dist/chunks/{model-resolver-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{model-resolver-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
- /package/dist/chunks/{model-resolver-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{model-resolver-x4q807cx.js → schema-x4q807cx.js} +0 -0
- /package/dist/chunks/{model-resolver-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{model-resolver-z47nswr2.js → schema-z47nswr2.js} +0 -0
- /package/dist/chunks/{model-resolver-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_runner
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
toSessionError
|
|
6
|
-
} from "./model-resolver-18medfkf.js";
|
|
3
|
+
} from "./schema-0rz7yd7x.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_run_coordinator
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./schema-f8wvq04h.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_inbox
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./schema-3rcd4hwd.js";
|
|
10
|
+
import {
|
|
11
|
+
toSessionError
|
|
12
|
+
} from "./schema-d6pj50wp.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_service
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-6bxzghb6.js";
|
|
16
|
+
import {
|
|
17
|
+
exports_job
|
|
18
|
+
} from "./schema-dt5yw4ma.js";
|
|
16
19
|
import {
|
|
17
20
|
exports_store
|
|
18
|
-
} from "./
|
|
21
|
+
} from "./schema-a4wk7wxx.js";
|
|
19
22
|
import {
|
|
20
23
|
UserInterruptedError
|
|
21
|
-
} from "./
|
|
24
|
+
} from "./schema-2sqw2jjm.js";
|
|
22
25
|
import {
|
|
23
26
|
SessionEvent
|
|
24
|
-
} from "./
|
|
25
|
-
import {
|
|
26
|
-
exports_job
|
|
27
|
-
} from "./model-resolver-hwtjfpwk.js";
|
|
27
|
+
} from "./schema-a83yvq99.js";
|
|
28
28
|
import {
|
|
29
29
|
exports_bus
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./schema-fjb24bmd.js";
|
|
31
31
|
import {
|
|
32
32
|
exports_database
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./schema-8scqw7rh.js";
|
|
34
34
|
import {
|
|
35
35
|
__export
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./schema-vpjkya7h.js";
|
|
37
37
|
|
|
38
38
|
// src/session/execution.ts
|
|
39
39
|
var exports_execution = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_skill
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-tbzs2pmr.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-jq0ga1pd.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-j07kk359.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/plugin/skill.ts
|
|
15
15
|
var exports_skill2 = {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_host
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-1escsep2.js";
|
|
4
4
|
import {
|
|
5
5
|
Service,
|
|
6
6
|
awaitActivation
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-esv5q40e.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_kv
|
|
10
|
-
} from "./
|
|
11
|
-
import {
|
|
12
|
-
exports_bus
|
|
13
|
-
} from "./model-resolver-b2mj9w79.js";
|
|
10
|
+
} from "./schema-y2b04s9v.js";
|
|
14
11
|
import {
|
|
15
12
|
exports_state
|
|
16
|
-
} from "./
|
|
13
|
+
} from "./schema-j6s3yjyb.js";
|
|
14
|
+
import {
|
|
15
|
+
exports_bus
|
|
16
|
+
} from "./schema-fjb24bmd.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./schema-vpjkya7h.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin.ts
|
|
22
22
|
var exports_plugin = {};
|
|
@@ -34,7 +34,7 @@ __export(exports_plugin, {
|
|
|
34
34
|
import { Event, ID, Info, Source, State } from "@opencode-ai/schema/plugin";
|
|
35
35
|
import { Plugin } from "@opencode-ai/schema/plugin";
|
|
36
36
|
import { Node } from "@opencode-ai/util/effect/app-node";
|
|
37
|
-
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, References, Scope, Semaphore } from "effect";
|
|
37
|
+
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
38
38
|
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
39
39
|
const bus = yield* exports_bus.Service;
|
|
40
40
|
const kv = yield* exports_kv.Service;
|
|
@@ -43,7 +43,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
43
43
|
const lock = Semaphore.makeUnsafe(1);
|
|
44
44
|
const ready = yield* Latch.make(true);
|
|
45
45
|
const pending = new Set;
|
|
46
|
-
|
|
46
|
+
let closed = false;
|
|
47
|
+
const holdUnsafe = () => {
|
|
48
|
+
if (closed)
|
|
49
|
+
return Effect.void;
|
|
47
50
|
const token = {};
|
|
48
51
|
pending.add(token);
|
|
49
52
|
ready.closeUnsafe();
|
|
@@ -51,23 +54,40 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
51
54
|
if (pending.delete(token) && pending.size === 0)
|
|
52
55
|
ready.openUnsafe();
|
|
53
56
|
});
|
|
54
|
-
}
|
|
57
|
+
};
|
|
58
|
+
const hold = () => Effect.sync(holdUnsafe);
|
|
59
|
+
const pendingFailures = yield* Queue.unbounded();
|
|
60
|
+
let discovered = [];
|
|
55
61
|
let inventory = [];
|
|
56
62
|
const list = Effect.fn("Plugin.list")(function* () {
|
|
57
63
|
return inventory;
|
|
58
64
|
});
|
|
59
65
|
const host = yield* exports_host.make({ list });
|
|
60
66
|
const load = Effect.fnUntraced(function* (plugin) {
|
|
61
|
-
const
|
|
67
|
+
const activation = { plugin, scope: yield* Scope.fork(scope) };
|
|
62
68
|
const inherit = yield* exports_state.inherit();
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
69
|
+
const grouped = exports_state.group((failure, refresh) => {
|
|
70
|
+
activation.failure = {
|
|
71
|
+
error: `Plugin disabled after ${failure.state}.transform failed. Check server logs for details.`,
|
|
72
|
+
ref: `err_${crypto.randomUUID().slice(0, 8)}`
|
|
73
|
+
};
|
|
74
|
+
Queue.offerUnsafe(pendingFailures, {
|
|
75
|
+
plugin,
|
|
76
|
+
scope: activation.scope,
|
|
77
|
+
failure,
|
|
78
|
+
refresh,
|
|
79
|
+
ref: activation.failure.ref,
|
|
80
|
+
release: holdUnsafe()
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const exit = yield* Effect.suspend(() => plugin.effect({ ...host, storage: exports_host.storage(kv, plugin.id) })).pipe(grouped, inherit, Effect.updateContext((context) => Context.make(Scope.Scope, activation.scope).pipe(Context.add(Logger.CurrentLoggers, Context.get(context, Logger.CurrentLoggers)), Context.add(References.MinimumLogLevel, Context.get(context, References.MinimumLogLevel)))), Effect.withSpan("Plugin.load", { attributes: { "plugin.id": plugin.id } }), Effect.onExit((exit2) => Exit.isFailure(exit2) && !activation.failure ? Scope.close(activation.scope, exit2) : Effect.void), Effect.exit);
|
|
84
|
+
if (activation.failure || Exit.isSuccess(exit))
|
|
85
|
+
return { activation };
|
|
66
86
|
yield* Effect.logWarning("failed to load plugin", {
|
|
67
87
|
"plugin.id": plugin.id,
|
|
68
|
-
cause:
|
|
88
|
+
cause: exit.cause
|
|
69
89
|
});
|
|
70
|
-
return { error: Cause.pretty(
|
|
90
|
+
return { error: Cause.pretty(exit.cause) };
|
|
71
91
|
});
|
|
72
92
|
const activate = Effect.fn("Plugin.activate")(function* (plugins, failures = []) {
|
|
73
93
|
const definitions = plugins.map((plugin) => ({ ...plugin, id: Plugin.ID.make(plugin.id) }));
|
|
@@ -78,6 +98,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
78
98
|
ids.add(definition.id);
|
|
79
99
|
}
|
|
80
100
|
yield* Effect.acquireUseRelease(hold(), () => lock.withPermit(Effect.gen(function* () {
|
|
101
|
+
if (closed)
|
|
102
|
+
return;
|
|
103
|
+
discovered = failures;
|
|
81
104
|
const current = Array.from(active.values());
|
|
82
105
|
const changed = definitions.findIndex((definition, index) => {
|
|
83
106
|
const entry = current[index];
|
|
@@ -101,28 +124,33 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
101
124
|
const previous = new Map(Array.from(active.entries()).slice(prefix));
|
|
102
125
|
yield* Effect.forEach(Array.from(previous.entries()).toReversed(), ([id, slot]) => Effect.gen(function* () {
|
|
103
126
|
active.delete(id);
|
|
104
|
-
if (slot.
|
|
105
|
-
yield* Scope.close(slot.
|
|
127
|
+
if (slot.activation && !slot.activation.failure)
|
|
128
|
+
yield* Scope.close(slot.activation.scope, Exit.void);
|
|
106
129
|
}), { discard: true });
|
|
107
130
|
for (const definition of definitions.slice(prefix)) {
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
131
|
+
const slot = previous.get(definition.id);
|
|
132
|
+
if (slot?.activation?.failure && slot.plugin.revision === definition.revision) {
|
|
133
|
+
active.set(definition.id, { ...slot, plugin: definition });
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
const result = yield* load(definition);
|
|
137
|
+
if (result.activation !== undefined) {
|
|
110
138
|
active.set(definition.id, {
|
|
111
139
|
plugin: definition,
|
|
112
|
-
|
|
140
|
+
activation: result.activation
|
|
113
141
|
});
|
|
114
142
|
continue;
|
|
115
143
|
}
|
|
116
|
-
active.set(definition.id, { plugin: definition, error:
|
|
117
|
-
const fallback =
|
|
118
|
-
if (!fallback)
|
|
144
|
+
active.set(definition.id, { plugin: definition, error: result.error });
|
|
145
|
+
const fallback = slot?.activation;
|
|
146
|
+
if (!fallback || fallback.failure)
|
|
119
147
|
continue;
|
|
120
148
|
const restored = yield* load(fallback.plugin);
|
|
121
|
-
if (restored.
|
|
149
|
+
if (restored.activation !== undefined) {
|
|
122
150
|
active.set(definition.id, {
|
|
123
151
|
plugin: definition,
|
|
124
|
-
|
|
125
|
-
error:
|
|
152
|
+
activation: restored.activation,
|
|
153
|
+
error: result.error
|
|
126
154
|
});
|
|
127
155
|
continue;
|
|
128
156
|
}
|
|
@@ -135,7 +163,39 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
135
163
|
yield* bus.publish(Plugin.Event.Updated, {});
|
|
136
164
|
})), (release) => release);
|
|
137
165
|
});
|
|
166
|
+
yield* Queue.take(pendingFailures).pipe(Effect.flatMap((item) => Effect.gen(function* () {
|
|
167
|
+
yield* Effect.logWarning("disabled plugin after transform failure", {
|
|
168
|
+
"plugin.id": item.plugin.id,
|
|
169
|
+
state: item.failure.state,
|
|
170
|
+
ref: item.ref,
|
|
171
|
+
cause: Cause.die(item.failure.cause)
|
|
172
|
+
});
|
|
173
|
+
yield* lock.withPermit(Effect.gen(function* () {
|
|
174
|
+
if (closed)
|
|
175
|
+
return;
|
|
176
|
+
inventory = [...Array.from(active.values()).map(slotInfo), ...discovered];
|
|
177
|
+
const refreshed = yield* exports_state.batch(item.refresh).pipe(Effect.exit);
|
|
178
|
+
yield* bus.publish(Plugin.Event.Updated, {});
|
|
179
|
+
if (Exit.isFailure(refreshed))
|
|
180
|
+
yield* Effect.logWarning("failed to refresh state after disabling plugin", {
|
|
181
|
+
"plugin.id": item.plugin.id,
|
|
182
|
+
ref: item.ref,
|
|
183
|
+
cause: refreshed.cause
|
|
184
|
+
});
|
|
185
|
+
}));
|
|
186
|
+
}).pipe(Effect.ensuring(Scope.close(item.scope, Exit.void).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to clean up disabled plugin", {
|
|
187
|
+
"plugin.id": item.plugin.id,
|
|
188
|
+
ref: item.ref,
|
|
189
|
+
cause
|
|
190
|
+
})), Effect.forkScoped({ startImmediately: true }))), Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to report disabled plugin", {
|
|
191
|
+
"plugin.id": item.plugin.id,
|
|
192
|
+
ref: item.ref,
|
|
193
|
+
cause
|
|
194
|
+
})), Effect.ensuring(item.release))), Effect.forever, Effect.forkScoped);
|
|
138
195
|
const close = (exit) => lock.withPermit(Effect.gen(function* () {
|
|
196
|
+
closed = true;
|
|
197
|
+
pending.clear();
|
|
198
|
+
ready.openUnsafe();
|
|
139
199
|
active.clear();
|
|
140
200
|
yield* exports_state.shutdown(Scope.close(scope, exit));
|
|
141
201
|
}));
|
|
@@ -149,10 +209,11 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
149
209
|
});
|
|
150
210
|
}));
|
|
151
211
|
function slotInfo(slot) {
|
|
212
|
+
const failure = slot.activation?.failure ?? (slot.error === undefined ? undefined : { error: slot.error });
|
|
152
213
|
return {
|
|
153
214
|
id: Plugin.ID.make(slot.plugin.id),
|
|
154
215
|
source: slot.plugin.source ?? { type: "builtin" },
|
|
155
|
-
state:
|
|
216
|
+
state: failure === undefined ? { status: "active" } : { status: "failed", ...failure },
|
|
156
217
|
features: { server: true, ...slot.plugin.features }
|
|
157
218
|
};
|
|
158
219
|
}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
exports_retry
|
|
3
|
+
} from "./schema-aseryw3y.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_usage
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-nn16cgj7.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_token
|
|
9
|
+
} from "./schema-z8c1ty6e.js";
|
|
7
10
|
import {
|
|
8
11
|
toSessionError
|
|
9
|
-
} from "./
|
|
12
|
+
} from "./schema-d6pj50wp.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_model_request
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./schema-yp4wxmaw.js";
|
|
13
16
|
import {
|
|
14
17
|
toLLMMessages
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
SessionEvent
|
|
18
|
-
} from "./model-resolver-a83yvq99.js";
|
|
18
|
+
} from "./schema-g23fad86.js";
|
|
19
19
|
import {
|
|
20
20
|
llmClient
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./schema-326j4s6w.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
SessionEvent
|
|
24
|
+
} from "./schema-a83yvq99.js";
|
|
25
25
|
import {
|
|
26
26
|
exports_state
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./schema-j6s3yjyb.js";
|
|
28
|
+
import {
|
|
29
|
+
exports_bus
|
|
30
|
+
} from "./schema-fjb24bmd.js";
|
|
28
31
|
import {
|
|
29
32
|
__export
|
|
30
|
-
} from "./
|
|
33
|
+
} from "./schema-vpjkya7h.js";
|
|
31
34
|
|
|
32
35
|
// src/session/compaction.ts
|
|
33
36
|
var exports_compaction = {};
|
|
@@ -41,7 +44,16 @@ __export(exports_compaction, {
|
|
|
41
44
|
serializeToolContent: () => serializeToolContent,
|
|
42
45
|
truncateToolOutput: () => truncateToolOutput
|
|
43
46
|
});
|
|
44
|
-
import {
|
|
47
|
+
import {
|
|
48
|
+
AIError,
|
|
49
|
+
InvalidProviderOutputError,
|
|
50
|
+
UnknownProviderError,
|
|
51
|
+
isContextOverflowFailure,
|
|
52
|
+
LLMClient,
|
|
53
|
+
LLMEvent,
|
|
54
|
+
LLMRequest,
|
|
55
|
+
Message
|
|
56
|
+
} from "@opencode-ai/ai";
|
|
45
57
|
import { Agent } from "@opencode-ai/schema/agent";
|
|
46
58
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
47
59
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -64,7 +76,7 @@ var SUMMARY_TEMPLATE = `You MUST use this format for your response (you may omit
|
|
|
64
76
|
|
|
65
77
|
## Work State
|
|
66
78
|
### Completed
|
|
67
|
-
- [finished work
|
|
79
|
+
- [finished work or changes made; otherwise "(none)"]
|
|
68
80
|
|
|
69
81
|
### Active
|
|
70
82
|
- [current work, partial changes, or investigation state; otherwise "(none)"]
|
|
@@ -287,6 +299,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
287
299
|
const chunks = [];
|
|
288
300
|
let failure;
|
|
289
301
|
let usage;
|
|
302
|
+
let providerState;
|
|
290
303
|
const recordUsage = Effect.suspend(() => usage ? bus.publish(SessionEvent.UsageRecorded, {
|
|
291
304
|
sessionID: context.session.id,
|
|
292
305
|
source: "compaction",
|
|
@@ -300,6 +313,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
300
313
|
messages: history.messages
|
|
301
314
|
});
|
|
302
315
|
const prepared = yield* input.prepare({
|
|
316
|
+
kind: "compaction",
|
|
303
317
|
scope: {
|
|
304
318
|
session: context.session,
|
|
305
319
|
agentID: Agent.ID.make("compaction"),
|
|
@@ -316,14 +330,22 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
316
330
|
]
|
|
317
331
|
}
|
|
318
332
|
});
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
333
|
+
const retry = yield* exports_retry.policy(context.session.id);
|
|
334
|
+
for (const request of [
|
|
335
|
+
prepared.request,
|
|
336
|
+
LLMRequest.update(prepared.request, {
|
|
322
337
|
messages: [
|
|
323
338
|
...prepared.request.messages,
|
|
324
339
|
Message.user("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.")
|
|
325
340
|
]
|
|
326
|
-
})
|
|
341
|
+
})
|
|
342
|
+
]) {
|
|
343
|
+
yield* Stream.suspend(() => {
|
|
344
|
+
chunks.length = 0;
|
|
345
|
+
providerState = undefined;
|
|
346
|
+
failure = undefined;
|
|
347
|
+
return llm.stream(request, prepared.options);
|
|
348
|
+
}).pipe(Stream.runForEach((event) => {
|
|
327
349
|
if (LLMEvent.is.providerError(event))
|
|
328
350
|
failure = {
|
|
329
351
|
type: event.classification === "context-overflow" ? "provider.invalid-request" : "provider.error",
|
|
@@ -337,10 +359,46 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
337
359
|
});
|
|
338
360
|
}
|
|
339
361
|
if (LLMEvent.is.stepFinish(event)) {
|
|
362
|
+
providerState = event.providerMetadata?.[context.model.model.route.providerMetadataKey ?? context.model.model.provider];
|
|
340
363
|
const step = exports_usage.record(event.usage, context.model.cost);
|
|
341
364
|
usage = usage ? exports_usage.add(usage, step) : step;
|
|
342
365
|
}
|
|
366
|
+
if (LLMEvent.is.finish(event)) {
|
|
367
|
+
if (event.reason.normalized === "length")
|
|
368
|
+
failure = { type: "compaction.failed", message: "Compaction summary reached the output token limit" };
|
|
369
|
+
if (event.reason.normalized === "content-filter")
|
|
370
|
+
failure = {
|
|
371
|
+
type: "provider.content-filter",
|
|
372
|
+
message: "Compaction summary was blocked by the provider"
|
|
373
|
+
};
|
|
374
|
+
if (event.reason.normalized === "unknown")
|
|
375
|
+
return Effect.fail(new AIError({
|
|
376
|
+
reason: new InvalidProviderOutputError({
|
|
377
|
+
message: "The provider response ended with an unknown finish reason.",
|
|
378
|
+
classification: "incomplete-stream"
|
|
379
|
+
})
|
|
380
|
+
}));
|
|
381
|
+
if (event.reason.normalized === "error")
|
|
382
|
+
return Effect.fail(new AIError({ reason: new UnknownProviderError({ message: "Compaction generation failed" }) }));
|
|
383
|
+
}
|
|
343
384
|
return Effect.void;
|
|
385
|
+
}), Effect.retry({
|
|
386
|
+
while: (cause) => Effect.gen(function* () {
|
|
387
|
+
if (isContextOverflowFailure(cause))
|
|
388
|
+
return false;
|
|
389
|
+
const decision = yield* retry({
|
|
390
|
+
cause,
|
|
391
|
+
error: toSessionError(cause),
|
|
392
|
+
agent: Agent.ID.make("compaction"),
|
|
393
|
+
model: context.model.ref,
|
|
394
|
+
hook: prepared.retry,
|
|
395
|
+
retry: exports_retry.isRetryable(cause)
|
|
396
|
+
});
|
|
397
|
+
if (!decision.retry)
|
|
398
|
+
return false;
|
|
399
|
+
yield* Effect.sleep(decision.delay);
|
|
400
|
+
return true;
|
|
401
|
+
})
|
|
344
402
|
}), Effect.catchTag("AI.Error", (error) => Effect.sync(() => {
|
|
345
403
|
failure = toSessionError(error);
|
|
346
404
|
})), Effect.onInterrupt(() => recordUsage.pipe(Effect.andThen(input.reason === "auto" ? failed({
|
|
@@ -369,6 +427,8 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
369
427
|
yield* bus.publish(SessionEvent.Compaction.Ended, {
|
|
370
428
|
sessionID: context.session.id,
|
|
371
429
|
reason: input.reason,
|
|
430
|
+
model: context.model.ref,
|
|
431
|
+
providerState,
|
|
372
432
|
text: summary,
|
|
373
433
|
recent: history.recent
|
|
374
434
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-326j4s6w.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
@@ -80,7 +80,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
80
80
|
operation: "read",
|
|
81
81
|
code: "close",
|
|
82
82
|
phase: "close",
|
|
83
|
-
delivery: channel.active.
|
|
83
|
+
delivery: channel.active.delivery === "provider-observed" || channel.active.delivery === "terminal" ? "accepted" : "ambiguous"
|
|
84
84
|
})));
|
|
85
85
|
yield* metric("close");
|
|
86
86
|
});
|
|
@@ -123,7 +123,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
123
123
|
code: "idle-data",
|
|
124
124
|
phase: "receive"
|
|
125
125
|
});
|
|
126
|
-
active.
|
|
126
|
+
active.delivery = "provider-observed";
|
|
127
127
|
if (typeof message !== "string")
|
|
128
128
|
return yield* transportError("Unsupported binary WebSocket frame", {
|
|
129
129
|
url: exchange.connect.url,
|
|
@@ -142,7 +142,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
142
142
|
});
|
|
143
143
|
})), Effect.catch((error) => channel.closing ? Effect.void : poison(owner, channel, annotate(error, {
|
|
144
144
|
phase: error.reason._tag === "Transport" && error.reason.phase === "close" ? "close" : "receive",
|
|
145
|
-
delivery: channel.active?.
|
|
145
|
+
delivery: channel.active?.delivery === "provider-observed" || channel.active?.delivery === "terminal" || error.reason._tag === "Transport" && error.reason.code === "queue-overflow" ? "accepted" : error.reason._tag === "Transport" && error.reason.code === "1009" ? "rejected" : "ambiguous"
|
|
146
146
|
}))), Effect.forkIn(scope, { startImmediately: true }));
|
|
147
147
|
yield* Effect.logDebug("session websocket connected", {
|
|
148
148
|
sessionTransport: "websocket",
|
|
@@ -156,7 +156,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
156
156
|
frames: exchange.fallback(),
|
|
157
157
|
complete: Effect.void
|
|
158
158
|
});
|
|
159
|
-
const start = Effect.fn("SessionModelTransport.start")(function* (owner, exchange
|
|
159
|
+
const start = Effect.fn("SessionModelTransport.start")(function* (owner, exchange) {
|
|
160
160
|
if (owner.closed)
|
|
161
161
|
return yield* transportError("Session WebSocket owner is closed", {
|
|
162
162
|
operation: "request",
|
|
@@ -181,7 +181,6 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
181
181
|
yield* metric("reconnect");
|
|
182
182
|
yield* closeChannel(owner, current);
|
|
183
183
|
}
|
|
184
|
-
lifecycle.delivery = owner.channel ? "ready" : "connecting";
|
|
185
184
|
if (owner.channel)
|
|
186
185
|
yield* Effect.logDebug("session websocket reused", {
|
|
187
186
|
sessionTransport: "websocket",
|
|
@@ -197,7 +196,6 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
197
196
|
}).pipe(Effect.andThen(metric("connect_failure")), Effect.andThen(metric("fallback")), Effect.as(undefined))));
|
|
198
197
|
if (!channel)
|
|
199
198
|
return fallback(exchange);
|
|
200
|
-
lifecycle.delivery = "ready";
|
|
201
199
|
if (channel.pending) {
|
|
202
200
|
channel.pending = undefined;
|
|
203
201
|
channel.checkpoint = undefined;
|
|
@@ -205,9 +203,11 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
205
203
|
const create = yield* exchange.driver.create(channel.checkpoint).pipe(Effect.tapError(() => closeChannel(owner, channel)), Effect.onInterrupt(() => closeChannel(owner, channel)));
|
|
206
204
|
if (create.mode === "full")
|
|
207
205
|
channel.checkpoint = undefined;
|
|
208
|
-
const active = {
|
|
206
|
+
const active = {
|
|
207
|
+
queue: yield* Queue.bounded(INBOUND_CAPACITY),
|
|
208
|
+
delivery: "send-attempted"
|
|
209
|
+
};
|
|
209
210
|
channel.active = active;
|
|
210
|
-
lifecycle.delivery = "send-attempted";
|
|
211
211
|
const sent = yield* channel.connection.sendText(create.message).pipe(Effect.withSpan("SessionModelTransport.send"), Effect.onInterrupt(() => closeChannel(owner, channel)), Effect.result);
|
|
212
212
|
if (sent._tag === "Failure") {
|
|
213
213
|
const failure = new AIError({
|
|
@@ -237,13 +237,13 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
237
237
|
operation: "read",
|
|
238
238
|
code: "idle-timeout",
|
|
239
239
|
phase: "receive",
|
|
240
|
-
delivery:
|
|
240
|
+
delivery: active.delivery === "provider-observed" ? "accepted" : "ambiguous"
|
|
241
241
|
}))
|
|
242
242
|
}), Stream.mapEffect((frame) => exchange.driver.observe(create, frame)), Stream.tap((observation) => Effect.sync(() => {
|
|
243
243
|
if (!observationTerminal(observation))
|
|
244
244
|
return;
|
|
245
245
|
terminal = observation;
|
|
246
|
-
|
|
246
|
+
active.delivery = "terminal";
|
|
247
247
|
const staged = observation.type === "completed" ? observation.checkpoint : undefined;
|
|
248
248
|
if (staged)
|
|
249
249
|
channel.pending = { token, checkpoint: staged };
|
|
@@ -276,7 +276,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
276
276
|
operation: "read",
|
|
277
277
|
code: "incomplete",
|
|
278
278
|
phase: "receive",
|
|
279
|
-
delivery:
|
|
279
|
+
delivery: active.delivery === "provider-observed" ? "accepted" : "ambiguous"
|
|
280
280
|
});
|
|
281
281
|
yield* poison(owner, channel, error);
|
|
282
282
|
})), Stream.catch((error) => {
|
|
@@ -301,13 +301,12 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
301
301
|
const bind = (sessionID) => ({
|
|
302
302
|
execute: (exchange) => {
|
|
303
303
|
const owner = state(sessionID);
|
|
304
|
-
const lifecycle = { delivery: "queued" };
|
|
305
304
|
let execution;
|
|
306
305
|
return Effect.succeed({
|
|
307
306
|
get http() {
|
|
308
307
|
return execution?.http;
|
|
309
308
|
},
|
|
310
|
-
frames: Stream.unwrap(Effect.acquireRelease(owner.lock.take(1), () => owner.lock.release(1), { interruptible: true }).pipe(Effect.andThen(start(owner, exchange
|
|
309
|
+
frames: Stream.unwrap(Effect.acquireRelease(owner.lock.take(1), () => owner.lock.release(1), { interruptible: true }).pipe(Effect.andThen(start(owner, exchange)), Effect.tap((started) => Effect.sync(() => {
|
|
311
310
|
execution = started;
|
|
312
311
|
})), Effect.map((started) => started.frames))),
|
|
313
312
|
complete: Effect.suspend(() => execution?.complete ?? Effect.void)
|