@opencode/core 0.0.0-dev-20751 → 0.0.0-dev-20757
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +76 -76
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +9 -9
- package/dist/bus.js +74 -74
- package/dist/chunks/{websearch-840vhfpn.js → persistent-pty-094m2jc0.js} +7 -7
- package/dist/chunks/{websearch-njzd64q9.js → persistent-pty-0asdx158.js} +1 -1
- package/dist/chunks/{websearch-vtz2n0ks.js → persistent-pty-0n1wmc6t.js} +26 -26
- package/dist/chunks/{websearch-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{websearch-wzvmtxfv.js → persistent-pty-0qd1w1j5.js} +9 -9
- package/dist/chunks/{websearch-bx0gyb4h.js → persistent-pty-0r3c1bmw.js} +5 -5
- package/dist/chunks/{websearch-wgad3ngy.js → persistent-pty-0rgtz50w.js} +40 -40
- package/dist/chunks/{websearch-n6y4yv9n.js → persistent-pty-0tncg1vv.js} +19 -19
- package/dist/chunks/{websearch-0vbcp93d.js → persistent-pty-0vbcp93d.js} +2 -2
- package/dist/chunks/{websearch-azdnrsk3.js → persistent-pty-1276degm.js} +24 -24
- package/dist/chunks/{websearch-f807xdkq.js → persistent-pty-1a2vdc32.js} +11 -11
- package/dist/chunks/{websearch-j3wgep5k.js → persistent-pty-1d4qa1yv.js} +16 -16
- package/dist/chunks/{websearch-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{websearch-1dvck2a7.js → persistent-pty-1dvck2a7.js} +2 -2
- package/dist/chunks/{websearch-7m4fr4eg.js → persistent-pty-1gg3s3st.js} +11 -11
- package/dist/chunks/{websearch-zcw1eqvx.js → persistent-pty-1h6cxm7v.js} +19 -19
- package/dist/chunks/{websearch-tnvc4487.js → persistent-pty-1t9yseh2.js} +1 -1
- package/dist/chunks/{websearch-a9g4d826.js → persistent-pty-1wrsvdt8.js} +25 -25
- package/dist/chunks/{websearch-pnyxb9e8.js → persistent-pty-20ykreb2.js} +11 -11
- package/dist/chunks/{websearch-n88rcwe9.js → persistent-pty-27v5mrzz.js} +3 -3
- package/dist/chunks/{websearch-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{websearch-9a685mhr.js → persistent-pty-2bz9k98p.js} +7 -7
- package/dist/chunks/{websearch-wnvdweyr.js → persistent-pty-2des930g.js} +32 -32
- package/dist/chunks/{websearch-8feg831t.js → persistent-pty-2fd2am7y.js} +23 -23
- package/dist/chunks/{websearch-5m5b9f90.js → persistent-pty-2h6g5cw7.js} +51 -51
- package/dist/chunks/{websearch-5cyaepj1.js → persistent-pty-2vh07w6d.js} +29 -29
- package/dist/chunks/{websearch-cdyc8mbg.js → persistent-pty-32c2s8c6.js} +18 -18
- package/dist/chunks/{websearch-bf4gbvg4.js → persistent-pty-37sfe3bm.js} +7 -7
- package/dist/chunks/{websearch-kz9v81ff.js → persistent-pty-38aq64y5.js} +25 -25
- package/dist/chunks/{websearch-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{websearch-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-7sa9sn7a.js → persistent-pty-3j0nkq0d.js} +13 -13
- package/dist/chunks/{websearch-p54yp2nj.js → persistent-pty-3md3hry7.js} +29 -29
- package/dist/chunks/{websearch-ns5fmth5.js → persistent-pty-3q5w9v8n.js} +3 -3
- package/dist/chunks/{websearch-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{websearch-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{websearch-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
- package/dist/chunks/{websearch-h45th2ds.js → persistent-pty-40mpssyg.js} +26 -26
- package/dist/chunks/{websearch-3yhc99zk.js → persistent-pty-42sykk0b.js} +11 -11
- package/dist/chunks/{websearch-kbqjp078.js → persistent-pty-49exe669.js} +5 -5
- package/dist/chunks/{websearch-k6neyz0m.js → persistent-pty-4f0xd74p.js} +26 -26
- package/dist/chunks/{websearch-msjtsx7n.js → persistent-pty-4hc31b97.js} +26 -26
- package/dist/chunks/{websearch-neydyz2j.js → persistent-pty-4ngp4gmj.js} +12 -12
- package/dist/chunks/{websearch-4ts7tf6z.js → persistent-pty-4ts7tf6z.js} +2 -2
- package/dist/chunks/{websearch-wbbmgwfw.js → persistent-pty-504xcjap.js} +13 -13
- package/dist/chunks/{websearch-nrdmrqsx.js → persistent-pty-50mzsvk4.js} +4 -4
- package/dist/chunks/{websearch-d8k8q118.js → persistent-pty-52aykxm2.js} +32 -32
- package/dist/chunks/{websearch-sqka8dgb.js → persistent-pty-52w7dg7x.js} +32 -32
- package/dist/chunks/{websearch-54ma36ye.js → persistent-pty-54ma36ye.js} +1 -1
- package/dist/chunks/{websearch-pqv9wp90.js → persistent-pty-5kbfdsfa.js} +10 -10
- package/dist/chunks/{websearch-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{websearch-j81axac7.js → persistent-pty-5ns9c0w0.js} +12 -12
- package/dist/chunks/{websearch-f7v4vsrc.js → persistent-pty-5sjzzvdy.js} +17 -17
- package/dist/chunks/{websearch-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{websearch-srq8z0b0.js → persistent-pty-5tcm9639.js} +9 -9
- package/dist/chunks/{websearch-zv1drtmj.js → persistent-pty-5ttg62tg.js} +18 -18
- package/dist/chunks/{websearch-btxw9yhj.js → persistent-pty-61mpxj7t.js} +22 -22
- package/dist/chunks/persistent-pty-67c7by3v.js +26 -0
- package/dist/chunks/{websearch-grytp6p2.js → persistent-pty-6j10w38a.js} +24 -24
- package/dist/chunks/{websearch-j89jws0x.js → persistent-pty-6kgg59pf.js} +5 -5
- package/dist/chunks/{websearch-s2v6mes9.js → persistent-pty-6m05awva.js} +49 -49
- package/dist/chunks/{websearch-8rv22t7y.js → persistent-pty-6pb6sdx8.js} +4 -4
- package/dist/chunks/{websearch-x3gqap9d.js → persistent-pty-6t4hr8r6.js} +4 -4
- package/dist/chunks/{websearch-6xb47vfp.js → persistent-pty-6xb47vfp.js} +1 -1
- package/dist/chunks/{websearch-cpnsvgyn.js → persistent-pty-6zwqfqhk.js} +14 -14
- package/dist/chunks/{websearch-qyhb8vg4.js → persistent-pty-6zxqk44r.js} +6 -6
- package/dist/chunks/{websearch-71az546q.js → persistent-pty-71az546q.js} +2 -2
- package/dist/chunks/{websearch-982jyd3v.js → persistent-pty-77zs8g8n.js} +15 -15
- package/dist/chunks/{websearch-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-g6p1761n.js → persistent-pty-7dy85ahw.js} +6 -6
- package/dist/chunks/{websearch-h7e5g0tn.js → persistent-pty-7kyfdp6z.js} +6 -6
- package/dist/chunks/{websearch-h4aahyek.js → persistent-pty-7n4w6ry8.js} +18 -18
- package/dist/chunks/{websearch-nn2e5gpb.js → persistent-pty-82vtwhxh.js} +2 -2
- package/dist/chunks/{websearch-84txncab.js → persistent-pty-84txncab.js} +1 -1
- package/dist/chunks/{websearch-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{websearch-b6mrrfvp.js → persistent-pty-8ehqpd8r.js} +41 -41
- package/dist/chunks/{websearch-dxjbxwhw.js → persistent-pty-8kkb60sm.js} +16 -16
- package/dist/chunks/{websearch-8m6m0r52.js → persistent-pty-8m6m0r52.js} +1 -1
- package/dist/chunks/{websearch-vft5y8p3.js → persistent-pty-8nmyydee.js} +20 -20
- package/dist/chunks/{websearch-vvccsdf3.js → persistent-pty-8q9myf25.js} +6 -6
- package/dist/chunks/{websearch-0cp7wepg.js → persistent-pty-8rdqkcsb.js} +13 -13
- package/dist/chunks/{websearch-g320bg51.js → persistent-pty-8tb93y3v.js} +8 -8
- package/dist/chunks/{websearch-k8bs8205.js → persistent-pty-96thbmfj.js} +11 -11
- package/dist/chunks/{websearch-bhxvg1de.js → persistent-pty-9dfpqakj.js} +88 -88
- package/dist/chunks/{websearch-bpazrep8.js → persistent-pty-9dp025y5.js} +9 -9
- package/dist/chunks/{websearch-a7qengj0.js → persistent-pty-9dvjqq84.js} +32 -32
- package/dist/chunks/{websearch-wg0sz2b3.js → persistent-pty-9dztgy31.js} +4 -4
- package/dist/chunks/{websearch-9e5bzkjp.js → persistent-pty-9e5bzkjp.js} +3 -3
- package/dist/chunks/{websearch-61x3c5p2.js → persistent-pty-9g5ba4sr.js} +9 -9
- package/dist/chunks/{websearch-4vdkpn0c.js → persistent-pty-9jzr21ep.js} +8 -8
- package/dist/chunks/{websearch-gsde99f3.js → persistent-pty-9mbx3c6g.js} +35 -35
- package/dist/chunks/{websearch-0nde5ztd.js → persistent-pty-9pkkzrmj.js} +5 -5
- package/dist/chunks/{websearch-q27r57qz.js → persistent-pty-9rghtk6e.js} +14 -14
- package/dist/chunks/{websearch-jervv9x6.js → persistent-pty-9x9fdyge.js} +8 -8
- package/dist/chunks/{websearch-zw4db5pj.js → persistent-pty-9yj6y0aa.js} +11 -11
- package/dist/chunks/{websearch-cv5qh09f.js → persistent-pty-a5r4xth4.js} +18 -18
- package/dist/chunks/{websearch-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{websearch-1r3jt38r.js → persistent-pty-abkq1pjw.js} +13 -13
- package/dist/chunks/{websearch-as7cf5zz.js → persistent-pty-as7cf5zz.js} +4 -4
- package/dist/chunks/{websearch-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{websearch-ak894bxf.js → persistent-pty-b7j3e6pa.js} +7 -7
- package/dist/chunks/{websearch-crwg5b5x.js → persistent-pty-bdremd90.js} +13 -13
- package/dist/chunks/{websearch-4nwbh3f5.js → persistent-pty-bdz6xynk.js} +11 -11
- package/dist/chunks/{websearch-xsgjgyxe.js → persistent-pty-bgs46qwx.js} +8 -8
- package/dist/chunks/{websearch-srjnacjb.js → persistent-pty-bkkeq90m.js} +35 -35
- package/dist/chunks/{websearch-d7jfs23g.js → persistent-pty-bp6a26mh.js} +11 -11
- package/dist/chunks/{websearch-3tzk5btq.js → persistent-pty-c957ak9e.js} +5 -5
- package/dist/chunks/{websearch-p1wwb8ft.js → persistent-pty-cbmf5txa.js} +6 -6
- package/dist/chunks/{websearch-eqzjvz86.js → persistent-pty-ccdvrwrq.js} +8 -8
- package/dist/chunks/{websearch-was7srj9.js → persistent-pty-ch4t865s.js} +8 -8
- package/dist/chunks/{websearch-t7n9q6bq.js → persistent-pty-ckf8nxjz.js} +4 -4
- package/dist/chunks/{websearch-djszqvmq.js → persistent-pty-cwa6csj7.js} +9 -9
- package/dist/chunks/{websearch-mqwxc12a.js → persistent-pty-cywnvfy5.js} +11 -11
- package/dist/chunks/{websearch-d8gp6606.js → persistent-pty-d0gvmkv5.js} +78 -78
- package/dist/chunks/{websearch-mxc020gk.js → persistent-pty-d2gszh5q.js} +49 -49
- package/dist/chunks/{websearch-v0mr0657.js → persistent-pty-d2m6d01v.js} +24 -24
- package/dist/chunks/{websearch-pjv0ea7y.js → persistent-pty-d3t94897.js} +26 -26
- package/dist/chunks/{websearch-3xdhmafy.js → persistent-pty-dddzyqpc.js} +10 -10
- package/dist/chunks/{websearch-b7h6z6tn.js → persistent-pty-dh6ejakv.js} +11 -11
- package/dist/chunks/{websearch-nxm207yx.js → persistent-pty-dpkg50ah.js} +4 -4
- package/dist/chunks/{websearch-mbnxefga.js → persistent-pty-drnf6xwf.js} +2 -2
- package/dist/chunks/{websearch-as51731q.js → persistent-pty-dysmr7k2.js} +30 -30
- package/dist/chunks/{websearch-39g9s8nq.js → persistent-pty-e173yrwe.js} +14 -14
- package/dist/chunks/{websearch-01vn8qag.js → persistent-pty-e4bp7q5e.js} +20 -20
- package/dist/chunks/{websearch-4pfks0zj.js → persistent-pty-ea8jtqgg.js} +9 -9
- package/dist/chunks/{websearch-qkafy0fg.js → persistent-pty-eavrwy4k.js} +31 -31
- package/dist/chunks/{websearch-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{websearch-69rankd6.js → persistent-pty-eh16wa7e.js} +15 -15
- package/dist/chunks/{websearch-wvk530dw.js → persistent-pty-ejr9s24d.js} +5 -5
- package/dist/chunks/{websearch-bnf4ny6h.js → persistent-pty-emyk28wm.js} +17 -17
- package/dist/chunks/{websearch-7yh4e7ss.js → persistent-pty-eq1pz5kg.js} +3 -3
- package/dist/chunks/persistent-pty-er5qhcv3.js +253 -0
- package/dist/chunks/{websearch-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{websearch-t13j5h2t.js → persistent-pty-fc43n6xf.js} +8 -8
- package/dist/chunks/{websearch-006rr4yd.js → persistent-pty-ff4e8v5q.js} +31 -31
- package/dist/chunks/{websearch-ydrjwzz4.js → persistent-pty-fjedc0n6.js} +22 -22
- package/dist/chunks/{websearch-k8fn7c54.js → persistent-pty-frm38rby.js} +24 -24
- package/dist/chunks/{websearch-pdzkh7eq.js → persistent-pty-fswapqhq.js} +13 -13
- package/dist/chunks/{websearch-kfvft1b1.js → persistent-pty-fw6qy902.js} +22 -22
- package/dist/chunks/{websearch-cmwkp3r5.js → persistent-pty-g0445xdp.js} +4 -4
- package/dist/chunks/{websearch-4npf7cmz.js → persistent-pty-g0gfcgav.js} +23 -23
- package/dist/chunks/{websearch-5fykfdj7.js → persistent-pty-g6yfr6ja.js} +5 -5
- package/dist/chunks/{websearch-c9q80gew.js → persistent-pty-g7tbsqx0.js} +22 -22
- package/dist/chunks/{websearch-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{websearch-6prf5v7s.js → persistent-pty-ge24w6v9.js} +4 -4
- package/dist/chunks/{websearch-kfy7sq89.js → persistent-pty-gep6bbz4.js} +36 -36
- package/dist/chunks/{websearch-hw9r87x5.js → persistent-pty-ghr1eecf.js} +10 -10
- package/dist/chunks/{websearch-qdctmj2b.js → persistent-pty-gye40d0j.js} +18 -18
- package/dist/chunks/{websearch-v1xjeqfc.js → persistent-pty-h1yqkxn4.js} +30 -30
- package/dist/chunks/{websearch-h2b79v29.js → persistent-pty-h2b79v29.js} +2 -2
- package/dist/chunks/{websearch-ysv0hq5q.js → persistent-pty-h2saytx3.js} +15 -15
- package/dist/chunks/{websearch-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{websearch-5pcer2zd.js → persistent-pty-hekf1c5w.js} +12 -12
- package/dist/chunks/{websearch-c29bt6kc.js → persistent-pty-hqhz58vx.js} +4 -4
- package/dist/chunks/{websearch-7debz9q9.js → persistent-pty-hwg9mkt4.js} +5 -5
- package/dist/chunks/{websearch-tk0jm5ys.js → persistent-pty-j3yw4q5j.js} +10 -10
- package/dist/chunks/{websearch-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{websearch-271ks4j7.js → persistent-pty-j65xwarf.js} +5 -5
- package/dist/chunks/{websearch-2hxs6azb.js → persistent-pty-ja6fbgv5.js} +15 -15
- package/dist/chunks/{websearch-bwy0c07g.js → persistent-pty-k1dde556.js} +11 -11
- package/dist/chunks/{websearch-10ezvpkj.js → persistent-pty-ked9vqb3.js} +16 -16
- package/dist/chunks/{websearch-ayk56gb2.js → persistent-pty-ketf4sa0.js} +11 -11
- package/dist/chunks/{websearch-4ha8056f.js → persistent-pty-kwdk7p8f.js} +29 -29
- package/dist/chunks/{websearch-8291f3dr.js → persistent-pty-kxrxvkx4.js} +47 -47
- package/dist/chunks/{websearch-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
- package/dist/chunks/{websearch-x5r3rcm4.js → persistent-pty-m3frg8rt.js} +13 -13
- package/dist/chunks/{websearch-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-gvdagacx.js → persistent-pty-map7adnp.js} +46 -46
- package/dist/chunks/{websearch-56gdpj1q.js → persistent-pty-mfqp6xfm.js} +6 -6
- package/dist/chunks/{websearch-wps1s803.js → persistent-pty-mhnyy3p3.js} +11 -11
- package/dist/chunks/{websearch-dbw5xnms.js → persistent-pty-mjr85pze.js} +14 -14
- package/dist/chunks/{websearch-q4amnm77.js → persistent-pty-msptq8w2.js} +32 -32
- package/dist/chunks/{websearch-xrgtgbry.js → persistent-pty-mvf6nh1j.js} +45 -45
- package/dist/chunks/{websearch-6nwm3v99.js → persistent-pty-mw3kjfgh.js} +16 -16
- package/dist/chunks/{websearch-yr6mg933.js → persistent-pty-mx64x80q.js} +9 -9
- package/dist/chunks/{websearch-rrt0a0ha.js → persistent-pty-my4zabxr.js} +3 -3
- package/dist/chunks/{websearch-ch8zzvzt.js → persistent-pty-n4wpfnv1.js} +33 -33
- package/dist/chunks/{websearch-5n3hf9qe.js → persistent-pty-nam5nxhh.js} +4 -4
- package/dist/chunks/{websearch-3zjvcxaq.js → persistent-pty-nmdtbfzh.js} +58 -58
- package/dist/chunks/{websearch-nej48kda.js → persistent-pty-p2r9c57w.js} +35 -35
- package/dist/chunks/{websearch-g23m1zvc.js → persistent-pty-pa5kmbm8.js} +20 -20
- package/dist/chunks/{websearch-st32wr7j.js → persistent-pty-pcdbh0j4.js} +45 -45
- package/dist/chunks/{websearch-j5v8ay3k.js → persistent-pty-peecsdy0.js} +18 -18
- package/dist/chunks/persistent-pty-phz3h32g.js +18 -0
- package/dist/chunks/{websearch-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{websearch-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-5w9yjztw.js → persistent-pty-pnzf6mjf.js} +1 -1
- package/dist/chunks/{websearch-a66d3j4b.js → persistent-pty-ppjqgbs9.js} +25 -25
- package/dist/chunks/{websearch-kx004b36.js → persistent-pty-prq7hedt.js} +9 -9
- package/dist/chunks/{websearch-m21ceenz.js → persistent-pty-ptvvbxck.js} +4 -4
- package/dist/chunks/{websearch-8sze2n9a.js → persistent-pty-py3kkmfq.js} +6 -6
- package/dist/chunks/{websearch-q0xm7vwc.js → persistent-pty-q0xm7vwc.js} +2 -2
- package/dist/chunks/{websearch-39r5ypbv.js → persistent-pty-q76v78a4.js} +21 -21
- package/dist/chunks/{websearch-bmmnfx8r.js → persistent-pty-qfqfjc74.js} +5 -5
- package/dist/chunks/{websearch-esafk7q3.js → persistent-pty-qgn6gcr1.js} +5 -5
- package/dist/chunks/{websearch-6spsh8qa.js → persistent-pty-qm2kbj48.js} +43 -43
- package/dist/chunks/{websearch-qnc92qwc.js → persistent-pty-qnc92qwc.js} +1 -1
- package/dist/chunks/{websearch-1tkx5wjx.js → persistent-pty-qnn75meq.js} +13 -13
- package/dist/chunks/{websearch-4rmtry0w.js → persistent-pty-qnpg3zjj.js} +21 -21
- package/dist/chunks/{websearch-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{websearch-0tzy42a9.js → persistent-pty-qvb3nf84.js} +8 -8
- package/dist/chunks/{websearch-q0cxhhrh.js → persistent-pty-qwfjbs6q.js} +13 -13
- package/dist/chunks/{websearch-ppc8s294.js → persistent-pty-qy7fdy02.js} +23 -23
- package/dist/chunks/{websearch-wecqtg5s.js → persistent-pty-qygbw77c.js} +5 -5
- package/dist/chunks/{websearch-77602mw0.js → persistent-pty-r21y2bjh.js} +95 -95
- package/dist/chunks/{websearch-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{websearch-ed8kcyd6.js → persistent-pty-rgpk8c3t.js} +183 -183
- package/dist/chunks/{websearch-f5v94fes.js → persistent-pty-rh75w547.js} +22 -22
- package/dist/chunks/{websearch-rhjbct0v.js → persistent-pty-rhjbct0v.js} +1 -1
- package/dist/chunks/{websearch-1acjjqhc.js → persistent-pty-rhraev7y.js} +4 -4
- package/dist/chunks/{websearch-7x1at4dn.js → persistent-pty-rn484enx.js} +13 -13
- package/dist/chunks/{websearch-azy71b5p.js → persistent-pty-s87ygg5r.js} +10 -10
- package/dist/chunks/{websearch-92jw639j.js → persistent-pty-scvmve7w.js} +11 -11
- package/dist/chunks/{websearch-r2v45gwg.js → persistent-pty-sgqg2f8q.js} +4 -4
- package/dist/chunks/{websearch-s6hdbq7w.js → persistent-pty-sjraay0z.js} +27 -27
- package/dist/chunks/{websearch-r3eec8d1.js → persistent-pty-smespjaf.js} +8 -8
- package/dist/chunks/{websearch-9ndxe7cf.js → persistent-pty-snd67510.js} +34 -34
- package/dist/chunks/{websearch-4rq26644.js → persistent-pty-sq20rjr1.js} +5 -5
- package/dist/chunks/{websearch-s6zp9vx7.js → persistent-pty-t0cpmee7.js} +11 -11
- package/dist/chunks/{websearch-3a83a0n4.js → persistent-pty-t1dawjzh.js} +8 -8
- package/dist/chunks/{websearch-p35qnqvw.js → persistent-pty-t845f9hx.js} +17 -17
- package/dist/chunks/{websearch-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{websearch-89znhe33.js → persistent-pty-tcezcvh9.js} +4 -4
- package/dist/chunks/{websearch-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{websearch-8tsdq50x.js → persistent-pty-tfzngn12.js} +4 -4
- package/dist/chunks/{websearch-2gxwdmk2.js → persistent-pty-tjwtrm03.js} +5 -5
- package/dist/chunks/{websearch-qgwn4ht9.js → persistent-pty-tmrd8qpe.js} +9 -9
- package/dist/chunks/{websearch-6kagjaxc.js → persistent-pty-v06x2rvj.js} +3 -3
- package/dist/chunks/{websearch-fpecnkgp.js → persistent-pty-v0es1rhs.js} +9 -9
- package/dist/chunks/{websearch-ryr25ayn.js → persistent-pty-v5dkyp31.js} +4 -4
- package/dist/chunks/{websearch-9ctwkt1w.js → persistent-pty-v6ry9q01.js} +16 -16
- package/dist/chunks/{websearch-3rsbafkh.js → persistent-pty-vbv96av7.js} +13 -13
- package/dist/chunks/{websearch-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/persistent-pty-vk7m4zfp.js +507 -0
- package/dist/chunks/{websearch-nakf8p49.js → persistent-pty-vws08ngw.js} +33 -33
- package/dist/chunks/{websearch-xs53z2pm.js → persistent-pty-vxzh5eqq.js} +4 -4
- package/dist/chunks/{websearch-f7bw197q.js → persistent-pty-vxzn4mjm.js} +4 -4
- package/dist/chunks/{websearch-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
- package/dist/chunks/{websearch-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-fbdfn3v6.js → persistent-pty-wksxstam.js} +26 -26
- package/dist/chunks/{websearch-mtsdzpvy.js → persistent-pty-ws2vmpjm.js} +32 -32
- package/dist/chunks/{websearch-0cnb27jj.js → persistent-pty-wxagtd6d.js} +52 -52
- package/dist/chunks/{websearch-x661k3y3.js → persistent-pty-x661k3y3.js} +1 -1
- package/dist/chunks/{websearch-azvdhf4w.js → persistent-pty-x8nragah.js} +40 -40
- package/dist/chunks/{websearch-whynf17d.js → persistent-pty-xcwya4hk.js} +9 -9
- package/dist/chunks/{websearch-r2qntz6x.js → persistent-pty-xf92ehtp.js} +5 -5
- package/dist/chunks/{websearch-xfkkasph.js → persistent-pty-xfkkasph.js} +1 -1
- package/dist/chunks/{websearch-xkntkrq7.js → persistent-pty-xkntkrq7.js} +2 -2
- package/dist/chunks/{websearch-ysyw0m6j.js → persistent-pty-xn1vbmeg.js} +15 -15
- package/dist/chunks/{websearch-ajkgf329.js → persistent-pty-xn95c7ne.js} +22 -22
- package/dist/chunks/{websearch-j5ytphad.js → persistent-pty-xv04d7wa.js} +20 -20
- package/dist/chunks/{websearch-a7bcxdzj.js → persistent-pty-xvedb59m.js} +9 -9
- package/dist/chunks/{websearch-qxjc9qry.js → persistent-pty-xyafkbt0.js} +3 -3
- package/dist/chunks/{websearch-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{websearch-m18pb0hg.js → persistent-pty-y54kce5q.js} +15 -15
- package/dist/chunks/{websearch-awz7phrz.js → persistent-pty-y5kja2xp.js} +3 -3
- package/dist/chunks/{websearch-gv7jatst.js → persistent-pty-y8swg4d6.js} +46 -46
- package/dist/chunks/{websearch-st0npvhs.js → persistent-pty-yb0yv9hj.js} +13 -13
- package/dist/chunks/{websearch-pjtx22pt.js → persistent-pty-yb9kj8pc.js} +27 -27
- package/dist/chunks/{websearch-nya48ex2.js → persistent-pty-ybpy5619.js} +41 -41
- package/dist/chunks/{websearch-phj4bqfk.js → persistent-pty-ygny92wv.js} +6 -6
- package/dist/chunks/{websearch-vq6jz5cn.js → persistent-pty-yhf6nfj4.js} +20 -20
- package/dist/chunks/{websearch-jabdm8bj.js → persistent-pty-ymjtnym2.js} +5 -5
- package/dist/chunks/{websearch-zqzjtd27.js → persistent-pty-yp3cv92q.js} +16 -16
- package/dist/chunks/{websearch-zqvvwnj3.js → persistent-pty-yq6mmt2t.js} +16 -16
- package/dist/chunks/{websearch-sbvqbenm.js → persistent-pty-yqntd9h0.js} +22 -22
- package/dist/chunks/{websearch-3sj8yt8v.js → persistent-pty-yrcj3v3g.js} +4 -4
- package/dist/chunks/{websearch-61dymhr3.js → persistent-pty-ysge6ncn.js} +46 -46
- package/dist/chunks/{websearch-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{websearch-we1wht7r.js → persistent-pty-z1fz22vh.js} +9 -9
- package/dist/chunks/{websearch-kg9y2ntz.js → persistent-pty-zgtbcyex.js} +4 -4
- package/dist/chunks/{websearch-35p9bx9e.js → persistent-pty-zhaqhg6g.js} +22 -22
- package/dist/chunks/{websearch-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{websearch-jt23je0j.js → persistent-pty-zsg7tck2.js} +35 -35
- package/dist/chunks/{websearch-7q1m8mqh.js → persistent-pty-zx4j0b0b.js} +14 -14
- package/dist/chunks/{websearch-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +82 -82
- package/dist/config/discovery.js +85 -85
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -100
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +119 -119
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +118 -118
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -122
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +71 -71
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration.gen.js +50 -50
- package/dist/database/migration.js +52 -52
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +80 -80
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +94 -94
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +96 -96
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +75 -75
- package/dist/file-access.js +105 -105
- package/dist/file-mutation.js +95 -95
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +104 -104
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +100 -100
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -355
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -74
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +352 -352
- package/dist/location.js +88 -88
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +110 -110
- package/dist/mcp/instructions.js +130 -130
- package/dist/mcp/oauth.js +79 -79
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +100 -100
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +99 -99
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +75 -75
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +103 -103
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -91
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/digitalocean.js +94 -94
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -96
- package/dist/plugin/provider/gitlab.js +94 -94
- package/dist/plugin/provider/google-vertex.js +91 -91
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/local.js +114 -114
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai.js +96 -96
- package/dist/plugin/provider/opencode.js +98 -98
- package/dist/plugin/provider/openrouter.js +92 -92
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -80
- package/dist/plugin/provider/prompt-cache-key.js +91 -91
- package/dist/plugin/provider/sap-ai-core.js +92 -92
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +91 -91
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/sdk.js +77 -77
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +94 -94
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +91 -91
- package/dist/provider.js +98 -98
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +90 -90
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +78 -78
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -98
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +154 -154
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +80 -80
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +121 -121
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +87 -87
- package/dist/session/prompt.js +106 -106
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -91
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +114 -114
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +104 -104
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -76
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -204
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +92 -92
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +129 -129
- package/dist/tool/plugin/edit.js +121 -121
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +125 -125
- package/dist/tool/plugin/grep.js +125 -125
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +126 -126
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +114 -114
- package/dist/tool/plugin/subagent.js +211 -211
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +115 -115
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +101 -101
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -93
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +77 -77
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +81 -81
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +90 -90
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/websearch-4y7b6nne.js +0 -253
- package/dist/chunks/websearch-646er4hm.js +0 -26
- package/dist/chunks/websearch-86eb7x6n.js +0 -507
- package/dist/chunks/websearch-ht5y0zrb.js +0 -18
- /package/dist/chunks/{websearch-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{websearch-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-34c7v6d4.js → persistent-pty-34c7v6d4.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3t0ybcrp.js → persistent-pty-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-5qd3pb7m.js → persistent-pty-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{websearch-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{websearch-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./persistent-pty-yq6mmt2t.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID15,
|
|
20
|
+
Info: () => Info24,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service75,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer26,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node79,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event18 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID15 = Form.ID;
|
|
39
|
+
var Info24 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID15
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID15
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID15
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID15,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service75 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer26 = Layer.effect(
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer26 = Layer.effect(Service75, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service83;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID15.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer26 = Layer.effect(Service81, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service75.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node79 = makeLocationNode({ service: Service75, layer: layer26, deps: [node87] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID15, Info24, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service75, layer26, node79, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./persistent-pty-42sykk0b.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service83,
|
|
8
|
+
node87
|
|
9
|
+
} from "./persistent-pty-yq6mmt2t.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-5t3nmthw.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./persistent-pty-fc43n6xf.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service60,
|
|
21
|
+
node64
|
|
22
|
+
} from "./persistent-pty-77zs8g8n.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service25,
|
|
25
|
+
node28
|
|
26
|
+
} from "./persistent-pty-9dfpqakj.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-tdstcens.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
37
37
|
__export(exports_title, {
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service9,
|
|
39
39
|
SessionTitle: () => exports_title,
|
|
40
40
|
isUntitled: () => isUntitled2,
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
41
|
+
layer: () => layer6,
|
|
42
|
+
node: () => node11
|
|
43
43
|
});
|
|
44
44
|
import { isDeepStrictEqual } from "node:util";
|
|
45
45
|
import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
|
|
@@ -51,19 +51,19 @@ var MAX_CONTEXT_LENGTH = 8000;
|
|
|
51
51
|
var MAX_FIRST_MESSAGE_LENGTH = 2000;
|
|
52
52
|
var titleChanged = Symbol("Session title changed");
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service9 extends Context.Service()("@opencode/SessionTitle") {
|
|
55
55
|
}
|
|
56
56
|
var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
|
|
57
57
|
var isUntitled2 = (session) => isExactRootFallback({
|
|
58
58
|
title: session.title,
|
|
59
59
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
60
60
|
});
|
|
61
|
-
var
|
|
62
|
-
const bus = yield*
|
|
61
|
+
var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
62
|
+
const bus = yield* Service83;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
66
|
-
const db = (yield*
|
|
64
|
+
const context = yield* Service25;
|
|
65
|
+
const store = yield* Service60;
|
|
66
|
+
const db = (yield* Service84).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
69
69
|
let failed = false;
|
|
@@ -145,12 +145,12 @@ Recent conversation:
|
|
|
145
145
|
title: truncate(title)
|
|
146
146
|
}, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
|
|
147
147
|
});
|
|
148
|
-
return
|
|
148
|
+
return Service9.of({ generate });
|
|
149
149
|
}));
|
|
150
|
-
var
|
|
151
|
-
service:
|
|
152
|
-
layer:
|
|
153
|
-
deps: [
|
|
150
|
+
var node11 = makeLocationNode({
|
|
151
|
+
service: Service9,
|
|
152
|
+
layer: layer6,
|
|
153
|
+
deps: [node87, llmClient2, node28, node64, node88]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
export {
|
|
156
|
+
export { Service9, isUntitled2, layer6, node11, exports_title };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service83,
|
|
6
|
+
node87
|
|
7
|
+
} from "./persistent-pty-yq6mmt2t.js";
|
|
8
8
|
import {
|
|
9
9
|
Event19,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service76,
|
|
11
|
+
node80
|
|
12
|
+
} from "./persistent-pty-ppjqgbs9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./persistent-pty-8kkb60sm.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service43,
|
|
19
|
+
node46
|
|
20
|
+
} from "./persistent-pty-1276degm.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service75,
|
|
24
|
+
node79
|
|
25
|
+
} from "./persistent-pty-wksxstam.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service74,
|
|
34
|
+
node78
|
|
35
|
+
} from "./persistent-pty-40mpssyg.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError4,
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service34,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured4,
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node37
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service34 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options4 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service34, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service80;
|
|
116
|
+
const environment = yield* Service43;
|
|
117
|
+
const bus = yield* Service83;
|
|
118
|
+
const forms = yield* Service75;
|
|
119
|
+
const integration = yield* Service74;
|
|
120
|
+
const credentials = yield* Service76;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID14.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service76, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError4({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service76, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID15.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service43, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -420,7 +420,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service34.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured4(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service34,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node84, node46, node87, node79, node78, node80]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node37 = configured4();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service34, Options4, layer14, configured4, node37, exports_mcp4 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID9,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service62
|
|
4
|
+
} from "./persistent-pty-3j0nkq0d.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service72
|
|
8
|
+
} from "./persistent-pty-h1yqkxn4.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service46
|
|
12
|
+
} from "./persistent-pty-kxrxvkx4.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-my4zabxr.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service64
|
|
18
|
+
} from "./persistent-pty-yp3cv92q.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service59
|
|
22
|
+
} from "./persistent-pty-6m05awva.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service22
|
|
25
|
+
} from "./persistent-pty-r21y2bjh.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./persistent-pty-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
make10
|
|
31
|
+
} from "./persistent-pty-bp6a26mh.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
39
|
+
Input: () => Input8,
|
|
40
40
|
Output: () => Output5,
|
|
41
|
-
Plugin: () =>
|
|
41
|
+
Plugin: () => Plugin45,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description4,
|
|
44
|
+
name: () => name8
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name8 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input8 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -77,7 +77,7 @@ var Output5 = Schema.Struct({
|
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description4 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin45 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service22;
|
|
93
|
+
const jobs = yield* Service64;
|
|
94
|
+
const agents = yield* Service62;
|
|
95
|
+
const config = yield* Service46;
|
|
96
|
+
const permission = yield* Service59;
|
|
97
|
+
const models = yield* Service72;
|
|
98
|
+
const subagents = yield* make10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,10 +115,10 @@ var Plugin7 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name8,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
120
|
+
description: description4,
|
|
121
|
+
input: Input8,
|
|
122
122
|
output: Output5,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
@@ -139,7 +139,7 @@ var Plugin7 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name8,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name8 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name8];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name8, Input8, Output5, description4, Plugin45, exports_subagent };
|