@opencode/core 0.0.0-dev-20069 → 0.0.0-dev-20073
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 +81 -81
- 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/{ripgrep-nxq64296.js → session-082mf624.js} +20 -20
- package/dist/chunks/{ripgrep-trqv73xc.js → session-09q98ahy.js} +20 -20
- package/dist/chunks/{ripgrep-w28p7srs.js → session-0et63zm2.js} +13 -13
- package/dist/chunks/{ripgrep-s8zy8myc.js → session-0f9afca0.js} +5 -5
- package/dist/chunks/{ripgrep-0paq2nw3.js → session-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-r6h5nhyv.js → session-0pk8cwnc.js} +23 -23
- package/dist/chunks/{ripgrep-y67gsgy6.js → session-18e56dsp.js} +4 -4
- package/dist/chunks/{ripgrep-yp2x3t23.js → session-1acjjqhc.js} +4 -4
- package/dist/chunks/{ripgrep-fhgj836q.js → session-1cy1yc7t.js} +17 -17
- package/dist/chunks/{ripgrep-k1qrnqst.js → session-1dangqhw.js} +8 -8
- package/dist/chunks/{ripgrep-1dazxqgg.js → session-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-mzywpf3p.js → session-1ed2t66p.js} +4 -4
- package/dist/chunks/{ripgrep-g8d3gcyj.js → session-1g7epwpd.js} +4 -4
- package/dist/chunks/{ripgrep-c8fzc5kk.js → session-1m4dbgn5.js} +3 -3
- package/dist/chunks/{ripgrep-95en9f50.js → session-1pp65zvy.js} +12 -12
- package/dist/chunks/{ripgrep-r3va1q30.js → session-1qc33g3f.js} +18 -18
- package/dist/chunks/{ripgrep-j4ab9r48.js → session-1qd6zwxj.js} +3 -3
- package/dist/chunks/{ripgrep-7tr6rhhd.js → session-1vrp706b.js} +10 -10
- package/dist/chunks/{ripgrep-wamfr8ew.js → session-1x9a1gz7.js} +9 -9
- package/dist/chunks/{ripgrep-21r38tys.js → session-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-myhvmvaw.js → session-224bnkwn.js} +16 -16
- package/dist/chunks/{ripgrep-2402vzrj.js → session-2402vzrj.js} +1 -1
- package/dist/chunks/{ripgrep-1se9s7cd.js → session-28tmsh5x.js} +5 -5
- package/dist/chunks/{ripgrep-45xdrqn4.js → session-29ft4m47.js} +44 -44
- package/dist/chunks/{ripgrep-2a5m3afh.js → session-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-0w5b0zhk.js → session-2fy0z0n6.js} +22 -22
- package/dist/chunks/{ripgrep-72bztqfg.js → session-2h8yhswq.js} +31 -31
- package/dist/chunks/{ripgrep-607tc6va.js → session-2k8khapm.js} +5 -5
- package/dist/chunks/{ripgrep-22159n9k.js → session-2kyz4xeg.js} +23 -23
- package/dist/chunks/{ripgrep-9q81rv62.js → session-2m6j0f52.js} +9 -9
- package/dist/chunks/{ripgrep-dhmh7aw6.js → session-2vs2nh1n.js} +4 -4
- package/dist/chunks/{ripgrep-rdf5zzeq.js → session-2xdpq94x.js} +24 -24
- package/dist/chunks/{ripgrep-e37h8kwf.js → session-34nv4jvf.js} +12 -12
- package/dist/chunks/{ripgrep-6j042nns.js → session-37gcj9j5.js} +16 -16
- package/dist/chunks/{ripgrep-8n3vm8hr.js → session-3bj9cxk1.js} +11 -11
- package/dist/chunks/{ripgrep-65rfk13t.js → session-3c2x13s4.js} +21 -21
- package/dist/chunks/{ripgrep-ak95znyc.js → session-3ds7w9ed.js} +3 -3
- package/dist/chunks/{ripgrep-3fc6dm20.js → session-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → session-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-thf27y4c.js → session-3ke3thr6.js} +10 -10
- package/dist/chunks/{ripgrep-9kdsp20r.js → session-3sk23fa1.js} +5 -5
- package/dist/chunks/{ripgrep-3smtnn6g.js → session-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → session-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-2hr6k3wd.js → session-3ynb5crc.js} +17 -17
- package/dist/chunks/{ripgrep-3zsf4n22.js → session-3zsf4n22.js} +1 -1
- package/dist/chunks/{ripgrep-hsqtqw31.js → session-4254mex4.js} +43 -43
- package/dist/chunks/{ripgrep-knb7evpn.js → session-44ke2mar.js} +2 -2
- package/dist/chunks/{ripgrep-fxfc3qkp.js → session-4cws6bdd.js} +3 -3
- package/dist/chunks/{ripgrep-z1a2kmfk.js → session-4gqw2btn.js} +15 -15
- package/dist/chunks/{ripgrep-h0yqkzt5.js → session-4n5s23d0.js} +14 -14
- package/dist/chunks/{ripgrep-h3yfa6ks.js → session-4r2b4trr.js} +50 -50
- package/dist/chunks/{ripgrep-54tcyq79.js → session-54tcyq79.js} +2 -2
- package/dist/chunks/{ripgrep-56gdpj1q.js → session-56gdpj1q.js} +2 -2
- package/dist/chunks/{ripgrep-57ez7d0k.js → session-57ez7d0k.js} +2 -2
- package/dist/chunks/{ripgrep-nacy1b3s.js → session-58gk62s0.js} +11 -11
- package/dist/chunks/{ripgrep-h8t8zj8w.js → session-5bd5rwjf.js} +5 -5
- package/dist/chunks/{ripgrep-5daktx2q.js → session-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-5ekn9679.js → session-5ekn9679.js} +1 -1
- package/dist/chunks/{ripgrep-drsj7rnm.js → session-5s2s3s9g.js} +37 -37
- package/dist/chunks/{ripgrep-5t3nmthw.js → session-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-68y7phbn.js → session-607q5haz.js} +5 -5
- package/dist/chunks/{ripgrep-gjbcvzr2.js → session-62jhn0qh.js} +2 -2
- package/dist/chunks/{ripgrep-669tq793.js → session-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-pp3p6rz8.js → session-6j27hweg.js} +23 -23
- package/dist/chunks/session-6kdq0pjd.js +4 -0
- package/dist/chunks/{ripgrep-4dnzmhzq.js → session-6m4px3sx.js} +8 -8
- package/dist/chunks/{ripgrep-6msgmcgs.js → session-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-5q70a6nc.js → session-6ss97yeq.js} +2 -2
- package/dist/chunks/{ripgrep-7yh4e7ss.js → session-73tb2d7t.js} +3 -3
- package/dist/chunks/{ripgrep-5jcjmpah.js → session-77ry6d7j.js} +7 -7
- package/dist/chunks/{ripgrep-sh5yyyta.js → session-78j00qgw.js} +4 -4
- package/dist/chunks/{ripgrep-7bmhse3q.js → session-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-febc8204.js → session-7eemwt38.js} +4 -4
- package/dist/chunks/{ripgrep-c6smxwme.js → session-7eygmad2.js} +16 -16
- package/dist/chunks/{ripgrep-a4ddpw0g.js → session-7kadqazm.js} +20 -20
- package/dist/chunks/{ripgrep-zq2g0th5.js → session-7kjtkbs4.js} +11 -11
- package/dist/chunks/{ripgrep-ahd542yp.js → session-7m5f9412.js} +8 -8
- package/dist/chunks/{ripgrep-vvccsdf3.js → session-81rrwt6s.js} +6 -6
- package/dist/chunks/{ripgrep-t9ym9qvh.js → session-87deq66t.js} +8 -8
- package/dist/chunks/{ripgrep-89znhe33.js → session-89znhe33.js} +1 -1
- package/dist/chunks/{ripgrep-yagfenz7.js → session-8b88e4ff.js} +68 -68
- package/dist/chunks/{ripgrep-8d7r5vzw.js → session-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-jf99zcgg.js → session-8enafyav.js} +22 -22
- package/dist/chunks/{ripgrep-1ajx6rf5.js → session-8v6pyhej.js} +8 -8
- package/dist/chunks/{ripgrep-4k1416er.js → session-8vb99h00.js} +3 -3
- package/dist/chunks/{ripgrep-75j187sy.js → session-8wpv99tc.js} +16 -16
- package/dist/chunks/{ripgrep-4e766vfh.js → session-8yvmqsdb.js} +21 -21
- package/dist/chunks/{ripgrep-6xakybcw.js → session-948arcw8.js} +23 -23
- package/dist/chunks/{ripgrep-btdn1fj9.js → session-94t6wmwn.js} +12 -12
- package/dist/chunks/{ripgrep-xwx3c2sc.js → session-99jt8c73.js} +3 -3
- package/dist/chunks/{ripgrep-9cyfspf3.js → session-9cyfspf3.js} +2 -2
- package/dist/chunks/{ripgrep-m14g7d03.js → session-9f8cp9a6.js} +9 -9
- package/dist/chunks/{ripgrep-qjjdbt4x.js → session-9vksxc2m.js} +14 -14
- package/dist/chunks/{ripgrep-hf4drxk6.js → session-a2rq9fn5.js} +6 -6
- package/dist/chunks/{ripgrep-e9mavkfm.js → session-a4f19cwx.js} +13 -13
- package/dist/chunks/{ripgrep-nrdmrqsx.js → session-a8bn8zg0.js} +4 -4
- package/dist/chunks/{ripgrep-a68v6zx7.js → session-a8zr1srk.js} +8 -8
- package/dist/chunks/{ripgrep-km9v8s4p.js → session-a98pzf8v.js} +9 -9
- package/dist/chunks/{ripgrep-aaet6srn.js → session-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-p8p1q38m.js → session-acbm67v8.js} +26 -26
- package/dist/chunks/{ripgrep-zkt84azb.js → session-agbf4bzm.js} +9 -9
- package/dist/chunks/{ripgrep-wpa4rsnk.js → session-agm5p4ms.js} +22 -22
- package/dist/chunks/{ripgrep-mb5k3eyw.js → session-aj32hggj.js} +55 -43
- package/dist/chunks/{ripgrep-g2sgta8f.js → session-ay31fkzd.js} +5 -5
- package/dist/chunks/{ripgrep-nqhkz2h0.js → session-az8x1n2p.js} +3 -3
- package/dist/chunks/{ripgrep-12samabn.js → session-azdeb39r.js} +13 -13
- package/dist/chunks/{ripgrep-c765aa0m.js → session-b0kbnke2.js} +12 -12
- package/dist/chunks/{ripgrep-vw5tv20s.js → session-b1pqrfyz.js} +21 -21
- package/dist/chunks/{ripgrep-7zszha7m.js → session-b5h46dbj.js} +33 -33
- package/dist/chunks/{ripgrep-b6gygkdw.js → session-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-j311gd59.js → session-bdqrk2vk.js} +7 -7
- package/dist/chunks/{ripgrep-qn4ba14w.js → session-bgxcxs0p.js} +5 -5
- package/dist/chunks/{ripgrep-wmfp1rw3.js → session-bh2wddm2.js} +20 -20
- package/dist/chunks/{ripgrep-bjtzbw4r.js → session-bjtzbw4r.js} +3 -3
- package/dist/chunks/{ripgrep-dqr0m1y5.js → session-bkactd14.js} +8 -8
- package/dist/chunks/{ripgrep-6ypqnq6y.js → session-bqjdgtzh.js} +11 -11
- package/dist/chunks/{ripgrep-eswwkexn.js → session-bx5edcj9.js} +11 -11
- package/dist/chunks/{ripgrep-evbgk2k8.js → session-c78bbtc9.js} +5 -5
- package/dist/chunks/{ripgrep-9yp3a3kk.js → session-ce6x8qpb.js} +29 -29
- package/dist/chunks/{ripgrep-6kxxvxy9.js → session-cmagdxmr.js} +4 -4
- package/dist/chunks/{ripgrep-wd7bxs2p.js → session-cmgejxv1.js} +32 -32
- package/dist/chunks/{ripgrep-tcfbr18x.js → session-cn6p3z1j.js} +10 -10
- package/dist/chunks/{ripgrep-bc17a4yt.js → session-cx05c19p.js} +15 -15
- package/dist/chunks/{ripgrep-k1fg4vp1.js → session-czrjb6hc.js} +16 -16
- package/dist/chunks/{ripgrep-md9pgxe8.js → session-dax01gbs.js} +22 -22
- package/dist/chunks/{ripgrep-bct739vz.js → session-dfe8djrf.js} +4 -4
- package/dist/chunks/{ripgrep-r4bzzscv.js → session-dh54236j.js} +4 -4
- package/dist/chunks/{ripgrep-dpkg50ah.js → session-dpkg50ah.js} +1 -1
- package/dist/chunks/{ripgrep-3j5kzqk4.js → session-dsve0ah2.js} +11 -11
- package/dist/chunks/{ripgrep-zr8y6ync.js → session-dt4ympsh.js} +4 -4
- package/dist/chunks/{ripgrep-s8d7rejh.js → session-eaj1djv9.js} +6 -6
- package/dist/chunks/{ripgrep-npcgt3gc.js → session-echm9f9f.js} +40 -40
- package/dist/chunks/{ripgrep-ef5x83kb.js → session-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-rd066f3k.js → session-ehbxnbkr.js} +13 -13
- package/dist/chunks/{ripgrep-f5q6vpa8.js → session-enmnh623.js} +4 -4
- package/dist/chunks/{ripgrep-erw5rpbs.js → session-erw5rpbs.js} +2 -2
- package/dist/chunks/{ripgrep-etq0c3wd.js → session-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-pdq8pnd2.js → session-f08vtgad.js} +12 -12
- package/dist/chunks/{ripgrep-3h6g4yxf.js → session-f1vyadhg.js} +11 -11
- package/dist/chunks/{ripgrep-dq0k2458.js → session-f45037ze.js} +6 -6
- package/dist/chunks/{ripgrep-s74ft2z0.js → session-fadsgc1a.js} +5 -5
- package/dist/chunks/{ripgrep-dwkyy60h.js → session-fcd8h1vk.js} +13 -13
- package/dist/chunks/{ripgrep-0mgs0snk.js → session-fjrr4fyp.js} +11 -11
- package/dist/chunks/{ripgrep-cwa6csj7.js → session-g6q9qykm.js} +9 -9
- package/dist/chunks/{ripgrep-csmmbkrn.js → session-g76g02ta.js} +3 -3
- package/dist/chunks/{ripgrep-gd4qta3r.js → session-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-ewxpkfp1.js → session-gfrda9jf.js} +21 -21
- package/dist/chunks/{ripgrep-gfvb90ym.js → session-gfvb90ym.js} +2 -2
- package/dist/chunks/{ripgrep-h52xnkn8.js → session-ggqyxype.js} +21 -21
- package/dist/chunks/{ripgrep-4y23n6zb.js → session-gjsxdwp2.js} +25 -25
- package/dist/chunks/{ripgrep-v8g8r3p5.js → session-gmjjhz4f.js} +6 -6
- package/dist/chunks/{ripgrep-3zjyq5kp.js → session-gmxecerg.js} +11 -11
- package/dist/chunks/{ripgrep-gv6a8nnw.js → session-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-g7y1z024.js → session-h1c35kxc.js} +7 -7
- package/dist/chunks/{ripgrep-h6vf3j39.js → session-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-h5tmfsew.js → session-h7ranyr5.js} +27 -27
- package/dist/chunks/{ripgrep-44pdqs77.js → session-hehaxqkv.js} +4 -4
- package/dist/chunks/{ripgrep-xz23vemp.js → session-hjxs9k8f.js} +6 -6
- package/dist/chunks/{ripgrep-3zca3at5.js → session-hp4vdjnh.js} +7 -7
- package/dist/chunks/{ripgrep-szs8vbwv.js → session-hz1zw6bt.js} +11 -11
- package/dist/chunks/{ripgrep-6npe6m7n.js → session-j1yw51g5.js} +30 -30
- package/dist/chunks/{ripgrep-ys5hb573.js → session-j2ks9cnd.js} +33 -33
- package/dist/chunks/{ripgrep-j56e64zr.js → session-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-wj3w7pcn.js → session-j6228c50.js} +17 -17
- package/dist/chunks/{ripgrep-zajadr6b.js → session-jb136r9z.js} +25 -25
- package/dist/chunks/{ripgrep-6e4b4bvx.js → session-jb9hn1a8.js} +11 -11
- package/dist/chunks/session-jbd845z3.js +252 -0
- package/dist/chunks/{ripgrep-5a5dg86c.js → session-jbkz1fyp.js} +19 -19
- package/dist/chunks/{ripgrep-ak8wweg5.js → session-jca4demv.js} +2 -2
- package/dist/chunks/{ripgrep-x01dtww3.js → session-jg5r7qrs.js} +30 -30
- package/dist/chunks/{ripgrep-vk5cd3wv.js → session-jgtxmawc.js} +10 -10
- package/dist/chunks/{ripgrep-3exhk902.js → session-jwbhs3js.js} +24 -24
- package/dist/chunks/{ripgrep-xdyhb63d.js → session-jy6qfwr6.js} +18 -18
- package/dist/chunks/{ripgrep-tcnfwqy6.js → session-k0ms5k0m.js} +10 -10
- package/dist/chunks/{ripgrep-518fy5x0.js → session-k0q32neb.js} +8 -8
- package/dist/chunks/{ripgrep-k3c624dm.js → session-k3c624dm.js} +3 -3
- package/dist/chunks/{ripgrep-mt4rfx33.js → session-k9avwfq5.js} +1 -1
- package/dist/chunks/{ripgrep-wwy2qggx.js → session-kagsdyfe.js} +8 -8
- package/dist/chunks/{ripgrep-94s48bjb.js → session-kerhshr9.js} +5 -5
- package/dist/chunks/{ripgrep-zp8bqaxg.js → session-kermd5w6.js} +17 -17
- package/dist/chunks/{ripgrep-310pygx3.js → session-kf74p3bx.js} +34 -34
- package/dist/chunks/{ripgrep-wjvmat6z.js → session-kpket22x.js} +22 -22
- package/dist/chunks/{ripgrep-t9jfj42y.js → session-kq8c07et.js} +16 -16
- package/dist/chunks/{ripgrep-rdecwvm0.js → session-kwrf6mrp.js} +4 -4
- package/dist/chunks/{ripgrep-g1n6bxpc.js → session-kyfgctc0.js} +27 -27
- package/dist/chunks/{ripgrep-rn3cq9ja.js → session-m0d2935c.js} +20 -20
- package/dist/chunks/{ripgrep-m3fdjcah.js → session-m3fdjcah.js} +1 -1
- package/dist/chunks/{ripgrep-zrye3yph.js → session-m3s5hhj2.js} +85 -85
- package/dist/chunks/{ripgrep-ejndgxwh.js → session-m42z0ebz.js} +29 -29
- package/dist/chunks/{ripgrep-zwfnejf5.js → session-m6pk4krr.js} +1 -1
- package/dist/chunks/{ripgrep-pff1gvzk.js → session-m8gyrdxb.js} +39 -39
- package/dist/chunks/{ripgrep-m9w0rfyh.js → session-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-9r7rpdpb.js → session-md7tbqzp.js} +5 -5
- package/dist/chunks/{ripgrep-2hr23n0w.js → session-mdyw9496.js} +11 -11
- package/dist/chunks/{ripgrep-mjyv029k.js → session-mksgfzgs.js} +6 -6
- package/dist/chunks/{ripgrep-e7710hd6.js → session-mm5kxf07.js} +8 -8
- package/dist/chunks/{ripgrep-x9p82aqm.js → session-mqqrcsjk.js} +13 -13
- package/dist/chunks/{ripgrep-5wbzy8nn.js → session-mxgvry90.js} +11 -11
- package/dist/chunks/{ripgrep-mppnnt9x.js → session-n00hzpwr.js} +17 -17
- package/dist/chunks/{ripgrep-2sdtchw9.js → session-nh7fre4k.js} +10 -10
- package/dist/chunks/{ripgrep-6ae9v3b9.js → session-nk1anpaj.js} +7 -7
- package/dist/chunks/{ripgrep-3k6sfp50.js → session-nnxdhk5c.js} +4 -4
- package/dist/chunks/{ripgrep-rtrd7687.js → session-npvvfhg5.js} +4 -4
- package/dist/chunks/{ripgrep-ywkfy99j.js → session-nq7qbqzc.js} +9 -9
- package/dist/chunks/{ripgrep-hgnmjjw1.js → session-pepmwvmk.js} +17 -17
- package/dist/chunks/{ripgrep-pjvnvgmy.js → session-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-s2v5xhym.js → session-pk0r7mgm.js} +27 -27
- package/dist/chunks/{ripgrep-pknna89w.js → session-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-kwh94f5y.js → session-prxsqbpb.js} +24 -24
- package/dist/chunks/{ripgrep-psazpmmj.js → session-psazpmmj.js} +2 -2
- package/dist/chunks/{ripgrep-63p6tvjf.js → session-pw1fxcyc.js} +8 -8
- package/dist/chunks/{ripgrep-gqtakvcm.js → session-pyxf7vnb.js} +5 -5
- package/dist/chunks/{ripgrep-fqka1xvk.js → session-q3t37ft6.js} +3 -3
- package/dist/chunks/{ripgrep-314cfvev.js → session-q4ec5mdp.js} +4 -4
- package/dist/chunks/{ripgrep-z66c1k9w.js → session-qaykhsrc.js} +48 -48
- package/dist/chunks/{ripgrep-wj76ss2k.js → session-qbqbaz6q.js} +4 -4
- package/dist/chunks/{ripgrep-3h0mkt05.js → session-qfx1k094.js} +29 -29
- package/dist/chunks/{ripgrep-4qg5r729.js → session-qm5dj1k8.js} +9 -9
- package/dist/chunks/{ripgrep-yejpxas0.js → session-qr52cvd5.js} +7 -7
- package/dist/chunks/{ripgrep-qsdy395h.js → session-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-ccgx1agb.js → session-qy4v0j2t.js} +85 -85
- package/dist/chunks/{ripgrep-h6r3nrb9.js → session-r55vasa2.js} +4 -4
- package/dist/chunks/session-rap9a73h.js +18 -0
- package/dist/chunks/{ripgrep-rdw6cm16.js → session-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-3133pbgg.js → session-rhqbq44a.js} +30 -30
- package/dist/chunks/{ripgrep-5az6qf77.js → session-rv1nt4dx.js} +14 -14
- package/dist/chunks/{ripgrep-svjy1kds.js → session-s199q059.js} +16 -16
- package/dist/chunks/{ripgrep-6jqke6p8.js → session-s40m7wem.js} +8 -8
- package/dist/chunks/{ripgrep-e82rfkh8.js → session-sbsbaqgb.js} +165 -165
- package/dist/chunks/{ripgrep-66m6eh7j.js → session-t46xbjk1.js} +15 -15
- package/dist/chunks/{ripgrep-h7w9m21h.js → session-t9pnexmg.js} +6 -6
- package/dist/chunks/{ripgrep-6whh3zwz.js → session-tawnwg9x.js} +44 -44
- package/dist/chunks/{ripgrep-tazgh4e4.js → session-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-tdstcens.js → session-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-aqc2n7k1.js → session-tdze28ss.js} +11 -11
- package/dist/chunks/{ripgrep-tvtrv512.js → session-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-x0phpbjd.js → session-tw7zb9dd.js} +29 -29
- package/dist/chunks/{ripgrep-s5met55r.js → session-tx9w5tca.js} +8 -8
- package/dist/chunks/{ripgrep-a82wvf7y.js → session-v53pp9ze.js} +49 -49
- package/dist/chunks/{ripgrep-veqvce7d.js → session-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-cyzqg38g.js → session-vgmbyh4q.js} +20 -20
- package/dist/chunks/{ripgrep-7tgakezr.js → session-vtpkq4qf.js} +1 -1
- package/dist/chunks/{ripgrep-vzcthcp8.js → session-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-5df7hbgb.js → session-w1aa0sha.js} +24 -24
- package/dist/chunks/{ripgrep-w3wsvvr9.js → session-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-0ayx05qh.js → session-w5d72rt0.js} +2 -2
- package/dist/chunks/{ripgrep-f2y31vad.js → session-w84h3481.js} +5 -5
- package/dist/chunks/{ripgrep-wd87259q.js → session-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-t1nv7t91.js → session-wnd5vpb2.js} +38 -38
- package/dist/chunks/{ripgrep-m9ekcepj.js → session-wphdxe94.js} +9 -9
- package/dist/chunks/{ripgrep-9h8yadab.js → session-wqjd83zn.js} +9 -9
- package/dist/chunks/{ripgrep-a7e8yba8.js → session-wxmykcya.js} +13 -13
- package/dist/chunks/{ripgrep-x1ezjp6w.js → session-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-6rww2kbq.js → session-x2fy9jbe.js} +36 -36
- package/dist/chunks/{ripgrep-rwpqnmrd.js → session-xer9fjax.js} +43 -43
- package/dist/chunks/{ripgrep-w0amkjx1.js → session-xez13snj.js} +24 -24
- package/dist/chunks/{ripgrep-j58c5xyq.js → session-xf8yqmad.js} +9 -9
- package/dist/chunks/{ripgrep-drwq78ky.js → session-xfkkasph.js} +4 -4
- package/dist/chunks/{ripgrep-s7d0jgbp.js → session-xqn0wq6t.js} +12 -12
- package/dist/chunks/{ripgrep-y1fvbwt7.js → session-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-6v1ffft6.js → session-y1pnfhzk.js} +11 -11
- package/dist/chunks/{ripgrep-vztfwee2.js → session-y4ztdhfe.js} +25 -25
- package/dist/chunks/{ripgrep-c13e6esw.js → session-y65ny0jc.js} +3 -3
- package/dist/chunks/{ripgrep-kj13tdgj.js → session-y8t2hg21.js} +6 -6
- package/dist/chunks/{ripgrep-trv0dvrm.js → session-yc7zgn7t.js} +27 -27
- package/dist/chunks/{ripgrep-yrhqyw5v.js → session-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-yrznvahk.js → session-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-b7b4ctej.js → session-yt3hy1g9.js} +5 -5
- package/dist/chunks/{ripgrep-wdqt7cqw.js → session-ytz98xyd.js} +10 -10
- package/dist/chunks/{ripgrep-hhpnm7dw.js → session-yvzbrbsb.js} +31 -31
- package/dist/chunks/{ripgrep-phfbqzjs.js → session-yyc6hzvy.js} +17 -17
- package/dist/chunks/{ripgrep-cczmq9j9.js → session-yzjjab3k.js} +323 -323
- package/dist/chunks/{ripgrep-z0bkrqjs.js → session-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-hrc132h6.js → session-z3nay82g.js} +9 -9
- package/dist/chunks/{ripgrep-z63w68vq.js → session-z63w68vq.js} +2 -2
- package/dist/chunks/{ripgrep-8vk5gx22.js → session-zcp5s6g4.js} +18 -18
- package/dist/chunks/{ripgrep-zeh9ct20.js → session-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-65eqnm58.js → session-zhdvw921.js} +12 -12
- package/dist/chunks/{ripgrep-9jscrgm8.js → session-zjx6mc8r.js} +7 -7
- package/dist/chunks/{ripgrep-zr2ceqn5.js → session-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-f16gbcxr.js → session-ztwtxy0r.js} +16 -16
- package/dist/chunks/{ripgrep-7pj4hm0p.js → session-zvq4a4ap.js} +15 -15
- package/dist/chunks/{ripgrep-rkd9y7hg.js → session-zxm8ey7q.js} +13 -13
- package/dist/chunks/{ripgrep-55ec8s4g.js → session-zxnnemhf.js} +37 -37
- package/dist/chunks/{ripgrep-zxq2ej10.js → session-zxq2ej10.js} +1 -1
- 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 +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.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 +371 -371
- 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 +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/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 +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +74 -74
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- 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 +91 -91
- 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 +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +128 -128
- 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 +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- 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 +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- 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/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +91 -91
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- 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 +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- 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 +2 -2
- package/dist/plugin/websearch/parallel.js +4 -4
- package/dist/plugin/websearch/tavily.js +2 -2
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- 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 +98 -98
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +153 -153
- 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 +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- 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 +231 -231
- 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 +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- 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 +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +154 -154
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +138 -138
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +91 -91
- 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 +125 -125
- 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 +122 -122
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/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 +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- 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 +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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- 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 +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/ripgrep-0mesazry.js +0 -4
- package/dist/chunks/ripgrep-9zdhvgqs.js +0 -18
- package/dist/chunks/ripgrep-nc9jdwq6.js +0 -252
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → session-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → session-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → session-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → session-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → session-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → session-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → session-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → session-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → session-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-34c7v6d4.js → session-34c7v6d4.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → session-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → session-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → session-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → session-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → session-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → session-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → session-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → session-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → session-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → session-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → session-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-5qd3pb7m.js → session-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → session-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → session-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → session-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → session-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → session-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → session-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → session-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → session-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → session-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → session-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → session-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → session-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → session-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → session-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → session-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → session-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → session-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → session-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → session-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → session-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → session-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → session-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → session-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → session-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → session-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → session-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → session-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → session-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → session-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → session-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → session-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → session-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → session-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → session-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → session-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → session-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → session-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → session-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → session-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → session-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → session-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → session-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → session-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → session-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → session-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → session-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → session-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → session-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → session-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → session-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → session-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → session-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → session-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → session-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → session-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → session-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → session-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → session-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → session-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → session-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → session-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → session-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → session-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → session-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → session-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → session-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → session-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → session-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → session-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → session-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → session-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → session-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → session-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → session-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → session-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./session-78j00qgw.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./session-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -22,11 +22,11 @@ __export(exports_form, {
|
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service79,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer25,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node83,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
@@ -79,9 +79,9 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service79 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer25 = Layer.effect(
|
|
84
|
+
var layer25 = Layer.effect(Service79, 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")), {
|
|
@@ -159,9 +159,9 @@ var layer25 = Layer.effect(Service78, 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 Service79.of({ create, ask, get, list, state, reply, cancel, close });
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
164
|
+
var node83 = makeLocationNode({ service: Service79, layer: layer25, deps: [node87] });
|
|
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 { ID16, Info31, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2,
|
|
316
|
+
export { ID16, Info31, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service79, layer25, node83, validateAnswer2, validateFields2, exports_form, Event20 };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./session-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./session-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/memory.ts
|
|
11
11
|
var exports_memory = {};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-r55vasa2.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./session-78j00qgw.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event15
|
|
10
|
+
} from "./session-rhqbq44a.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID9,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./session-m42z0ebz.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID8,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service60
|
|
20
|
+
} from "./session-tw7zb9dd.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID7
|
|
23
|
+
} from "./session-kyfgctc0.js";
|
|
24
24
|
import {
|
|
25
25
|
load2,
|
|
26
26
|
derive2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./session-hz1zw6bt.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./session-mxgvry90.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/github-copilot.ts
|
|
33
33
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
59
59
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
60
60
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
61
61
|
var oauth = (app) => ({
|
|
62
|
-
integrationID:
|
|
62
|
+
integrationID: ID9.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -157,7 +157,7 @@ var oauth = (app) => ({
|
|
|
157
157
|
var GithubCopilotPlugin2 = define({
|
|
158
158
|
id: "opencode.provider.github.copilot",
|
|
159
159
|
effect: Effect.fn(function* (ctx) {
|
|
160
|
-
const providers = yield*
|
|
160
|
+
const providers = yield* Service60;
|
|
161
161
|
const bus = yield* Service83;
|
|
162
162
|
const loading = Semaphore.makeUnsafe(1);
|
|
163
163
|
const loaded = {};
|
|
@@ -173,7 +173,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
176
|
-
const provider = yield* providers.get(
|
|
176
|
+
const provider = yield* providers.get(ID8.githubCopilot);
|
|
177
177
|
const remote = yield* Effect.tryPromise({
|
|
178
178
|
try: () => load2(url, {
|
|
179
179
|
...provider?.headers,
|
|
@@ -194,7 +194,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
194
194
|
editor.method.update(oauth(ctx.app));
|
|
195
195
|
});
|
|
196
196
|
yield* ctx.provider.transform((evt) => {
|
|
197
|
-
const item = evt.get(
|
|
197
|
+
const item = evt.get(ID8.githubCopilot);
|
|
198
198
|
if (!item)
|
|
199
199
|
return;
|
|
200
200
|
if (loaded.models) {
|
|
@@ -214,17 +214,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
yield* ctx.model.transform((models) => {
|
|
217
|
-
if (models.get(
|
|
218
|
-
models.update(
|
|
217
|
+
if (models.get(ID8.githubCopilot, ID7.make("gpt-5-chat-latest"))) {
|
|
218
|
+
models.update(ID8.githubCopilot, ID7.make("gpt-5-chat-latest"), (model) => {
|
|
219
219
|
model.enabled = false;
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
224
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
225
225
|
yield* refresh().pipe(Effect.forkScoped);
|
|
226
226
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
227
|
-
if (evt.model.providerID !==
|
|
227
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
228
228
|
return;
|
|
229
229
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
230
230
|
return;
|
|
@@ -233,7 +233,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
233
233
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
234
234
|
}));
|
|
235
235
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
236
|
-
if (evt.model.providerID !==
|
|
236
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
237
237
|
return;
|
|
238
238
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
239
239
|
return;
|
|
@@ -243,9 +243,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
243
243
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
244
244
|
if (interaction !== "conversation-agent")
|
|
245
245
|
evt.headers["x-initiator"] = "agent";
|
|
246
|
-
}), { providerID:
|
|
246
|
+
}), { providerID: ID8.githubCopilot });
|
|
247
247
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
-
if (evt.model.providerID !==
|
|
248
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
249
249
|
return;
|
|
250
250
|
const token = evt.request.headers.get("x-api-key");
|
|
251
251
|
if (!token)
|
|
@@ -253,9 +253,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
253
253
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
254
254
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
255
255
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
256
|
-
}), { providerID:
|
|
256
|
+
}), { providerID: ID8.githubCopilot });
|
|
257
257
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
258
|
-
if (evt.model.providerID !==
|
|
258
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
259
259
|
return;
|
|
260
260
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
261
261
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-6ss97yeq.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./session-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service73,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node77,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service73 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service73, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node77 = LayerNode.unbound(Service73, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service73;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -45,4 +45,4 @@ function canonical3(ref) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service73, node77, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./session-78j00qgw.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./session-kpket22x.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./session-sk3qaz4a.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./session-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError2,
|
|
20
|
+
Options: () => Options3,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service18,
|
|
23
23
|
UnavailableError: () => UnavailableError2,
|
|
24
|
-
configured: () =>
|
|
25
|
-
layer: () =>
|
|
26
|
-
node: () =>
|
|
24
|
+
configured: () => configured3,
|
|
25
|
+
layer: () => layer9,
|
|
26
|
+
node: () => node21
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,21 +35,21 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options3 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
40
|
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service18 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service18, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service83;
|
|
54
54
|
const global = yield* Global.Service;
|
|
55
55
|
const context = yield* Effect.context();
|
|
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
72
72
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
73
73
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
74
74
|
if (!found)
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
76
76
|
return found;
|
|
77
77
|
});
|
|
78
78
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service18.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -255,13 +255,13 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
255
255
|
attach
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
261
|
-
layer: options === undefined ?
|
|
258
|
+
var layer9 = makeLayer();
|
|
259
|
+
var configured3 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service18,
|
|
261
|
+
layer: options === undefined ? layer9 : makeLayer(options),
|
|
262
262
|
deps: [node87, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node21 = configured3();
|
|
265
265
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
266
266
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
267
267
|
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options3, UnavailableError2, NotFoundError2, Service18, layer9, configured3, node21, exports_persistent_pty, Handoff2 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service77
|
|
4
|
+
} from "./session-b1pqrfyz.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service59
|
|
8
|
+
} from "./session-kyfgctc0.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service47
|
|
12
|
+
} from "./session-echm9f9f.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./session-q3t37ft6.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service44
|
|
18
|
+
} from "./session-yyc6hzvy.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service74
|
|
22
|
+
} from "./session-v53pp9ze.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service23
|
|
25
|
+
} from "./session-m3s5hhj2.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./session-x1ezjp6w.js";
|
|
29
29
|
import {
|
|
30
30
|
make5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./session-pw1fxcyc.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./session-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input8,
|
|
40
|
+
Output: () => Output5,
|
|
41
|
+
Plugin: () => Plugin9,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description4,
|
|
44
|
+
name: () => name8
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
|
-
import { Effect, Schema } from "effect";
|
|
48
|
-
var
|
|
47
|
+
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
+
var name8 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input8 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input4 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output5 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description4 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,15 +86,15 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin9 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
92
|
+
const sessions = yield* Service23;
|
|
93
|
+
const jobs = yield* Service44;
|
|
94
|
+
const agents = yield* Service77;
|
|
95
|
+
const config = yield* Service47;
|
|
96
|
+
const permission = yield* Service74;
|
|
97
|
+
const models = yield* Service59;
|
|
98
98
|
const subagents = yield* make5;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
@@ -115,11 +115,11 @@ var Plugin22 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name8,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description4,
|
|
121
|
+
input: Input8,
|
|
122
|
+
output: Output5,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin22 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name8,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin22 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID14.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -217,14 +217,26 @@ ${output.output}
|
|
|
217
217
|
metadata: { sessionID: output.sessionID, status: output.status }
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
|
+
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
+
if (event.tool !== name8 || !Predicate.isObject(event.input))
|
|
222
|
+
return;
|
|
223
|
+
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
|
+
return;
|
|
225
|
+
const input = { ...event.input };
|
|
226
|
+
if (input.model === "")
|
|
227
|
+
delete input.model;
|
|
228
|
+
if (input.sessionID === "")
|
|
229
|
+
delete input.sessionID;
|
|
230
|
+
event.input = input;
|
|
231
|
+
}));
|
|
220
232
|
const hook = (event) => Effect.gen(function* () {
|
|
221
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name8];
|
|
222
234
|
if (!tool)
|
|
223
235
|
return;
|
|
224
236
|
const selected = yield* agents.resolve(event.agent);
|
|
225
237
|
if (!selected)
|
|
226
238
|
return;
|
|
227
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
228
240
|
if (available.length === 0)
|
|
229
241
|
return;
|
|
230
242
|
tool.description = [
|
|
@@ -241,4 +253,4 @@ ${output.output}
|
|
|
241
253
|
})
|
|
242
254
|
};
|
|
243
255
|
|
|
244
|
-
export {
|
|
256
|
+
export { name8, Input8, Output5, description4, Plugin9, exports_subagent };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID9,
|
|
3
|
+
Service61
|
|
4
|
+
} from "./session-m42z0ebz.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service61;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID9.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-8vb99h00.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./session-y65ny0jc.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./session-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/database.ts
|
|
12
12
|
var exports_database = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service69,
|
|
6
|
+
node72
|
|
7
|
+
} from "./session-8yvmqsdb.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./session-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service64,
|
|
17
|
+
node: () => node67,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service64 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service69;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service64.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node67 = makeLocationNode({ service: Service64, layer, deps: [node72] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service64, readText2, syncTextBom2, node67, exports_file_mutation };
|