@opencode/core 0.0.0-dev-19812 → 0.0.0-dev-19815
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 +82 -82
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{ripgrep-t41ab7wk.js → file-mutation-07nzwxsz.js} +9 -9
- package/dist/chunks/{ripgrep-135zn4ta.js → file-mutation-0eg4rpj5.js} +50 -50
- package/dist/chunks/{ripgrep-t550f9t1.js → file-mutation-0gdmqesm.js} +4 -4
- package/dist/chunks/{ripgrep-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-yf540f63.js → file-mutation-0pkscahp.js} +15 -15
- package/dist/chunks/{ripgrep-0q0f95c6.js → file-mutation-0q0f95c6.js} +1 -1
- package/dist/chunks/{ripgrep-p7wr61jb.js → file-mutation-0q6eeezy.js} +5 -5
- package/dist/chunks/{ripgrep-71xfkcdx.js → file-mutation-0tg136y5.js} +9 -9
- package/dist/chunks/{ripgrep-bd4r2s1a.js → file-mutation-0x4jbnkh.js} +44 -44
- package/dist/chunks/{ripgrep-w8dfjvzm.js → file-mutation-1awtappa.js} +20 -20
- package/dist/chunks/{ripgrep-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-6hh8kjz6.js → file-mutation-1tve5nz8.js} +8 -8
- package/dist/chunks/{ripgrep-4ms8cvn9.js → file-mutation-1xebqrby.js} +43 -43
- package/dist/chunks/{ripgrep-dyagwqbw.js → file-mutation-1xv6ggcd.js} +37 -37
- package/dist/chunks/{ripgrep-wvq10dhv.js → file-mutation-1yaa2472.js} +8 -8
- package/dist/chunks/{ripgrep-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-pm0s3t7d.js → file-mutation-25835ps7.js} +19 -19
- package/dist/chunks/{ripgrep-gtfpvnfh.js → file-mutation-25r2jws7.js} +15 -15
- package/dist/chunks/file-mutation-2680q31g.js +65 -0
- package/dist/chunks/{ripgrep-q289wsms.js → file-mutation-272j0xxc.js} +7 -7
- package/dist/chunks/{ripgrep-1gterc69.js → file-mutation-27hdnw63.js} +13 -13
- package/dist/chunks/{ripgrep-z63w68vq.js → file-mutation-29x78va6.js} +6 -6
- package/dist/chunks/{ripgrep-pjds5a1t.js → file-mutation-2a234wtm.js} +26 -26
- package/dist/chunks/{ripgrep-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-qqy7xhhx.js → file-mutation-2r0aj5wh.js} +3 -3
- package/dist/chunks/{ripgrep-qx6ay3k3.js → file-mutation-2vw86sre.js} +28 -28
- package/dist/chunks/{ripgrep-ymyt7haz.js → file-mutation-349ahzma.js} +21 -21
- package/dist/chunks/{ripgrep-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-mh1qkymb.js → file-mutation-3hdyanjz.js} +4 -4
- package/dist/chunks/{ripgrep-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-cpd8602d.js → file-mutation-3hn2t390.js} +19 -19
- package/dist/chunks/{ripgrep-eq20ba7x.js → file-mutation-3rqkssp8.js} +6 -6
- package/dist/chunks/{ripgrep-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-yqwasm36.js → file-mutation-3wwmjj1e.js} +18 -18
- package/dist/chunks/{ripgrep-14p23t01.js → file-mutation-3yxkz7nw.js} +46 -46
- package/dist/chunks/{ripgrep-egqspz5t.js → file-mutation-3zbb0e4x.js} +11 -11
- package/dist/chunks/{ripgrep-8pk0vt9k.js → file-mutation-42ybwkjg.js} +15 -15
- package/dist/chunks/{ripgrep-knb7evpn.js → file-mutation-44ke2mar.js} +2 -2
- package/dist/chunks/{ripgrep-17602m8n.js → file-mutation-4dxew0jv.js} +6 -6
- package/dist/chunks/{ripgrep-prnfm6s2.js → file-mutation-4khym028.js} +4 -4
- package/dist/chunks/{ripgrep-3rsmh9bb.js → file-mutation-4rys938p.js} +23 -23
- package/dist/chunks/{ripgrep-hxpmbfxm.js → file-mutation-4vg93jqq.js} +13 -13
- package/dist/chunks/{ripgrep-caeeqckt.js → file-mutation-4ym5jtja.js} +30 -30
- package/dist/chunks/{ripgrep-0r7yqxbf.js → file-mutation-510m7gjw.js} +5 -5
- package/dist/chunks/{ripgrep-1ygqh575.js → file-mutation-56gdpj1q.js} +9 -9
- package/dist/chunks/{ripgrep-a0pddpcz.js → file-mutation-5aj0q20a.js} +29 -29
- package/dist/chunks/{ripgrep-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-kqcs6pzm.js → file-mutation-5ft7ers2.js} +11 -11
- package/dist/chunks/file-mutation-5fvgv7y0.js +26 -0
- package/dist/chunks/{ripgrep-ejzm5bey.js → file-mutation-5jwj12zg.js} +4 -4
- package/dist/chunks/{ripgrep-dg7130wh.js → file-mutation-5jyrccsa.js} +27 -27
- package/dist/chunks/{ripgrep-7nvstvty.js → file-mutation-5p7phca6.js} +42 -42
- package/dist/chunks/{ripgrep-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-sf6ccvgz.js → file-mutation-5zrd1yp0.js} +10 -10
- package/dist/chunks/{ripgrep-ey6276gs.js → file-mutation-618kh5az.js} +183 -182
- package/dist/chunks/{ripgrep-mfhfdr54.js → file-mutation-64kphnzf.js} +4 -4
- package/dist/chunks/{ripgrep-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-6h73sxmp.js → file-mutation-6h73sxmp.js} +1 -1
- package/dist/chunks/file-mutation-6kdq0pjd.js +4 -0
- package/dist/chunks/{ripgrep-6msgmcgs.js → file-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-05czfhhv.js → file-mutation-6pcefmbq.js} +27 -27
- package/dist/chunks/{ripgrep-stx8bz6x.js → file-mutation-6vew141g.js} +5 -5
- package/dist/chunks/{ripgrep-r0x7c0b1.js → file-mutation-7a9f7nwj.js} +22 -22
- package/dist/chunks/{ripgrep-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-7dqw4kz8.js → file-mutation-7dqw4kz8.js} +1 -1
- package/dist/chunks/{ripgrep-3xc0bepy.js → file-mutation-7ea56vch.js} +9 -9
- package/dist/chunks/{ripgrep-8srhhjp8.js → file-mutation-7ehb06f5.js} +23 -23
- package/dist/chunks/{ripgrep-ngg3x1tr.js → file-mutation-7hf3hesr.js} +4 -4
- package/dist/chunks/{ripgrep-nmq6ymmq.js → file-mutation-7m15pt6c.js} +31 -31
- package/dist/chunks/{ripgrep-vmjkkbv8.js → file-mutation-7m9w9bvj.js} +10 -10
- package/dist/chunks/{ripgrep-8q7cq0y1.js → file-mutation-7w99qc9d.js} +3 -3
- package/dist/chunks/{ripgrep-ryr25ayn.js → file-mutation-806j49yq.js} +4 -4
- package/dist/chunks/{ripgrep-14nch4p9.js → file-mutation-83w0rrj2.js} +32 -32
- package/dist/chunks/{ripgrep-p4ajb0r8.js → file-mutation-89sbf2tr.js} +3 -3
- package/dist/chunks/{ripgrep-ahd542yp.js → file-mutation-8aaqm6qj.js} +8 -8
- package/dist/chunks/{ripgrep-s1ayrrqq.js → file-mutation-8ar1z498.js} +13 -13
- package/dist/chunks/{ripgrep-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-88v965ed.js → file-mutation-8d81dgab.js} +8 -8
- package/dist/chunks/{ripgrep-vcn0tswg.js → file-mutation-8gwfkhjz.js} +12 -12
- package/dist/chunks/{ripgrep-2f81mqye.js → file-mutation-8hbb8fdq.js} +4 -4
- package/dist/chunks/{ripgrep-9fxx88z5.js → file-mutation-8hpm3er8.js} +45 -45
- package/dist/chunks/{ripgrep-9z1feey3.js → file-mutation-8hvq2ep8.js} +15 -15
- package/dist/chunks/{ripgrep-90xbkf1m.js → file-mutation-8mhg0p4j.js} +3 -3
- package/dist/chunks/{ripgrep-8p4f9s12.js → file-mutation-8p4f9s12.js} +2 -2
- package/dist/chunks/{ripgrep-9cx0nyab.js → file-mutation-8q83d4tx.js} +15 -15
- package/dist/chunks/{ripgrep-vbwt2byz.js → file-mutation-8ymss7tz.js} +5 -5
- package/dist/chunks/{ripgrep-kbtn0gvj.js → file-mutation-969z9wtq.js} +47 -47
- package/dist/chunks/{ripgrep-2hcfq88c.js → file-mutation-9d7xkn7g.js} +17 -17
- package/dist/chunks/{ripgrep-mhg7kg7t.js → file-mutation-9xw9w00h.js} +16 -16
- package/dist/chunks/{ripgrep-zwjrcp72.js → file-mutation-a0t9nbea.js} +3 -3
- package/dist/chunks/{ripgrep-a1bz86dw.js → file-mutation-a1bz86dw.js} +3 -3
- package/dist/chunks/{ripgrep-d5r70txb.js → file-mutation-a43a3g9h.js} +10 -10
- package/dist/chunks/{ripgrep-qbgzzech.js → file-mutation-a7h69g84.js} +72 -72
- package/dist/chunks/{ripgrep-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-57ez7d0k.js → file-mutation-aamtrqep.js} +9 -9
- package/dist/chunks/{ripgrep-hkfg6fzm.js → file-mutation-af04s6ss.js} +5 -5
- package/dist/chunks/{ripgrep-37s12vcn.js → file-mutation-ag9w8cw1.js} +5 -5
- package/dist/chunks/{ripgrep-cky7jn4a.js → file-mutation-akrwbyqx.js} +37 -37
- package/dist/chunks/{ripgrep-axvqvry5.js → file-mutation-an8v9wk2.js} +47 -47
- package/dist/chunks/{ripgrep-2m6ftvg3.js → file-mutation-b0kddjqc.js} +90 -90
- package/dist/chunks/{ripgrep-t7fksv2z.js → file-mutation-b5a5chs4.js} +11 -11
- package/dist/chunks/{ripgrep-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-0z8vjex2.js → file-mutation-bdqrk2vk.js} +7 -7
- package/dist/chunks/{ripgrep-tj1h49fw.js → file-mutation-beq4zmjh.js} +6 -6
- package/dist/chunks/{ripgrep-vwwhhmge.js → file-mutation-bew5cyq4.js} +32 -32
- package/dist/chunks/{ripgrep-hfmtk0wz.js → file-mutation-bzbtqdde.js} +1 -1
- package/dist/chunks/{ripgrep-dn383c3j.js → file-mutation-cbje66mk.js} +17 -17
- package/dist/chunks/{ripgrep-cfpkc3c9.js → file-mutation-cfpkc3c9.js} +2 -2
- package/dist/chunks/{ripgrep-pa8pe2x7.js → file-mutation-cmwkp3r5.js} +8 -8
- package/dist/chunks/{ripgrep-paz2y578.js → file-mutation-cpbpaj6d.js} +25 -25
- package/dist/chunks/file-mutation-ctefx7dc.js +18 -0
- package/dist/chunks/{ripgrep-kmh62sce.js → file-mutation-cvkwxbsz.js} +27 -27
- package/dist/chunks/{ripgrep-s3pw955p.js → file-mutation-cwe02ca0.js} +11 -11
- package/dist/chunks/{ripgrep-djszqvmq.js → file-mutation-d4he2qe1.js} +9 -9
- package/dist/chunks/{ripgrep-nkrzdj13.js → file-mutation-ddszz877.js} +5 -5
- package/dist/chunks/{ripgrep-818pfwc9.js → file-mutation-dhwr7h25.js} +11 -11
- package/dist/chunks/{ripgrep-c4k4dnr2.js → file-mutation-dm5eaebf.js} +40 -40
- package/dist/chunks/{ripgrep-5y91esw8.js → file-mutation-e1qag84x.js} +22 -22
- package/dist/chunks/file-mutation-e2h1d8z0.js +492 -0
- package/dist/chunks/{ripgrep-5qd3pb7m.js → file-mutation-e3qxr5gk.js} +2 -2
- package/dist/chunks/{ripgrep-e3d6n7ca.js → file-mutation-e8qyrgb1.js} +15 -23
- package/dist/chunks/{ripgrep-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-k58mf6j0.js → file-mutation-emkv37r5.js} +17 -17
- package/dist/chunks/{ripgrep-erw5rpbs.js → file-mutation-erw5rpbs.js} +2 -2
- package/dist/chunks/{ripgrep-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-n0723yqh.js → file-mutation-ett7491z.js} +15 -15
- package/dist/chunks/{ripgrep-jh6yv6jp.js → file-mutation-eyrsk2wr.js} +19 -19
- package/dist/chunks/{ripgrep-2hb99qqb.js → file-mutation-f3fzf6ct.js} +30 -30
- package/dist/chunks/{ripgrep-n6mzjwwn.js → file-mutation-f4zk55g1.js} +10 -10
- package/dist/chunks/{ripgrep-f828m53h.js → file-mutation-f828m53h.js} +2 -2
- package/dist/chunks/{ripgrep-gmpw826m.js → file-mutation-fb10pz29.js} +23 -23
- package/dist/chunks/{ripgrep-n9yj8kwm.js → file-mutation-ff2d2r5m.js} +17 -17
- package/dist/chunks/{ripgrep-zdecw2c9.js → file-mutation-fjvq75r9.js} +30 -30
- package/dist/chunks/{ripgrep-19yyczty.js → file-mutation-fk7y4jkk.js} +11 -11
- package/dist/chunks/{ripgrep-r01j3116.js → file-mutation-fradymh3.js} +8 -8
- package/dist/chunks/{ripgrep-8cd4z6z0.js → file-mutation-ft2kdwr0.js} +40 -40
- package/dist/chunks/{ripgrep-bj0j6qyc.js → file-mutation-fvhrn3gk.js} +5 -5
- package/dist/chunks/{ripgrep-fxbjtjnd.js → file-mutation-fxbjtjnd.js} +1 -1
- package/dist/chunks/{ripgrep-kjad9j46.js → file-mutation-fz059jzw.js} +3 -3
- package/dist/chunks/{ripgrep-cn9dh10h.js → file-mutation-fzw6vb94.js} +32 -32
- package/dist/chunks/{ripgrep-7qne91zt.js → file-mutation-g1q4s0jw.js} +23 -23
- package/dist/chunks/{ripgrep-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-fdbc3gda.js → file-mutation-gdaj5aat.js} +19 -19
- package/dist/chunks/{ripgrep-t45wd2f1.js → file-mutation-gdsttb99.js} +4 -4
- package/dist/chunks/{ripgrep-e1enepvt.js → file-mutation-ghfgp0c3.js} +28 -28
- package/dist/chunks/{ripgrep-y5hpfjhw.js → file-mutation-gpsxp3jx.js} +32 -32
- package/dist/chunks/{ripgrep-s64k6dbj.js → file-mutation-grdqhvxd.js} +25 -25
- package/dist/chunks/{ripgrep-gv6a8nnw.js → file-mutation-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-g9yyzkqa.js → file-mutation-h2g1afwd.js} +11 -11
- package/dist/chunks/{ripgrep-v60wn0qp.js → file-mutation-h2mtz7rf.js} +20 -20
- package/dist/chunks/{ripgrep-afed7ext.js → file-mutation-h53tpazp.js} +12 -12
- package/dist/chunks/{ripgrep-shh6fz4q.js → file-mutation-h6jr292a.js} +4 -4
- package/dist/chunks/{ripgrep-5mtzsd3b.js → file-mutation-h6r3nrb9.js} +4 -4
- package/dist/chunks/{ripgrep-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-t6msp11s.js → file-mutation-h7w9m21h.js} +6 -6
- package/dist/chunks/{ripgrep-3bqr18yv.js → file-mutation-hfbvy1sn.js} +16 -16
- package/dist/chunks/{ripgrep-yyf6wefc.js → file-mutation-hfdv8wax.js} +8 -8
- package/dist/chunks/{ripgrep-zvfnjsma.js → file-mutation-hk26yxvn.js} +12 -12
- package/dist/chunks/{ripgrep-zcyyg4pk.js → file-mutation-hm06wjfd.js} +96 -96
- package/dist/chunks/{ripgrep-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-pj7cm4a7.js → file-mutation-jb05x9cx.js} +60 -60
- package/dist/chunks/{ripgrep-hs2a3b3x.js → file-mutation-jh7y3ak4.js} +9 -9
- package/dist/chunks/{ripgrep-pg7x47cv.js → file-mutation-jp61ynmd.js} +20 -20
- package/dist/chunks/{ripgrep-ktznxcr1.js → file-mutation-jxt024yh.js} +22 -22
- package/dist/chunks/{ripgrep-hw4xfg24.js → file-mutation-jyzcxg5d.js} +17 -17
- package/dist/chunks/{ripgrep-0t9h8sys.js → file-mutation-k1grr621.js} +26 -26
- package/dist/chunks/{ripgrep-k3c624dm.js → file-mutation-k3c624dm.js} +3 -3
- package/dist/chunks/{ripgrep-kf7s4xja.js → file-mutation-kbgxh5wd.js} +11 -11
- package/dist/chunks/{ripgrep-xs8bgbnm.js → file-mutation-kdbxf4qp.js} +9 -9
- package/dist/chunks/{ripgrep-764fh7qq.js → file-mutation-khgmt31j.js} +18 -18
- package/dist/chunks/{ripgrep-pw9v3g6d.js → file-mutation-kjfdeayr.js} +8 -8
- package/dist/chunks/{ripgrep-zyvvry14.js → file-mutation-kkhsm4n5.js} +27 -27
- package/dist/chunks/{ripgrep-2k71kv7p.js → file-mutation-kkp8zx71.js} +4 -4
- package/dist/chunks/{ripgrep-rpg9c19m.js → file-mutation-kne8f3cn.js} +4 -4
- package/dist/chunks/{ripgrep-m3fdjcah.js → file-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{ripgrep-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-7amtwfv5.js → file-mutation-ma79mf5h.js} +26 -25
- package/dist/chunks/{ripgrep-hnstydcq.js → file-mutation-mfk1rbdv.js} +31 -31
- package/dist/chunks/{ripgrep-fw0n9c34.js → file-mutation-mgscsna9.js} +20 -20
- package/dist/chunks/{ripgrep-5bydv4zf.js → file-mutation-mn433rsw.js} +13 -13
- package/dist/chunks/{ripgrep-hc3z6ty8.js → file-mutation-mrhf43mr.js} +13 -13
- package/dist/chunks/{ripgrep-73tb2d7t.js → file-mutation-mvfsc1pv.js} +3 -3
- package/dist/chunks/{ripgrep-zcfzy7jy.js → file-mutation-mx4jkr8z.js} +9 -9
- package/dist/chunks/{ripgrep-d0k1g5nx.js → file-mutation-mx9vqzsb.js} +6 -6
- package/dist/chunks/{ripgrep-fkv3tvmb.js → file-mutation-mzrbxmyd.js} +11 -11
- package/dist/chunks/{ripgrep-2yxhe8rz.js → file-mutation-n0rcm67m.js} +22 -22
- package/dist/chunks/{ripgrep-0anfjktx.js → file-mutation-n22ydv4n.js} +11 -11
- package/dist/chunks/{ripgrep-47qmnyy5.js → file-mutation-nk6ab3nm.js} +16 -16
- package/dist/chunks/{ripgrep-5frpvc34.js → file-mutation-nng2ktcm.js} +2 -2
- package/dist/chunks/{ripgrep-ed4jhkrr.js → file-mutation-npnjm836.js} +11 -11
- package/dist/chunks/{ripgrep-mtjk0yh9.js → file-mutation-nxp2ndre.js} +2 -2
- package/dist/chunks/{ripgrep-p28j5sbe.js → file-mutation-p28j5sbe.js} +2 -2
- package/dist/chunks/{ripgrep-qmhk62hb.js → file-mutation-pdb8ga4w.js} +12 -12
- package/dist/chunks/{ripgrep-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-m2d0j7c0.js → file-mutation-pnv527nz.js} +9 -9
- package/dist/chunks/{ripgrep-aaj2p223.js → file-mutation-ptkbcdgn.js} +11 -11
- package/dist/chunks/{ripgrep-x7cxrgta.js → file-mutation-q26d77qc.js} +11 -11
- package/dist/chunks/{ripgrep-54pbzxnk.js → file-mutation-q58h1swb.js} +18 -18
- package/dist/chunks/{ripgrep-4nnddwb9.js → file-mutation-q5k1gk2r.js} +26 -26
- package/dist/chunks/{ripgrep-25bf7f5x.js → file-mutation-q643w91n.js} +5 -5
- package/dist/chunks/{ripgrep-tn3fb21q.js → file-mutation-q85fv5sm.js} +52 -52
- package/dist/chunks/{ripgrep-kt1f9n97.js → file-mutation-qjj0dw3c.js} +39 -39
- package/dist/chunks/{ripgrep-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-gb7ervf3.js → file-mutation-qz49fwgp.js} +6 -6
- package/dist/chunks/{ripgrep-x0p2edan.js → file-mutation-qz5dz7fn.js} +19 -19
- package/dist/chunks/{ripgrep-3cshwv8b.js → file-mutation-r1q2hccy.js} +19 -19
- package/dist/chunks/{ripgrep-dy30gtq0.js → file-mutation-r2h83j2n.js} +7 -7
- package/dist/chunks/{ripgrep-ggkags7h.js → file-mutation-r98d5qx5.js} +9 -9
- package/dist/chunks/{ripgrep-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-1zkdfxnx.js → file-mutation-rk9tjfwx.js} +14 -14
- package/dist/chunks/{ripgrep-wk5z6jzv.js → file-mutation-s1kvmffy.js} +9 -9
- package/dist/chunks/{ripgrep-yrznvahk.js → file-mutation-s4enseaf.js} +2 -2
- package/dist/chunks/{ripgrep-v4djrp1d.js → file-mutation-s8wea8bx.js} +16 -16
- package/dist/chunks/{ripgrep-9093ft31.js → file-mutation-sbydz4ep.js} +6 -6
- package/dist/chunks/{ripgrep-skqsy7ey.js → file-mutation-se8haf2r.js} +3 -3
- package/dist/chunks/{ripgrep-5vrw4q23.js → file-mutation-sm4ygxtf.js} +4 -4
- package/dist/chunks/{ripgrep-6n6txemt.js → file-mutation-szbjyn1k.js} +12 -12
- package/dist/chunks/{ripgrep-2mkxn96z.js → file-mutation-t9mj6jt2.js} +12 -12
- package/dist/chunks/{ripgrep-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-89znhe33.js → file-mutation-tcezcvh9.js} +4 -4
- package/dist/chunks/{ripgrep-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-z4swd48g.js → file-mutation-tf439zmr.js} +32 -32
- package/dist/chunks/{ripgrep-bf8atwev.js → file-mutation-tfthf431.js} +11 -11
- package/dist/chunks/{ripgrep-3bxd3j1q.js → file-mutation-tgkhkf8q.js} +8 -8
- package/dist/chunks/{ripgrep-3ntreqen.js → file-mutation-th6pfvs0.js} +31 -31
- package/dist/chunks/{ripgrep-gryp532t.js → file-mutation-tvs3qzmc.js} +30 -30
- package/dist/chunks/{ripgrep-tvtrv512.js → file-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-b0mp8gvf.js → file-mutation-tvzz1vvx.js} +35 -35
- package/dist/chunks/{ripgrep-7r38cm17.js → file-mutation-tz0rw111.js} +43 -43
- package/dist/chunks/{ripgrep-143me7bn.js → file-mutation-v3qe9rs0.js} +22 -22
- package/dist/chunks/{ripgrep-y2sxgdnx.js → file-mutation-v9spj19e.js} +23 -23
- package/dist/chunks/{ripgrep-xhd2r5mb.js → file-mutation-vackyeka.js} +10 -10
- package/dist/chunks/{ripgrep-j5a0rw3y.js → file-mutation-vb0h7fes.js} +33 -33
- package/dist/chunks/{ripgrep-pmr4s4kc.js → file-mutation-ve4pfa0n.js} +4 -4
- package/dist/chunks/{ripgrep-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-yyn6n238.js → file-mutation-vf8xkcyd.js} +13 -13
- package/dist/chunks/{ripgrep-6571xj0k.js → file-mutation-vfmrq4xs.js} +4 -4
- package/dist/chunks/{ripgrep-bajakh74.js → file-mutation-vkxpz7g2.js} +4 -4
- package/dist/chunks/{ripgrep-wreshrrc.js → file-mutation-vndk1130.js} +27 -27
- package/dist/chunks/{ripgrep-g190xswt.js → file-mutation-vsp1fds9.js} +21 -21
- package/dist/chunks/{ripgrep-b2kw7jbn.js → file-mutation-vvqa46qn.js} +32 -32
- package/dist/chunks/{ripgrep-dandedvx.js → file-mutation-vxfja19v.js} +3 -3
- package/dist/chunks/{ripgrep-wwajdw47.js → file-mutation-vynmvp9h.js} +9 -9
- package/dist/chunks/{ripgrep-rrvdcwb8.js → file-mutation-vyxtkag7.js} +36 -36
- package/dist/chunks/{ripgrep-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-6p659vat.js → file-mutation-w15v5k7j.js} +10 -10
- package/dist/chunks/file-mutation-w1v3sb82.js +252 -0
- package/dist/chunks/{ripgrep-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-pr3r74r8.js → file-mutation-w9jrmyp1.js} +24 -24
- package/dist/chunks/{ripgrep-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-1v1e6ee9.js → file-mutation-whtqb0a0.js} +33 -33
- package/dist/chunks/{ripgrep-jvbjhzb9.js → file-mutation-wqexvhqz.js} +1 -1
- package/dist/chunks/{ripgrep-fch79rh9.js → file-mutation-wy8b5sm2.js} +1 -1
- package/dist/chunks/{ripgrep-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-rp2wkk18.js → file-mutation-x2kz3kd9.js} +12 -12
- package/dist/chunks/{ripgrep-eatbj8ff.js → file-mutation-x2ncb56t.js} +24 -24
- package/dist/chunks/{ripgrep-drwq78ky.js → file-mutation-xfkkasph.js} +4 -4
- package/dist/chunks/{ripgrep-36nh78em.js → file-mutation-xnetyx8p.js} +11 -11
- package/dist/chunks/{ripgrep-55ep0f0m.js → file-mutation-xpjszw2w.js} +14 -14
- package/dist/chunks/{ripgrep-787j17s7.js → file-mutation-xw3aqcjm.js} +18 -18
- package/dist/chunks/{ripgrep-9gqm56s8.js → file-mutation-xyd70p3w.js} +17 -17
- package/dist/chunks/{ripgrep-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-y71avatq.js → file-mutation-y71avatq.js} +1 -1
- package/dist/chunks/{ripgrep-3262rvz8.js → file-mutation-y8gdy8xa.js} +11 -11
- package/dist/chunks/{ripgrep-d17v2seq.js → file-mutation-yd2f7xje.js} +22 -22
- package/dist/chunks/{ripgrep-vb972p95.js → file-mutation-ye41kewf.js} +17 -17
- package/dist/chunks/{ripgrep-p0xmwpxx.js → file-mutation-yjvamrjh.js} +15 -15
- package/dist/chunks/{ripgrep-19v4a8v1.js → file-mutation-ymnk3hjs.js} +26 -26
- package/dist/chunks/{ripgrep-f77kvyx9.js → file-mutation-ymw7bbdm.js} +9 -9
- package/dist/chunks/{ripgrep-yp2x3t23.js → file-mutation-yp2x3t23.js} +1 -1
- package/dist/chunks/{ripgrep-ycwh9915.js → file-mutation-yq432fpn.js} +27 -27
- package/dist/chunks/{ripgrep-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-9jbvj98d.js → file-mutation-yw8t9dwe.js} +8 -8
- package/dist/chunks/{ripgrep-1q4danzp.js → file-mutation-yxc72q6g.js} +17 -17
- package/dist/chunks/{ripgrep-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-zeh9ct20.js → file-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-zz1yydc9.js → file-mutation-zgr90j8v.js} +50 -50
- package/dist/chunks/{ripgrep-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-207ajt2h.js → file-mutation-zw4pk1bw.js} +5 -5
- package/dist/chunks/{ripgrep-y0mykrjf.js → file-mutation-zxfw9cda.js} +5 -5
- package/dist/chunks/{ripgrep-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/chunks/{ripgrep-5bssef41.js → file-mutation-zzm21s8t.js} +10 -10
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +80 -80
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +125 -125
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +92 -92
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +224 -224
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +102 -102
- 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 +98 -98
- 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/id/id.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 +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +95 -95
- package/dist/model.js +99 -99
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/compaction.js +132 -132
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- 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 +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- 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 +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 +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +98 -98
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- 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 +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +219 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +13 -13
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +90 -90
- 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 +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/types/tool.d.ts +3 -0
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/ripgrep-0mesazry.js +0 -4
- package/dist/chunks/ripgrep-959fz07v.js +0 -26
- package/dist/chunks/ripgrep-bpc11pn8.js +0 -65
- package/dist/chunks/ripgrep-cgzmgrgv.js +0 -492
- package/dist/chunks/ripgrep-jyfacthb.js +0 -252
- package/dist/chunks/ripgrep-pf31ssb9.js +0 -18
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → file-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-twg0f83k.js → file-mutation-twg0f83k.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./file-mutation-t9mj6jt2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service76,
|
|
7
|
+
node80
|
|
8
|
+
} from "./file-mutation-emkv37r5.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service57,
|
|
14
|
+
node59
|
|
15
|
+
} from "./file-mutation-s8wea8bx.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service7,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node9
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service7 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const bus = yield*
|
|
37
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
38
|
+
const bus = yield* Service82;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
41
|
-
const location = yield*
|
|
40
|
+
const store = yield* Service57;
|
|
41
|
+
const location = yield* Service76;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service7.of({ load });
|
|
88
88
|
}));
|
|
89
89
|
function previouslyInjected(store, sessionID) {
|
|
90
90
|
return Effect.gen(function* () {
|
|
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
|
|
|
95
95
|
function describePath(root, path) {
|
|
96
96
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var node9 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [
|
|
101
|
+
deps: [node86, FSUtil.node, node80, node59]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service7, node9, exports_instructions };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service68
|
|
3
|
+
} from "./file-mutation-w9jrmyp1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service27,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-4vg93jqq.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service13
|
|
11
|
+
} from "./file-mutation-xw3aqcjm.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service55
|
|
14
|
+
} from "./file-mutation-zgr90j8v.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service21
|
|
17
|
+
} from "./file-mutation-q58h1swb.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
28
|
Input: () => Input6,
|
|
29
29
|
Output: () => Output5,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin7,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
32
|
name: () => name6,
|
|
33
|
-
toModelContent: () =>
|
|
33
|
+
toModelContent: () => toModelContent3
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
@@ -48,15 +48,15 @@ var Output5 = Schema.Struct({
|
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent3 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin7 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service21;
|
|
56
|
+
const fileMutation = yield* Service27;
|
|
57
|
+
const environment = yield* Service68;
|
|
58
|
+
const formatter = yield* Service13;
|
|
59
|
+
const permission = yield* Service55;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
61
|
name: name6,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent3(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export { name6, Input6, Output5,
|
|
101
|
+
export { name6, Input6, Output5, toModelContent3, Plugin7, exports_write };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-vb0h7fes.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service62
|
|
7
|
+
} from "./file-mutation-an8v9wk2.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-beq4zmjh.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/lmstudio.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -31,12 +31,12 @@ var RemoteModel = Schema.Struct({
|
|
|
31
31
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
32
32
|
var discovery = new Map;
|
|
33
33
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
34
|
-
function
|
|
34
|
+
function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
35
35
|
return define({
|
|
36
36
|
id: "opencode.provider.lmstudio",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
38
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service62;
|
|
40
40
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
41
41
|
const loaded = { models: [], hash: "[]" };
|
|
42
42
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ function make5(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
63
63
|
});
|
|
64
64
|
for (const item of loaded.models) {
|
|
65
65
|
providers.models.update(providerID, item.key, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID12.make(item.key);
|
|
67
67
|
model.name = item.display_name || item.key;
|
|
68
68
|
model.family = item.architecture ? Family2.make(item.architecture) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -125,7 +125,7 @@ function make5(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var LMStudioPlugin2 =
|
|
128
|
+
var LMStudioPlugin2 = make7();
|
|
129
129
|
function configured(entries, origin) {
|
|
130
130
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
131
131
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -142,4 +142,4 @@ function configured(entries, origin) {
|
|
|
142
142
|
return { baseURL, apiKey, endpoint: url.toString() };
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export {
|
|
145
|
+
export { make7, LMStudioPlugin2 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./file-mutation-t9mj6jt2.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service76,
|
|
11
|
+
node80
|
|
12
|
+
} from "./file-mutation-emkv37r5.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID13,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
18
|
+
Service75,
|
|
19
|
+
node79,
|
|
20
|
+
Event17
|
|
21
|
+
} from "./file-mutation-whtqb0a0.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/model.ts
|
|
27
27
|
var exports_model2 = {};
|
|
@@ -29,25 +29,25 @@ __export(exports_model2, {
|
|
|
29
29
|
Capabilities: () => Capabilities2,
|
|
30
30
|
Compatibility: () => Compatibility2,
|
|
31
31
|
Cost: () => Cost2,
|
|
32
|
-
Event: () =>
|
|
32
|
+
Event: () => Event16,
|
|
33
33
|
Family: () => Family2,
|
|
34
|
-
ID: () =>
|
|
35
|
-
Info: () =>
|
|
34
|
+
ID: () => ID12,
|
|
35
|
+
Info: () => Info26,
|
|
36
36
|
Model: () => exports_model2,
|
|
37
37
|
ReasoningField: () => ReasoningField2,
|
|
38
38
|
Ref: () => Ref2,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service74,
|
|
40
40
|
VariantID: () => VariantID2,
|
|
41
41
|
compatibility: () => compatibility2,
|
|
42
|
-
node: () =>
|
|
42
|
+
node: () => node78,
|
|
43
43
|
parse: () => parse4
|
|
44
44
|
});
|
|
45
45
|
import { Model } from "@opencode/schema/model";
|
|
46
46
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
47
47
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
48
48
|
import { freeze } from "immer";
|
|
49
|
-
import { Event as
|
|
50
|
-
var
|
|
49
|
+
import { Event as Event16 } from "@opencode/schema/model";
|
|
50
|
+
var ID12 = Model.ID;
|
|
51
51
|
var VariantID2 = Model.VariantID;
|
|
52
52
|
var Family2 = Model.Family;
|
|
53
53
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -55,14 +55,14 @@ var Compatibility2 = Model.Compatibility;
|
|
|
55
55
|
var Capabilities2 = Model.Capabilities;
|
|
56
56
|
var Cost2 = Model.Cost;
|
|
57
57
|
var Ref2 = Model.Ref;
|
|
58
|
-
var
|
|
58
|
+
var Info26 = Model.Info;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service74 extends Context.Service()("@opencode/Model") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const providers = yield*
|
|
64
|
-
const bus = yield*
|
|
65
|
-
const location = yield*
|
|
62
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
63
|
+
const providers = yield* Service75;
|
|
64
|
+
const bus = yield* Service82;
|
|
65
|
+
const location = yield* Service76;
|
|
66
66
|
let input;
|
|
67
67
|
const state = create3({
|
|
68
68
|
name: "model",
|
|
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
107
107
|
const models = writable(providerID);
|
|
108
108
|
if (!models)
|
|
109
109
|
return;
|
|
110
|
-
const model = draft(providerID, modelID) ??
|
|
110
|
+
const model = draft(providerID, modelID) ?? Info26.default(providerID, modelID);
|
|
111
111
|
update(model);
|
|
112
112
|
model.id = modelID;
|
|
113
113
|
model.providerID = providerID;
|
|
@@ -196,8 +196,8 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
196
196
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
|
-
yield* bus.subscribe(
|
|
200
|
-
return
|
|
199
|
+
yield* bus.subscribe(Event17.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
200
|
+
return Service74.of({
|
|
201
201
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
202
202
|
reload,
|
|
203
203
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -216,7 +216,7 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}));
|
|
219
|
-
var
|
|
219
|
+
var node78 = makeLocationNode({ service: Service74, layer, deps: [node79, node86, node80] });
|
|
220
220
|
function compatibility2(input) {
|
|
221
221
|
if (typeof input === "string")
|
|
222
222
|
return { reasoningField: input };
|
|
@@ -227,9 +227,9 @@ function compatibility2(input) {
|
|
|
227
227
|
function parse4(input) {
|
|
228
228
|
const index = input.indexOf("/");
|
|
229
229
|
return {
|
|
230
|
-
providerID:
|
|
231
|
-
modelID:
|
|
230
|
+
providerID: ID13.make(index === -1 ? input : input.slice(0, index)),
|
|
231
|
+
modelID: ID12.make(index === -1 ? "" : input.slice(index + 1))
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
export {
|
|
235
|
+
export { ID12, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, Cost2, Ref2, Info26, Service74, node78, compatibility2, parse4, exports_model2, Event16 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/skills.ts
|
|
6
6
|
var exports_skills = {};
|
|
7
7
|
__export(exports_skills, {
|
|
8
8
|
ConfigSkillsV1: () => exports_skills,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info18
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info18 = Schema.Struct({
|
|
13
13
|
paths: Schema.optional(Schema.Array(Schema.String)).annotate({
|
|
14
14
|
description: "Additional paths to skill folders"
|
|
15
15
|
}),
|
|
@@ -18,4 +18,4 @@ var Info13 = Schema.Struct({
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info18, exports_skills };
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ModelInitializationError3,
|
|
6
6
|
UnresolvedProviderVariablesError3,
|
|
7
7
|
UnsupportedCompactionError3,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service65,
|
|
9
|
+
node67
|
|
10
|
+
} from "./file-mutation-5p7phca6.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-7w99qc9d.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/runner/model.ts
|
|
19
19
|
var exports_model = {};
|
|
@@ -22,13 +22,13 @@ __export(exports_model, {
|
|
|
22
22
|
ModelInitializationError: () => ModelInitializationError2,
|
|
23
23
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
24
24
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service46,
|
|
26
26
|
SessionRunnerModel: () => exports_model,
|
|
27
27
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
28
28
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
29
29
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
30
30
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node48,
|
|
32
32
|
resolved: () => resolved2
|
|
33
33
|
});
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
|
|
|
57
57
|
var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
|
|
58
58
|
var UnsupportedCompactionError2 = UnsupportedCompactionError3;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service46 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
61
61
|
}
|
|
62
62
|
var resolved2 = (model, options) => ({
|
|
63
63
|
model,
|
|
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
|
|
|
72
72
|
compaction: options.compaction,
|
|
73
73
|
transport: options.transport
|
|
74
74
|
});
|
|
75
|
-
var layer = Layer.effect(
|
|
76
|
-
const resolver = yield*
|
|
77
|
-
return
|
|
75
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
76
|
+
const resolver = yield* Service65;
|
|
77
|
+
return Service46.of({
|
|
78
78
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
79
79
|
if (!session.model) {
|
|
80
80
|
const resolved = yield* resolver.resolve();
|
|
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
94
|
}));
|
|
95
|
-
var
|
|
95
|
+
var node48 = makeLocationNode({ service: Service46, layer, deps: [node67] });
|
|
96
96
|
|
|
97
|
-
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
97
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service46, resolved2, node48, exports_model };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiFailedResponseHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-550bvhaj.js";
|
|
4
4
|
import {
|
|
5
5
|
convertToOpenAIResponsesInput2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-j5zkgpj8.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAIResponseFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-3asan66x.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareResponsesTools2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-zw4pk1bw.js";
|
|
13
13
|
|
|
14
14
|
// src/github-copilot/responses/openai-responses-language-model.ts
|
|
15
15
|
import {
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-0gdmqesm.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-a1bz86dw.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./file-mutation-t9mj6jt2.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-mutation-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: () => Event20,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID17,
|
|
20
|
+
Info: () => Info33,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError11,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service80,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer25,
|
|
29
|
+
node: () => node84,
|
|
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 Event20 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID17 = Form.ID;
|
|
39
|
+
var Info33 = 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 NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID17
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError9 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID17
|
|
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: ID17
|
|
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: ID17,
|
|
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 Service80 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer25 = Layer.effect(Service80, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service82;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError11({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID17.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -159,9 +159,9 @@ var layer24 = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
159
159
|
closed = true;
|
|
160
160
|
}).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 })));
|
|
161
161
|
yield* Effect.addFinalizer(() => close);
|
|
162
|
-
return
|
|
162
|
+
return Service80.of({ create, ask, get, list, state, reply, cancel, close });
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
164
|
+
var node84 = makeLocationNode({ service: Service80, layer: layer25, deps: [node86] });
|
|
165
165
|
function validateAnswer2(form, answer) {
|
|
166
166
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
167
167
|
for (const key of Object.keys(answer)) {
|
|
@@ -313,4 +313,4 @@ function isDateTime(value) {
|
|
|
313
313
|
return !Number.isNaN(new Date(value).getTime());
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
export {
|
|
316
|
+
export { ID17, Info33, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError11, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service80, layer25, node84, validateAnswer2, validateFields2, exports_form, Event20 };
|