@opencode/core 0.0.0-dev-20661 → 0.0.0-dev-20669
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 +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{repository-zhf35gm1.js → persistent-pty-0506etc9.js} +32 -32
- package/dist/chunks/{repository-6wjv80df.js → persistent-pty-0bg0bx69.js} +9 -9
- package/dist/chunks/{repository-7zrsqeap.js → persistent-pty-0gaxgzx6.js} +44 -44
- package/dist/chunks/{repository-zfs8ae4p.js → persistent-pty-0me0fk48.js} +4 -4
- package/dist/chunks/{repository-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{repository-0r3c1bmw.js → persistent-pty-0r3c1bmw.js} +2 -2
- package/dist/chunks/{repository-r4xwqsmk.js → persistent-pty-0sez9328.js} +8 -8
- package/dist/chunks/{repository-ceb6shg2.js → persistent-pty-0v4cpg5d.js} +11 -11
- package/dist/chunks/{repository-0vbcp93d.js → persistent-pty-0vbcp93d.js} +2 -2
- package/dist/chunks/{repository-0xezjjjn.js → persistent-pty-0xezjjjn.js} +1 -1
- package/dist/chunks/{repository-sq5ga9n2.js → persistent-pty-0ztzc0rc.js} +26 -26
- package/dist/chunks/{repository-0te6a63x.js → persistent-pty-10w4ymhy.js} +4 -4
- package/dist/chunks/{repository-zze7mas3.js → persistent-pty-1cgges17.js} +11 -11
- package/dist/chunks/{repository-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{repository-0szg9e3a.js → persistent-pty-1m6fh7c4.js} +11 -11
- package/dist/chunks/{repository-2na9pj0b.js → persistent-pty-1tje5prg.js} +19 -19
- package/dist/chunks/{repository-e5p55b06.js → persistent-pty-1vndf96e.js} +7 -7
- package/dist/chunks/{repository-1ghf8zs3.js → persistent-pty-1y9xp183.js} +11 -11
- package/dist/chunks/{repository-d1t6tc1e.js → persistent-pty-22902vxq.js} +5 -5
- package/dist/chunks/{repository-p558d1j2.js → persistent-pty-26ye3vwj.js} +3 -3
- package/dist/chunks/persistent-pty-298ac3tk.js +26 -0
- package/dist/chunks/{repository-748da515.js → persistent-pty-29wpv0c5.js} +17 -17
- package/dist/chunks/{repository-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{repository-10r6pp2x.js → persistent-pty-2dffg0nm.js} +15 -15
- package/dist/chunks/{repository-gpjhh13y.js → persistent-pty-2p3910rq.js} +7 -7
- package/dist/chunks/{repository-qvreyy9g.js → persistent-pty-2p623br6.js} +5 -5
- package/dist/chunks/{repository-az7tb05h.js → persistent-pty-2ss7c3mr.js} +27 -27
- package/dist/chunks/{repository-27b211kq.js → persistent-pty-357jqwce.js} +5 -5
- package/dist/chunks/{repository-ggmrdx7v.js → persistent-pty-35qw0rw5.js} +8 -8
- package/dist/chunks/{repository-8a6ws7jr.js → persistent-pty-3cd9n481.js} +9 -9
- package/dist/chunks/{repository-h2b79v29.js → persistent-pty-3cegwx68.js} +2 -2
- package/dist/chunks/{repository-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{repository-p9q8g7vd.js → persistent-pty-3fktkvc1.js} +4 -4
- package/dist/chunks/{repository-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-yk3hsgx2.js → persistent-pty-3hfxhm5y.js} +8 -8
- package/dist/chunks/{repository-301v9tya.js → persistent-pty-3rp5as3f.js} +35 -35
- package/dist/chunks/{repository-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{repository-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{repository-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
- package/dist/chunks/{repository-qxmaq0sm.js → persistent-pty-4c2df9zx.js} +8 -8
- package/dist/chunks/{repository-r9w3djhf.js → persistent-pty-4rt0ga34.js} +5 -5
- package/dist/chunks/{repository-ecmranas.js → persistent-pty-4rxwbah3.js} +5 -5
- package/dist/chunks/{repository-4ts7tf6z.js → persistent-pty-4ts7tf6z.js} +2 -2
- package/dist/chunks/{repository-7c7bareq.js → persistent-pty-521nt0x3.js} +24 -24
- package/dist/chunks/{repository-ea0ampwz.js → persistent-pty-52m569tx.js} +12 -12
- package/dist/chunks/{repository-54ma36ye.js → persistent-pty-54ma36ye.js} +1 -1
- package/dist/chunks/{repository-5rrf9qge.js → persistent-pty-5cpejcvs.js} +9 -9
- package/dist/chunks/{repository-537jbssw.js → persistent-pty-5d2g1x8f.js} +37 -37
- package/dist/chunks/{repository-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
- package/dist/chunks/{repository-6hvm7cgx.js → persistent-pty-5df9cmzz.js} +13 -13
- package/dist/chunks/{repository-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{repository-2jnxrbr3.js → persistent-pty-5ma40m5t.js} +10 -10
- package/dist/chunks/{repository-16f7tttd.js → persistent-pty-5pv4q8r9.js} +9 -9
- package/dist/chunks/{repository-4a2kvcyx.js → persistent-pty-5pyjqqve.js} +2 -2
- package/dist/chunks/{repository-vgznchvw.js → persistent-pty-5s1hsbk6.js} +8 -8
- package/dist/chunks/{repository-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{repository-f4bkz93y.js → persistent-pty-6nx6vy4k.js} +16 -16
- package/dist/chunks/{repository-6xb47vfp.js → persistent-pty-6xb47vfp.js} +1 -1
- package/dist/chunks/{repository-5g6sbyxh.js → persistent-pty-77gk4895.js} +22 -22
- package/dist/chunks/{repository-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-kyr2t18s.js → persistent-pty-7ce5kxm3.js} +17 -17
- package/dist/chunks/{repository-a1pv9e77.js → persistent-pty-7d99net6.js} +5 -5
- package/dist/chunks/persistent-pty-7fj5dwt0.js +18 -0
- package/dist/chunks/{repository-an4d28vr.js → persistent-pty-7h0zcbyp.js} +20 -20
- package/dist/chunks/{repository-9vk7ehay.js → persistent-pty-7mqrj92y.js} +9 -9
- package/dist/chunks/{repository-zmnepbn3.js → persistent-pty-7y20r9ha.js} +7 -7
- package/dist/chunks/{repository-1dvck2a7.js → persistent-pty-84h8c373.js} +2 -2
- package/dist/chunks/{repository-w1eejvng.js → persistent-pty-84txncab.js} +5 -5
- package/dist/chunks/{repository-afssb52c.js → persistent-pty-86551w19.js} +3 -3
- package/dist/chunks/{repository-vwjb8r2v.js → persistent-pty-86745pec.js} +4 -4
- package/dist/chunks/{repository-zy2zpvm6.js → persistent-pty-8784cf3d.js} +14 -14
- package/dist/chunks/{repository-e7fm67xs.js → persistent-pty-8bz0awby.js} +30 -30
- package/dist/chunks/{repository-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{repository-8t72k94d.js → persistent-pty-8e18ys7f.js} +22 -22
- package/dist/chunks/{repository-h6nxw0pd.js → persistent-pty-8e1b1gzh.js} +8 -8
- package/dist/chunks/{repository-5meya16s.js → persistent-pty-8hmy07yn.js} +10 -10
- package/dist/chunks/{repository-fbtna4cy.js → persistent-pty-8pg7dxp0.js} +40 -40
- package/dist/chunks/{repository-ysv4x97r.js → persistent-pty-8qhgctqz.js} +10 -10
- package/dist/chunks/{repository-ey6rfqvz.js → persistent-pty-8tf08qh4.js} +11 -11
- package/dist/chunks/{repository-tcnkdppf.js → persistent-pty-9475q65j.js} +26 -26
- package/dist/chunks/{repository-07bwtgn1.js → persistent-pty-9bd6ejq3.js} +13 -13
- package/dist/chunks/{repository-74zds2q2.js → persistent-pty-9cbr7v56.js} +41 -41
- package/dist/chunks/{repository-ahx40rxf.js → persistent-pty-9n926yde.js} +23 -23
- package/dist/chunks/{repository-7n7v53sw.js → persistent-pty-9qcn7sxn.js} +9 -9
- package/dist/chunks/{repository-6cpse6c2.js → persistent-pty-9wbvk8fq.js} +13 -13
- package/dist/chunks/{repository-2vn93ng9.js → persistent-pty-9zx59zz6.js} +19 -19
- package/dist/chunks/{repository-vc155zt0.js → persistent-pty-a81vx8af.js} +20 -20
- package/dist/chunks/{repository-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{repository-dgpsrprm.js → persistent-pty-addxnjmp.js} +4 -4
- package/dist/chunks/{repository-nzeef16t.js → persistent-pty-ag19a3sx.js} +15 -15
- package/dist/chunks/{repository-106g6zzb.js → persistent-pty-agb5qaf7.js} +13 -13
- package/dist/chunks/{repository-8b9545xm.js → persistent-pty-ahp8ga40.js} +27 -27
- package/dist/chunks/{repository-cyfxky51.js → persistent-pty-apg4h2pc.js} +33 -33
- package/dist/chunks/{repository-ach6z8vh.js → persistent-pty-arn7aakd.js} +4 -4
- package/dist/chunks/{repository-hmhzhfpw.js → persistent-pty-arnhd4xy.js} +13 -13
- package/dist/chunks/{repository-atxy8ykf.js → persistent-pty-az0ary3d.js} +18 -18
- package/dist/chunks/{repository-b1ajvfw3.js → persistent-pty-b0jkajpy.js} +26 -26
- package/dist/chunks/{repository-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{repository-fxkzw5w5.js → persistent-pty-br5c6tzy.js} +23 -23
- package/dist/chunks/{repository-4zfp2qta.js → persistent-pty-bskkyr8p.js} +20 -20
- package/dist/chunks/{repository-043vq6jw.js → persistent-pty-bsprd9wx.js} +3 -3
- package/dist/chunks/{repository-0xqyf95c.js → persistent-pty-btbmdjwj.js} +4 -4
- package/dist/chunks/{repository-32pp5s05.js → persistent-pty-c0r9zvd5.js} +1 -1
- package/dist/chunks/{repository-grs6z2v9.js → persistent-pty-cfghkxm5.js} +16 -16
- package/dist/chunks/{repository-21jd8v9m.js → persistent-pty-cfm5e1qn.js} +18 -18
- package/dist/chunks/{repository-ccdkjy5j.js → persistent-pty-cg24jcsb.js} +22 -22
- package/dist/chunks/{repository-2jpa8mfg.js → persistent-pty-ch2k8h83.js} +13 -13
- package/dist/chunks/{repository-cwa6csj7.js → persistent-pty-cwa6csj7.js} +2 -2
- package/dist/chunks/{repository-wg56nkx8.js → persistent-pty-d267yb9a.js} +19 -19
- package/dist/chunks/{repository-573jdjzy.js → persistent-pty-d7s6akkx.js} +6 -6
- package/dist/chunks/{repository-0618chc0.js → persistent-pty-de42tf4w.js} +11 -11
- package/dist/chunks/{repository-nhy104pe.js → persistent-pty-dx3f013a.js} +54 -54
- package/dist/chunks/{repository-wmn12sgk.js → persistent-pty-dxwsbt71.js} +3 -3
- package/dist/chunks/{repository-eakgj8q2.js → persistent-pty-e3w9zwct.js} +39 -39
- package/dist/chunks/{repository-cm3vhcv0.js → persistent-pty-e6txpg2e.js} +28 -28
- package/dist/chunks/{repository-eqbnvekh.js → persistent-pty-e8bptm4w.js} +38 -38
- package/dist/chunks/{repository-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{repository-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{repository-4zws30q5.js → persistent-pty-f2vmbes1.js} +20 -20
- package/dist/chunks/{repository-crvx6mgt.js → persistent-pty-f3gemxdz.js} +20 -20
- package/dist/chunks/{repository-71az546q.js → persistent-pty-f75zav2x.js} +2 -2
- package/dist/chunks/persistent-pty-fdh5nygw.js +253 -0
- package/dist/chunks/{repository-7ahbtrex.js → persistent-pty-fk30fwzs.js} +21 -21
- package/dist/chunks/{repository-spgjrcy8.js → persistent-pty-fk41zhkz.js} +69 -69
- package/dist/chunks/{repository-ng56fafc.js → persistent-pty-fky2s0f8.js} +13 -13
- package/dist/chunks/{repository-nj6293bs.js → persistent-pty-fmx4tt35.js} +16 -16
- package/dist/chunks/{repository-10h4ddzz.js → persistent-pty-fpk887gp.js} +14 -14
- package/dist/chunks/{repository-j7071276.js → persistent-pty-ftt6gxvn.js} +5 -5
- package/dist/chunks/{repository-h7sfwyf5.js → persistent-pty-g4kgyb8v.js} +10 -10
- package/dist/chunks/{repository-6h5736te.js → persistent-pty-ga4m96b7.js} +30 -30
- package/dist/chunks/{repository-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{repository-hjm0k3fp.js → persistent-pty-gen41c14.js} +2 -2
- package/dist/chunks/{repository-xa3ghtvx.js → persistent-pty-ghp14vj3.js} +14 -14
- package/dist/chunks/{repository-vnyrj955.js → persistent-pty-gm49ncpz.js} +3 -3
- package/dist/chunks/{repository-z37gfj8r.js → persistent-pty-gm6yrpsp.js} +3 -3
- package/dist/chunks/{repository-vh7fby3r.js → persistent-pty-gxhb85xm.js} +17 -17
- package/dist/chunks/{repository-scp3g09m.js → persistent-pty-h08dbkgj.js} +20 -20
- package/dist/chunks/{repository-7kwx6gx2.js → persistent-pty-h2440tx6.js} +12 -12
- package/dist/chunks/{repository-yevqza3m.js → persistent-pty-h31qzmwk.js} +22 -22
- package/dist/chunks/{repository-bce8mqt3.js → persistent-pty-h3ek80ta.js} +8 -8
- package/dist/chunks/{repository-dnz8myac.js → persistent-pty-h6cyscg9.js} +9 -9
- package/dist/chunks/{repository-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{repository-r44petzp.js → persistent-pty-hafepx0m.js} +5 -5
- package/dist/chunks/{repository-9k8khh75.js → persistent-pty-hbepmwya.js} +17 -17
- package/dist/chunks/{repository-y5dw8kr0.js → persistent-pty-hcgg9rjw.js} +4 -4
- package/dist/chunks/{repository-scgrse2b.js → persistent-pty-hdkng2sj.js} +5 -5
- package/dist/chunks/{repository-kwqsq9eb.js → persistent-pty-hhwj2e48.js} +1 -1
- package/dist/chunks/{repository-1sb13fhj.js → persistent-pty-hqx0pry0.js} +44 -44
- package/dist/chunks/{repository-g5pr0hqg.js → persistent-pty-hycxdhqj.js} +5 -5
- package/dist/chunks/{repository-d9kqsdy4.js → persistent-pty-hyyhpv4k.js} +16 -16
- package/dist/chunks/{repository-n4hagvcf.js → persistent-pty-j1nc06n8.js} +16 -16
- package/dist/chunks/{repository-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{repository-4b9xfex1.js → persistent-pty-j9n9pc60.js} +18 -18
- package/dist/chunks/{repository-gmmdfr2g.js → persistent-pty-jervv9x6.js} +8 -8
- package/dist/chunks/{repository-b4twkq7r.js → persistent-pty-jktqzjpa.js} +4 -4
- package/dist/chunks/{repository-4mg116vk.js → persistent-pty-js61yr7p.js} +25 -25
- package/dist/chunks/{repository-rgbeeb12.js → persistent-pty-jsa646dy.js} +20 -20
- package/dist/chunks/{repository-1pt39jfx.js → persistent-pty-jvwcg364.js} +9 -9
- package/dist/chunks/{repository-hz0q9sdq.js → persistent-pty-k1qrnqst.js} +8 -8
- package/dist/chunks/{repository-6sxn0fyv.js → persistent-pty-k7110n80.js} +15 -15
- package/dist/chunks/{repository-xvr70the.js → persistent-pty-k7cee5jt.js} +73 -73
- package/dist/chunks/{repository-n8se905m.js → persistent-pty-k81m5qp3.js} +6 -6
- package/dist/chunks/{repository-9e5bzkjp.js → persistent-pty-kb9j3d72.js} +3 -3
- package/dist/chunks/{repository-he1ycz2s.js → persistent-pty-khmd8m6z.js} +4 -4
- package/dist/chunks/{repository-vwctd27t.js → persistent-pty-kqa5e0am.js} +4 -4
- package/dist/chunks/{repository-0kfggb32.js → persistent-pty-m0n08mcv.js} +4 -4
- package/dist/chunks/{repository-s8xbmvwb.js → persistent-pty-m2n5k0pa.js} +15 -15
- package/dist/chunks/{repository-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
- package/dist/chunks/{repository-yt3fxxnb.js → persistent-pty-m5z203ha.js} +4 -4
- package/dist/chunks/{repository-h3g0cwjn.js → persistent-pty-m854cfv5.js} +23 -23
- package/dist/chunks/{repository-ja8t3wh1.js → persistent-pty-m93asd28.js} +25 -25
- package/dist/chunks/{repository-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-33w4ejhs.js → persistent-pty-mfqp6xfm.js} +9 -9
- package/dist/chunks/{repository-9gaqynqt.js → persistent-pty-mgwdcceq.js} +3 -3
- package/dist/chunks/{repository-xw8eq9f1.js → persistent-pty-mjagy123.js} +5 -5
- package/dist/chunks/persistent-pty-mkjk8jrs.js +507 -0
- package/dist/chunks/{repository-fxgyesrr.js → persistent-pty-mwvn72c5.js} +12 -12
- package/dist/chunks/{repository-tvx3ewvr.js → persistent-pty-mzz5dc6v.js} +21 -21
- package/dist/chunks/{repository-n1n192bv.js → persistent-pty-n1n192bv.js} +1 -1
- package/dist/chunks/{repository-dj68pnee.js → persistent-pty-n9arjmkd.js} +4 -4
- package/dist/chunks/{repository-mqjzjjf0.js → persistent-pty-nkkndsd1.js} +7 -7
- package/dist/chunks/{repository-x9gjp2wb.js → persistent-pty-nm065sa1.js} +12 -12
- package/dist/chunks/{repository-205k8jhr.js → persistent-pty-nm4z1r83.js} +35 -35
- package/dist/chunks/{repository-j4dqt27y.js → persistent-pty-npwr55pz.js} +11 -11
- package/dist/chunks/{repository-magykp64.js → persistent-pty-nrdmrqsx.js} +4 -4
- package/dist/chunks/{repository-ns3eape4.js → persistent-pty-ns3eape4.js} +1 -1
- package/dist/chunks/{repository-dpkg50ah.js → persistent-pty-nxm207yx.js} +4 -4
- package/dist/chunks/{repository-bvjh5av3.js → persistent-pty-nzzpqbc2.js} +10 -10
- package/dist/chunks/{repository-g0445xdp.js → persistent-pty-p42hj8p8.js} +8 -8
- package/dist/chunks/{repository-benv41rp.js → persistent-pty-pbvkggcp.js} +9 -9
- package/dist/chunks/{repository-afr26chb.js → persistent-pty-pfhprg9x.js} +11 -11
- package/dist/chunks/{repository-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{repository-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{repository-nttvqnzt.js → persistent-pty-pmp1zjsv.js} +28 -28
- package/dist/chunks/{repository-n7avb6m5.js → persistent-pty-pvg1c9ct.js} +5 -5
- package/dist/chunks/{repository-dmqk4yfk.js → persistent-pty-q0tnsqxz.js} +11 -11
- package/dist/chunks/{repository-q0xm7vwc.js → persistent-pty-q0xm7vwc.js} +2 -2
- package/dist/chunks/{repository-rvnx9ynj.js → persistent-pty-qb4zbeaq.js} +15 -15
- package/dist/chunks/{repository-stye60hc.js → persistent-pty-qdtfwvft.js} +27 -27
- package/dist/chunks/{repository-fcrkznn8.js → persistent-pty-qgn6gcr1.js} +5 -5
- package/dist/chunks/{repository-my8tnftd.js → persistent-pty-qh933se3.js} +11 -11
- package/dist/chunks/{repository-b513f556.js → persistent-pty-qmx6320q.js} +12 -12
- package/dist/chunks/{repository-qnc92qwc.js → persistent-pty-qnc92qwc.js} +1 -1
- package/dist/chunks/{repository-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{repository-t3vv4d42.js → persistent-pty-qtd03s71.js} +13 -13
- package/dist/chunks/{repository-tcmvd7z0.js → persistent-pty-qw79ank0.js} +41 -41
- package/dist/chunks/{repository-xyafkbt0.js → persistent-pty-qxjc9qry.js} +3 -3
- package/dist/chunks/{repository-ry924fh6.js → persistent-pty-r1zwgjtb.js} +38 -38
- package/dist/chunks/{repository-a1gpj94z.js → persistent-pty-r5x6zcsm.js} +3 -3
- package/dist/chunks/{repository-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{repository-4sb6t3m1.js → persistent-pty-rgak4h0z.js} +43 -43
- package/dist/chunks/{repository-1acjjqhc.js → persistent-pty-rhraev7y.js} +4 -4
- package/dist/chunks/{repository-379b4hhp.js → persistent-pty-rx3pmkf6.js} +8 -8
- package/dist/chunks/{repository-ryr25ayn.js → persistent-pty-ryr25ayn.js} +1 -1
- package/dist/chunks/{repository-j07em0ca.js → persistent-pty-rzeq28dk.js} +42 -42
- package/dist/chunks/{repository-yqvvg513.js → persistent-pty-s3jwpk2a.js} +21 -21
- package/dist/chunks/{repository-wnmdvmz6.js → persistent-pty-s8tkytec.js} +16 -16
- package/dist/chunks/{repository-btcfg8pa.js → persistent-pty-sc360z45.js} +12 -12
- package/dist/chunks/{repository-9r8ns7n8.js → persistent-pty-sdbgje86.js} +16 -16
- package/dist/chunks/{repository-4pm1k6b6.js → persistent-pty-sg1gpmh1.js} +4 -4
- package/dist/chunks/{repository-dxr8fvgz.js → persistent-pty-shan7gyw.js} +24 -24
- package/dist/chunks/{repository-kg7g3ey4.js → persistent-pty-sp1327tm.js} +12 -12
- package/dist/chunks/{repository-h79eb4wf.js → persistent-pty-sx1dxn2r.js} +27 -27
- package/dist/chunks/{repository-pcr95nxz.js → persistent-pty-t8p3xnq8.js} +18 -18
- package/dist/chunks/{repository-y1j8epp9.js → persistent-pty-tadk88n8.js} +23 -23
- package/dist/chunks/{repository-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{repository-z8bvm205.js → persistent-pty-tbzz0ayx.js} +9 -9
- package/dist/chunks/{repository-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{repository-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{repository-40gcpxzn.js → persistent-pty-tf5fdwac.js} +26 -26
- package/dist/chunks/{repository-d0zee6yx.js → persistent-pty-thpxvrkg.js} +4 -4
- package/dist/chunks/{repository-wer47y7e.js → persistent-pty-tjp24hfy.js} +11 -11
- package/dist/chunks/{repository-kmy91h7k.js → persistent-pty-tjtsnnc4.js} +3 -3
- package/dist/chunks/{repository-9z6cmhkq.js → persistent-pty-tq524sjs.js} +3 -3
- package/dist/chunks/{repository-fwj22sb9.js → persistent-pty-twmcj6bq.js} +14 -14
- package/dist/chunks/{repository-tcay1cqt.js → persistent-pty-v6gb7zv2.js} +6 -6
- package/dist/chunks/{repository-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{repository-w7d850mj.js → persistent-pty-vfyjaks7.js} +17 -17
- package/dist/chunks/{repository-d29nyfm4.js → persistent-pty-vh5e817s.js} +22 -22
- package/dist/chunks/{repository-krry4gk1.js → persistent-pty-vvtb55vm.js} +37 -37
- package/dist/chunks/{repository-4ya93pvd.js → persistent-pty-vwgces70.js} +35 -35
- package/dist/chunks/{repository-btfhnvjh.js → persistent-pty-vx3jgdek.js} +3 -3
- package/dist/chunks/{repository-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
- package/dist/chunks/{repository-g5w8qwbj.js → persistent-pty-w19d8598.js} +7 -7
- package/dist/chunks/{repository-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-8vwp8w5g.js → persistent-pty-w6evsh6e.js} +18 -18
- package/dist/chunks/{repository-xdkfhf58.js → persistent-pty-w8n4d140.js} +48 -48
- package/dist/chunks/{repository-7ge4ak7p.js → persistent-pty-wctfcgtb.js} +6 -6
- package/dist/chunks/{repository-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{repository-wh6zw745.js → persistent-pty-wh6zw745.js} +2 -2
- package/dist/chunks/{repository-dax2f43k.js → persistent-pty-wqywrvhs.js} +83 -83
- package/dist/chunks/{repository-5j13w0pe.js → persistent-pty-wrg7f32p.js} +19 -19
- package/dist/chunks/{repository-jxnv3vs9.js → persistent-pty-wrkdkjy5.js} +3 -3
- package/dist/chunks/{repository-s8d7rejh.js → persistent-pty-wv396vej.js} +8 -8
- package/dist/chunks/{repository-2f8h2t77.js → persistent-pty-x09jwv3t.js} +21 -21
- package/dist/chunks/{repository-td335a07.js → persistent-pty-xg9719v1.js} +28 -28
- package/dist/chunks/{repository-xkntkrq7.js → persistent-pty-xkntkrq7.js} +2 -2
- package/dist/chunks/{repository-5za7wpg2.js → persistent-pty-xkysk5pe.js} +15 -15
- package/dist/chunks/{repository-551p5xfx.js → persistent-pty-xpn67gvy.js} +35 -35
- package/dist/chunks/{repository-18g4yb7e.js → persistent-pty-xqg5y7pg.js} +24 -24
- package/dist/chunks/{repository-8qvzptz7.js → persistent-pty-xxndcd6m.js} +4 -4
- package/dist/chunks/{repository-w2c5pkxk.js → persistent-pty-xza0jhs5.js} +171 -171
- package/dist/chunks/{repository-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{repository-kqkwtn5n.js → persistent-pty-y84ejm2m.js} +20 -20
- package/dist/chunks/{repository-ravgrsv5.js → persistent-pty-ycc3dskp.js} +11 -11
- package/dist/chunks/{repository-ngkc5a6n.js → persistent-pty-ygszv6dm.js} +5 -5
- package/dist/chunks/{repository-xgwzhbhd.js → persistent-pty-ypg0fq7f.js} +14 -14
- package/dist/chunks/{repository-kadwda11.js → persistent-pty-yrn1qewd.js} +35 -35
- package/dist/chunks/{repository-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{repository-f1ry7jgz.js → persistent-pty-zebcfbc6.js} +25 -25
- package/dist/chunks/{repository-t7n9q6bq.js → persistent-pty-zee1rnkq.js} +4 -4
- package/dist/chunks/{repository-w9vf9qqj.js → persistent-pty-zg3tcem2.js} +9 -9
- package/dist/chunks/{repository-94heg7e8.js → persistent-pty-zn7sg468.js} +32 -32
- package/dist/chunks/{repository-64s65d1n.js → persistent-pty-zq6stcrg.js} +5 -5
- package/dist/chunks/{repository-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{repository-mm07xyj9.js → persistent-pty-zrm98xgn.js} +34 -34
- package/dist/chunks/{repository-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- 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 +90 -90
- 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 +102 -102
- package/dist/config/plugin/skill.js +137 -137
- 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 +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 +83 -83
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +2 -2
- package/dist/filesystem/location-watcher.js +220 -220
- 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 +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- 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 +99 -99
- 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 +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +107 -107
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- 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/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- 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 +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +211 -211
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- 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 +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- 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 +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +207 -207
- package/dist/session/usage.js +1 -1
- package/dist/session.js +203 -203
- 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 +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +89 -89
- 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 +124 -124
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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 +1 -1
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +92 -92
- 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 +2 -2
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/repository-9sh4wc5j.js +0 -18
- package/dist/chunks/repository-bj0bcwj5.js +0 -26
- package/dist/chunks/repository-ssby7wmp.js +0 -507
- package/dist/chunks/repository-tkybgs2z.js +0 -253
- /package/dist/chunks/{repository-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{repository-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{repository-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-34c7v6d4.js → persistent-pty-34c7v6d4.js} +0 -0
- /package/dist/chunks/{repository-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-3t0ybcrp.js → persistent-pty-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{repository-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{repository-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-5qd3pb7m.js → persistent-pty-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{repository-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{repository-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{repository-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{repository-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{repository-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key4,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
|
|
|
18
18
|
diffByKey: () => diffByKey2,
|
|
19
19
|
empty: () => empty3,
|
|
20
20
|
hash: () => hash2,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make22,
|
|
22
22
|
read: () => read3,
|
|
23
23
|
removed: () => removed2,
|
|
24
24
|
renderInitial: () => renderInitial2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key4 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,21 +36,21 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key4) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key4
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
var empty3 = [];
|
|
53
|
-
function
|
|
53
|
+
function make22(source) {
|
|
54
54
|
const decode = Schema.decodeUnknownOption(source.codec);
|
|
55
55
|
const encode = Schema.encodeSync(source.codec);
|
|
56
56
|
const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key4, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make22, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-thpxvrkg.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-e8bptm4w.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service79,
|
|
15
|
+
node83
|
|
16
|
+
} from "./persistent-pty-29wpv0c5.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: () => Info5,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service23,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node26
|
|
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 Info5, 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,11 +54,11 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service23 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
61
|
+
const location = yield* Service79;
|
|
62
62
|
const bus = yield* Service83;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service25, 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(Info5));
|
|
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(Service25, 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 Service23.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(Service25, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node26 = makeLocationNode({
|
|
191
|
+
service: Service23,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node83, node87]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info5, Mode2, DiffError2, InitializeError2, Service23, node26, exports_vcs };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-gm6yrpsp.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-thpxvrkg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service63
|
|
9
|
+
} from "./persistent-pty-v6gb7zv2.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-gftt206x.js";
|
|
16
16
|
import {
|
|
17
17
|
NotFoundError9,
|
|
18
18
|
PromptConflictError2,
|
|
@@ -20,38 +20,38 @@ import {
|
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-bsprd9wx.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service66
|
|
29
|
+
} from "./persistent-pty-sp1327tm.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
Service61
|
|
34
|
+
} from "./persistent-pty-shan7gyw.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
36
|
+
Service59
|
|
37
|
+
} from "./persistent-pty-vvtb55vm.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./persistent-pty-ghp14vj3.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./persistent-pty-hyyhpv4k.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./persistent-pty-pbvkggcp.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./persistent-pty-9qcn7sxn.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
55
55
|
|
|
56
56
|
// src/session/session.ts
|
|
57
57
|
var exports_session2 = {};
|
|
@@ -65,10 +65,10 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
65
65
|
var make14 = Effect.fn("Session.make")(function* () {
|
|
66
66
|
const bus = yield* Service83;
|
|
67
67
|
const database = yield* Service84;
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
68
|
+
const store = yield* Service66;
|
|
69
|
+
const instances = yield* Service63;
|
|
70
|
+
const execution = yield* Service59;
|
|
71
|
+
const admission = yield* Service61;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
@@ -135,7 +135,7 @@ var make14 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service63, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make14 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service63, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
183
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service63, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service63, instances), Effect.provideService(Service84, database), Effect.provideService(Service83, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service63, instances), Effect.provideService(Service83, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service52
|
|
3
|
+
} from "./persistent-pty-8e18ys7f.js";
|
|
4
4
|
import {
|
|
5
5
|
unavailable3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-wv396vej.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-z5v4ffb3.js";
|
|
10
10
|
import {
|
|
11
11
|
File2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service82
|
|
13
|
+
} from "./persistent-pty-0ztzc0rc.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service79
|
|
16
|
+
} from "./persistent-pty-29wpv0c5.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin2
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -30,17 +30,17 @@ import { Global } from "@opencode/util/global";
|
|
|
30
30
|
import { sameDirectory } from "@opencode/util/path";
|
|
31
31
|
import { dirname, join } from "path";
|
|
32
32
|
import { Effect, PubSub, Semaphore, Stream } from "effect";
|
|
33
|
-
var
|
|
33
|
+
var Plugin2 = define({
|
|
34
34
|
id: "opencode.config.instruction",
|
|
35
35
|
effect: Effect.fn(function* () {
|
|
36
|
-
const discovery = yield*
|
|
36
|
+
const discovery = yield* Service82;
|
|
37
37
|
if (!discovery.project && !discovery.global)
|
|
38
38
|
return;
|
|
39
39
|
yield* Effect.gen(function* () {
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
|
-
const location = yield*
|
|
43
|
-
const watcher = yield*
|
|
42
|
+
const location = yield* Service79;
|
|
43
|
+
const watcher = yield* Service52;
|
|
44
44
|
const changes = yield* PubSub.sliding(1);
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
const start = yield* fs.resolve(location.directory);
|
|
@@ -115,4 +115,4 @@ function ancestorDirectories(start, stop) {
|
|
|
115
115
|
return [start, ...ancestorDirectories(dirname(start), stop)];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export {
|
|
118
|
+
export { Plugin2, exports_instruction };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-2a5m3afh.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service79
|
|
9
|
+
} from "./persistent-pty-29wpv0c5.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service56
|
|
12
|
+
} from "./persistent-pty-521nt0x3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service26
|
|
15
|
+
} from "./persistent-pty-8784cf3d.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-fk30fwzs.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service65
|
|
24
|
+
} from "./persistent-pty-rzeq28dk.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service17
|
|
27
|
+
} from "./persistent-pty-j9n9pc60.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input6,
|
|
37
|
+
Output: () => Output3,
|
|
38
|
+
Plugin: () => Plugin42,
|
|
39
|
+
name: () => name6,
|
|
40
|
+
toModelContent: () => toModelContent4
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name6 = "glob";
|
|
46
|
+
var Input6 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input9 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output3 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent4 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin42 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service56;
|
|
70
|
+
const ripgrep = yield* Service26;
|
|
71
|
+
const location = yield* Service79;
|
|
72
|
+
const access = yield* Service17;
|
|
73
|
+
const permission = yield* Service65;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name6,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input6,
|
|
79
|
+
output: Output3,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name6,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin11 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent4(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name6, Input6, Output3, toModelContent4, Plugin42, exports_glob };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-thpxvrkg.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID15,
|
|
20
|
+
Info: () => Info25,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service77,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer24,
|
|
29
|
+
node: () => node81,
|
|
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 Info25 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID15
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID15
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID15
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID15,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service77 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var layer24 = Layer.effect(Service77, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service83;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID15.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer25 = Layer.effect(Service78, 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 Service77.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node81 = makeLocationNode({ service: Service77, layer: layer24, deps: [node87] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID15, Info25, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service77, layer24, node81, validateAnswer2, validateFields2, exports_form, Event18 };
|