@opencode-ai/core 0.0.0-beta-18314 → 0.0.0-beta-18371
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/{job-gyaadd27.js → model-resolver-00ghgemb.js} +5 -5
- package/dist/chunks/{job-02dbfq60.js → model-resolver-02dbfq60.js} +1 -1
- package/dist/chunks/{job-c6agw9t5.js → model-resolver-0e955jr3.js} +14 -14
- package/dist/chunks/{job-0kvmztkf.js → model-resolver-0kvmztkf.js} +1 -1
- package/dist/chunks/{job-bt5jq058.js → model-resolver-0m084d2q.js} +4 -4
- package/dist/chunks/{job-jwgf44xz.js → model-resolver-0qm83tjt.js} +4 -4
- package/dist/chunks/{job-j2rwtkhe.js → model-resolver-13c57d66.js} +4 -4
- package/dist/chunks/{job-18pv8fg3.js → model-resolver-18pv8fg3.js} +2 -2
- package/dist/chunks/{job-9mhxn888.js → model-resolver-1c7r7zzs.js} +3 -3
- package/dist/chunks/{job-1fs6j1ee.js → model-resolver-1da9znbj.js} +12 -12
- package/dist/chunks/{job-18bpd5mk.js → model-resolver-1fzcbgr0.js} +4 -4
- package/dist/chunks/{job-5zxzwffr.js → model-resolver-1hzaa9cx.js} +7 -7
- package/dist/chunks/{job-dvagncbd.js → model-resolver-1qf08dc2.js} +74 -65
- package/dist/chunks/{job-m1ey0mfv.js → model-resolver-1txahbwr.js} +4 -4
- package/dist/chunks/{job-gv594dge.js → model-resolver-255r79nw.js} +9 -13
- package/dist/chunks/{job-sysphzh2.js → model-resolver-27q8pxga.js} +1 -1
- package/dist/chunks/{job-cy8yjam4.js → model-resolver-28cgwqbq.js} +5 -5
- package/dist/chunks/{job-vkvb1sb3.js → model-resolver-29n7vfk2.js} +2 -1
- package/dist/chunks/{job-r673n5v1.js → model-resolver-2aem3zm3.js} +12 -12
- package/dist/chunks/{job-61ae575p.js → model-resolver-2fyv5e50.js} +3 -3
- package/dist/chunks/model-resolver-2m0hgr65.js +18 -0
- package/dist/chunks/{job-2nmyybe0.js → model-resolver-2nmyybe0.js} +1 -1
- package/dist/chunks/{job-0b0fh8m6.js → model-resolver-2p7kqv8d.js} +4 -4
- package/dist/chunks/{job-2wds5nk3.js → model-resolver-2wds5nk3.js} +1 -1
- package/dist/chunks/{job-yytvxvcy.js → model-resolver-3b4q8hk0.js} +7 -7
- package/dist/chunks/{job-3pa0yq1v.js → model-resolver-3dc4mkmm.js} +2 -2
- package/dist/chunks/{job-8c81waph.js → model-resolver-3eft67a8.js} +12 -12
- package/dist/chunks/{job-3g8vftxb.js → model-resolver-3g8vftxb.js} +2 -2
- package/dist/chunks/{job-qdd4e9kv.js → model-resolver-3j06t78m.js} +10 -10
- package/dist/chunks/{job-3qv8nf0b.js → model-resolver-3qv8nf0b.js} +1 -1
- package/dist/chunks/{job-3thh6229.js → model-resolver-3thh6229.js} +2 -2
- package/dist/chunks/{job-vjt1s33f.js → model-resolver-3yrv3sh0.js} +7 -7
- package/dist/chunks/{job-f4kwr62g.js → model-resolver-40d9hg4b.js} +8 -8
- package/dist/chunks/{job-mqanfv2e.js → model-resolver-42cgv4c2.js} +4 -4
- package/dist/chunks/{job-e023xh4m.js → model-resolver-4evxzkhe.js} +3 -3
- package/dist/chunks/{job-zvcgsh8t.js → model-resolver-4hc6kbrw.js} +15 -15
- package/dist/chunks/{job-evme9j8h.js → model-resolver-4j9v5hvd.js} +10 -10
- package/dist/chunks/{job-0wfeztgd.js → model-resolver-4k1s3a8x.js} +4 -4
- package/dist/chunks/{job-4s2xwh5d.js → model-resolver-4s2xwh5d.js} +3 -3
- package/dist/chunks/{job-4zzdwbaz.js → model-resolver-4zzdwbaz.js} +2 -2
- package/dist/chunks/{job-50jxp3hw.js → model-resolver-50jxp3hw.js} +1 -1
- package/dist/chunks/{job-30cqtyfe.js → model-resolver-55yy771n.js} +5 -5
- package/dist/chunks/{job-57tzwnz4.js → model-resolver-57tzwnz4.js} +1 -1
- package/dist/chunks/{job-58xdvehb.js → model-resolver-58xdvehb.js} +1 -1
- package/dist/chunks/{job-5cdnkd94.js → model-resolver-5cdnkd94.js} +3 -3
- package/dist/chunks/{job-67qnaq06.js → model-resolver-5cgt2bxg.js} +5 -5
- package/dist/chunks/{job-5fe026tx.js → model-resolver-5fe026tx.js} +3 -3
- package/dist/chunks/{job-5rs65q6p.js → model-resolver-5rs65q6p.js} +1 -1
- package/dist/chunks/{job-hfrn4x7x.js → model-resolver-5sfdg351.js} +6 -6
- package/dist/chunks/{job-5vcssjzn.js → model-resolver-5vcssjzn.js} +1 -1
- package/dist/chunks/{job-swfajvmq.js → model-resolver-5y8hhxwf.js} +10 -15
- package/dist/chunks/{job-5z4zwtb4.js → model-resolver-5z4zwtb4.js} +2 -2
- package/dist/chunks/{job-6272rtjg.js → model-resolver-6272rtjg.js} +1 -1
- package/dist/chunks/{job-87s75dvv.js → model-resolver-63w2ay9e.js} +3 -3
- package/dist/chunks/{job-cms3avjt.js → model-resolver-67jehtq9.js} +7 -7
- package/dist/chunks/{job-kw1zvwxg.js → model-resolver-6ekv75fa.js} +7 -7
- package/dist/chunks/{job-9v8sftqd.js → model-resolver-6fwazb1v.js} +2 -2
- package/dist/chunks/{job-41j8xasw.js → model-resolver-6hcyjqef.js} +9 -9
- package/dist/chunks/{job-6ky7rqk7.js → model-resolver-6ky7rqk7.js} +1 -1
- package/dist/chunks/{job-7y1ge8cm.js → model-resolver-6ryqfjvp.js} +3 -3
- package/dist/chunks/{job-v3mckd1j.js → model-resolver-6wdwzpfh.js} +6 -6
- package/dist/chunks/{job-6wkzvma0.js → model-resolver-6wkzvma0.js} +2 -2
- package/dist/chunks/{job-6cb4pvvr.js → model-resolver-6wswptam.js} +8 -8
- package/dist/chunks/{job-4yxq1tjg.js → model-resolver-70v65tpe.js} +89 -89
- package/dist/chunks/{job-75h1hfe2.js → model-resolver-75h1hfe2.js} +2 -2
- package/dist/chunks/{job-1v8zr5j1.js → model-resolver-7c49b741.js} +3 -3
- package/dist/chunks/{job-7gqqz1s8.js → model-resolver-7gqqz1s8.js} +1 -1
- package/dist/chunks/{job-74sy20v2.js → model-resolver-7hhsvv9w.js} +83 -24
- package/dist/chunks/{job-7khw64yh.js → model-resolver-7khw64yh.js} +1 -1
- package/dist/chunks/{job-7mrpdsq5.js → model-resolver-7mrpdsq5.js} +1 -1
- package/dist/chunks/{job-cegwyrsy.js → model-resolver-7ph4btqd.js} +4 -4
- package/dist/chunks/{job-7thnevmq.js → model-resolver-7thnevmq.js} +2 -2
- package/dist/chunks/{job-7wcmqxrc.js → model-resolver-7wcmqxrc.js} +1 -1
- package/dist/chunks/{job-88jbfw8z.js → model-resolver-88jbfw8z.js} +2 -2
- package/dist/chunks/{job-by1b88kn.js → model-resolver-8a8eker1.js} +14 -14
- package/dist/chunks/{job-qtwj4sct.js → model-resolver-8axcyx1d.js} +3 -3
- package/dist/chunks/{job-8pngjawd.js → model-resolver-8pngjawd.js} +2 -2
- package/dist/chunks/model-resolver-8tv6syt7.js +46 -0
- package/dist/chunks/{job-7tan8bxz.js → model-resolver-8ynsv3dn.js} +4 -4
- package/dist/chunks/{job-awxbz613.js → model-resolver-92c1hbn3.js} +10 -10
- package/dist/chunks/{job-tqk65e1r.js → model-resolver-96g12gma.js} +14 -14
- package/dist/chunks/{job-999qd968.js → model-resolver-999qd968.js} +1 -1
- package/dist/chunks/{job-9f0rnpkn.js → model-resolver-9f0rnpkn.js} +1 -1
- package/dist/chunks/{job-4b29ngba.js → model-resolver-9qf4c1dq.js} +76 -31
- package/dist/chunks/{job-4s1gnawc.js → model-resolver-9rdcfkcx.js} +9 -9
- package/dist/chunks/{job-emcftcn6.js → model-resolver-9sv6fyqj.js} +4 -4
- package/dist/chunks/{job-xhmx5xme.js → model-resolver-9v6d6j4e.js} +2 -2
- package/dist/chunks/{job-0b17sr9d.js → model-resolver-a09abg6q.js} +11 -14
- package/dist/chunks/{job-91crht0e.js → model-resolver-a27nps75.js} +3 -3
- package/dist/chunks/{job-t2nhz694.js → model-resolver-a4dsspcc.js} +3 -3
- package/dist/chunks/{job-h846wrk2.js → model-resolver-a9vdgkgd.js} +1 -1
- package/dist/chunks/{job-jg0n1jjh.js → model-resolver-aa2ma3z3.js} +3 -3
- package/dist/chunks/{job-80f2pyxq.js → model-resolver-ad93zf3w.js} +35 -33
- package/dist/chunks/{job-j1v3cm3s.js → model-resolver-ahjey3nf.js} +3 -3
- package/dist/chunks/{job-453chyz6.js → model-resolver-an4sq5sg.js} +3 -3
- package/dist/chunks/{job-awg5d31a.js → model-resolver-awg5d31a.js} +1 -1
- package/dist/chunks/{job-80h0mrdr.js → model-resolver-bgmcctn4.js} +16 -22
- package/dist/chunks/{job-x2yhhk3x.js → model-resolver-bgxd79er.js} +7 -7
- package/dist/chunks/{job-bh1wr8rq.js → model-resolver-bh1wr8rq.js} +2 -2
- package/dist/chunks/{job-v87jc5jg.js → model-resolver-bh4farnk.js} +2 -2
- package/dist/chunks/{job-bmknfyv0.js → model-resolver-bmknfyv0.js} +2 -2
- package/dist/chunks/{job-m28e25wx.js → model-resolver-bmw7xqpn.js} +5 -5
- package/dist/chunks/{job-83vq7eg1.js → model-resolver-bpqydscm.js} +8 -8
- package/dist/chunks/{job-byab506k.js → model-resolver-byab506k.js} +1 -1
- package/dist/chunks/{job-04cwzwc7.js → model-resolver-bymt1gaf.js} +3 -3
- package/dist/chunks/{job-c4wcb9vc.js → model-resolver-c4wcb9vc.js} +2 -2
- package/dist/chunks/{job-ykhdtytp.js → model-resolver-cag041wd.js} +48 -72
- package/dist/chunks/{job-3675e63x.js → model-resolver-cbajjvnv.js} +5 -5
- package/dist/chunks/{job-6g380kj4.js → model-resolver-cczrd96b.js} +9 -9
- package/dist/chunks/{job-zgj06aq9.js → model-resolver-cjgkryjg.js} +7 -7
- package/dist/chunks/{job-csrx180a.js → model-resolver-csrx180a.js} +3 -3
- package/dist/chunks/{job-fcrk6m2k.js → model-resolver-cvzq2k2j.js} +4 -4
- package/dist/chunks/{job-d2gk9vpf.js → model-resolver-d2gk9vpf.js} +2 -2
- package/dist/chunks/{job-d4ax61k3.js → model-resolver-d4ax61k3.js} +2 -2
- package/dist/chunks/{job-kj73zjy7.js → model-resolver-d56stg0x.js} +3 -3
- package/dist/chunks/{job-kqp51j35.js → model-resolver-d8t4kqdr.js} +2 -2
- package/dist/chunks/{job-dhphtf1x.js → model-resolver-dhphtf1x.js} +1 -1
- package/dist/chunks/{job-s3g94pz9.js → model-resolver-dnf3rn1j.js} +2 -2
- package/dist/chunks/{job-8za0sdpt.js → model-resolver-dt8890pn.js} +4 -4
- package/dist/chunks/{job-e1z9a0ts.js → model-resolver-e1z9a0ts.js} +2 -2
- package/dist/chunks/{job-mmg6vxx4.js → model-resolver-ec3y3ysv.js} +9 -9
- package/dist/chunks/{job-ec8vrfw5.js → model-resolver-ec8vrfw5.js} +1 -1
- package/dist/chunks/{job-enpg66yn.js → model-resolver-enpg66yn.js} +1 -1
- package/dist/chunks/{job-xw73njnh.js → model-resolver-ewfbpjdm.js} +21 -15
- package/dist/chunks/{job-ztjk4rav.js → model-resolver-f11jbhcb.js} +6 -6
- package/dist/chunks/{job-7ccgh94t.js → model-resolver-f7q7a28y.js} +6 -6
- package/dist/chunks/{job-f9wt0tjw.js → model-resolver-f9wt0tjw.js} +2 -2
- package/dist/chunks/{job-fb7nfzf2.js → model-resolver-fb7nfzf2.js} +3 -3
- package/dist/chunks/{job-fgyjabww.js → model-resolver-fgyjabww.js} +2 -2
- package/dist/chunks/{job-ambzzkps.js → model-resolver-fwpmn9q0.js} +8 -8
- package/dist/chunks/{job-gcay93cp.js → model-resolver-gcay93cp.js} +1 -1
- package/dist/chunks/{job-gd2xppx8.js → model-resolver-gd2xppx8.js} +1 -1
- package/dist/chunks/{job-g0ms0rgy.js → model-resolver-gnrhajcr.js} +4 -4
- package/dist/chunks/{job-gpybhmhb.js → model-resolver-gpybhmhb.js} +3 -3
- package/dist/chunks/{job-g2rkrtc7.js → model-resolver-gx79gans.js} +14 -14
- package/dist/chunks/{job-h12kt9pa.js → model-resolver-h12kt9pa.js} +2 -2
- package/dist/chunks/{job-f3nzffq3.js → model-resolver-h3d2yzc7.js} +4 -4
- package/dist/chunks/{job-j5q8scqt.js → model-resolver-h3kcef9b.js} +8 -8
- package/dist/chunks/{job-c8k88b24.js → model-resolver-h763zy7b.js} +36 -36
- package/dist/chunks/{job-h94zdhz8.js → model-resolver-h94zdhz8.js} +2 -2
- package/dist/chunks/{job-hp6rpdnc.js → model-resolver-hp6rpdnc.js} +1 -1
- package/dist/chunks/{job-6y125m49.js → model-resolver-hxdwd9z9.js} +8 -8
- package/dist/chunks/{job-f7x4n10r.js → model-resolver-jftqpvh4.js} +10 -10
- package/dist/chunks/{job-gcvth7mt.js → model-resolver-jhrzhtsq.js} +6 -6
- package/dist/chunks/{job-k42t1tha.js → model-resolver-k42t1tha.js} +2 -2
- package/dist/chunks/{job-d1sq95z9.js → model-resolver-kdpeb35f.js} +2 -2
- package/dist/chunks/{job-kg1345f7.js → model-resolver-kg1345f7.js} +1 -1
- package/dist/chunks/{job-kp1t5rcy.js → model-resolver-kp1t5rcy.js} +1 -1
- package/dist/chunks/{job-979eqq1k.js → model-resolver-kpj1z3d3.js} +14 -14
- package/dist/chunks/{job-krsqcmnj.js → model-resolver-krsqcmnj.js} +1 -1
- package/dist/chunks/{job-gkwa729k.js → model-resolver-ky6mgxk3.js} +4 -4
- package/dist/chunks/{job-f5btf568.js → model-resolver-m3pxv7vy.js} +15 -17
- package/dist/chunks/{job-m55whf0h.js → model-resolver-m55whf0h.js} +2 -2
- package/dist/chunks/{job-emgtfyfk.js → model-resolver-m746561h.js} +6 -6
- package/dist/chunks/model-resolver-mb0mcgky.js +341 -0
- package/dist/chunks/{job-efjyazj3.js → model-resolver-mdkrm042.js} +13 -13
- package/dist/chunks/model-resolver-mepqfw3s.js +209 -0
- package/dist/chunks/{job-mf0hyk7z.js → model-resolver-mf0hyk7z.js} +1 -1
- package/dist/chunks/{job-mh28new4.js → model-resolver-mh28new4.js} +2 -2
- package/dist/chunks/{job-mnb85w6b.js → model-resolver-mnb85w6b.js} +2 -2
- package/dist/chunks/{job-gv6vfy44.js → model-resolver-mppd4b9z.js} +89 -89
- package/dist/chunks/{job-y5w7j7k0.js → model-resolver-mtgz9jvk.js} +9 -9
- package/dist/chunks/{job-mxvw03gv.js → model-resolver-mxvw03gv.js} +1 -1
- package/dist/chunks/{job-90zewg12.js → model-resolver-mxwx9cv9.js} +5 -5
- package/dist/chunks/{job-p7khmdc5.js → model-resolver-n307d0z2.js} +4 -4
- package/dist/chunks/{job-htvrdb86.js → model-resolver-n51v3fg0.js} +3 -3
- package/dist/chunks/{job-rf256wce.js → model-resolver-n6kt309t.js} +15 -15
- package/dist/chunks/{job-nesb2rcz.js → model-resolver-nesb2rcz.js} +2 -2
- package/dist/chunks/{job-v3wya5xh.js → model-resolver-nezq13q9.js} +4 -4
- package/dist/chunks/{job-x92gabff.js → model-resolver-nh7cz8y3.js} +6 -6
- package/dist/chunks/{job-nr76rjj3.js → model-resolver-nr76rjj3.js} +2 -2
- package/dist/chunks/{job-nzrjycs5.js → model-resolver-nzrjycs5.js} +1 -1
- package/dist/chunks/{job-6q0m15b3.js → model-resolver-p8fr6x1v.js} +2 -2
- package/dist/chunks/{job-q7kxpbqj.js → model-resolver-pa36kxjq.js} +12 -12
- package/dist/chunks/{job-56th4kc6.js → model-resolver-pbkwpytw.js} +3 -3
- package/dist/chunks/{job-752hq4tr.js → model-resolver-pebqs190.js} +5 -5
- package/dist/chunks/{job-pq4b4pqk.js → model-resolver-pq4b4pqk.js} +2 -2
- package/dist/chunks/{job-pff6q9k0.js → model-resolver-pvbhnv8z.js} +4 -4
- package/dist/chunks/{job-tn0pfbrf.js → model-resolver-pwqf298r.js} +4 -4
- package/dist/chunks/{job-v3tbrwy6.js → model-resolver-q1z6zb5q.js} +13 -20
- package/dist/chunks/{job-q9b4qnv8.js → model-resolver-q9b4qnv8.js} +2 -2
- package/dist/chunks/{job-594xzh81.js → model-resolver-qb7ktahy.js} +7 -7
- package/dist/chunks/{job-qe0d689s.js → model-resolver-qe0d689s.js} +2 -2
- package/dist/chunks/{job-se1aqaya.js → model-resolver-qf7arn9v.js} +6 -5
- package/dist/chunks/{job-r13w8t0w.js → model-resolver-r13w8t0w.js} +2 -2
- package/dist/chunks/{job-ejc7zsyk.js → model-resolver-r1b56gxk.js} +3 -3
- package/dist/chunks/{job-r3k9abhd.js → model-resolver-r3k9abhd.js} +2 -2
- package/dist/chunks/{job-rahat93a.js → model-resolver-rahat93a.js} +1 -1
- package/dist/chunks/{job-rameyvmv.js → model-resolver-rameyvmv.js} +1 -1
- package/dist/chunks/{job-rbnp2c85.js → model-resolver-rbnp2c85.js} +3 -3
- package/dist/chunks/{job-rfbm65k8.js → model-resolver-rfbm65k8.js} +1 -1
- package/dist/chunks/{job-4nvjkpcc.js → model-resolver-rrqkxxjp.js} +5 -5
- package/dist/chunks/{job-am5pnytv.js → model-resolver-rtq888az.js} +60 -60
- package/dist/chunks/{job-s33fw6zm.js → model-resolver-s33fw6zm.js} +1 -1
- package/dist/chunks/{job-hh1wpw8n.js → model-resolver-s9x5m3kb.js} +2 -2
- package/dist/chunks/{job-xs1a0k5e.js → model-resolver-shhypnhg.js} +3 -3
- package/dist/chunks/{job-smpeg8c9.js → model-resolver-smpeg8c9.js} +2 -2
- package/dist/chunks/{job-sw84ckhj.js → model-resolver-sw84ckhj.js} +1 -1
- package/dist/chunks/{job-t14kykx1.js → model-resolver-t14kykx1.js} +1 -1
- package/dist/chunks/{job-efh129a7.js → model-resolver-t2c6nnpe.js} +3 -3
- package/dist/chunks/{job-tcptxgyq.js → model-resolver-tcptxgyq.js} +1 -1
- package/dist/chunks/{job-vpex7vrq.js → model-resolver-tdhkfr1t.js} +27 -27
- package/dist/chunks/{job-wey5vt6z.js → model-resolver-tdkvzw42.js} +5 -5
- package/dist/chunks/{job-tgbb2ckq.js → model-resolver-tgbb2ckq.js} +2 -2
- package/dist/chunks/{job-thstd87d.js → model-resolver-thstd87d.js} +1 -1
- package/dist/chunks/{job-x2zfy610.js → model-resolver-ts00zsxp.js} +11 -11
- package/dist/chunks/{job-v2wshkax.js → model-resolver-v2wshkax.js} +1 -1
- package/dist/chunks/{job-v80zsxnb.js → model-resolver-v80zsxnb.js} +1 -1
- package/dist/chunks/{job-v972xay6.js → model-resolver-v972xay6.js} +1 -1
- package/dist/chunks/{job-v9bfv94f.js → model-resolver-v9bfv94f.js} +1 -1
- package/dist/chunks/{job-vcwr2vpf.js → model-resolver-vcwr2vpf.js} +1 -1
- package/dist/chunks/{job-j624ajjr.js → model-resolver-vgpsk8g3.js} +63 -63
- package/dist/chunks/{job-vqbmgfq1.js → model-resolver-vqbmgfq1.js} +3 -3
- package/dist/chunks/{job-dw0e6gqz.js → model-resolver-vrg249m2.js} +56 -50
- package/dist/chunks/{job-x4fa0s7b.js → model-resolver-vve06gze.js} +3 -3
- package/dist/chunks/{job-9fxjt5sk.js → model-resolver-vycjsnjm.js} +17 -29
- package/dist/chunks/{job-vz89hfgr.js → model-resolver-vz89hfgr.js} +1 -1
- package/dist/chunks/{job-bpfzp1b4.js → model-resolver-w1njty1c.js} +23 -23
- package/dist/chunks/model-resolver-w8f9kpcw.js +324 -0
- package/dist/chunks/{job-wbkt8qpj.js → model-resolver-wbkt8qpj.js} +1 -1
- package/dist/chunks/{job-wd268jeg.js → model-resolver-wd268jeg.js} +1 -1
- package/dist/chunks/{job-eb5hn8c3.js → model-resolver-wgqwyc5x.js} +5 -5
- package/dist/chunks/{job-whk0g8cz.js → model-resolver-whk0g8cz.js} +4 -4
- package/dist/chunks/{job-wmxdh12w.js → model-resolver-wmxdh12w.js} +1 -1
- package/dist/chunks/{job-wps8gh8n.js → model-resolver-wps8gh8n.js} +2 -2
- package/dist/chunks/{job-d10138fy.js → model-resolver-wqyhh6zh.js} +17 -17
- package/dist/chunks/{job-s5s19g76.js → model-resolver-x0yvy2ba.js} +18 -67
- package/dist/chunks/{job-jtsr1kyk.js → model-resolver-x2syzpyj.js} +4 -4
- package/dist/chunks/{job-03svsmyg.js → model-resolver-x501yhn6.js} +13 -13
- package/dist/chunks/{job-b517em9p.js → model-resolver-x7n0vxsg.js} +10 -10
- package/dist/chunks/{job-x89rah0x.js → model-resolver-x89rah0x.js} +1 -1
- package/dist/chunks/{job-22mtntar.js → model-resolver-x93jkx69.js} +5 -5
- package/dist/chunks/{job-8stkcvkk.js → model-resolver-xcdmv9yv.js} +6 -6
- package/dist/chunks/{job-xczfw7dq.js → model-resolver-xczfw7dq.js} +1 -1
- package/dist/chunks/{job-xgv25zxy.js → model-resolver-xgv25zxy.js} +1 -1
- package/dist/chunks/{job-tmrzx1y1.js → model-resolver-xhafmq7j.js} +7 -7
- package/dist/chunks/{job-9fke2v0v.js → model-resolver-xp0574gg.js} +4 -4
- package/dist/chunks/{job-tb33ng7x.js → model-resolver-xqrzrwfb.js} +107 -35
- package/dist/chunks/{job-a72jeb24.js → model-resolver-xs18wzfv.js} +3 -3
- package/dist/chunks/{job-xwftk1fd.js → model-resolver-xwftk1fd.js} +2 -2
- package/dist/chunks/{job-e6tqds24.js → model-resolver-xxmkv86g.js} +7 -7
- package/dist/chunks/{job-xxpvz42q.js → model-resolver-xxpvz42q.js} +3 -3
- package/dist/chunks/{job-y0x38cee.js → model-resolver-y0x38cee.js} +1 -1
- package/dist/chunks/{job-y198y2ra.js → model-resolver-y198y2ra.js} +1 -1
- package/dist/chunks/{job-j3qn6z6c.js → model-resolver-y3s43asn.js} +155 -155
- package/dist/chunks/{job-y67x6rf6.js → model-resolver-y67x6rf6.js} +1 -1
- package/dist/chunks/{job-y980s7ka.js → model-resolver-y980s7ka.js} +3 -3
- package/dist/chunks/{job-ybhfpy64.js → model-resolver-ybhfpy64.js} +2 -2
- package/dist/chunks/{job-yc2vxtaa.js → model-resolver-yc2vxtaa.js} +2 -2
- package/dist/chunks/{job-szy0yc2m.js → model-resolver-yd0311fj.js} +3 -3
- package/dist/chunks/{job-yf0knd5z.js → model-resolver-yf0knd5z.js} +2 -2
- package/dist/chunks/{job-ygy0xbqa.js → model-resolver-ygy0xbqa.js} +3 -3
- package/dist/chunks/{job-66kns9ss.js → model-resolver-yjkby015.js} +9 -9
- package/dist/chunks/{job-zbqqnp0n.js → model-resolver-zbqqnp0n.js} +1 -1
- package/dist/chunks/{job-zdkg1k91.js → model-resolver-zdkg1k91.js} +1 -1
- package/dist/chunks/{job-x7gtn86w.js → model-resolver-zr9p7tag.js} +11 -11
- package/dist/chunks/{job-wvkyq8sh.js → model-resolver-zsyw48fy.js} +5 -5
- package/dist/chunks/{job-gfk86902.js → model-resolver-zthbn9fh.js} +5 -5
- package/dist/chunks/{job-zxcy6vhn.js → model-resolver-zxcy6vhn.js} +1 -1
- package/dist/chunks/{job-zxe9jjhn.js → model-resolver-zxe9jjhn.js} +2 -2
- package/dist/chunks/{job-hqh8yks9.js → model-resolver-zytbgf7y.js} +3 -3
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +136 -135
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +150 -170
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +109 -108
- package/dist/config/plugin/skill.js +139 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- 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 +19 -19
- 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 +91 -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 +328 -326
- 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 +91 -91
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +93 -93
- 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 +92 -92
- 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 +304 -306
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +96 -96
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- 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 +98 -98
- package/dist/image.js +98 -98
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +86 -86
- 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 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +85 -85
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +328 -326
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +96 -93
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +129 -128
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +2 -2
- 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 +84 -84
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +106 -105
- 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 +70 -70
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +70 -70
- package/dist/plugin/agent.js +107 -106
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +171 -170
- package/dist/plugin/internal.js +298 -300
- 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 +107 -106
- 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 +121 -121
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +82 -82
- 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 +114 -114
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- 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 +114 -114
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/runtime.js +159 -156
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +137 -136
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +303 -305
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +115 -115
- 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 +172 -171
- package/dist/project/markers.js +74 -74
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +82 -82
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -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 +70 -70
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +77 -77
- package/dist/reference.js +75 -75
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +94 -94
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +122 -142
- package/dist/session/context.js +313 -312
- 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 +253 -129
- package/dist/session/execution.js +126 -121
- package/dist/session/generate-node.js +314 -313
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +94 -77
- package/dist/session/inbox.js +91 -77
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +90 -73
- package/dist/session/instruction-state.js +91 -10
- package/dist/session/instructions.js +102 -101
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +139 -138
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +101 -90
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +94 -90
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +87 -85
- package/dist/session/runner/llm.js +320 -318
- 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 +73 -75
- package/dist/session/runner/step.js +155 -0
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +87 -6
- package/dist/session/stats.js +87 -71
- package/dist/session/store.js +101 -100
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +314 -140
- package/dist/session/to-session-error.js +117 -116
- package/dist/session/transfer.js +162 -159
- package/dist/session/usage.js +2 -2
- package/dist/session.js +157 -154
- package/dist/shell/parse.js +9 -6
- 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/scan.js +1084 -365
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +108 -107
- package/dist/skill.js +107 -106
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +128 -127
- package/dist/tool/plugin/edit.js +116 -115
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +118 -117
- package/dist/tool/plugin/grep.js +118 -117
- package/dist/tool/plugin/patch.js +116 -115
- package/dist/tool/plugin/question.js +108 -107
- package/dist/tool/plugin/read.js +121 -120
- package/dist/tool/plugin/shell.js +187 -186
- package/dist/tool/plugin/skill.js +108 -107
- package/dist/tool/plugin/subagent.js +184 -183
- package/dist/tool/plugin/webfetch.js +109 -108
- package/dist/tool/plugin/websearch.js +111 -110
- package/dist/tool/plugin/write.js +116 -115
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +121 -120
- package/dist/types/bus.d.ts +3 -0
- package/dist/types/job.d.ts +45 -8
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +4 -8
- package/dist/types/plugin/internal.d.ts +3 -3
- package/dist/types/plugin/runtime.d.ts +1 -6
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +8 -3
- package/dist/types/session/context.d.ts +11 -2
- package/dist/types/session/execution/restart.d.ts +6 -1
- package/dist/types/session/execution.d.ts +2 -1
- package/dist/types/session/generate-node.d.ts +1 -3
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/runner/index.d.ts +55 -6
- package/dist/types/session/runner/model.d.ts +2 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -8
- package/dist/types/session/runner/retry.d.ts +3 -7
- package/dist/types/session/runner/step.d.ts +58 -0
- package/dist/types/session/store.d.ts +5 -7
- package/dist/types/session/title.d.ts +2 -5
- package/dist/types/shell/parse.d.ts +8 -6
- package/dist/types/shell/scan.d.ts +6 -3
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool.d.ts +14 -5
- 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 +7 -43
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- 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 +87 -87
- package/package.json +8 -8
- package/dist/chunks/job-cz3dkvcz.js +0 -16
- package/dist/chunks/job-nv9gjhyw.js +0 -712
- package/dist/chunks/job-zn4b3ags.js +0 -539
- /package/dist/chunks/{job-0cgt0xh2.js → model-resolver-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{job-0f48qthw.js → model-resolver-0f48qthw.js} +0 -0
- /package/dist/chunks/{job-0zz82cjq.js → model-resolver-0zz82cjq.js} +0 -0
- /package/dist/chunks/{job-1fb7bmpf.js → model-resolver-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{job-1wcz8fvj.js → model-resolver-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{job-2qdx6zz3.js → model-resolver-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{job-2xb0r1c6.js → model-resolver-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{job-39ktntah.js → model-resolver-39ktntah.js} +0 -0
- /package/dist/chunks/{job-3g3rpp2x.js → model-resolver-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{job-3q6gbwmd.js → model-resolver-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{job-3w3ybtfd.js → model-resolver-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{job-47ty4mvs.js → model-resolver-47ty4mvs.js} +0 -0
- /package/dist/chunks/{job-4b2tz2m9.js → model-resolver-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{job-5a5ch9ts.js → model-resolver-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{job-5va1yh78.js → model-resolver-5va1yh78.js} +0 -0
- /package/dist/chunks/{job-61ek4hj9.js → model-resolver-61ek4hj9.js} +0 -0
- /package/dist/chunks/{job-69qrqpw0.js → model-resolver-69qrqpw0.js} +0 -0
- /package/dist/chunks/{job-6zqxzw0a.js → model-resolver-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{job-7n9qwqk4.js → model-resolver-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{job-8nn8kqcn.js → model-resolver-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{job-8rpfd2h6.js → model-resolver-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{job-8sj3ajy5.js → model-resolver-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{job-8w9tzfz1.js → model-resolver-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{job-906y0b6d.js → model-resolver-906y0b6d.js} +0 -0
- /package/dist/chunks/{job-9dct5xhx.js → model-resolver-9dct5xhx.js} +0 -0
- /package/dist/chunks/{job-9sdtsapf.js → model-resolver-9sdtsapf.js} +0 -0
- /package/dist/chunks/{job-a02svayp.js → model-resolver-a02svayp.js} +0 -0
- /package/dist/chunks/{job-a83yvq99.js → model-resolver-a83yvq99.js} +0 -0
- /package/dist/chunks/{job-ayevdmef.js → model-resolver-ayevdmef.js} +0 -0
- /package/dist/chunks/{job-b02txbh8.js → model-resolver-b02txbh8.js} +0 -0
- /package/dist/chunks/{job-bbqs2y60.js → model-resolver-bbqs2y60.js} +0 -0
- /package/dist/chunks/{job-bjwj8hwv.js → model-resolver-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{job-brsh5f65.js → model-resolver-brsh5f65.js} +0 -0
- /package/dist/chunks/{job-bxdhjb3y.js → model-resolver-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{job-c77ad0vh.js → model-resolver-c77ad0vh.js} +0 -0
- /package/dist/chunks/{job-ck5pgha0.js → model-resolver-ck5pgha0.js} +0 -0
- /package/dist/chunks/{job-cm67rqy2.js → model-resolver-cm67rqy2.js} +0 -0
- /package/dist/chunks/{job-df3v2q6j.js → model-resolver-df3v2q6j.js} +0 -0
- /package/dist/chunks/{job-dhcq6c44.js → model-resolver-dhcq6c44.js} +0 -0
- /package/dist/chunks/{job-dht5baf0.js → model-resolver-dht5baf0.js} +0 -0
- /package/dist/chunks/{job-dkmkay92.js → model-resolver-dkmkay92.js} +0 -0
- /package/dist/chunks/{job-drean1vx.js → model-resolver-drean1vx.js} +0 -0
- /package/dist/chunks/{job-ehj9csmv.js → model-resolver-ehj9csmv.js} +0 -0
- /package/dist/chunks/{job-em6xpscd.js → model-resolver-em6xpscd.js} +0 -0
- /package/dist/chunks/{job-emmqknsm.js → model-resolver-emmqknsm.js} +0 -0
- /package/dist/chunks/{job-ezs3tagn.js → model-resolver-ezs3tagn.js} +0 -0
- /package/dist/chunks/{job-f14r7hfz.js → model-resolver-f14r7hfz.js} +0 -0
- /package/dist/chunks/{job-f4cp4g4a.js → model-resolver-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{job-faypg4r1.js → model-resolver-faypg4r1.js} +0 -0
- /package/dist/chunks/{job-fgbfdq62.js → model-resolver-fgbfdq62.js} +0 -0
- /package/dist/chunks/{job-gd5xeqc2.js → model-resolver-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{job-ghm4673n.js → model-resolver-ghm4673n.js} +0 -0
- /package/dist/chunks/{job-ghwjy7my.js → model-resolver-ghwjy7my.js} +0 -0
- /package/dist/chunks/{job-gqn2zsfg.js → model-resolver-gqn2zsfg.js} +0 -0
- /package/dist/chunks/{job-gy500k2r.js → model-resolver-gy500k2r.js} +0 -0
- /package/dist/chunks/{job-hzeg9cfr.js → model-resolver-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{job-j07kk359.js → model-resolver-j07kk359.js} +0 -0
- /package/dist/chunks/{job-jve7t217.js → model-resolver-jve7t217.js} +0 -0
- /package/dist/chunks/{job-k3e42drn.js → model-resolver-k3e42drn.js} +0 -0
- /package/dist/chunks/{job-k8b45nas.js → model-resolver-k8b45nas.js} +0 -0
- /package/dist/chunks/{job-kcacmy5c.js → model-resolver-kcacmy5c.js} +0 -0
- /package/dist/chunks/{job-kpdbz7gn.js → model-resolver-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{job-kxy11nzk.js → model-resolver-kxy11nzk.js} +0 -0
- /package/dist/chunks/{job-kyyqvx4s.js → model-resolver-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{job-m8cbvarh.js → model-resolver-m8cbvarh.js} +0 -0
- /package/dist/chunks/{job-ma60vzgv.js → model-resolver-ma60vzgv.js} +0 -0
- /package/dist/chunks/{job-n3m50c2t.js → model-resolver-n3m50c2t.js} +0 -0
- /package/dist/chunks/{job-nkm1m8dz.js → model-resolver-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{job-nsc0c3zb.js → model-resolver-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{job-qaarhjrp.js → model-resolver-qaarhjrp.js} +0 -0
- /package/dist/chunks/{job-qc167nrn.js → model-resolver-qc167nrn.js} +0 -0
- /package/dist/chunks/{job-qp95y4jb.js → model-resolver-qp95y4jb.js} +0 -0
- /package/dist/chunks/{job-r8f4w671.js → model-resolver-r8f4w671.js} +0 -0
- /package/dist/chunks/{job-rdfev9jy.js → model-resolver-rdfev9jy.js} +0 -0
- /package/dist/chunks/{job-rvfvac9x.js → model-resolver-rvfvac9x.js} +0 -0
- /package/dist/chunks/{job-s7whb9gt.js → model-resolver-s7whb9gt.js} +0 -0
- /package/dist/chunks/{job-se76j685.js → model-resolver-se76j685.js} +0 -0
- /package/dist/chunks/{job-sem2g21k.js → model-resolver-sem2g21k.js} +0 -0
- /package/dist/chunks/{job-sp575ygv.js → model-resolver-sp575ygv.js} +0 -0
- /package/dist/chunks/{job-tmb1f636.js → model-resolver-tmb1f636.js} +0 -0
- /package/dist/chunks/{job-ttxf0gsy.js → model-resolver-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{job-tvmhrvfj.js → model-resolver-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{job-v2adqbbe.js → model-resolver-v2adqbbe.js} +0 -0
- /package/dist/chunks/{job-wj4sxzqa.js → model-resolver-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{job-wwntjmk1.js → model-resolver-wwntjmk1.js} +0 -0
- /package/dist/chunks/{job-wyqjaaa5.js → model-resolver-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{job-x4q807cx.js → model-resolver-x4q807cx.js} +0 -0
- /package/dist/chunks/{job-xt0068v8.js → model-resolver-xt0068v8.js} +0 -0
- /package/dist/chunks/{job-yrqrg4vp.js → model-resolver-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{job-z47nswr2.js → model-resolver-z47nswr2.js} +0 -0
- /package/dist/chunks/{job-zsf8rs93.js → model-resolver-zsf8rs93.js} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * as SessionRestart from "./restart.js";
|
|
2
2
|
import { Context, Effect, Layer } from "effect";
|
|
3
3
|
import { Bus } from "../../bus.js";
|
|
4
|
+
import { Job } from "../../job.js";
|
|
5
|
+
import { Session } from "../../session.js";
|
|
4
6
|
import { SessionExecution } from "../execution.js";
|
|
5
7
|
import { SessionStore } from "../store.js";
|
|
6
8
|
export interface Options {
|
|
@@ -29,6 +31,9 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionRest
|
|
|
29
31
|
* process: crash, SIGKILL, isolate eviction, and graceful restart all leave
|
|
30
32
|
* the same durable signature.
|
|
31
33
|
*
|
|
34
|
+
* Recovery is at-least-once: local coordination prevents concurrent drains,
|
|
35
|
+
* not repeated external side effects after a crash.
|
|
36
|
+
*
|
|
32
37
|
* The sweep assumes every orphaned claim's owner is dead. The managed-server
|
|
33
38
|
* protocol guarantees this: a successor is only spawned after the previous
|
|
34
39
|
* process is confirmed dead (client service `kill`/`evict` poll the PID), the
|
|
@@ -39,5 +44,5 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionRest
|
|
|
39
44
|
*/
|
|
40
45
|
export declare class Service extends Service_base {
|
|
41
46
|
}
|
|
42
|
-
export declare const layer: (options?: Options) => Layer.Layer<Service, never, Bus.Service | SessionStore.Service | SessionExecution.Service>;
|
|
47
|
+
export declare const layer: (options?: Options) => Layer.Layer<Service, never, Bus.Service | Job.Service | SessionStore.Service | SessionExecution.Service | Session.Service>;
|
|
43
48
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"global">>;
|
|
@@ -2,6 +2,7 @@ export * as SessionExecution from "./execution.js";
|
|
|
2
2
|
import { Context, Effect, Exit, Layer } from "effect";
|
|
3
3
|
import { Bus } from "../bus.js";
|
|
4
4
|
import { Database } from "../database/database.js";
|
|
5
|
+
import { Job } from "../job.js";
|
|
5
6
|
import { LocationServiceMap } from "../location-service-map.js";
|
|
6
7
|
import { SessionRunner } from "./runner/index.js";
|
|
7
8
|
import { SessionSchema } from "./schema.js";
|
|
@@ -44,7 +45,7 @@ export declare function terminal(exit: Exit.Exit<void, SessionRunner.RunError>,
|
|
|
44
45
|
reason?: undefined;
|
|
45
46
|
};
|
|
46
47
|
/** Process-local execution: drains run in this process, routed through the Session's Location graph. */
|
|
47
|
-
export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | SessionStore.Service | LocationServiceMap.Service>;
|
|
48
|
+
export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | Job.Service | SessionStore.Service | LocationServiceMap.Service>;
|
|
48
49
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"global">>;
|
|
49
50
|
/** Low-level compatibility layer for callers that only need durable Session recording. */
|
|
50
51
|
export declare const noopLayer: Layer.Layer<Service, never, never>;
|
|
@@ -3,7 +3,5 @@ import { Layer } from "effect";
|
|
|
3
3
|
import { Database } from "../database/database.js";
|
|
4
4
|
import { SessionContext } from "./context.js";
|
|
5
5
|
import { SessionGenerate } from "./generate.js";
|
|
6
|
-
|
|
7
|
-
import { SessionRunnerModel } from "./runner/model.js";
|
|
8
|
-
export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | SessionModelRequest.Service | SessionContext.Service>;
|
|
6
|
+
export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionContext.Service>;
|
|
9
7
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<SessionGenerate.Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -14,7 +14,7 @@ import type { SessionMessage } from "./message.js";
|
|
|
14
14
|
import type { Agent } from "../agent.js";
|
|
15
15
|
/** Failures a prepared execution can surface: infrastructure errors plus user declines resurfaced from the defect tunnel. */
|
|
16
16
|
export type ExecuteError = Tool.Error | Permission.DeclinedError | QuestionTool.CancelledError;
|
|
17
|
-
interface Prepared {
|
|
17
|
+
export interface Prepared {
|
|
18
18
|
readonly request: LLMRequest;
|
|
19
19
|
readonly options: StreamOptions;
|
|
20
20
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as SessionRunner from "./index.js";
|
|
2
2
|
import type { AIError } from "@opencode-ai/ai";
|
|
3
|
-
import { Context, Effect } from "effect";
|
|
3
|
+
import { Context, Data, Effect } from "effect";
|
|
4
4
|
import { SessionSchema } from "../schema.js";
|
|
5
5
|
import type { Promotable } from "../inbox.js";
|
|
6
6
|
import type { AgentNotFoundError, MessageDecodeError, StepFailedError, UserInterruptedError } from "../error.js";
|
|
@@ -10,11 +10,60 @@ export type RunError = AIError | SessionRunnerModel.Error | MessageDecodeError |
|
|
|
10
10
|
export type Continuation = {
|
|
11
11
|
readonly step: number;
|
|
12
12
|
};
|
|
13
|
-
export type DrainResult = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
export type DrainResult = Data.TaggedEnum<{
|
|
14
|
+
Complete: {};
|
|
15
|
+
Moved: {
|
|
16
|
+
readonly continuation?: Continuation;
|
|
17
|
+
};
|
|
18
|
+
}>;
|
|
19
|
+
export declare const DrainResult: {
|
|
20
|
+
readonly Complete: Data.TaggedEnum.ConstructorFrom<{
|
|
21
|
+
readonly _tag: "Complete";
|
|
22
|
+
}, "_tag">;
|
|
23
|
+
readonly Moved: Data.TaggedEnum.ConstructorFrom<{
|
|
24
|
+
readonly _tag: "Moved";
|
|
25
|
+
readonly continuation?: Continuation | undefined;
|
|
26
|
+
}, "_tag">;
|
|
27
|
+
readonly $is: <Tag extends "Complete" | "Moved">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
28
|
+
readonly _tag: "Complete";
|
|
29
|
+
}, {
|
|
30
|
+
readonly _tag: Tag;
|
|
31
|
+
}> | Extract<{
|
|
32
|
+
readonly _tag: "Moved";
|
|
33
|
+
readonly continuation?: Continuation | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
readonly _tag: Tag;
|
|
36
|
+
}>;
|
|
37
|
+
readonly $match: {
|
|
38
|
+
<Cases extends {
|
|
39
|
+
readonly Complete: (args: {
|
|
40
|
+
readonly _tag: "Complete";
|
|
41
|
+
}) => any;
|
|
42
|
+
readonly Moved: (args: {
|
|
43
|
+
readonly _tag: "Moved";
|
|
44
|
+
readonly continuation?: Continuation | undefined;
|
|
45
|
+
}) => any;
|
|
46
|
+
}>(cases: Cases): (value: {
|
|
47
|
+
readonly _tag: "Complete";
|
|
48
|
+
} | {
|
|
49
|
+
readonly _tag: "Moved";
|
|
50
|
+
readonly continuation?: Continuation | undefined;
|
|
51
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Complete" | "Moved"]>>;
|
|
52
|
+
<Cases extends {
|
|
53
|
+
readonly Complete: (args: {
|
|
54
|
+
readonly _tag: "Complete";
|
|
55
|
+
}) => any;
|
|
56
|
+
readonly Moved: (args: {
|
|
57
|
+
readonly _tag: "Moved";
|
|
58
|
+
readonly continuation?: Continuation | undefined;
|
|
59
|
+
}) => any;
|
|
60
|
+
}>(value: {
|
|
61
|
+
readonly _tag: "Complete";
|
|
62
|
+
} | {
|
|
63
|
+
readonly _tag: "Moved";
|
|
64
|
+
readonly continuation?: Continuation | undefined;
|
|
65
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Complete" | "Moved"]>>;
|
|
66
|
+
};
|
|
18
67
|
};
|
|
19
68
|
/** Runs one local continuation from already-recorded Session history. */
|
|
20
69
|
export interface Interface {
|
|
@@ -41,7 +41,8 @@ export type UnresolvedProviderVariablesError = ModelResolver.UnresolvedProviderV
|
|
|
41
41
|
export type Error = ModelNotSelectedError | ModelUnavailableError | ModelResolver.Error;
|
|
42
42
|
export type Resolved = ModelResolver.Resolved;
|
|
43
43
|
export interface Interface {
|
|
44
|
-
|
|
44
|
+
/** Availability is sampled lazily for each explicitly selected model resolution. */
|
|
45
|
+
readonly resolve: (session: SessionSchema.Info, available: () => Effect.Effect<ReadonlyArray<Info>>) => Effect.Effect<Resolved, Error>;
|
|
45
46
|
}
|
|
46
47
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionRunnerModel", Interface>;
|
|
47
48
|
export declare class Service extends Service_base {
|
|
@@ -35,13 +35,7 @@ export interface StepRecord {
|
|
|
35
35
|
readonly providerState?: SessionMessage.ProviderState;
|
|
36
36
|
readonly tokens: ReturnType<typeof SessionUsage.tokens>;
|
|
37
37
|
};
|
|
38
|
-
readonly
|
|
39
|
-
readonly id: string;
|
|
40
|
-
readonly name: string;
|
|
41
|
-
readonly called: boolean;
|
|
42
|
-
readonly settled: boolean;
|
|
43
|
-
readonly providerExecuted: boolean;
|
|
44
|
-
}>;
|
|
38
|
+
readonly needsContinuation: boolean;
|
|
45
39
|
}
|
|
46
40
|
/**
|
|
47
41
|
* Persist one step without executing tools or starting a continuation step.
|
|
@@ -256,6 +250,5 @@ export declare const createLLMEventPublisher: (bus: Pick<Bus.Interface, "publish
|
|
|
256
250
|
record: () => StepRecord;
|
|
257
251
|
startAssistant: () => Effect.Effect<string & import("effect/Brand").Brand<"Session.Message.ID">, never, never>;
|
|
258
252
|
streamed: () => Effect.Effect<void, never, never>;
|
|
259
|
-
assistantMessageID: (id: string) => Effect.Effect<string & import("effect/Brand").Brand<"Session.Message.ID">, never, never>;
|
|
260
253
|
};
|
|
261
254
|
export {};
|
|
@@ -5,14 +5,10 @@ import { Duration, Schedule } from "effect";
|
|
|
5
5
|
import { Bus } from "../../bus.js";
|
|
6
6
|
import { SessionMessage } from "../message.js";
|
|
7
7
|
import { SessionSchema } from "../schema.js";
|
|
8
|
-
|
|
9
|
-
readonly _tag: "SessionRunner.RetryableFailure";
|
|
10
|
-
} & Readonly<A>;
|
|
11
|
-
export declare class RetryableFailure extends RetryableFailure_base<{
|
|
8
|
+
export interface Input {
|
|
12
9
|
readonly cause: AIError;
|
|
13
10
|
readonly error: SessionError.Error;
|
|
14
|
-
readonly
|
|
15
|
-
}> {
|
|
11
|
+
readonly assistantMessageID: SessionMessage.ID;
|
|
16
12
|
}
|
|
17
13
|
export declare function isRetryable(error: AIError): boolean;
|
|
18
|
-
export declare const schedule: (bus: Bus.Interface, sessionID: SessionSchema.ID
|
|
14
|
+
export declare const schedule: (bus: Bus.Interface, sessionID: SessionSchema.ID) => Schedule.Schedule<Duration.Duration, Input, never, never>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export * as SessionStep from "./step.js";
|
|
2
|
+
import { AIError } from "@opencode-ai/ai";
|
|
3
|
+
import { Data, Effect } from "effect";
|
|
4
|
+
import { SessionError } from "@opencode-ai/schema/session-error";
|
|
5
|
+
import { Agent } from "../../agent.js";
|
|
6
|
+
import { Bus } from "../../bus.js";
|
|
7
|
+
import { Snapshot } from "../../snapshot.js";
|
|
8
|
+
import { ToolOutput } from "../../tool-output.js";
|
|
9
|
+
import { StepFailedError } from "../error.js";
|
|
10
|
+
import { SessionMessage } from "../message.js";
|
|
11
|
+
import { SessionModelRequest } from "../model-request.js";
|
|
12
|
+
import { SessionSchema } from "../schema.js";
|
|
13
|
+
import { SessionRunnerModel } from "./model.js";
|
|
14
|
+
export type Outcome = Data.TaggedEnum<{
|
|
15
|
+
Completed: {
|
|
16
|
+
readonly needsContinuation: boolean;
|
|
17
|
+
};
|
|
18
|
+
Retry: {
|
|
19
|
+
readonly cause: AIError;
|
|
20
|
+
readonly error: SessionError.Error;
|
|
21
|
+
};
|
|
22
|
+
Continue: {
|
|
23
|
+
readonly cause: AIError;
|
|
24
|
+
readonly error: SessionError.Error;
|
|
25
|
+
};
|
|
26
|
+
RecoverFull: {};
|
|
27
|
+
Compacted: {};
|
|
28
|
+
}>;
|
|
29
|
+
interface Input {
|
|
30
|
+
readonly sessionID: SessionSchema.ID;
|
|
31
|
+
readonly assistantMessageID: SessionMessage.ID;
|
|
32
|
+
readonly agent: Agent.ID;
|
|
33
|
+
readonly model: SessionRunnerModel.Resolved;
|
|
34
|
+
readonly prepared: SessionModelRequest.Prepared;
|
|
35
|
+
readonly toolsDisabled: boolean;
|
|
36
|
+
readonly recoverContinuation: boolean;
|
|
37
|
+
/** The runner owns compaction policy; the attempt invokes it only before durable output. */
|
|
38
|
+
readonly recoverOverflow: Effect.Effect<boolean>;
|
|
39
|
+
}
|
|
40
|
+
/** Captures Location-scoped dependencies without introducing another service or execution loop. */
|
|
41
|
+
export declare const make: Effect.Effect<{
|
|
42
|
+
attempt: (input: Input) => Effect.Effect<{
|
|
43
|
+
readonly _tag: "Retry";
|
|
44
|
+
readonly cause: AIError;
|
|
45
|
+
readonly error: SessionError.Error;
|
|
46
|
+
} | {
|
|
47
|
+
readonly _tag: "Completed";
|
|
48
|
+
readonly needsContinuation: boolean;
|
|
49
|
+
} | {
|
|
50
|
+
readonly _tag: "Continue";
|
|
51
|
+
readonly cause: AIError;
|
|
52
|
+
readonly error: SessionError.Error;
|
|
53
|
+
} | {
|
|
54
|
+
readonly _tag: "RecoverFull";
|
|
55
|
+
} | {
|
|
56
|
+
readonly _tag: "Compacted";
|
|
57
|
+
}, AIError | StepFailedError, never>;
|
|
58
|
+
}, never, Bus.Service | import("@opencode-ai/ai").LLMClientService | Snapshot.Service | ToolOutput.Service>;
|
|
@@ -11,9 +11,8 @@ export interface Interface {
|
|
|
11
11
|
readonly message: SessionMessage.Info;
|
|
12
12
|
} | undefined>;
|
|
13
13
|
/**
|
|
14
|
-
* Top-level Sessions holding an execution claim.
|
|
15
|
-
* are
|
|
16
|
-
* children, so resuming orphaned children would duplicate their work.
|
|
14
|
+
* Top-level Sessions holding an execution claim. Recoverable background
|
|
15
|
+
* children are resumed separately through their durable Job records.
|
|
17
16
|
*/
|
|
18
17
|
readonly listSuspended: () => Effect.Effect<ReadonlyArray<Session.ID>>;
|
|
19
18
|
/**
|
|
@@ -26,11 +25,10 @@ export interface Interface {
|
|
|
26
25
|
/** Releases the claim and resets resume accounting. Terminal events call this on commit. */
|
|
27
26
|
readonly release: (sessionID: Session.ID) => Effect.Effect<void>;
|
|
28
27
|
/**
|
|
29
|
-
* Clears orphaned child
|
|
30
|
-
*
|
|
31
|
-
* release.
|
|
28
|
+
* Clears orphaned child claims except children owned by recoverable
|
|
29
|
+
* background subagent jobs.
|
|
32
30
|
*/
|
|
33
|
-
readonly releaseChildClaims: Effect.Effect<void>;
|
|
31
|
+
readonly releaseChildClaims: (recoverable: ReadonlyArray<Session.ID>) => Effect.Effect<void>;
|
|
34
32
|
/**
|
|
35
33
|
* Durably counts one more resume of an orphaned claim, returning the new
|
|
36
34
|
* total — or undefined when the Session no longer exists.
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
export * as SessionTitle from "./title.js";
|
|
2
2
|
import { Context, Effect, Layer } from "effect";
|
|
3
|
-
import { Agent } from "../agent.js";
|
|
4
|
-
import { Catalog } from "../catalog.js";
|
|
5
3
|
import { Database } from "../database/database.js";
|
|
6
4
|
import { Bus } from "../bus.js";
|
|
7
|
-
import {
|
|
8
|
-
import { SessionRunnerModel } from "./runner/model.js";
|
|
5
|
+
import { SessionContext } from "./context.js";
|
|
9
6
|
import { SessionSchema } from "./schema.js";
|
|
10
7
|
import { SessionStore } from "./store.js";
|
|
11
8
|
export interface Interface {
|
|
@@ -16,5 +13,5 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionTitl
|
|
|
16
13
|
export declare class Service extends Service_base {
|
|
17
14
|
}
|
|
18
15
|
export declare const isUntitled: (session: SessionSchema.Info) => boolean;
|
|
19
|
-
export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | import("@opencode-ai/ai").LLMClientService |
|
|
16
|
+
export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | import("@opencode-ai/ai").LLMClientService | SessionStore.Service | SessionContext.Service>;
|
|
20
17
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * as ShellParse from "./parse.js";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
} | undefined) => Effect.Effect<{
|
|
6
|
-
commands: {
|
|
3
|
+
export type Result = {
|
|
4
|
+
commands: Array<{
|
|
7
5
|
resource: string;
|
|
8
6
|
save: string;
|
|
9
|
-
}
|
|
7
|
+
}>;
|
|
10
8
|
directories: string[];
|
|
11
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export declare const scan: (command: string, shell: string, cwd: string, options?: {
|
|
11
|
+
portable?: boolean;
|
|
12
|
+
} | undefined) => Effect.Effect<Result, Error, never>;
|
|
13
|
+
export declare const scanPortable: (command: string, shell: string, cwd: string) => Effect.Effect<Result, Error, never>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * as ShellScan from "./scan.js";
|
|
2
|
-
export type OpaqueReason = "command-substitution" | "compound-command" | "dynamic-command-name" | "dynamic-
|
|
3
|
-
export declare const Nested: unique symbol;
|
|
2
|
+
export type OpaqueReason = "command-substitution" | "compound-command" | "dynamic-command-name" | "dynamic-execution" | "heredoc" | "invalid-redirect" | "invalid-structure" | "unterminated-escape" | "unterminated-quote";
|
|
4
3
|
type Command = {
|
|
5
4
|
resource: string;
|
|
6
5
|
words: string[];
|
|
7
|
-
[
|
|
6
|
+
rawWords: string[];
|
|
7
|
+
wordEnds?: number[];
|
|
8
|
+
statementHead?: true;
|
|
9
|
+
declaration?: true;
|
|
10
|
+
redirectWordCount?: number;
|
|
8
11
|
};
|
|
9
12
|
export type Result = {
|
|
10
13
|
kind: "scanned";
|
|
@@ -18,5 +18,5 @@ export declare const Input: Schema.Struct<{
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare const Plugin: {
|
|
20
20
|
id: string;
|
|
21
|
-
effect: (ctx: PluginContext) => Effect.Effect<void, never, Scope.Scope | Config.Service | Environment.Service | Permission.Service | LocationMutation.Service | ShellSelect.Service |
|
|
21
|
+
effect: (ctx: PluginContext) => Effect.Effect<void, never, Scope.Scope | Config.Service | Environment.Service | Permission.Service | LocationMutation.Service | ShellSelect.Service | PluginRuntime.Service | Shell.Service>;
|
|
22
22
|
};
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -3,22 +3,31 @@ export { CallID, Content, Error, FileContent, TextContent } from "@opencode-ai/s
|
|
|
3
3
|
export type { Context, Metadata, Options, Result } from "@opencode-ai/schema/tool";
|
|
4
4
|
import { ToolDefinition, type ToolCall } from "@opencode-ai/ai";
|
|
5
5
|
import { Tool } from "@opencode-ai/schema/tool";
|
|
6
|
-
import { Context, Effect, Schema,
|
|
6
|
+
import { Context, Effect, Schema, Types } from "effect";
|
|
7
7
|
import type { Agent } from "./agent.js";
|
|
8
8
|
import { CodeModeCatalog } from "./codemode/catalog.js";
|
|
9
9
|
import { Permission } from "./permission.js";
|
|
10
10
|
import { SessionMessage } from "./session/message.js";
|
|
11
11
|
import { SessionSchema } from "./session/schema.js";
|
|
12
|
+
import { State } from "./state.js";
|
|
12
13
|
declare const RegistrationError_base: Schema.Class<RegistrationError, Schema.TaggedStruct<"Tool.RegistrationError", {
|
|
13
14
|
readonly name: Schema.String;
|
|
14
15
|
readonly message: Schema.String;
|
|
15
16
|
}>, import("effect/Cause").YieldableError>;
|
|
16
17
|
export declare class RegistrationError extends RegistrationError_base {
|
|
17
18
|
}
|
|
18
|
-
export interface
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
})
|
|
19
|
+
export interface Draft {
|
|
20
|
+
readonly list: () => readonly (Tool.Info & {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
})[];
|
|
23
|
+
readonly get: (id: string) => (Tool.Info & {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
}) | undefined;
|
|
26
|
+
readonly add: (tool: Tool.Info) => void;
|
|
27
|
+
readonly update: (id: string, update: (tool: Types.Mutable<Tool.Info>) => void) => void;
|
|
28
|
+
readonly remove: (id: string) => void;
|
|
29
|
+
}
|
|
30
|
+
export interface Interface extends State.Transformable<Draft> {
|
|
22
31
|
readonly snapshot: (permissions?: Permission.Ruleset) => Effect.Effect<Snapshot>;
|
|
23
32
|
}
|
|
24
33
|
export interface Snapshot {
|
package/dist/util/array.js
CHANGED
package/dist/util/error.js
CHANGED
package/dist/util/identifier.js
CHANGED
package/dist/util/iife.js
CHANGED
package/dist/util/lazy.js
CHANGED
package/dist/util/slug.js
CHANGED
package/dist/util/token.js
CHANGED
package/dist/util/which.js
CHANGED
package/dist/util/wildcard.js
CHANGED
package/dist/v1/config/agent.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Info,
|
|
3
3
|
exports_agent
|
|
4
|
-
} from "../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
6
|
-
import"../../chunks/
|
|
7
|
-
import"../../chunks/
|
|
4
|
+
} from "../../chunks/model-resolver-4s2xwh5d.js";
|
|
5
|
+
import"../../chunks/model-resolver-v9bfv94f.js";
|
|
6
|
+
import"../../chunks/model-resolver-j07kk359.js";
|
|
7
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
8
8
|
export {
|
|
9
9
|
Info,
|
|
10
10
|
exports_agent as ConfigAgentV1
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Image,
|
|
3
3
|
Info,
|
|
4
4
|
exports_attachment
|
|
5
|
-
} from "../../chunks/
|
|
6
|
-
import"../../chunks/
|
|
7
|
-
import"../../chunks/
|
|
5
|
+
} from "../../chunks/model-resolver-r3k9abhd.js";
|
|
6
|
+
import"../../chunks/model-resolver-j07kk359.js";
|
|
7
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
8
8
|
export {
|
|
9
9
|
Info,
|
|
10
10
|
Image,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Info,
|
|
3
3
|
exports_command
|
|
4
|
-
} from "../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
4
|
+
} from "../../chunks/model-resolver-thstd87d.js";
|
|
5
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
6
6
|
export {
|
|
7
7
|
Info,
|
|
8
8
|
exports_command as ConfigCommandV1
|
package/dist/v1/config/config.js
CHANGED
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
Info,
|
|
3
3
|
WellKnown,
|
|
4
4
|
exports_config
|
|
5
|
-
} from "../../chunks/
|
|
6
|
-
import"../../chunks/
|
|
7
|
-
import"../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
9
|
-
import"../../chunks/
|
|
10
|
-
import"../../chunks/
|
|
11
|
-
import"../../chunks/
|
|
12
|
-
import"../../chunks/
|
|
13
|
-
import"../../chunks/
|
|
14
|
-
import"../../chunks/
|
|
15
|
-
import"../../chunks/
|
|
16
|
-
import"../../chunks/
|
|
17
|
-
import"../../chunks/
|
|
18
|
-
import"../../chunks/
|
|
19
|
-
import"../../chunks/
|
|
5
|
+
} from "../../chunks/model-resolver-w1njty1c.js";
|
|
6
|
+
import"../../chunks/model-resolver-gcay93cp.js";
|
|
7
|
+
import"../../chunks/model-resolver-thstd87d.js";
|
|
8
|
+
import"../../chunks/model-resolver-nzrjycs5.js";
|
|
9
|
+
import"../../chunks/model-resolver-18pv8fg3.js";
|
|
10
|
+
import"../../chunks/model-resolver-4s2xwh5d.js";
|
|
11
|
+
import"../../chunks/model-resolver-v9bfv94f.js";
|
|
12
|
+
import"../../chunks/model-resolver-9f0rnpkn.js";
|
|
13
|
+
import"../../chunks/model-resolver-pq4b4pqk.js";
|
|
14
|
+
import"../../chunks/model-resolver-999qd968.js";
|
|
15
|
+
import"../../chunks/model-resolver-e1z9a0ts.js";
|
|
16
|
+
import"../../chunks/model-resolver-r3k9abhd.js";
|
|
17
|
+
import"../../chunks/model-resolver-2nmyybe0.js";
|
|
18
|
+
import"../../chunks/model-resolver-j07kk359.js";
|
|
19
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
20
20
|
export {
|
|
21
21
|
WellKnown,
|
|
22
22
|
Info,
|
package/dist/v1/config/error.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
JsonError,
|
|
6
6
|
RemoteAuthError,
|
|
7
7
|
exports_error
|
|
8
|
-
} from "../../chunks/
|
|
9
|
-
import"../../chunks/
|
|
10
|
-
import"../../chunks/
|
|
8
|
+
} from "../../chunks/model-resolver-nr76rjj3.js";
|
|
9
|
+
import"../../chunks/model-resolver-hzeg9cfr.js";
|
|
10
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
11
11
|
export {
|
|
12
12
|
RemoteAuthError,
|
|
13
13
|
JsonError,
|
package/dist/v1/config/layout.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Layout,
|
|
3
3
|
exports_layout
|
|
4
|
-
} from "../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
4
|
+
} from "../../chunks/model-resolver-gcay93cp.js";
|
|
5
|
+
import"../../chunks/model-resolver-rvfvac9x.js";
|
|
6
6
|
export {
|
|
7
7
|
Layout,
|
|
8
8
|
exports_layout as ConfigLayoutV1
|