@opencode/core 0.0.0-dev-21199 → 0.0.0-dev-21207
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 +77 -77
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{skill-azhh6n6p.js → persistent-pty-07hm112z.js} +32 -32
- package/dist/chunks/{skill-0gvzbg7p.js → persistent-pty-0a4xt203.js} +16 -16
- package/dist/chunks/{skill-wg81ww38.js → persistent-pty-0b5g1ynf.js} +4 -4
- package/dist/chunks/{skill-mtvcx4kk.js → persistent-pty-0bamrq62.js} +11 -11
- package/dist/chunks/{skill-tk14ecdn.js → persistent-pty-0e4dr41z.js} +37 -37
- package/dist/chunks/{skill-eyvd4r56.js → persistent-pty-0ehmmcyw.js} +17 -17
- package/dist/chunks/{skill-xmjm0ap3.js → persistent-pty-0hvxqb6d.js} +33 -33
- package/dist/chunks/{skill-vwwhsbvp.js → persistent-pty-0jmz7zhd.js} +10 -10
- package/dist/chunks/{skill-24s8e1ye.js → persistent-pty-0kq1vnt2.js} +11 -11
- package/dist/chunks/{skill-ybq6hy8a.js → persistent-pty-0m15zpmn.js} +18 -18
- package/dist/chunks/{skill-x181wg97.js → persistent-pty-0qfx4vg1.js} +5 -5
- package/dist/chunks/{skill-6fk8v7jg.js → persistent-pty-0tz9w1hv.js} +37 -37
- package/dist/chunks/{skill-0vbcp93d.js → persistent-pty-0vbcp93d.js} +2 -2
- package/dist/chunks/{skill-xg47fphv.js → persistent-pty-0vs1brv3.js} +8 -8
- package/dist/chunks/{skill-pcf1k9th.js → persistent-pty-18g55aa2.js} +6 -6
- package/dist/chunks/{skill-9sspp2kc.js → persistent-pty-19m9vfay.js} +16 -16
- package/dist/chunks/{skill-p37cw4rj.js → persistent-pty-1ajx6rf5.js} +8 -8
- package/dist/chunks/{skill-w57ms8mt.js → persistent-pty-1gzh7x8v.js} +15 -15
- package/dist/chunks/{skill-47akhf3w.js → persistent-pty-1jge3f37.js} +34 -34
- package/dist/chunks/{skill-24ythb25.js → persistent-pty-1mgnj47k.js} +6 -6
- package/dist/chunks/{skill-dbwk15v0.js → persistent-pty-1msrarhd.js} +28 -28
- package/dist/chunks/{skill-8ryk0bb9.js → persistent-pty-1nwxscpy.js} +5 -5
- package/dist/chunks/{skill-zyyv54cq.js → persistent-pty-1pav5ndx.js} +20 -20
- package/dist/chunks/{skill-7gjg0sg8.js → persistent-pty-1qpcq0yb.js} +19 -19
- package/dist/chunks/{skill-fxaymqdw.js → persistent-pty-1w2wqhfv.js} +4 -4
- package/dist/chunks/{skill-ddzfx2sp.js → persistent-pty-23hfca39.js} +4 -4
- package/dist/chunks/{skill-tbrt0skw.js → persistent-pty-26pvtrrv.js} +33 -33
- package/dist/chunks/{skill-6x6512f8.js → persistent-pty-287dc9gj.js} +14 -14
- package/dist/chunks/{skill-73wdtct1.js → persistent-pty-296pqcyw.js} +4 -4
- package/dist/chunks/{skill-e4qjwypm.js → persistent-pty-29jpnasx.js} +12 -12
- package/dist/chunks/{skill-rmpja4kz.js → persistent-pty-2b974e2a.js} +20 -20
- package/dist/chunks/{skill-ft3hqk2c.js → persistent-pty-2mq1h16s.js} +9 -9
- package/dist/chunks/{skill-hhvypby2.js → persistent-pty-2pvdeqne.js} +83 -83
- package/dist/chunks/{skill-pc6svy01.js → persistent-pty-2sf5w7c0.js} +3 -3
- package/dist/chunks/{skill-hpagwa2c.js → persistent-pty-2xt21v74.js} +12 -12
- package/dist/chunks/{skill-4ysfff1b.js → persistent-pty-3126pgvt.js} +29 -29
- package/dist/chunks/{skill-jq9wm7kj.js → persistent-pty-368fk4db.js} +2 -2
- package/dist/chunks/{skill-r3ydk6z5.js → persistent-pty-36rq9ymx.js} +6 -6
- package/dist/chunks/{skill-a5574sc3.js → persistent-pty-374251z8.js} +16 -16
- package/dist/chunks/{skill-j5xh64qr.js → persistent-pty-38phfjcn.js} +9 -9
- package/dist/chunks/{skill-0w5ft33m.js → persistent-pty-39vged4c.js} +15 -15
- package/dist/chunks/{skill-bn0s77k4.js → persistent-pty-39z47dss.js} +7 -7
- package/dist/chunks/{skill-tx9w5tca.js → persistent-pty-3a83a0n4.js} +8 -8
- package/dist/chunks/{skill-mtpeagzc.js → persistent-pty-3dedrcqz.js} +3 -3
- package/dist/chunks/{skill-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{skill-60pkp98z.js → persistent-pty-3fkmq7pq.js} +9 -9
- package/dist/chunks/{skill-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{skill-3hwn7j4h.js → persistent-pty-3hwn7j4h.js} +2 -2
- package/dist/chunks/{skill-k8zn6dzp.js → persistent-pty-3j7kj2y8.js} +17 -17
- package/dist/chunks/{skill-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{skill-n7pfcsmy.js → persistent-pty-3sv35849.js} +27 -27
- package/dist/chunks/{skill-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{skill-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
- package/dist/chunks/{skill-jybvdwhe.js → persistent-pty-41mnrj5z.js} +12 -12
- package/dist/chunks/{skill-wdjfy1sg.js → persistent-pty-45yxkxq5.js} +4 -4
- package/dist/chunks/{skill-qx787nm7.js → persistent-pty-4d3befan.js} +8 -8
- package/dist/chunks/{skill-dh2x2bk8.js → persistent-pty-4p1cenkk.js} +40 -40
- package/dist/chunks/{skill-n8g9f5aw.js → persistent-pty-4rmh7taa.js} +8 -8
- package/dist/chunks/{skill-bjr98wm2.js → persistent-pty-4rv9xmb7.js} +11 -11
- package/dist/chunks/{skill-csxcg56m.js → persistent-pty-53wmdg2z.js} +26 -26
- package/dist/chunks/{skill-mz4wv8nb.js → persistent-pty-546wh2b3.js} +13 -13
- package/dist/chunks/{skill-d2kvkr0c.js → persistent-pty-54f956qq.js} +13 -13
- package/dist/chunks/{skill-54ma36ye.js → persistent-pty-54ma36ye.js} +1 -1
- package/dist/chunks/{skill-kyvqw619.js → persistent-pty-57ws9skg.js} +28 -28
- package/dist/chunks/{skill-wf494znr.js → persistent-pty-5cdwp8x1.js} +11 -11
- package/dist/chunks/{skill-dssbfrwz.js → persistent-pty-5fykfdj7.js} +5 -5
- package/dist/chunks/{skill-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{skill-ckkc33e7.js → persistent-pty-5x0spf49.js} +49 -49
- package/dist/chunks/{skill-0jwsre1p.js → persistent-pty-607tc6va.js} +5 -5
- package/dist/chunks/{skill-6827pfxn.js → persistent-pty-6827pfxn.js} +1 -1
- package/dist/chunks/{skill-a61mcpgr.js → persistent-pty-68g6xwqn.js} +25 -25
- package/dist/chunks/{skill-2hn0k533.js → persistent-pty-68spmrpe.js} +5 -5
- package/dist/chunks/{skill-xr9szsrw.js → persistent-pty-6hcchj7j.js} +69 -69
- package/dist/chunks/{skill-1vnwec3s.js → persistent-pty-6m2evtbw.js} +13 -13
- package/dist/chunks/{skill-9tn557k3.js → persistent-pty-6qx5ffhj.js} +3 -3
- package/dist/chunks/{skill-sd6jgyf6.js → persistent-pty-6v03kn10.js} +30 -30
- package/dist/chunks/{skill-6xb47vfp.js → persistent-pty-6xb47vfp.js} +1 -1
- package/dist/chunks/{skill-xt4njr3s.js → persistent-pty-6xcvt31d.js} +1 -1
- package/dist/chunks/{skill-d7q7g158.js → persistent-pty-76nj6dhf.js} +7 -7
- package/dist/chunks/{skill-775gj3j1.js → persistent-pty-775gj3j1.js} +2 -2
- package/dist/chunks/{skill-qv0n1xf7.js → persistent-pty-7b0e7y4m.js} +6 -6
- package/dist/chunks/{skill-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{skill-157xg8cq.js → persistent-pty-7eqp7xtn.js} +175 -175
- package/dist/chunks/{skill-7fkffz83.js → persistent-pty-7fkffz83.js} +2 -2
- package/dist/chunks/{skill-95gd5fnz.js → persistent-pty-7g7x9kjy.js} +6 -6
- package/dist/chunks/{skill-0mshdkct.js → persistent-pty-7gvejd0q.js} +30 -30
- package/dist/chunks/{skill-ryvyvv32.js → persistent-pty-7j2qrq70.js} +31 -31
- package/dist/chunks/{skill-9cw92fkg.js → persistent-pty-7k8y39tb.js} +40 -40
- package/dist/chunks/persistent-pty-7n7aetrn.js +513 -0
- package/dist/chunks/{skill-4rqs6yce.js → persistent-pty-7s8vtvkc.js} +8 -8
- package/dist/chunks/{skill-ytw5y04d.js → persistent-pty-7y5ptgp2.js} +11 -11
- package/dist/chunks/{skill-84txncab.js → persistent-pty-84txncab.js} +1 -1
- package/dist/chunks/{skill-89znhe33.js → persistent-pty-89znhe33.js} +1 -1
- package/dist/chunks/{skill-p6hp9dgk.js → persistent-pty-8m4ndff2.js} +24 -24
- package/dist/chunks/{skill-8m6m0r52.js → persistent-pty-8m6m0r52.js} +1 -1
- package/dist/chunks/{skill-q559tdbh.js → persistent-pty-8mxaw1fa.js} +48 -48
- package/dist/chunks/{skill-znpdtr75.js → persistent-pty-8nqwyyrr.js} +25 -25
- package/dist/chunks/{skill-bykqqmg1.js → persistent-pty-8qw7ce1p.js} +21 -21
- package/dist/chunks/{skill-j09zfasm.js → persistent-pty-91qna3x0.js} +3 -3
- package/dist/chunks/{skill-97aeaand.js → persistent-pty-97aeaand.js} +1 -1
- package/dist/chunks/{skill-kbzdcc1z.js → persistent-pty-98kr54cv.js} +30 -30
- package/dist/chunks/{skill-tegs1ycp.js → persistent-pty-9ae44cfy.js} +6 -6
- package/dist/chunks/{skill-dgmheq7x.js → persistent-pty-9n49pgr6.js} +20 -20
- package/dist/chunks/{skill-sd35z9tw.js → persistent-pty-9nmz2bca.js} +9 -9
- package/dist/chunks/{skill-wknnvmh5.js → persistent-pty-9nv551d5.js} +11 -11
- package/dist/chunks/{skill-hcms3ej7.js → persistent-pty-9qjz7egn.js} +24 -24
- package/dist/chunks/persistent-pty-9zy3g968.js +26 -0
- package/dist/chunks/{skill-z42dm00v.js → persistent-pty-a0z8gye3.js} +13 -13
- package/dist/chunks/{skill-aj2p83by.js → persistent-pty-a4xxkpja.js} +16 -16
- package/dist/chunks/{skill-j6ktnsbj.js → persistent-pty-aacha31a.js} +5 -5
- package/dist/chunks/{skill-bs5qht20.js → persistent-pty-ak0n8wqr.js} +3 -3
- package/dist/chunks/{skill-vb3m6eyp.js → persistent-pty-argqn24j.js} +20 -20
- package/dist/chunks/{skill-hv0kjr3z.js → persistent-pty-avyh4w4k.js} +20 -20
- package/dist/chunks/{skill-j0m4jrxm.js → persistent-pty-ay5c0bv3.js} +25 -25
- package/dist/chunks/{skill-gb51gx5j.js → persistent-pty-b2df57q2.js} +1 -1
- package/dist/chunks/{skill-dzewxd6e.js → persistent-pty-b3kbpvds.js} +50 -50
- package/dist/chunks/{skill-jkh8wmvq.js → persistent-pty-bcxm7vqe.js} +14 -14
- package/dist/chunks/{skill-cbghv35z.js → persistent-pty-bfc3jzxx.js} +14 -14
- package/dist/chunks/{skill-k41pdhxj.js → persistent-pty-bgfh09k4.js} +19 -19
- package/dist/chunks/{skill-5n8ca005.js → persistent-pty-bq3rfpty.js} +12 -12
- package/dist/chunks/{skill-9hwaqfsw.js → persistent-pty-bx0gyb4h.js} +5 -5
- package/dist/chunks/{skill-1ep4rre3.js → persistent-pty-bzeyqsqd.js} +4 -4
- package/dist/chunks/{skill-ztkm05qe.js → persistent-pty-c0nr5bpp.js} +20 -20
- package/dist/chunks/{skill-c1fqxshp.js → persistent-pty-c1fqxshp.js} +3 -3
- package/dist/chunks/{skill-p2w0np6h.js → persistent-pty-c75t29hq.js} +11 -11
- package/dist/chunks/{skill-afdssyjb.js → persistent-pty-ca7w653e.js} +4 -4
- package/dist/chunks/{skill-f85pwmyw.js → persistent-pty-catab2z7.js} +3 -3
- package/dist/chunks/{skill-vbek984v.js → persistent-pty-cdqe3acw.js} +6 -6
- package/dist/chunks/{skill-g36mbs4t.js → persistent-pty-cne5fydz.js} +15 -15
- package/dist/chunks/{skill-44ak30pa.js → persistent-pty-cp937pt4.js} +4 -4
- package/dist/chunks/{skill-ek42zh69.js → persistent-pty-cw4vxgxd.js} +22 -22
- package/dist/chunks/{skill-d1a28jh7.js → persistent-pty-d1a28jh7.js} +2 -2
- package/dist/chunks/{skill-k76krqzs.js → persistent-pty-d216944b.js} +7 -7
- package/dist/chunks/{skill-6fq7r47e.js → persistent-pty-dcsvv0a8.js} +5 -5
- package/dist/chunks/{skill-ts92q5ds.js → persistent-pty-dcvyzbc9.js} +24 -24
- package/dist/chunks/{skill-nk3nq1me.js → persistent-pty-df3a40xp.js} +19 -19
- package/dist/chunks/{skill-y71avatq.js → persistent-pty-dpkg50ah.js} +4 -4
- package/dist/chunks/{skill-fn9t717r.js → persistent-pty-dq407baf.js} +6 -6
- package/dist/chunks/{skill-zaggqza2.js → persistent-pty-dy0tp0j6.js} +10 -10
- package/dist/chunks/{skill-p9901hdx.js → persistent-pty-e0pc35xj.js} +34 -34
- package/dist/chunks/{skill-x96ngv9r.js → persistent-pty-e87gf2rh.js} +10 -10
- package/dist/chunks/{skill-eej6y6fw.js → persistent-pty-eej6y6fw.js} +2 -2
- package/dist/chunks/{skill-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{skill-rhraev7y.js → persistent-pty-f2n192rq.js} +4 -4
- package/dist/chunks/{skill-0jgt67sk.js → persistent-pty-fawagqxt.js} +23 -23
- package/dist/chunks/{skill-fcy631f0.js → persistent-pty-fcy631f0.js} +1 -1
- package/dist/chunks/{skill-8k9dqkvr.js → persistent-pty-fgg1h6tp.js} +18 -18
- package/dist/chunks/{skill-3cwb9jzf.js → persistent-pty-fqhbsnr5.js} +8 -8
- package/dist/chunks/{skill-0tb1pehm.js → persistent-pty-fqyjd71p.js} +26 -26
- package/dist/chunks/{skill-r92v02kx.js → persistent-pty-fv4sm444.js} +25 -25
- package/dist/chunks/{skill-ht9z38af.js → persistent-pty-fwbmh39w.js} +7 -7
- package/dist/chunks/{skill-0w1q6v6s.js → persistent-pty-g1kxasap.js} +17 -17
- package/dist/chunks/{skill-2fkbhf5s.js → persistent-pty-g7fa7svs.js} +27 -27
- package/dist/chunks/{skill-v2bjyqkg.js → persistent-pty-gakes9sg.js} +9 -9
- package/dist/chunks/{skill-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{skill-dhb2hta4.js → persistent-pty-gm31ynds.js} +5 -5
- package/dist/chunks/{skill-1dcff6nc.js → persistent-pty-gs0drmb7.js} +5 -5
- package/dist/chunks/{skill-21kate9q.js → persistent-pty-gshnfpyh.js} +21 -21
- package/dist/chunks/{skill-vs247hwy.js → persistent-pty-gzqd72by.js} +15 -15
- package/dist/chunks/{skill-2dvjh35y.js → persistent-pty-h26kdy9n.js} +24 -24
- package/dist/chunks/{skill-8hpz99e3.js → persistent-pty-h2955e8q.js} +17 -17
- package/dist/chunks/{skill-q6ec7ghb.js → persistent-pty-h5h55k1t.js} +4 -4
- package/dist/chunks/{skill-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{skill-2k71kv7p.js → persistent-pty-h90v2x9d.js} +4 -4
- package/dist/chunks/{skill-twwne8jc.js → persistent-pty-hdfxv9rf.js} +13 -13
- package/dist/chunks/{skill-jhqb9qv1.js → persistent-pty-he0cfhpc.js} +44 -44
- package/dist/chunks/{skill-hgz4x7wa.js → persistent-pty-hgz4x7wa.js} +1 -1
- package/dist/chunks/{skill-jr0bwz5h.js → persistent-pty-hk8s4rpe.js} +15 -15
- package/dist/chunks/{skill-hh8xd2g7.js → persistent-pty-hkajtpqc.js} +2 -2
- package/dist/chunks/persistent-pty-ht5y0zrb.js +18 -0
- package/dist/chunks/{skill-hjkky8wz.js → persistent-pty-hv3fvgxa.js} +4 -4
- package/dist/chunks/{skill-5cazt80r.js → persistent-pty-hyry98jx.js} +33 -33
- package/dist/chunks/{skill-721538d5.js → persistent-pty-j4yfb354.js} +11 -11
- package/dist/chunks/{skill-d4y9kadm.js → persistent-pty-jj579w2g.js} +29 -29
- package/dist/chunks/{skill-1e0fage9.js → persistent-pty-k3bwfq85.js} +4 -4
- package/dist/chunks/{skill-m8tc3etm.js → persistent-pty-k8xwrkek.js} +45 -45
- package/dist/chunks/{skill-k1ep3vpw.js → persistent-pty-kee9eehy.js} +5 -5
- package/dist/chunks/{skill-q6hmgxfy.js → persistent-pty-khzq4x05.js} +21 -21
- package/dist/chunks/{skill-nd4tfyg0.js → persistent-pty-kjd40bgk.js} +9 -9
- package/dist/chunks/persistent-pty-kt23qymt.js +257 -0
- package/dist/chunks/{skill-kwb1v3vj.js → persistent-pty-kwb1v3vj.js} +1 -1
- package/dist/chunks/{skill-xjww6pxa.js → persistent-pty-m05fbbj0.js} +74 -74
- package/dist/chunks/{skill-vnwacm6t.js → persistent-pty-m1skjvb8.js} +1 -1
- package/dist/chunks/{skill-j7qxhh0w.js → persistent-pty-m87p00k5.js} +11 -11
- package/dist/chunks/{skill-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{skill-maspj1v3.js → persistent-pty-maspj1v3.js} +1 -1
- package/dist/chunks/{skill-1vyebrft.js → persistent-pty-mbjmp2z7.js} +43 -43
- package/dist/chunks/{skill-5n5c97r3.js → persistent-pty-md3yr6xj.js} +7 -7
- package/dist/chunks/{skill-c1s4czd4.js → persistent-pty-mswjsdq2.js} +20 -20
- package/dist/chunks/{skill-00qrbj62.js → persistent-pty-mswsvpz6.js} +4 -4
- package/dist/chunks/{skill-gqtdsdt7.js → persistent-pty-mxvxcxwy.js} +4 -4
- package/dist/chunks/{skill-n61013np.js → persistent-pty-n61013np.js} +3 -3
- package/dist/chunks/{skill-m28477hs.js → persistent-pty-nmhvfjt2.js} +18 -18
- package/dist/chunks/{skill-acy09t17.js → persistent-pty-nq3qw2vm.js} +1 -1
- package/dist/chunks/{skill-axbdcqfv.js → persistent-pty-nt017e08.js} +11 -11
- package/dist/chunks/{skill-06xsmntz.js → persistent-pty-nt2cm5g7.js} +2 -2
- package/dist/chunks/{skill-4j4tgtq5.js → persistent-pty-nxe4pcap.js} +4 -4
- package/dist/chunks/{skill-rakt6rqx.js → persistent-pty-p1dnjvcc.js} +5 -5
- package/dist/chunks/{skill-9hg616bm.js → persistent-pty-pb1esjts.js} +10 -10
- package/dist/chunks/{skill-jcq65hc2.js → persistent-pty-pes8a9te.js} +37 -37
- package/dist/chunks/{skill-hszepbzs.js → persistent-pty-pjnrv22w.js} +11 -11
- package/dist/chunks/{skill-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{skill-nm2sbdyw.js → persistent-pty-pkm7e8th.js} +6 -6
- package/dist/chunks/{skill-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{skill-ktq7es54.js → persistent-pty-pwxqqvpq.js} +27 -27
- package/dist/chunks/{skill-t3mrtpce.js → persistent-pty-pxmy34vh.js} +13 -13
- package/dist/chunks/{skill-qmgmkp4z.js → persistent-pty-q4d4j6bt.js} +13 -13
- package/dist/chunks/{skill-wx4tanf7.js → persistent-pty-q5rwhrtr.js} +32 -32
- package/dist/chunks/{skill-swdxt3e8.js → persistent-pty-qgccrhvw.js} +8 -8
- package/dist/chunks/{skill-smjam21t.js → persistent-pty-qgzg94dt.js} +17 -17
- package/dist/chunks/{skill-qnc92qwc.js → persistent-pty-qnc92qwc.js} +1 -1
- package/dist/chunks/{skill-qqeeq2t9.js → persistent-pty-qqeeq2t9.js} +1 -1
- package/dist/chunks/{skill-9g88hcsg.js → persistent-pty-qs13swd0.js} +46 -46
- package/dist/chunks/{skill-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{skill-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{skill-rert0e01.js → persistent-pty-rert0e01.js} +2 -2
- package/dist/chunks/{skill-rj3eygr5.js → persistent-pty-rj3eygr5.js} +2 -2
- package/dist/chunks/{skill-ptxp58at.js → persistent-pty-rtvdsvz0.js} +10 -10
- package/dist/chunks/{skill-xa8dcf8m.js → persistent-pty-rx905nvw.js} +7 -7
- package/dist/chunks/{skill-ps2yhsm3.js → persistent-pty-ryt5ycva.js} +25 -25
- package/dist/chunks/{skill-373db230.js → persistent-pty-s1rzx2rx.js} +16 -16
- package/dist/chunks/{skill-2xc59a1w.js → persistent-pty-s4e55a1y.js} +5 -5
- package/dist/chunks/{skill-sa8ekw3f.js → persistent-pty-sa8ekw3f.js} +2 -2
- package/dist/chunks/{skill-1j2x33v7.js → persistent-pty-se3cmajw.js} +14 -14
- package/dist/chunks/{skill-ta7kf51t.js → persistent-pty-sj31pcmn.js} +30 -30
- package/dist/chunks/{skill-e80seqcp.js → persistent-pty-sxcaecc0.js} +3 -3
- package/dist/chunks/{skill-711r5px4.js → persistent-pty-sxgg5vg7.js} +24 -24
- package/dist/chunks/{skill-syv4x271.js → persistent-pty-syv4x271.js} +1 -1
- package/dist/chunks/{skill-n4d3d4w3.js → persistent-pty-t0pyhqcw.js} +11 -11
- package/dist/chunks/{skill-trsmh1y6.js → persistent-pty-t0tz8gfx.js} +14 -14
- package/dist/chunks/{skill-eaj1djv9.js → persistent-pty-t550f9t1.js} +8 -8
- package/dist/chunks/{skill-hxbam2w6.js → persistent-pty-t6dt94yt.js} +11 -11
- package/dist/chunks/{skill-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{skill-p6zwjtwx.js → persistent-pty-tcxp8tq6.js} +3 -3
- package/dist/chunks/{skill-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{skill-g0zzgjed.js → persistent-pty-tea6mbfw.js} +13 -13
- package/dist/chunks/{skill-tm0kqsz3.js → persistent-pty-tm0kqsz3.js} +1 -1
- package/dist/chunks/{skill-608dtcmq.js → persistent-pty-tpbvzr1y.js} +15 -15
- package/dist/chunks/{skill-j17rh5na.js → persistent-pty-ts10gvyd.js} +14 -14
- package/dist/chunks/{skill-tyytaxap.js → persistent-pty-tyytaxap.js} +1 -1
- package/dist/chunks/{skill-v210v162.js → persistent-pty-v210v162.js} +2 -2
- package/dist/chunks/{skill-9xnh36ct.js → persistent-pty-v293qw80.js} +26 -26
- package/dist/chunks/{skill-bk9rcndt.js → persistent-pty-v2rhndg3.js} +32 -32
- package/dist/chunks/{skill-v7p4zvkq.js → persistent-pty-v7p4zvkq.js} +2 -2
- package/dist/chunks/{skill-0a54jmae.js → persistent-pty-v9ncrnjw.js} +9 -9
- package/dist/chunks/{skill-tkzsrz1e.js → persistent-pty-v9t8k6fh.js} +14 -14
- package/dist/chunks/{skill-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{skill-afm93r8m.js → persistent-pty-vhekmsjv.js} +5 -5
- package/dist/chunks/{skill-yyvvzyvm.js → persistent-pty-vk73as10.js} +20 -20
- package/dist/chunks/{skill-hp8bf08d.js → persistent-pty-vnvv926v.js} +11 -11
- package/dist/chunks/{skill-7y6g135c.js → persistent-pty-vtbat0ks.js} +21 -21
- package/dist/chunks/{skill-5a1a4xxz.js → persistent-pty-vvgahrge.js} +26 -26
- package/dist/chunks/{skill-n3wcrd3g.js → persistent-pty-vxb9f0te.js} +7 -7
- package/dist/chunks/{skill-vscs4key.js → persistent-pty-vxttbewe.js} +7 -7
- package/dist/chunks/{skill-1wy3a1da.js → persistent-pty-vzm2s9ff.js} +8 -8
- package/dist/chunks/{skill-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
- package/dist/chunks/{skill-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{skill-51fhzrhh.js → persistent-pty-w9qdmkss.js} +23 -23
- package/dist/chunks/{skill-4za8yt9x.js → persistent-pty-wak88xg7.js} +16 -16
- package/dist/chunks/{skill-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{skill-vbhp0dye.js → persistent-pty-wjr337jx.js} +45 -45
- package/dist/chunks/{skill-bjx1sjef.js → persistent-pty-wjr9rjd7.js} +6 -6
- package/dist/chunks/{skill-n9y44nm0.js → persistent-pty-ww7z4zes.js} +12 -12
- package/dist/chunks/{skill-x4gm9hts.js → persistent-pty-x5hm6bvw.js} +14 -14
- package/dist/chunks/{skill-tdepd04k.js → persistent-pty-xacqwv33.js} +14 -14
- package/dist/chunks/{skill-fdms3n6w.js → persistent-pty-xf8yqmad.js} +9 -9
- package/dist/chunks/{skill-f3rjyvb9.js → persistent-pty-xpyhv29g.js} +29 -29
- package/dist/chunks/{skill-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{skill-zn9jy13z.js → persistent-pty-ybt6a39d.js} +6 -6
- package/dist/chunks/{skill-akvzwxcq.js → persistent-pty-yfcvgves.js} +20 -20
- package/dist/chunks/{skill-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{skill-jgyagtm3.js → persistent-pty-z5tkq5nc.js} +29 -29
- package/dist/chunks/{skill-m0492934.js → persistent-pty-zd0masta.js} +50 -50
- package/dist/chunks/{skill-hn49etrp.js → persistent-pty-zdhjww4c.js} +9 -9
- package/dist/chunks/{skill-ebwpp9d0.js → persistent-pty-znznz47e.js} +11 -11
- package/dist/chunks/{skill-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{skill-wwq19wsf.js → persistent-pty-zswavtpb.js} +5 -5
- package/dist/chunks/{skill-5hckghy7.js → persistent-pty-zvkna10r.js} +25 -25
- package/dist/chunks/{skill-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- 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 +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- 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 +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- 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 +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +211 -211
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/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 +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- 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 +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/skill-961073wv.js +0 -26
- package/dist/chunks/skill-g7az63xj.js +0 -257
- package/dist/chunks/skill-sjv7n9ab.js +0 -513
- package/dist/chunks/skill-vnkjks7b.js +0 -18
- /package/dist/chunks/{skill-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{skill-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{skill-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{skill-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{skill-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{skill-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{skill-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{skill-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{skill-2bv980vf.js → persistent-pty-2bv980vf.js} +0 -0
- /package/dist/chunks/{skill-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{skill-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{skill-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{skill-3t0ybcrp.js → persistent-pty-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{skill-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{skill-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{skill-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{skill-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{skill-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{skill-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{skill-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{skill-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{skill-5qd3pb7m.js → persistent-pty-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{skill-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{skill-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{skill-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{skill-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{skill-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{skill-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{skill-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{skill-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{skill-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{skill-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{skill-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{skill-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{skill-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{skill-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{skill-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{skill-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{skill-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{skill-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{skill-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{skill-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{skill-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{skill-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{skill-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{skill-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{skill-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{skill-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{skill-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{skill-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{skill-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{skill-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{skill-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{skill-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{skill-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{skill-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{skill-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{skill-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{skill-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{skill-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{skill-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{skill-hcxmzztb.js → persistent-pty-hcxmzztb.js} +0 -0
- /package/dist/chunks/{skill-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{skill-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{skill-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{skill-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{skill-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{skill-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{skill-jze0r7bz.js → persistent-pty-jze0r7bz.js} +0 -0
- /package/dist/chunks/{skill-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{skill-m18g726c.js → persistent-pty-m18g726c.js} +0 -0
- /package/dist/chunks/{skill-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{skill-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{skill-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{skill-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{skill-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{skill-pkyv6v7h.js → persistent-pty-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{skill-pyv0edze.js → persistent-pty-pyv0edze.js} +0 -0
- /package/dist/chunks/{skill-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{skill-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{skill-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{skill-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{skill-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{skill-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{skill-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{skill-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{skill-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{skill-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{skill-ve7vex1e.js → persistent-pty-ve7vex1e.js} +0 -0
- /package/dist/chunks/{skill-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{skill-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{skill-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{skill-wjj7prxr.js → persistent-pty-wjj7prxr.js} +0 -0
- /package/dist/chunks/{skill-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{skill-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{skill-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{skill-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{skill-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{skill-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{skill-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{skill-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{skill-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
emptyPatch2,
|
|
6
6
|
splitGitPatch2,
|
|
7
7
|
chunksByFile2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-tazgh4e4.js";
|
|
9
9
|
import {
|
|
10
10
|
gitExecutable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./persistent-pty-ef5x83kb.js";
|
|
12
12
|
import {
|
|
13
13
|
Service82
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./persistent-pty-hkajtpqc.js";
|
|
15
15
|
import {
|
|
16
16
|
DiffError2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./persistent-pty-qgzg94dt.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/vcs/git.ts
|
|
23
23
|
var exports_git = {};
|
|
24
24
|
__export(exports_git, {
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin20,
|
|
26
26
|
VcsGitPlugin: () => exports_git
|
|
27
27
|
});
|
|
28
28
|
import { randomUUID } from "crypto";
|
|
@@ -33,7 +33,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
import { ChildProcess } from "effect/process";
|
|
35
35
|
import { AppProcess } from "@opencode/util/process";
|
|
36
|
-
var
|
|
36
|
+
var Plugin20 = define({
|
|
37
37
|
id: "opencode.vcs.git",
|
|
38
38
|
effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
|
|
39
39
|
const location = yield* Service82;
|
|
@@ -553,4 +553,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
|
553
553
|
return yield* diffAgainstRef(ctx, ref, options);
|
|
554
554
|
});
|
|
555
555
|
|
|
556
|
-
export {
|
|
556
|
+
export { Plugin20, exports_git };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-h5h55k1t.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-4d3befan.js";
|
|
13
13
|
import {
|
|
14
14
|
Service82,
|
|
15
15
|
node86
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-hkajtpqc.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-rdw6cm16.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info26,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service81,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node85
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info26, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,9 +54,9 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service81 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
61
|
const location = yield* Service82;
|
|
62
62
|
const bus = yield* Service85;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info26));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service81.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node85 = makeLocationNode({
|
|
191
|
+
service: Service81,
|
|
192
192
|
layer,
|
|
193
193
|
deps: [FSUtil.node, node86, node89]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info26, Mode2, DiffError2, InitializeError2, Service81, node85, exports_vcs };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-h5h55k1t.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event18,
|
|
10
|
+
Service77,
|
|
11
|
+
node81
|
|
12
|
+
} from "./persistent-pty-98kr54cv.js";
|
|
13
13
|
import {
|
|
14
14
|
Service82,
|
|
15
15
|
node86
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-hkajtpqc.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service65,
|
|
19
|
+
node68
|
|
20
|
+
} from "./persistent-pty-8qw7ce1p.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service78,
|
|
24
|
+
node82
|
|
25
|
+
} from "./persistent-pty-ryt5ycva.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID13,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service76,
|
|
34
|
+
node80
|
|
35
|
+
} from "./persistent-pty-7gvejd0q.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: () => NotFoundError3,
|
|
45
|
+
Options: () => Options2,
|
|
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: () => Service31,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
55
|
+
configured: () => configured2,
|
|
56
56
|
layer: () => layer14,
|
|
57
|
-
node: () =>
|
|
57
|
+
node: () => node34
|
|
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 NotFoundError3 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 Service31 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options2 = 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 layer14 = (options) => Layer.effect(
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
115
115
|
const location = yield* Service82;
|
|
116
|
-
const environment = yield*
|
|
116
|
+
const environment = yield* Service65;
|
|
117
117
|
const bus = yield* Service85;
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
118
|
+
const forms = yield* Service78;
|
|
119
|
+
const integration = yield* Service76;
|
|
120
|
+
const credentials = yield* Service77;
|
|
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 layer14 = (options) => Layer.effect(Service27, 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 = ID13.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer14 = (options) => Layer.effect(Service27, 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(Service77, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer14 = (options) => Layer.effect(Service27, 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 NotFoundError3({ 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(Service77, 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 layer14 = (options) => Layer.effect(Service27, 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(Service65, 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;
|
|
@@ -394,7 +394,7 @@ var layer14 = (options) => Layer.effect(Service27, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer14 = (options) => Layer.effect(Service27, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service31.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 configured2(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
535
|
+
service: Service31,
|
|
536
536
|
layer: layer14(options),
|
|
537
|
-
deps: [node86,
|
|
537
|
+
deps: [node86, node68, node89, node82, node80, node81]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node34 = configured2();
|
|
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, NotFoundError3, ToolCallError2, Service31, Options2, layer14, configured2, node34, exports_mcp4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-rj3eygr5.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-qnc92qwc.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-ak0n8wqr.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service60,
|
|
17
|
+
node: () => node63
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service60 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service86).db;
|
|
26
|
-
return
|
|
26
|
+
return Service60.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node63 = makeGlobalNode({ service: Service60, layer, deps: [node90] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service60, node63, exports_kv };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-775gj3j1.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
11
|
Service: () => Service26,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer12,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node30
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -369,9 +369,9 @@ var makeLayer2 = (connector) => Layer.effect(Service26, Effect.gen(function* ()
|
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
370
|
return Service26.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer12 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node30 = makeGlobalNode({ service: Service26, layer: layer12, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export { Service26, makeLayer2,
|
|
377
|
+
export { Service26, makeLayer2, layer12, node30, exports_model_transport };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-h5h55k1t.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,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event19,
|
|
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: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError11,
|
|
24
|
+
Reply: () => Reply3,
|
|
25
|
+
Service: () => Service78,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer28,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node82,
|
|
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 Event19 } 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;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError11 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 NotFoundError7 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 Service78 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer28 = Layer.effect(
|
|
84
|
+
var layer28 = Layer.effect(Service78, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service85;
|
|
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 NotFoundError11({ 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 layer28 = Layer.effect(Service74, 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 Service78.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node82 = makeLocationNode({ service: Service78, layer: layer28, deps: [node89] });
|
|
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, NotFoundError11, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service78, layer28, node82, validateAnswer2, validateFields2, exports_form, Event19 };
|