@opencode/core 0.0.0-dev-20935 → 0.0.0-dev-20937
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{file-mutation-rqpzhrm7.js → persistent-pty-00w32bjw.js} +11 -11
- package/dist/chunks/{file-mutation-7kq22x4f.js → persistent-pty-01xwdrbs.js} +25 -25
- package/dist/chunks/{file-mutation-7g79rpkx.js → persistent-pty-03n1tc15.js} +13 -13
- package/dist/chunks/{file-mutation-k1man42b.js → persistent-pty-0am50sx2.js} +14 -14
- package/dist/chunks/{file-mutation-wg81ww38.js → persistent-pty-0b5g1ynf.js} +4 -4
- package/dist/chunks/{file-mutation-fdms3n6w.js → persistent-pty-0jq9fyba.js} +9 -9
- package/dist/chunks/{file-mutation-ax4fvyq7.js → persistent-pty-0pqkak0b.js} +30 -30
- package/dist/chunks/{file-mutation-tb2gjcgf.js → persistent-pty-0qr5aqrb.js} +11 -11
- package/dist/chunks/{file-mutation-0vbcp93d.js → persistent-pty-0vbcp93d.js} +2 -2
- package/dist/chunks/{file-mutation-vebsjg4p.js → persistent-pty-0vcybtwp.js} +5 -5
- package/dist/chunks/{file-mutation-2c8zmrp9.js → persistent-pty-0y3vaskv.js} +29 -29
- package/dist/chunks/{file-mutation-59yf6bk4.js → persistent-pty-0zp98w4j.js} +22 -22
- package/dist/chunks/{file-mutation-2g1c1bfv.js → persistent-pty-14vpxn5n.js} +16 -16
- package/dist/chunks/{file-mutation-jxnrt2vv.js → persistent-pty-19gs2232.js} +16 -16
- package/dist/chunks/{file-mutation-1wt7nzs7.js → persistent-pty-1a261xpc.js} +11 -11
- package/dist/chunks/{file-mutation-725fa840.js → persistent-pty-1f47wwge.js} +15 -15
- package/dist/chunks/{file-mutation-cqdkysbx.js → persistent-pty-1krq413r.js} +63 -63
- package/dist/chunks/{file-mutation-0bzgxg1j.js → persistent-pty-1t9yseh2.js} +1 -1
- package/dist/chunks/{file-mutation-sarp1xh6.js → persistent-pty-1x9n7tq6.js} +20 -20
- package/dist/chunks/{file-mutation-2cj9jx3e.js → persistent-pty-1xcwx3z5.js} +12 -12
- package/dist/chunks/{file-mutation-r9y2scxt.js → persistent-pty-1yd7h3h8.js} +11 -11
- package/dist/chunks/{file-mutation-a4s9sa33.js → persistent-pty-2fefz355.js} +3 -3
- package/dist/chunks/{file-mutation-7ckjjz4d.js → persistent-pty-2htx4yfm.js} +179 -179
- package/dist/chunks/{file-mutation-1qstm3eq.js → persistent-pty-2hwj1jz1.js} +8 -8
- package/dist/chunks/{file-mutation-re585wd9.js → persistent-pty-2n4cckq3.js} +8 -8
- package/dist/chunks/{file-mutation-fvswbnqd.js → persistent-pty-2trkh6np.js} +85 -85
- package/dist/chunks/{file-mutation-s1svsssm.js → persistent-pty-2wpj3g3y.js} +20 -20
- package/dist/chunks/{file-mutation-bje7k343.js → persistent-pty-2xgh33vh.js} +9 -9
- package/dist/chunks/{file-mutation-mrk9z152.js → persistent-pty-39hks32a.js} +15 -15
- package/dist/chunks/{file-mutation-p0ms9zpf.js → persistent-pty-3b6v4h4h.js} +21 -21
- package/dist/chunks/{file-mutation-sfh0wzsz.js → persistent-pty-3bpg6ayp.js} +15 -15
- package/dist/chunks/{file-mutation-sgsqsaf8.js → persistent-pty-3cn3rqbv.js} +24 -24
- package/dist/chunks/{file-mutation-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-mutation-zpfh6517.js → persistent-pty-3gvkq4wt.js} +34 -34
- package/dist/chunks/{file-mutation-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-3hwn7j4h.js → persistent-pty-3hwn7j4h.js} +2 -2
- package/dist/chunks/{file-mutation-ggw67geq.js → persistent-pty-3p1npsa0.js} +9 -9
- package/dist/chunks/{file-mutation-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-mutation-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-mutation-wdaydb6p.js → persistent-pty-3x6xxj8b.js} +30 -30
- package/dist/chunks/{file-mutation-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-mutation-kqnabcqt.js → persistent-pty-44633wsm.js} +13 -13
- package/dist/chunks/{file-mutation-1wyq5fad.js → persistent-pty-44qhy1zg.js} +23 -23
- package/dist/chunks/{file-mutation-ygdna4kr.js → persistent-pty-47jkzegy.js} +5 -5
- package/dist/chunks/{file-mutation-hswc9hpq.js → persistent-pty-4bvfn350.js} +15 -15
- package/dist/chunks/{file-mutation-pzk4zc1f.js → persistent-pty-4h2m9zb6.js} +28 -28
- package/dist/chunks/{file-mutation-emgh9wj7.js → persistent-pty-4ptbeewn.js} +15 -15
- package/dist/chunks/{file-mutation-4ts7tf6z.js → persistent-pty-4ts7tf6z.js} +2 -2
- package/dist/chunks/{file-mutation-hdab2k61.js → persistent-pty-52hb404k.js} +6 -6
- package/dist/chunks/{file-mutation-r94pvvab.js → persistent-pty-54ma36ye.js} +4 -4
- package/dist/chunks/{file-mutation-ecmt7fx5.js → persistent-pty-5cyrq552.js} +16 -16
- package/dist/chunks/{file-mutation-n3vndsfb.js → persistent-pty-5ezgg5db.js} +11 -11
- package/dist/chunks/{file-mutation-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-mutation-7xtd2de8.js → persistent-pty-5p2z92et.js} +26 -26
- package/dist/chunks/{file-mutation-vdaqayr7.js → persistent-pty-5p6442zs.js} +27 -27
- package/dist/chunks/{file-mutation-9dxhpszz.js → persistent-pty-5qn1sdvx.js} +33 -33
- package/dist/chunks/{file-mutation-vr7sbetz.js → persistent-pty-61f1rm4z.js} +11 -11
- package/dist/chunks/{file-mutation-v178wb1r.js → persistent-pty-62hh516m.js} +15 -15
- package/dist/chunks/{file-mutation-r5vtw57q.js → persistent-pty-665ar7wd.js} +14 -14
- package/dist/chunks/{file-mutation-488je9cq.js → persistent-pty-68re2sfv.js} +9 -9
- package/dist/chunks/{file-mutation-t7xjxf4b.js → persistent-pty-6f2f4s94.js} +24 -24
- package/dist/chunks/{file-mutation-edrmdtr5.js → persistent-pty-6hh8tjw2.js} +7 -7
- package/dist/chunks/{file-mutation-ypaak06t.js → persistent-pty-6p35b456.js} +31 -31
- package/dist/chunks/{file-mutation-6cd6hhv9.js → persistent-pty-6ps25b0n.js} +24 -24
- package/dist/chunks/{file-mutation-29qym6xz.js → persistent-pty-6t4hr8r6.js} +4 -4
- package/dist/chunks/{file-mutation-6w66n0xc.js → persistent-pty-6v3seq1s.js} +25 -25
- package/dist/chunks/{file-mutation-yp6q1akp.js → persistent-pty-6x86d912.js} +20 -20
- package/dist/chunks/{file-mutation-6xb47vfp.js → persistent-pty-6xb47vfp.js} +1 -1
- package/dist/chunks/{file-mutation-ye73daeg.js → persistent-pty-6xckhbd5.js} +15 -15
- package/dist/chunks/{file-mutation-j67c03p0.js → persistent-pty-70nermmm.js} +8 -8
- package/dist/chunks/{file-mutation-w7fgpjv3.js → persistent-pty-72p8e540.js} +17 -17
- package/dist/chunks/{file-mutation-vsgt0m8t.js → persistent-pty-76ft3k67.js} +6 -6
- package/dist/chunks/{file-mutation-775gj3j1.js → persistent-pty-775gj3j1.js} +2 -2
- package/dist/chunks/{file-mutation-xngt1rja.js → persistent-pty-7adpgck7.js} +21 -21
- package/dist/chunks/{file-mutation-efmrteft.js → persistent-pty-7b703rd1.js} +12 -12
- package/dist/chunks/{file-mutation-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-8m5xe4tx.js → persistent-pty-7dy85ahw.js} +6 -6
- package/dist/chunks/{file-mutation-rzbsbyhd.js → persistent-pty-7edj3kns.js} +10 -10
- package/dist/chunks/{file-mutation-6pc27hjz.js → persistent-pty-7fkffz83.js} +8 -8
- package/dist/chunks/{file-mutation-tx9w5tca.js → persistent-pty-7gx041tx.js} +8 -8
- package/dist/chunks/{file-mutation-7fm38s5s.js → persistent-pty-7wr0x2e1.js} +5 -5
- package/dist/chunks/{file-mutation-vsy7b3vy.js → persistent-pty-7z8gtjjz.js} +33 -33
- package/dist/chunks/{file-mutation-nj8dvbd1.js → persistent-pty-82vtwhxh.js} +2 -2
- package/dist/chunks/{file-mutation-84txncab.js → persistent-pty-84txncab.js} +1 -1
- package/dist/chunks/{file-mutation-744wh19d.js → persistent-pty-888zv9rh.js} +30 -30
- package/dist/chunks/{file-mutation-k5pv28k4.js → persistent-pty-8b8hkdbs.js} +4 -4
- package/dist/chunks/{file-mutation-3ndepc5d.js → persistent-pty-8c29c89x.js} +24 -24
- package/dist/chunks/{file-mutation-p6pewa8n.js → persistent-pty-8k5hgken.js} +43 -43
- package/dist/chunks/{file-mutation-8m6m0r52.js → persistent-pty-8m6m0r52.js} +1 -1
- package/dist/chunks/{file-mutation-y047mq8b.js → persistent-pty-8tbra83x.js} +23 -23
- package/dist/chunks/{file-mutation-xwkbkp38.js → persistent-pty-8zyt8ee3.js} +11 -11
- package/dist/chunks/{file-mutation-w1ba7bfx.js → persistent-pty-94ca0bep.js} +5 -5
- package/dist/chunks/{file-mutation-x1gtan6b.js → persistent-pty-9bf5zc4x.js} +5 -5
- package/dist/chunks/{file-mutation-9c3np669.js → persistent-pty-9c3np669.js} +1 -1
- package/dist/chunks/{file-mutation-7whqvnsa.js → persistent-pty-9e043kpb.js} +7 -7
- package/dist/chunks/persistent-pty-9j9hkdkf.js +253 -0
- package/dist/chunks/{file-mutation-q0nrsbdj.js → persistent-pty-9q61t9bb.js} +10 -10
- package/dist/chunks/{file-mutation-487b5zh7.js → persistent-pty-9wg5kvhm.js} +32 -32
- package/dist/chunks/{file-mutation-1vfr3ynh.js → persistent-pty-a6j09gve.js} +10 -10
- package/dist/chunks/{file-mutation-tnqjjjt6.js → persistent-pty-a7ty8w9d.js} +19 -19
- package/dist/chunks/{file-mutation-7dk33s9v.js → persistent-pty-ahyazdm1.js} +10 -10
- package/dist/chunks/{file-mutation-f3bbnrc1.js → persistent-pty-ar70kgkx.js} +23 -23
- package/dist/chunks/{file-mutation-ts3azqmf.js → persistent-pty-aw0hqjv5.js} +5 -5
- package/dist/chunks/{file-mutation-yhm5jsae.js → persistent-pty-b1cw1a7d.js} +3 -3
- package/dist/chunks/{file-mutation-b3f8fkhc.js → persistent-pty-b3f8fkhc.js} +2 -2
- package/dist/chunks/{file-mutation-z2a32qbh.js → persistent-pty-b4dvx6h6.js} +9 -9
- package/dist/chunks/{file-mutation-ebxtaxe6.js → persistent-pty-b7j3e6pa.js} +7 -7
- package/dist/chunks/{file-mutation-hcv80w8f.js → persistent-pty-bfegkxfd.js} +8 -8
- package/dist/chunks/{file-mutation-txm3e8qz.js → persistent-pty-bmr56wjg.js} +4 -4
- package/dist/chunks/{file-mutation-gfhhve88.js → persistent-pty-btec747f.js} +5 -5
- package/dist/chunks/{file-mutation-c1fqxshp.js → persistent-pty-c1fqxshp.js} +3 -3
- package/dist/chunks/{file-mutation-tt1456kv.js → persistent-pty-c5h28w7d.js} +14 -14
- package/dist/chunks/{file-mutation-yhwtprxq.js → persistent-pty-c5v1qfaa.js} +18 -18
- package/dist/chunks/{file-mutation-eahrnhfx.js → persistent-pty-ch5477sr.js} +3 -3
- package/dist/chunks/{file-mutation-d2sq2d79.js → persistent-pty-ckb424nk.js} +18 -18
- package/dist/chunks/{file-mutation-nz5t62q8.js → persistent-pty-cnzj44q3.js} +32 -32
- package/dist/chunks/{file-mutation-ttncn3ce.js → persistent-pty-cvh30w1t.js} +8 -8
- package/dist/chunks/{file-mutation-cf8xhc6a.js → persistent-pty-cvptpfc1.js} +17 -17
- package/dist/chunks/{file-mutation-7frhdmvw.js → persistent-pty-d160jaae.js} +20 -20
- package/dist/chunks/{file-mutation-n1vsqrtb.js → persistent-pty-d6pcz0gg.js} +28 -28
- package/dist/chunks/{file-mutation-bqshr6y7.js → persistent-pty-daczpnj7.js} +29 -29
- package/dist/chunks/{file-mutation-3qm04pf8.js → persistent-pty-dktjxkrs.js} +12 -12
- package/dist/chunks/persistent-pty-dmn839hr.js +26 -0
- package/dist/chunks/{file-mutation-dqxsqydv.js → persistent-pty-dqxsqydv.js} +1 -1
- package/dist/chunks/{file-mutation-js17ywz4.js → persistent-pty-drfjywk0.js} +55 -55
- package/dist/chunks/{file-mutation-p5p5kne1.js → persistent-pty-drnf6xwf.js} +2 -2
- package/dist/chunks/{file-mutation-8gxqpgph.js → persistent-pty-e2hjzebn.js} +4 -4
- package/dist/chunks/{file-mutation-xtptnygy.js → persistent-pty-edba61cy.js} +6 -6
- package/dist/chunks/{file-mutation-y5nbssvw.js → persistent-pty-edsxfdja.js} +42 -42
- package/dist/chunks/{file-mutation-eej6y6fw.js → persistent-pty-eej6y6fw.js} +2 -2
- package/dist/chunks/{file-mutation-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-mutation-m61fzpmg.js → persistent-pty-ektp8tg9.js} +42 -42
- package/dist/chunks/{file-mutation-km9pakr1.js → persistent-pty-eqzdnr9z.js} +7 -7
- package/dist/chunks/{file-mutation-0rtnsyrz.js → persistent-pty-exa14g4z.js} +51 -51
- package/dist/chunks/{file-mutation-m9pvadtq.js → persistent-pty-eywhswxm.js} +25 -25
- package/dist/chunks/{file-mutation-pczhjasx.js → persistent-pty-f0qmkbgb.js} +29 -29
- package/dist/chunks/{file-mutation-4drs5na8.js → persistent-pty-f1ptmd3h.js} +32 -32
- package/dist/chunks/{file-mutation-mqnxkg5d.js → persistent-pty-f9g0v0hr.js} +11 -11
- package/dist/chunks/{file-mutation-w5bq72s7.js → persistent-pty-fb4jddjg.js} +34 -34
- package/dist/chunks/{file-mutation-fxt7trq0.js → persistent-pty-fcrkf1sy.js} +3 -3
- package/dist/chunks/{file-mutation-gjwgx2c5.js → persistent-pty-ft3hqk2c.js} +9 -9
- package/dist/chunks/{file-mutation-26tabnwf.js → persistent-pty-fxyf9cvj.js} +11 -11
- package/dist/chunks/{file-mutation-zn4yvc8k.js → persistent-pty-fxzrhysn.js} +20 -20
- package/dist/chunks/{file-mutation-21e19319.js → persistent-pty-ga7w5vhm.js} +17 -17
- package/dist/chunks/{file-mutation-20hfp30s.js → persistent-pty-gbcjpggj.js} +5 -5
- package/dist/chunks/{file-mutation-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-mutation-tzdn9rtg.js → persistent-pty-gn2hzv84.js} +4 -4
- package/dist/chunks/{file-mutation-302pfpj6.js → persistent-pty-gnj9fvyd.js} +37 -37
- package/dist/chunks/{file-mutation-cgn0gs32.js → persistent-pty-gwdw6jm9.js} +32 -32
- package/dist/chunks/{file-mutation-tm5zmf33.js → persistent-pty-gxa4nkdc.js} +20 -20
- package/dist/chunks/{file-mutation-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-mutation-nzesv2yv.js → persistent-pty-h7a7kf2s.js} +11 -11
- package/dist/chunks/{file-mutation-31xfzrxg.js → persistent-pty-h7s7r6s9.js} +5 -5
- package/dist/chunks/{file-mutation-hgz4x7wa.js → persistent-pty-hgz4x7wa.js} +1 -1
- package/dist/chunks/{file-mutation-fxaymqdw.js → persistent-pty-hq3c8me3.js} +4 -4
- package/dist/chunks/{file-mutation-s8bec3jy.js → persistent-pty-hsze8q5r.js} +19 -19
- package/dist/chunks/{file-mutation-78e90p4n.js → persistent-pty-hyr9f9q8.js} +4 -4
- package/dist/chunks/{file-mutation-269qmysk.js → persistent-pty-j01738gb.js} +18 -18
- package/dist/chunks/{file-mutation-j09zfasm.js → persistent-pty-j09zfasm.js} +3 -3
- package/dist/chunks/{file-mutation-cbdnh8ym.js → persistent-pty-j21wy7w8.js} +40 -40
- package/dist/chunks/{file-mutation-n2w8wk1e.js → persistent-pty-j2rccnrs.js} +44 -44
- package/dist/chunks/persistent-pty-j54e1hd7.js +513 -0
- package/dist/chunks/{file-mutation-dvep9rg9.js → persistent-pty-j5xh64qr.js} +9 -9
- package/dist/chunks/{file-mutation-8ptgfkak.js → persistent-pty-jc88bv27.js} +1 -1
- package/dist/chunks/{file-mutation-8snhg1vq.js → persistent-pty-jfyemz75.js} +4 -4
- package/dist/chunks/{file-mutation-4wspg9c0.js → persistent-pty-jgdrbmt3.js} +22 -22
- package/dist/chunks/{file-mutation-15y1dh4q.js → persistent-pty-jgwt99nb.js} +24 -24
- package/dist/chunks/{file-mutation-8xc7njnc.js → persistent-pty-jhkvzc7c.js} +33 -33
- package/dist/chunks/{file-mutation-80rdvbp1.js → persistent-pty-jr7m0hjh.js} +26 -26
- package/dist/chunks/{file-mutation-znvvnn0n.js → persistent-pty-jyjec5pm.js} +20 -20
- package/dist/chunks/{file-mutation-ndr5ek36.js → persistent-pty-k0ygvxbw.js} +13 -13
- package/dist/chunks/{file-mutation-szxhn8br.js → persistent-pty-kqmdx8a1.js} +38 -38
- package/dist/chunks/{file-mutation-a9z9tshj.js → persistent-pty-ks74khch.js} +10 -10
- package/dist/chunks/{file-mutation-79ynbxc6.js → persistent-pty-ktje05cm.js} +14 -14
- package/dist/chunks/{file-mutation-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-maspj1v3.js → persistent-pty-maspj1v3.js} +1 -1
- package/dist/chunks/{file-mutation-tk0nare2.js → persistent-pty-mbnm49ss.js} +18 -18
- package/dist/chunks/{file-mutation-vd1cq09t.js → persistent-pty-mfn7r7q5.js} +32 -32
- package/dist/chunks/{file-mutation-6gtab086.js → persistent-pty-mx23yqv3.js} +13 -13
- package/dist/chunks/{file-mutation-8whp40kv.js → persistent-pty-my4zabxr.js} +3 -3
- package/dist/chunks/{file-mutation-rpetkqdt.js → persistent-pty-n0xa7jmz.js} +1 -1
- package/dist/chunks/{file-mutation-s7042j6v.js → persistent-pty-n46vsstj.js} +15 -15
- package/dist/chunks/{file-mutation-th1jrazv.js → persistent-pty-n5cr7t3t.js} +25 -25
- package/dist/chunks/{file-mutation-fbm9hsmq.js → persistent-pty-n6289bjf.js} +4 -4
- package/dist/chunks/{file-mutation-dnttm4be.js → persistent-pty-n6x6pftj.js} +9 -9
- package/dist/chunks/{file-mutation-6gkqtzxe.js → persistent-pty-ndsavt52.js} +4 -4
- package/dist/chunks/{file-mutation-sazgegx5.js → persistent-pty-nj0667en.js} +9 -9
- package/dist/chunks/{file-mutation-nma959mg.js → persistent-pty-nma959mg.js} +1 -1
- package/dist/chunks/{file-mutation-msx498dr.js → persistent-pty-np2sj7ey.js} +15 -15
- package/dist/chunks/{file-mutation-xd31rfz9.js → persistent-pty-ny626te7.js} +53 -53
- package/dist/chunks/{file-mutation-bwzb8d23.js → persistent-pty-p0f5k013.js} +9 -9
- package/dist/chunks/{file-mutation-mf47bgh6.js → persistent-pty-p21xj058.js} +8 -8
- package/dist/chunks/{file-mutation-p37cw4rj.js → persistent-pty-p37cw4rj.js} +1 -1
- package/dist/chunks/{file-mutation-etg65a44.js → persistent-pty-p6pn945e.js} +5 -5
- package/dist/chunks/{file-mutation-aep433xf.js → persistent-pty-pf1ma0zm.js} +34 -34
- package/dist/chunks/{file-mutation-xdznb3yd.js → persistent-pty-pg2ndnc9.js} +16 -16
- package/dist/chunks/{file-mutation-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-mutation-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-q5e7cmwt.js → persistent-pty-pnzf6mjf.js} +1 -1
- package/dist/chunks/{file-mutation-e11mwjdf.js → persistent-pty-ps6pky97.js} +13 -13
- package/dist/chunks/{file-mutation-q0xm7vwc.js → persistent-pty-q0xm7vwc.js} +2 -2
- package/dist/chunks/{file-mutation-pdx7j9bb.js → persistent-pty-q19v3jy8.js} +23 -23
- package/dist/chunks/{file-mutation-3ceprgpd.js → persistent-pty-q1z3k24c.js} +20 -20
- package/dist/chunks/{file-mutation-trktjxrk.js → persistent-pty-q403dv8b.js} +10 -10
- package/dist/chunks/{file-mutation-rhn3xyng.js → persistent-pty-qcqd9rc7.js} +3 -3
- package/dist/chunks/{file-mutation-pt223mrs.js → persistent-pty-qdvny7dy.js} +27 -27
- package/dist/chunks/{file-mutation-2k8khapm.js → persistent-pty-qgn6gcr1.js} +5 -5
- package/dist/chunks/{file-mutation-gwn8bfdv.js → persistent-pty-qjpydtwq.js} +12 -12
- package/dist/chunks/{file-mutation-qnc92qwc.js → persistent-pty-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-mutation-drwq78ky.js → persistent-pty-qqeeq2t9.js} +7 -7
- package/dist/chunks/{file-mutation-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{file-mutation-ac7ncnhk.js → persistent-pty-qt5cx30b.js} +11 -11
- package/dist/chunks/{file-mutation-1acjjqhc.js → persistent-pty-r8xr0va3.js} +4 -4
- package/dist/chunks/{file-mutation-hvj0b7mr.js → persistent-pty-rcxkwv5z.js} +28 -28
- package/dist/chunks/{file-mutation-dgpdmf3x.js → persistent-pty-rd6hvg0x.js} +14 -14
- package/dist/chunks/{file-mutation-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-mutation-rert0e01.js → persistent-pty-rert0e01.js} +2 -2
- package/dist/chunks/{file-mutation-rj3eygr5.js → persistent-pty-rj3eygr5.js} +2 -2
- package/dist/chunks/{file-mutation-f9kwa5z1.js → persistent-pty-rknzs0pv.js} +4 -4
- package/dist/chunks/{file-mutation-t5y9h401.js → persistent-pty-rpb78f7n.js} +14 -14
- package/dist/chunks/{file-mutation-xd863jet.js → persistent-pty-rzbw1wh1.js} +3 -3
- package/dist/chunks/{file-mutation-m1w5mx9z.js → persistent-pty-s35p70fk.js} +15 -15
- package/dist/chunks/{file-mutation-g7mf3f1b.js → persistent-pty-s8gdcm4v.js} +19 -19
- package/dist/chunks/{file-mutation-sa8ekw3f.js → persistent-pty-sa8ekw3f.js} +2 -2
- package/dist/chunks/{file-mutation-gwmhmcrb.js → persistent-pty-skxkwqjc.js} +17 -17
- package/dist/chunks/{file-mutation-0qnqh04t.js → persistent-pty-smz920yp.js} +20 -20
- package/dist/chunks/{file-mutation-gk1bnrwx.js → persistent-pty-srr87szr.js} +45 -45
- package/dist/chunks/{file-mutation-syv4x271.js → persistent-pty-syv4x271.js} +1 -1
- package/dist/chunks/{file-mutation-eaj1djv9.js → persistent-pty-t550f9t1.js} +8 -8
- package/dist/chunks/{file-mutation-pab7dce6.js → persistent-pty-t7xq1rvx.js} +35 -35
- package/dist/chunks/{file-mutation-d9rxxga1.js → persistent-pty-ta2j4myx.js} +13 -13
- package/dist/chunks/{file-mutation-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-mutation-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-mutation-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{file-mutation-tjedn1bk.js → persistent-pty-tfzngn12.js} +4 -4
- package/dist/chunks/{file-mutation-tm0kqsz3.js → persistent-pty-tm0kqsz3.js} +1 -1
- package/dist/chunks/{file-mutation-tyytaxap.js → persistent-pty-tyytaxap.js} +1 -1
- package/dist/chunks/{file-mutation-y4xh0pmk.js → persistent-pty-v0es1rhs.js} +7 -7
- package/dist/chunks/persistent-pty-v1faaxn9.js +18 -0
- package/dist/chunks/{file-mutation-8hxtpvs0.js → persistent-pty-v1vh7s4p.js} +9 -9
- package/dist/chunks/{file-mutation-v7p4zvkq.js → persistent-pty-v7p4zvkq.js} +2 -2
- package/dist/chunks/{file-mutation-ta5zb0rh.js → persistent-pty-vdvtxv0g.js} +11 -11
- package/dist/chunks/{file-mutation-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-dz844g6a.js → persistent-pty-vj0jr9wj.js} +10 -10
- package/dist/chunks/{file-mutation-adaq1q1v.js → persistent-pty-vq1vq1pz.js} +17 -17
- package/dist/chunks/{file-mutation-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-mutation-d2r14fdb.js → persistent-pty-vzx2zc0c.js} +18 -18
- package/dist/chunks/{file-mutation-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-dssbfrwz.js → persistent-pty-wh6zw745.js} +5 -5
- package/dist/chunks/{file-mutation-bjx1sjef.js → persistent-pty-wjr9rjd7.js} +6 -6
- package/dist/chunks/{file-mutation-cm5d2jw8.js → persistent-pty-wq46ym2m.js} +19 -19
- package/dist/chunks/{file-mutation-1cn4nm57.js → persistent-pty-wywgz7yf.js} +5 -5
- package/dist/chunks/{file-mutation-5zeq96ya.js → persistent-pty-x3m0m08t.js} +11 -11
- package/dist/chunks/{file-mutation-db2wf4at.js → persistent-pty-x661k3y3.js} +4 -4
- package/dist/chunks/{file-mutation-6mjtve35.js → persistent-pty-xavrby79.js} +30 -30
- package/dist/chunks/{file-mutation-4k2e73cq.js → persistent-pty-xc69xq2b.js} +4 -4
- package/dist/chunks/{file-mutation-mmhwe7vy.js → persistent-pty-xt80aqtf.js} +11 -11
- package/dist/chunks/{file-mutation-q4mmazg4.js → persistent-pty-xvbq8549.js} +50 -50
- package/dist/chunks/{file-mutation-drw29jx9.js → persistent-pty-xwwprt46.js} +31 -31
- package/dist/chunks/{file-mutation-a262mb36.js → persistent-pty-xxt2ezqw.js} +3 -3
- package/dist/chunks/{file-mutation-ac8cyvxs.js → persistent-pty-xznnwr43.js} +5 -5
- package/dist/chunks/{file-mutation-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-mutation-nhtzdzfz.js → persistent-pty-y2c486td.js} +18 -18
- package/dist/chunks/{file-mutation-k0nnq3t9.js → persistent-pty-y4ysphz6.js} +8 -8
- package/dist/chunks/{file-mutation-y3w7fqgz.js → persistent-pty-y6r2wh3k.js} +4 -4
- package/dist/chunks/{file-mutation-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
- package/dist/chunks/{file-mutation-ne96pfeq.js → persistent-pty-yckpheek.js} +8 -8
- package/dist/chunks/{file-mutation-fs83ex1z.js → persistent-pty-yekxr4c4.js} +7 -7
- package/dist/chunks/{file-mutation-zbm73xeg.js → persistent-pty-ygdgyted.js} +22 -22
- package/dist/chunks/{file-mutation-w6zj4ham.js → persistent-pty-yqvrnr2h.js} +26 -26
- package/dist/chunks/{file-mutation-f29mbr7f.js → persistent-pty-yrcj3v3g.js} +4 -4
- package/dist/chunks/{file-mutation-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-ftk3rmxb.js → persistent-pty-zbrwp585.js} +84 -84
- package/dist/chunks/{file-mutation-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-mutation-f54aqyew.js → persistent-pty-ztymdx1h.js} +30 -30
- package/dist/chunks/{file-mutation-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- 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 +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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 +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- 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 +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- 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 +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +87 -87
- 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 +356 -356
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +105 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- 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 +90 -90
- 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 +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- 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 +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +115 -115
- 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 +124 -124
- 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 +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- 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 +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- 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 +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- 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 +218 -218
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- 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 +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +1 -1
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- 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 +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +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 +226 -226
- 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 +2 -2
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +128 -128
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- 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 +122 -122
- 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 +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- 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 +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 +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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/file-mutation-4695qpbw.js +0 -26
- package/dist/chunks/file-mutation-c5kbbabp.js +0 -513
- package/dist/chunks/file-mutation-cnr7gj8s.js +0 -253
- package/dist/chunks/file-mutation-jqh9b0xq.js +0 -18
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-mutation-2bv980vf.js → persistent-pty-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3t0ybcrp.js → persistent-pty-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-5qd3pb7m.js → persistent-pty-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hcxmzztb.js → persistent-pty-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jze0r7bz.js → persistent-pty-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-m18g726c.js → persistent-pty-m18g726c.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-pkyv6v7h.js → persistent-pty-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-mutation-pyv0edze.js → persistent-pty-pyv0edze.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-ve7vex1e.js → persistent-pty-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wjj7prxr.js → persistent-pty-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service47
|
|
7
|
+
} from "./persistent-pty-j2rccnrs.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-hgz4x7wa.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service44
|
|
13
|
+
} from "./persistent-pty-jgwt99nb.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service65
|
|
16
|
+
} from "./persistent-pty-pg2ndnc9.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service60
|
|
19
|
+
} from "./persistent-pty-drfjywk0.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service52,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-mbnm49ss.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service67,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-6xckhbd5.js";
|
|
34
34
|
import {
|
|
35
35
|
NotFoundError6,
|
|
36
36
|
Service41
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./persistent-pty-6p35b456.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service23
|
|
40
|
+
} from "./persistent-pty-2trkh6np.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./persistent-pty-8b8hkdbs.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell2 = {};
|
|
50
|
+
__export(exports_shell2, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input4,
|
|
53
|
+
Plugin: () => Plugin40,
|
|
54
|
+
ShellTool: () => exports_shell2,
|
|
55
|
+
name: () => name4
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name4 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input4 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin40 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service23;
|
|
124
|
+
const jobs = yield* Service65;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
126
|
+
const environment = yield* Service44;
|
|
127
|
+
const access = yield* Service52;
|
|
128
128
|
const shell = yield* Service41;
|
|
129
|
-
const shellSelect = yield*
|
|
129
|
+
const shellSelect = yield* Service67;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service60;
|
|
132
|
+
const config = yield* Service47;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -148,7 +148,7 @@ var Plugin18 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name4,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin18 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name4,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input4,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name4,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name4];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin40, exports_shell2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service47
|
|
4
|
+
} from "./persistent-pty-j2rccnrs.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/warming.ts
|
|
10
10
|
var exports_warming = {};
|
|
11
11
|
__export(exports_warming, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin34,
|
|
13
13
|
WarmingPlugin: () => exports_warming
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -19,10 +19,10 @@ var defaults = {
|
|
|
19
19
|
interval: Duration.minutes(4),
|
|
20
20
|
duration: Duration.minutes(30)
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Plugin34 = define({
|
|
23
23
|
id: "opencode.warming",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service47;
|
|
26
26
|
const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
|
|
27
27
|
const warming = latest2(yield* config.entries(), "warming");
|
|
28
28
|
if (!warming)
|
|
@@ -96,4 +96,4 @@ var Plugin15 = define({
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin34, exports_warming };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84,
|
|
6
6
|
node88
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-rknzs0pv.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service77,
|
|
11
|
+
node81
|
|
12
|
+
} from "./persistent-pty-0pqkak0b.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service81,
|
|
15
|
+
node85
|
|
16
|
+
} from "./persistent-pty-665ar7wd.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service44,
|
|
19
|
+
node47
|
|
20
|
+
} from "./persistent-pty-jgwt99nb.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service76,
|
|
24
|
+
node80
|
|
25
|
+
} from "./persistent-pty-eywhswxm.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
|
+
Service75,
|
|
34
|
+
node79
|
|
35
|
+
} from "./persistent-pty-888zv9rh.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: () => Service35,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured4,
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node38
|
|
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 Service35 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*
|
|
114
|
+
var layer15 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service81;
|
|
116
|
+
const environment = yield* Service44;
|
|
117
117
|
const bus = yield* Service84;
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
118
|
+
const forms = yield* Service76;
|
|
119
|
+
const integration = yield* Service75;
|
|
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 layer16 = (options) => Layer.effect(Service34, 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 layer16 = (options) => Layer.effect(Service34, 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 layer16 = (options) => Layer.effect(Service34, 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(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 layer16 = (options) => Layer.effect(Service34, 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(Service44, 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 layer16 = (options) => Layer.effect(Service34, 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(Event19.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 layer16 = (options) => Layer.effect(Service34, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service35.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: Service35,
|
|
536
|
+
layer: layer15(options),
|
|
537
|
+
deps: [node85, node47, node88, node80, node79, node81]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node38 = 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, Service35, Options4, layer15, configured4, node38, exports_mcp4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-rknzs0pv.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: () => 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: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
|
+
Reply: () => Reply3,
|
|
25
|
+
Service: () => Service76,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer27,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node80,
|
|
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;
|
|
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 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 NotFoundError8 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 Service76 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer27 = Layer.effect(
|
|
84
|
+
var layer27 = Layer.effect(Service76, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service84;
|
|
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 layer27 = Layer.effect(Service72, 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 Service76.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node80 = makeLocationNode({ service: Service76, layer: layer27, deps: [node88] });
|
|
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, Service76, layer27, node80, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-rknzs0pv.js";
|
|
5
|
+
import {
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./persistent-pty-dktjxkrs.js";
|
|
5
9
|
import {
|
|
6
10
|
Service81,
|
|
7
11
|
node85
|
|
8
|
-
} from "./
|
|
9
|
-
import {
|
|
10
|
-
Service79,
|
|
11
|
-
node83
|
|
12
|
-
} from "./file-mutation-r5vtw57q.js";
|
|
12
|
+
} from "./persistent-pty-665ar7wd.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-v1faaxn9.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service48,
|
|
18
|
+
node52
|
|
19
|
+
} from "./persistent-pty-fxzrhysn.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node23
|
|
22
|
+
} from "./persistent-pty-19gs2232.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service13,
|
|
25
|
+
node15
|
|
26
|
+
} from "./persistent-pty-ft3hqk2c.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
32
|
var exports_location_watcher2 = {};
|
|
33
33
|
__export(exports_location_watcher2, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher2,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service12,
|
|
36
|
+
node: () => node14
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service12 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service81;
|
|
47
|
+
const watcher = yield* Service48;
|
|
48
48
|
const bus = yield* Service84;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
|
+
const policy = yield* Service13;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service12.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node14 = makeLocationNode({
|
|
106
|
+
service: Service12,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node52, FSUtil.node, node85, node87, node88, node23, node15]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service12, node14, exports_location_watcher2 };
|