@opencode/core 0.0.0-dev-20015 → 0.0.0-dev-20016
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +7 -7
- package/dist/bus.js +72 -72
- package/dist/chunks/{wellknown-ew6kx0p6.js → persistent-pty-06jbrb77.js} +42 -42
- package/dist/chunks/{wellknown-ttv07xzh.js → persistent-pty-0fytzj6j.js} +7 -7
- package/dist/chunks/{wellknown-7dqw4kz8.js → persistent-pty-0jwsre1p.js} +5 -5
- package/dist/chunks/{wellknown-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{wellknown-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
- package/dist/chunks/{wellknown-p1nm93x7.js → persistent-pty-0r7yqxbf.js} +5 -5
- package/dist/chunks/{wellknown-tzrpkbn6.js → persistent-pty-0zaqx4wy.js} +19 -19
- package/dist/chunks/{wellknown-cxdfacp5.js → persistent-pty-10e0ba79.js} +17 -17
- package/dist/chunks/{wellknown-zdzdf3ey.js → persistent-pty-11df9xd3.js} +1 -1
- package/dist/chunks/{wellknown-ck8ktsjh.js → persistent-pty-12pkvdhr.js} +12 -12
- package/dist/chunks/{wellknown-7ztcg3jh.js → persistent-pty-19je3c53.js} +10 -10
- package/dist/chunks/{wellknown-e248x3jn.js → persistent-pty-1ch5qaya.js} +12 -12
- package/dist/chunks/{wellknown-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{wellknown-n2j36c11.js → persistent-pty-1f7h7xqz.js} +10 -10
- package/dist/chunks/{wellknown-gvfvsdwj.js → persistent-pty-1j0h6t7s.js} +10 -10
- package/dist/chunks/{wellknown-xqetv5hs.js → persistent-pty-1m1ev6p6.js} +24 -24
- package/dist/chunks/{wellknown-3erd0crp.js → persistent-pty-1r71k1az.js} +5 -5
- package/dist/chunks/{wellknown-fhxvcep3.js → persistent-pty-1t6a8jz5.js} +30 -30
- package/dist/chunks/{wellknown-1ygqh575.js → persistent-pty-1ygqh575.js} +2 -2
- package/dist/chunks/{wellknown-tnvxhv6y.js → persistent-pty-20wj3b0e.js} +40 -40
- package/dist/chunks/{wellknown-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
- package/dist/chunks/{wellknown-4x95nmfe.js → persistent-pty-22756crb.js} +9 -9
- package/dist/chunks/{wellknown-29x78va6.js → persistent-pty-29x78va6.js} +2 -2
- package/dist/chunks/{wellknown-qvgv6pvy.js → persistent-pty-29zxs1e8.js} +28 -28
- package/dist/chunks/{wellknown-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{wellknown-m9akz2ye.js → persistent-pty-2evxb7qc.js} +19 -19
- package/dist/chunks/{wellknown-ss0awb04.js → persistent-pty-2jmaghvr.js} +6 -6
- package/dist/chunks/{wellknown-2k71kv7p.js → persistent-pty-2k71kv7p.js} +1 -1
- package/dist/chunks/{wellknown-qmqgtz8f.js → persistent-pty-2sejkfem.js} +9 -9
- package/dist/chunks/{wellknown-ycmcyef6.js → persistent-pty-2w1mqpqm.js} +1 -1
- package/dist/chunks/{wellknown-xzx42szb.js → persistent-pty-2wdjn665.js} +6 -6
- package/dist/chunks/{wellknown-hz98z1q8.js → persistent-pty-2zgjdn2h.js} +20 -20
- package/dist/chunks/{wellknown-5gxdm36g.js → persistent-pty-33mefhds.js} +14 -14
- package/dist/chunks/{wellknown-sy6bk0cy.js → persistent-pty-396s32cg.js} +49 -49
- package/dist/chunks/{wellknown-fz5ffk87.js → persistent-pty-3dz8xqcq.js} +3 -3
- package/dist/chunks/{wellknown-6h17d7qm.js → persistent-pty-3ezhmtbn.js} +24 -24
- package/dist/chunks/{wellknown-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{wellknown-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{wellknown-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{wellknown-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{wellknown-zgd6949r.js → persistent-pty-3vh13j3b.js} +6 -6
- package/dist/chunks/{wellknown-r80rqf00.js → persistent-pty-41v30afh.js} +6 -6
- package/dist/chunks/{wellknown-nez2zdg8.js → persistent-pty-447xk7wn.js} +20 -20
- package/dist/chunks/{wellknown-0hwqs4ra.js → persistent-pty-49am0wpx.js} +9 -9
- package/dist/chunks/{wellknown-bhwqep5b.js → persistent-pty-4d90bajk.js} +35 -35
- package/dist/chunks/{wellknown-h6r3nrb9.js → persistent-pty-4dgbcxzg.js} +4 -4
- package/dist/chunks/{wellknown-ah6f1wds.js → persistent-pty-4hwe5s31.js} +11 -11
- package/dist/chunks/{wellknown-hbyhqfhs.js → persistent-pty-4n607a2z.js} +5 -5
- package/dist/chunks/{wellknown-7wgz26gy.js → persistent-pty-4stp5haz.js} +20 -20
- package/dist/chunks/{wellknown-8d0p2m37.js → persistent-pty-4tb9kxn6.js} +6 -6
- package/dist/chunks/{wellknown-x3gbj4ze.js → persistent-pty-59asnkcp.js} +16 -16
- package/dist/chunks/{wellknown-prbkj228.js → persistent-pty-5b07h487.js} +3 -3
- package/dist/chunks/{wellknown-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
- package/dist/chunks/{wellknown-5ekn9679.js → persistent-pty-5ekn9679.js} +1 -1
- package/dist/chunks/{wellknown-sxcapxxz.js → persistent-pty-5g079bry.js} +18 -18
- package/dist/chunks/{wellknown-kcnbys9f.js → persistent-pty-5jecfbj8.js} +19 -19
- package/dist/chunks/{wellknown-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{wellknown-6qq5k41z.js → persistent-pty-5vyrtx1r.js} +12 -12
- package/dist/chunks/{wellknown-669tq793.js → persistent-pty-669tq793.js} +1 -1
- package/dist/chunks/{wellknown-hwder3tb.js → persistent-pty-66rnaxsh.js} +20 -20
- package/dist/chunks/{wellknown-y5fg7de6.js → persistent-pty-6f7ecbcm.js} +11 -11
- package/dist/chunks/{wellknown-2402vzrj.js → persistent-pty-6h73sxmp.js} +5 -5
- package/dist/chunks/{wellknown-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
- package/dist/chunks/{wellknown-hfdr1yjj.js → persistent-pty-6s9eyz9r.js} +4 -4
- package/dist/chunks/{wellknown-4sz2x7hf.js → persistent-pty-738s90ft.js} +7 -7
- package/dist/chunks/{wellknown-6m7r7my1.js → persistent-pty-74a578b2.js} +4 -4
- package/dist/chunks/{wellknown-5w56pkd8.js → persistent-pty-74x1x3cs.js} +14 -14
- package/dist/chunks/{wellknown-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{wellknown-sghxnkc4.js → persistent-pty-7fjf7ynj.js} +26 -26
- package/dist/chunks/{wellknown-z8fpy401.js → persistent-pty-7ggntmd7.js} +8 -8
- package/dist/chunks/{wellknown-3m9w1x1p.js → persistent-pty-7nrwpcb0.js} +3 -3
- package/dist/chunks/{wellknown-f05brn5b.js → persistent-pty-7rv8b2xc.js} +33 -33
- package/dist/chunks/{wellknown-9azvwyrc.js → persistent-pty-7rv8b3vf.js} +9 -9
- package/dist/chunks/{wellknown-bw03vhcb.js → persistent-pty-7z7az0f5.js} +4 -4
- package/dist/chunks/{wellknown-fyqzgcv4.js → persistent-pty-80q9mm34.js} +36 -36
- package/dist/chunks/{wellknown-2a0e18b9.js → persistent-pty-82nx54qp.js} +26 -26
- package/dist/chunks/{wellknown-m91gvp7t.js → persistent-pty-87deq66t.js} +4 -4
- package/dist/chunks/{wellknown-8555mwqv.js → persistent-pty-88f7a0ag.js} +9 -9
- package/dist/chunks/{wellknown-tcezcvh9.js → persistent-pty-89znhe33.js} +4 -4
- package/dist/chunks/{wellknown-77bngwj8.js → persistent-pty-8agyb5zv.js} +33 -33
- package/dist/chunks/{wellknown-86558t1r.js → persistent-pty-8anfpmjy.js} +4 -4
- package/dist/chunks/{wellknown-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{wellknown-qxqfwknd.js → persistent-pty-8j056ny1.js} +18 -18
- package/dist/chunks/{wellknown-8p4f9s12.js → persistent-pty-8p4f9s12.js} +2 -2
- package/dist/chunks/{wellknown-s8ts6h6d.js → persistent-pty-98p0gwkd.js} +22 -22
- package/dist/chunks/{wellknown-cbppr8rb.js → persistent-pty-99bynxv0.js} +47 -47
- package/dist/chunks/{wellknown-bjyw556y.js → persistent-pty-99kpm3x9.js} +17 -17
- package/dist/chunks/{wellknown-rdp4wc65.js → persistent-pty-9dnw0xb8.js} +37 -37
- package/dist/chunks/{wellknown-d3zdhyhy.js → persistent-pty-9tghz495.js} +9 -9
- package/dist/chunks/{wellknown-42az957r.js → persistent-pty-9zvz2vs6.js} +14 -14
- package/dist/chunks/{wellknown-a1bz86dw.js → persistent-pty-a1bz86dw.js} +3 -3
- package/dist/chunks/persistent-pty-a3se19xg.js +26 -0
- package/dist/chunks/{wellknown-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{wellknown-3cz8rj72.js → persistent-pty-af04s6ss.js} +5 -5
- package/dist/chunks/{wellknown-4eg6c75a.js → persistent-pty-ahh07121.js} +17 -17
- package/dist/chunks/{wellknown-c8tfeya1.js → persistent-pty-atr6khgd.js} +6 -6
- package/dist/chunks/{wellknown-7467d5w6.js → persistent-pty-axw7a489.js} +26 -26
- package/dist/chunks/{wellknown-kbegyq1c.js → persistent-pty-b09hzw3k.js} +2 -2
- package/dist/chunks/{wellknown-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{wellknown-tqyj18ad.js → persistent-pty-b82616de.js} +3 -3
- package/dist/chunks/{wellknown-yamwt51v.js → persistent-pty-bbsnv5g3.js} +15 -15
- package/dist/chunks/{wellknown-60a9dcfa.js → persistent-pty-bm5kp989.js} +52 -52
- package/dist/chunks/{wellknown-y219b4sg.js → persistent-pty-bnsead3g.js} +26 -26
- package/dist/chunks/{wellknown-ger4g5qw.js → persistent-pty-bpyfysax.js} +11 -11
- package/dist/chunks/{wellknown-0xezjjjn.js → persistent-pty-c27esgm9.js} +8 -8
- package/dist/chunks/{wellknown-g4g8wjxm.js → persistent-pty-c8qdwc3q.js} +9 -9
- package/dist/chunks/{wellknown-cfpkc3c9.js → persistent-pty-cfpkc3c9.js} +2 -2
- package/dist/chunks/{wellknown-9hn6k4tm.js → persistent-pty-cmwkp3r5.js} +8 -8
- package/dist/chunks/{wellknown-26mnwjmz.js → persistent-pty-cnc2tv60.js} +20 -20
- package/dist/chunks/{wellknown-mr7qc4kr.js → persistent-pty-cqfe4aef.js} +2 -2
- package/dist/chunks/{wellknown-5ankvwbc.js → persistent-pty-cvwc1v0p.js} +3 -3
- package/dist/chunks/{wellknown-1nd6q0ex.js → persistent-pty-dca16q2k.js} +35 -35
- package/dist/chunks/{wellknown-be60nag3.js → persistent-pty-ddbc03cc.js} +1 -1
- package/dist/chunks/{wellknown-szmg3mdt.js → persistent-pty-dep4c52h.js} +19 -19
- package/dist/chunks/{wellknown-3j8sdtpz.js → persistent-pty-dfe8djrf.js} +4 -4
- package/dist/chunks/{wellknown-q0qebxta.js → persistent-pty-dhwr7h25.js} +8 -8
- package/dist/chunks/{wellknown-dq0v80fr.js → persistent-pty-dq0v80fr.js} +5 -5
- package/dist/chunks/{wellknown-xfkkasph.js → persistent-pty-drwq78ky.js} +4 -4
- package/dist/chunks/{wellknown-18s9r5gn.js → persistent-pty-ds0wasgv.js} +4 -4
- package/dist/chunks/{wellknown-9xmpprty.js → persistent-pty-dvdevqhx.js} +16 -16
- package/dist/chunks/{wellknown-tbv09xg6.js → persistent-pty-dwpcx2qb.js} +15 -15
- package/dist/chunks/{wellknown-fwk4th24.js → persistent-pty-dwxz0xt6.js} +17 -17
- package/dist/chunks/{wellknown-8q026d2n.js → persistent-pty-e4f61vrf.js} +27 -27
- package/dist/chunks/{wellknown-s8d7rejh.js → persistent-pty-eaj1djv9.js} +6 -6
- package/dist/chunks/{wellknown-q02ac9xg.js → persistent-pty-edsv4ebh.js} +3 -3
- package/dist/chunks/{wellknown-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{wellknown-eq1pz5kg.js → persistent-pty-eq1pz5kg.js} +1 -1
- package/dist/chunks/{wellknown-erw5rpbs.js → persistent-pty-erw5rpbs.js} +2 -2
- package/dist/chunks/{wellknown-r5q7e66c.js → persistent-pty-esg06bhp.js} +10 -10
- package/dist/chunks/{wellknown-0zt6w2g5.js → persistent-pty-estb5scc.js} +7 -7
- package/dist/chunks/{wellknown-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{wellknown-3w2b2yj4.js → persistent-pty-evbgk2k8.js} +5 -5
- package/dist/chunks/{wellknown-8kxj4zhn.js → persistent-pty-eve2cjg0.js} +13 -13
- package/dist/chunks/{wellknown-4js4cn07.js → persistent-pty-ey211aqw.js} +6 -6
- package/dist/chunks/{wellknown-97j4gngf.js → persistent-pty-f1d38761.js} +6 -6
- package/dist/chunks/{wellknown-yp2x3t23.js → persistent-pty-f2n192rq.js} +4 -4
- package/dist/chunks/{wellknown-f828m53h.js → persistent-pty-f828m53h.js} +2 -2
- package/dist/chunks/{wellknown-pzz5gwak.js → persistent-pty-fd34zh6k.js} +17 -17
- package/dist/chunks/{wellknown-fp90krns.js → persistent-pty-fmc4p1es.js} +23 -23
- package/dist/chunks/{wellknown-0arvt5dd.js → persistent-pty-ftbmn9zb.js} +1 -1
- package/dist/chunks/{wellknown-1wp196zj.js → persistent-pty-fv57xrbx.js} +10 -10
- package/dist/chunks/{wellknown-2bkkw097.js → persistent-pty-fvvjxtsr.js} +12 -12
- package/dist/chunks/{wellknown-fxmgg4aj.js → persistent-pty-fxmgg4aj.js} +1 -1
- package/dist/chunks/{wellknown-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{wellknown-fhsk4sj8.js → persistent-pty-ged2zmeh.js} +8 -8
- package/dist/chunks/{wellknown-577wnmha.js → persistent-pty-gerte707.js} +35 -35
- package/dist/chunks/{wellknown-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
- package/dist/chunks/persistent-pty-gyce5qg1.js +18 -0
- package/dist/chunks/{wellknown-qdjg77dv.js → persistent-pty-h4fcns97.js} +32 -32
- package/dist/chunks/{wellknown-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{wellknown-fdms3n6w.js → persistent-pty-h71w788e.js} +9 -9
- package/dist/chunks/{wellknown-ar12vt33.js → persistent-pty-hdn6fj78.js} +15 -15
- package/dist/chunks/{wellknown-e7e86k0y.js → persistent-pty-hfyjynd0.js} +310 -310
- package/dist/chunks/{wellknown-s2sv8eth.js → persistent-pty-hmnhqwz4.js} +8 -8
- package/dist/chunks/{wellknown-qxft83g5.js → persistent-pty-hqefjfxk.js} +93 -93
- package/dist/chunks/persistent-pty-hr9dp009.js +4 -0
- package/dist/chunks/{wellknown-jvs2my8y.js → persistent-pty-hx17dh2f.js} +4 -4
- package/dist/chunks/{wellknown-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{wellknown-qwn6egxe.js → persistent-pty-j95ssxkc.js} +2 -2
- package/dist/chunks/{wellknown-6wn3t8f3.js → persistent-pty-jb4h23rf.js} +40 -40
- package/dist/chunks/{wellknown-d04kyvrs.js → persistent-pty-jcq5jrrk.js} +25 -25
- package/dist/chunks/{wellknown-k6390e4c.js → persistent-pty-jd81myvt.js} +8 -8
- package/dist/chunks/{wellknown-hryk019r.js → persistent-pty-jdw8m902.js} +3 -3
- package/dist/chunks/{wellknown-909p1r3q.js → persistent-pty-jhf3jymm.js} +6 -6
- package/dist/chunks/{wellknown-89bb6baa.js → persistent-pty-jn0tk1mz.js} +8 -8
- package/dist/chunks/{wellknown-t2peggv0.js → persistent-pty-jp07c0tv.js} +15 -15
- package/dist/chunks/{wellknown-k3c624dm.js → persistent-pty-k3c624dm.js} +3 -3
- package/dist/chunks/{wellknown-38z5952t.js → persistent-pty-k3sdfjqa.js} +29 -29
- package/dist/chunks/{wellknown-fmbpzfbx.js → persistent-pty-k3yt7har.js} +4 -4
- package/dist/chunks/{wellknown-g7wqhp41.js → persistent-pty-k5xdewjb.js} +10 -10
- package/dist/chunks/{wellknown-7rjvgzht.js → persistent-pty-k91r4kkq.js} +29 -29
- package/dist/chunks/{wellknown-ynaxd7hq.js → persistent-pty-k9pvwaf2.js} +32 -32
- package/dist/chunks/{wellknown-nb5yhrhy.js → persistent-pty-kbcdw4nv.js} +11 -11
- package/dist/chunks/{wellknown-0f807cgd.js → persistent-pty-kbh1r6q9.js} +7 -7
- package/dist/chunks/{wellknown-k9kj6xed.js → persistent-pty-knb7evpn.js} +6 -6
- package/dist/chunks/{wellknown-jp00t8em.js → persistent-pty-knc8cwjj.js} +26 -26
- package/dist/chunks/{wellknown-861ts5g7.js → persistent-pty-ktabkpdb.js} +29 -29
- package/dist/chunks/{wellknown-h3a6n0gd.js → persistent-pty-kv06je6w.js} +1 -1
- package/dist/chunks/{wellknown-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
- package/dist/chunks/{wellknown-6hr9dd4j.js → persistent-pty-m41fsdzn.js} +22 -22
- package/dist/chunks/{wellknown-zfvs7pz1.js → persistent-pty-m941nnpz.js} +89 -89
- package/dist/chunks/{wellknown-avzy01gw.js → persistent-pty-m9tv1fb9.js} +8 -8
- package/dist/chunks/{wellknown-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{wellknown-yzfxyp7w.js → persistent-pty-me8c0bby.js} +15 -15
- package/dist/chunks/{wellknown-wfqz603p.js → persistent-pty-mnhqa9m1.js} +10 -10
- package/dist/chunks/{wellknown-fm2qvscf.js → persistent-pty-mtq6xxnx.js} +7 -7
- package/dist/chunks/{wellknown-t8zrczn5.js → persistent-pty-mzm30qtr.js} +27 -27
- package/dist/chunks/{wellknown-mr0kc0w8.js → persistent-pty-n2cwydza.js} +15 -15
- package/dist/chunks/{wellknown-ntg45faq.js → persistent-pty-n8wxhx57.js} +16 -16
- package/dist/chunks/{wellknown-v9xqgdg6.js → persistent-pty-nggwfnrx.js} +3 -3
- package/dist/chunks/{wellknown-ssnjgvf0.js → persistent-pty-nhapt3yy.js} +13 -13
- package/dist/chunks/{wellknown-agf7s1yd.js → persistent-pty-nme0kws8.js} +156 -156
- package/dist/chunks/{wellknown-ndy6t9hy.js → persistent-pty-nrnm2w2a.js} +15 -15
- package/dist/chunks/{wellknown-v5hfp1qn.js → persistent-pty-nv5y4rap.js} +15 -15
- package/dist/chunks/{wellknown-rwah0hny.js → persistent-pty-nvavs34c.js} +12 -12
- package/dist/chunks/{wellknown-zh2jvsk5.js → persistent-pty-p8j15tse.js} +29 -29
- package/dist/chunks/{wellknown-5cypykm5.js → persistent-pty-p9xf3fyt.js} +72 -72
- package/dist/chunks/{wellknown-6bbg3zvf.js → persistent-pty-pd7psa0a.js} +28 -28
- package/dist/chunks/{wellknown-pm7m0prv.js → persistent-pty-phzzgaq9.js} +28 -28
- package/dist/chunks/{wellknown-57ez7d0k.js → persistent-pty-pjmw00w1.js} +7 -7
- package/dist/chunks/{wellknown-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{wellknown-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{wellknown-7w520p4z.js → persistent-pty-pkpv8qry.js} +27 -27
- package/dist/chunks/{wellknown-dzw83ac5.js → persistent-pty-pnkbpv6t.js} +9 -9
- package/dist/chunks/{wellknown-17h1zmn8.js → persistent-pty-q1baby6z.js} +24 -24
- package/dist/chunks/{wellknown-jp9pm8f0.js → persistent-pty-q1z1ejdm.js} +13 -13
- package/dist/chunks/{wellknown-4amv5ejf.js → persistent-pty-q340vck3.js} +15 -15
- package/dist/chunks/{wellknown-w8gd3cr1.js → persistent-pty-qd1yxrve.js} +29 -29
- package/dist/chunks/{wellknown-qg0jgkcp.js → persistent-pty-qg0jgkcp.js} +2 -2
- package/dist/chunks/{wellknown-s1aevwv4.js → persistent-pty-qg7vme5a.js} +9 -9
- package/dist/chunks/{wellknown-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{wellknown-ptpqx32c.js → persistent-pty-r3q3r4fd.js} +10 -10
- package/dist/chunks/{wellknown-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{wellknown-005v6d8j.js → persistent-pty-rqng2g8m.js} +13 -13
- package/dist/chunks/{wellknown-graq44t8.js → persistent-pty-rs8bkfty.js} +2 -2
- package/dist/chunks/{wellknown-ajzsbz6h.js → persistent-pty-s375a249.js} +8 -8
- package/dist/chunks/{wellknown-dqgqctr2.js → persistent-pty-s3q9eqgg.js} +5 -5
- package/dist/chunks/{wellknown-s4enseaf.js → persistent-pty-s4enseaf.js} +2 -2
- package/dist/chunks/{wellknown-apqne479.js → persistent-pty-s69js0dt.js} +11 -11
- package/dist/chunks/{wellknown-yc351h59.js → persistent-pty-s9vmnz44.js} +29 -29
- package/dist/chunks/{wellknown-qev0n5q3.js → persistent-pty-sd97x1rd.js} +8 -8
- package/dist/chunks/{wellknown-gzbkpp9m.js → persistent-pty-spt9fbav.js} +6 -6
- package/dist/chunks/{wellknown-s24jje4v.js → persistent-pty-sqj2vzfe.js} +8 -8
- package/dist/chunks/{wellknown-27bw44bf.js → persistent-pty-sqk9sjde.js} +37 -37
- package/dist/chunks/{wellknown-hz5s550c.js → persistent-pty-sw10j4fd.js} +11 -11
- package/dist/chunks/{wellknown-hgneaeq4.js → persistent-pty-syb1njrq.js} +3 -3
- package/dist/chunks/{wellknown-w2dpba99.js → persistent-pty-t0bev62h.js} +27 -27
- package/dist/chunks/{wellknown-ynjg9crq.js → persistent-pty-t2genxjv.js} +15 -15
- package/dist/chunks/{wellknown-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{wellknown-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{wellknown-20paef8v.js → persistent-pty-tdvhbj2h.js} +14 -14
- package/dist/chunks/{wellknown-0bvx96xy.js → persistent-pty-tez6bvh6.js} +12 -12
- package/dist/chunks/{wellknown-azdphh7y.js → persistent-pty-tpfmta5c.js} +54 -54
- package/dist/chunks/{wellknown-4x1anmn8.js → persistent-pty-tpteeg0v.js} +11 -11
- package/dist/chunks/{wellknown-1dangqhw.js → persistent-pty-trgr51ha.js} +8 -8
- package/dist/chunks/{wellknown-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
- package/dist/chunks/{wellknown-zvt5dnpc.js → persistent-pty-tz4n1mmd.js} +4 -4
- package/dist/chunks/{wellknown-5xe7gppd.js → persistent-pty-v0vggfb5.js} +32 -32
- package/dist/chunks/{wellknown-m9pd1gc5.js → persistent-pty-v5xmz3sz.js} +57 -57
- package/dist/chunks/{wellknown-23d69azt.js → persistent-pty-v6tx60m1.js} +3 -3
- package/dist/chunks/{wellknown-53b1mpzx.js → persistent-pty-ve7cjxtc.js} +13 -13
- package/dist/chunks/{wellknown-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{wellknown-t0sqncza.js → persistent-pty-vrpz8t5t.js} +5 -5
- package/dist/chunks/{wellknown-21y9ahke.js → persistent-pty-vsbqxt6s.js} +49 -49
- package/dist/chunks/{wellknown-s8j6jbjj.js → persistent-pty-vsp1fds9.js} +4 -4
- package/dist/chunks/{wellknown-rjtq0f3t.js → persistent-pty-vsrpz7fz.js} +43 -43
- package/dist/chunks/{wellknown-vtxr0yy2.js → persistent-pty-vtxr0yy2.js} +2 -2
- package/dist/chunks/persistent-pty-vz5jjned.js +252 -0
- package/dist/chunks/{wellknown-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
- package/dist/chunks/{wellknown-28cr570f.js → persistent-pty-vzd5qgkw.js} +6 -6
- package/dist/chunks/{wellknown-tc6qcdy5.js → persistent-pty-w1ad28wa.js} +8 -8
- package/dist/chunks/{wellknown-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{wellknown-x173ns5x.js → persistent-pty-w4nag94s.js} +41 -41
- package/dist/chunks/{wellknown-awx6ynpm.js → persistent-pty-wbj67nwc.js} +29 -29
- package/dist/chunks/{wellknown-ws63j1g1.js → persistent-pty-wc9pv775.js} +10 -10
- package/dist/chunks/{wellknown-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{wellknown-4st820mz.js → persistent-pty-wxd0tmpv.js} +10 -10
- package/dist/chunks/{wellknown-w6asm2z7.js → persistent-pty-x18v0msy.js} +13 -13
- package/dist/chunks/{wellknown-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
- package/dist/chunks/{wellknown-jcn9q2cd.js → persistent-pty-x20zfesq.js} +28 -28
- package/dist/chunks/{wellknown-zykkgz7j.js → persistent-pty-x91n6wh8.js} +17 -17
- package/dist/chunks/{wellknown-btp2s2ba.js → persistent-pty-xgrywr61.js} +24 -24
- package/dist/chunks/{wellknown-m49041cj.js → persistent-pty-xhj0xgtv.js} +4 -4
- package/dist/chunks/{wellknown-r0btsynf.js → persistent-pty-xjc1bjsh.js} +12 -12
- package/dist/chunks/{wellknown-nhyt8ne9.js → persistent-pty-xpbx2hne.js} +23 -23
- package/dist/chunks/{wellknown-km3wep78.js → persistent-pty-xq8k2nwn.js} +23 -23
- package/dist/chunks/{wellknown-wxdbwfxs.js → persistent-pty-xrsrnds8.js} +12 -12
- package/dist/chunks/{wellknown-je00n9cw.js → persistent-pty-xxdx3sf5.js} +34 -34
- package/dist/chunks/{wellknown-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{wellknown-n7d88tpn.js → persistent-pty-y6f0p4jw.js} +2 -2
- package/dist/chunks/{wellknown-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
- package/dist/chunks/{wellknown-ycpezjby.js → persistent-pty-yeeaz69z.js} +14 -14
- package/dist/chunks/{wellknown-ejxqht49.js → persistent-pty-yj4nt1a3.js} +32 -32
- package/dist/chunks/{wellknown-bs3jb15w.js → persistent-pty-yrb6fvgd.js} +9 -9
- package/dist/chunks/{wellknown-6r8ft0s7.js → persistent-pty-yrg2qc8f.js} +11 -11
- package/dist/chunks/{wellknown-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
- package/dist/chunks/{wellknown-vq092s7a.js → persistent-pty-yxaf12v7.js} +11 -11
- package/dist/chunks/{wellknown-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{wellknown-dagkn99r.js → persistent-pty-z3mtvqww.js} +1 -1
- package/dist/chunks/{wellknown-24357f79.js → persistent-pty-z5rzna54.js} +6 -6
- package/dist/chunks/{wellknown-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
- package/dist/chunks/{wellknown-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{wellknown-py3q8vm7.js → persistent-pty-zx2jxj74.js} +9 -9
- package/dist/chunks/{wellknown-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- 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 +120 -120
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- 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 +129 -129
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- 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 +121 -121
- 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 +127 -127
- 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 +94 -94
- 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 +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +86 -86
- package/dist/generate.js +94 -94
- 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 +90 -90
- 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 +360 -360
- 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 +83 -83
- 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 +357 -357
- package/dist/location.js +86 -86
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- 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 +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +101 -101
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- 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 +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +1 -1
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- 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 +4 -4
- 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 +93 -93
- package/dist/plugin/provider/opencode.js +93 -93
- 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 +159 -159
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- 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 +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 +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +87 -87
- package/dist/provider.js +96 -96
- 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 +95 -95
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- 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 +5 -5
- 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 +13 -13
- 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 +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +116 -116
- package/dist/session/model-transport.js +7 -7
- 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 +3 -3
- 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 +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- 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 +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +11 -11
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +88 -88
- 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 +126 -126
- package/dist/tool/plugin/edit.js +119 -119
- 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 +1 -1
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +106 -106
- package/dist/tool/plugin/subagent.js +208 -208
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +95 -95
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- 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 +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +3 -3
- 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/wellknown-2sccn0q1.js +0 -26
- package/dist/chunks/wellknown-3k0beh9c.js +0 -252
- package/dist/chunks/wellknown-4v7qdvcn.js +0 -18
- package/dist/chunks/wellknown-qapv375x.js +0 -4
- /package/dist/chunks/{wellknown-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{wellknown-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{wellknown-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{wellknown-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{wellknown-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{wellknown-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{wellknown-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{wellknown-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{wellknown-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{wellknown-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{wellknown-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{wellknown-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{wellknown-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{wellknown-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{wellknown-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{wellknown-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{wellknown-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{wellknown-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{wellknown-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{wellknown-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{wellknown-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{wellknown-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{wellknown-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{wellknown-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{wellknown-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{wellknown-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{wellknown-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
- /package/dist/chunks/{wellknown-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{wellknown-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{wellknown-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{wellknown-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{wellknown-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{wellknown-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{wellknown-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{wellknown-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{wellknown-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{wellknown-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{wellknown-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{wellknown-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{wellknown-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{wellknown-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{wellknown-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{wellknown-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{wellknown-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{wellknown-e3qxr5gk.js → persistent-pty-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{wellknown-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{wellknown-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{wellknown-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{wellknown-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{wellknown-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{wellknown-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{wellknown-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{wellknown-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{wellknown-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{wellknown-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{wellknown-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{wellknown-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{wellknown-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{wellknown-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{wellknown-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
- /package/dist/chunks/{wellknown-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{wellknown-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{wellknown-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{wellknown-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{wellknown-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{wellknown-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{wellknown-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{wellknown-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{wellknown-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{wellknown-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{wellknown-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{wellknown-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{wellknown-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{wellknown-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{wellknown-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{wellknown-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{wellknown-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{wellknown-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{wellknown-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{wellknown-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{wellknown-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{wellknown-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{wellknown-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{wellknown-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
- /package/dist/chunks/{wellknown-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{wellknown-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{wellknown-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{wellknown-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{wellknown-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{wellknown-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{wellknown-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{wellknown-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{wellknown-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{wellknown-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{wellknown-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{wellknown-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./persistent-pty-tez6bvh6.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service76,
|
|
12
|
+
node80
|
|
13
|
+
} from "./persistent-pty-n8wxhx57.js";
|
|
14
14
|
import {
|
|
15
15
|
reconcile2,
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./persistent-pty-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/vcs.ts
|
|
23
23
|
var exports_vcs = {};
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info5,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service33,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node36
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info5, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,12 +45,12 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service33 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
53
|
-
const bus = yield*
|
|
52
|
+
const location = yield* Service76;
|
|
53
|
+
const bus = yield* Service80;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
56
56
|
const vcs = location.vcs;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info5));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -118,7 +118,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
118
118
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
119
119
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return Service33.of({
|
|
122
122
|
transform: state.transform,
|
|
123
123
|
reload: state.reload,
|
|
124
124
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -164,10 +164,10 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
164
164
|
})
|
|
165
165
|
});
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
168
|
-
service:
|
|
167
|
+
var node36 = makeLocationNode({
|
|
168
|
+
service: Service33,
|
|
169
169
|
layer,
|
|
170
|
-
deps: [FSUtil.node,
|
|
170
|
+
deps: [FSUtil.node, node80, node84]
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
export { Base2, BranchList2, FileStatus2,
|
|
173
|
+
export { Base2, BranchList2, FileStatus2, Info5, Mode2, DiffError2, Service33, node36, exports_vcs };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./persistent-pty-n8wxhx57.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service32
|
|
9
|
+
} from "./persistent-pty-8j056ny1.js";
|
|
10
10
|
import {
|
|
11
11
|
Service7
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-9zvz2vs6.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -24,25 +24,25 @@ import {
|
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
26
|
Service8
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./persistent-pty-yrg2qc8f.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input11,
|
|
36
|
+
Plugin: () => Plugin28,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name11,
|
|
39
|
+
toModelContent: () => toModelContent5
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name11 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input11 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin28 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
61
|
const reader = yield* Service8;
|
|
62
|
-
const access = yield*
|
|
62
|
+
const access = yield* Service32;
|
|
63
63
|
const sessionInstructions = yield* Service7;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service76;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name11,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input11,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin19 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent5(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -144,7 +144,7 @@ ${suggestions.join(`
|
|
|
144
144
|
});
|
|
145
145
|
})
|
|
146
146
|
};
|
|
147
|
-
var
|
|
147
|
+
var toModelContent5 = (path, offset, output) => {
|
|
148
148
|
if (output.type === "file" && output.encoding === "base64")
|
|
149
149
|
return [
|
|
150
150
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -180,4 +180,4 @@ var toModelContent2 = (path, offset, output) => {
|
|
|
180
180
|
`);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { name11, Input11, Plugin28, toModelContent5, exports_read };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service80
|
|
3
|
+
} from "./persistent-pty-tez6bvh6.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-4dgbcxzg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event18
|
|
9
|
+
} from "./persistent-pty-p8j15tse.js";
|
|
10
10
|
import {
|
|
11
11
|
ID14
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-qd1yxrve.js";
|
|
13
13
|
import {
|
|
14
14
|
ID13,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service72
|
|
16
|
+
} from "./persistent-pty-ktabkpdb.js";
|
|
17
17
|
import {
|
|
18
18
|
load2,
|
|
19
19
|
derive2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-esg06bhp.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
@@ -26,8 +26,8 @@ var providerID = ID13.make("modal");
|
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
30
|
-
const bus = yield*
|
|
29
|
+
const providers = yield* Service72;
|
|
30
|
+
const bus = yield* Service80;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
33
33
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -67,7 +67,7 @@ var ModalPlugin2 = define({
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service83,
|
|
3
|
-
node87
|
|
4
|
-
} from "./wellknown-0bvx96xy.js";
|
|
5
1
|
import {
|
|
6
2
|
Service80,
|
|
7
3
|
node84
|
|
8
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-tez6bvh6.js";
|
|
5
|
+
import {
|
|
6
|
+
Service76,
|
|
7
|
+
node80
|
|
8
|
+
} from "./persistent-pty-n8wxhx57.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID11
|
|
11
|
+
} from "./persistent-pty-hr9dp009.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service65,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
node68
|
|
16
|
+
} from "./persistent-pty-99kpm3x9.js";
|
|
17
17
|
import {
|
|
18
18
|
lazy2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-88xbtdfr.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/pty.ts
|
|
25
25
|
var exports_pty = {};
|
|
26
26
|
__export(exports_pty, {
|
|
27
27
|
CreateInput: () => CreateInput3,
|
|
28
|
-
Event: () =>
|
|
28
|
+
Event: () => Event13,
|
|
29
29
|
ExitedError: () => ExitedError2,
|
|
30
|
-
Info: () =>
|
|
31
|
-
NotFoundError: () =>
|
|
30
|
+
Info: () => Info24,
|
|
31
|
+
NotFoundError: () => NotFoundError6,
|
|
32
32
|
Pty: () => exports_pty,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service63,
|
|
34
34
|
UpdateInput: () => UpdateInput2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node66
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
39
39
|
import { Pty } from "@opencode/schema/pty";
|
|
40
|
-
import { Event as
|
|
40
|
+
import { Event as Event13 } from "@opencode/schema/pty";
|
|
41
41
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
42
42
|
var EXITED_LIMIT = 25;
|
|
43
43
|
var pty = lazy2(() => import("#pty"));
|
|
44
|
-
var
|
|
44
|
+
var Info24 = Pty.Info;
|
|
45
45
|
var CreateInput3 = Pty.CreateInput;
|
|
46
46
|
var UpdateInput2 = Pty.UpdateInput;
|
|
47
47
|
|
|
48
|
-
class
|
|
49
|
-
ptyID:
|
|
48
|
+
class NotFoundError6 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
49
|
+
ptyID: ID11
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
54
|
-
ptyID:
|
|
54
|
+
ptyID: ID11
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service63 extends Context.Service()("@opencode/Pty") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
61
|
-
const bus = yield*
|
|
62
|
-
const location = yield*
|
|
63
|
-
const shell = yield*
|
|
60
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
61
|
+
const bus = yield* Service80;
|
|
62
|
+
const location = yield* Service76;
|
|
63
|
+
const shell = yield* Service65;
|
|
64
64
|
const context = yield* Effect.context();
|
|
65
65
|
const runFork = Effect.runForkWith(context);
|
|
66
66
|
const sessions = new Map;
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
97
97
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
98
98
|
const session = sessions.get(id);
|
|
99
99
|
if (!session)
|
|
100
|
-
return yield* new
|
|
100
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
101
101
|
return session;
|
|
102
102
|
});
|
|
103
103
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -123,7 +123,7 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
123
123
|
return (yield* requireSession(id)).info;
|
|
124
124
|
});
|
|
125
125
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
126
|
-
const id =
|
|
126
|
+
const id = ID11.ascending();
|
|
127
127
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
128
128
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
129
129
|
const cwd = input.cwd || location.directory;
|
|
@@ -268,12 +268,12 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
|
-
return
|
|
271
|
+
return Service63.of({ list, get, create, update, remove, write, attach });
|
|
272
272
|
}));
|
|
273
|
-
var
|
|
274
|
-
service:
|
|
273
|
+
var node66 = makeLocationNode({
|
|
274
|
+
service: Service63,
|
|
275
275
|
layer,
|
|
276
|
-
deps: [
|
|
276
|
+
deps: [node84, node80, node68]
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { Info24, CreateInput3, UpdateInput2, NotFoundError6, ExitedError2, Service63, node66, exports_pty, Event13 };
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
4
|
var ID10 = Session.ID;
|
|
5
|
-
var
|
|
5
|
+
var Info23 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export { ID10,
|
|
7
|
+
export { ID10, Info23, SessionSchema2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service74
|
|
3
|
+
} from "./persistent-pty-pkpv8qry.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service41
|
|
6
|
+
} from "./persistent-pty-tpfmta5c.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input13,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin49,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name14,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name14 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input13 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin49 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service74;
|
|
57
|
+
const permission = yield* Service41;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name14,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input13,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -115,4 +115,4 @@ function toField(question, index) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export {
|
|
118
|
+
export { name14, description6, Input13, Output9, CancelledError2, toModelContent7, Plugin49, exports_question };
|
|
@@ -2,47 +2,47 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service76,
|
|
8
|
+
node80
|
|
9
|
+
} from "./persistent-pty-n8wxhx57.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service67,
|
|
12
|
+
node70
|
|
13
|
+
} from "./persistent-pty-h4fcns97.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
|
-
Entry: () =>
|
|
25
|
-
Event: () =>
|
|
24
|
+
Entry: () => Entry4,
|
|
25
|
+
Event: () => Event14,
|
|
26
26
|
FileSystem: () => exports_filesystem,
|
|
27
27
|
FindInput: () => FindInput2,
|
|
28
28
|
GlobInput: () => GlobInput2,
|
|
29
29
|
GrepInput: () => GrepInput2,
|
|
30
|
-
ListInput: () =>
|
|
30
|
+
ListInput: () => ListInput5,
|
|
31
31
|
Match: () => Match2,
|
|
32
|
-
NotFoundError: () =>
|
|
32
|
+
NotFoundError: () => NotFoundError8,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service66,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node69
|
|
39
39
|
});
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
43
43
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
44
44
|
import { Entry, FileSystem, FindInput as FindInput2, Write as Write2 } from "@opencode/schema/filesystem";
|
|
45
|
-
import { Entry as
|
|
45
|
+
import { Entry as Entry4, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
|
|
46
46
|
var ReadInput2 = Schema.Struct({
|
|
47
47
|
path: RelativePath2
|
|
48
48
|
});
|
|
@@ -51,18 +51,18 @@ var WriteInput2 = Schema.Struct({
|
|
|
51
51
|
data: Schema.Uint8Array
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class NotFoundError8 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
55
55
|
path: RelativePath2
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var Content3 = Schema.Struct({
|
|
59
59
|
uri: Schema.String,
|
|
60
60
|
name: Schema.String.pipe(Schema.optional),
|
|
61
61
|
content: Schema.String,
|
|
62
62
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
63
63
|
mime: Schema.String
|
|
64
64
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
65
|
-
var
|
|
65
|
+
var ListInput5 = Schema.Struct({
|
|
66
66
|
path: Schema.String.pipe(Schema.optional)
|
|
67
67
|
});
|
|
68
68
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -85,14 +85,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
85
85
|
limit: Schema.optionalKey(PositiveInt2)
|
|
86
86
|
}) {
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Event14 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service66 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service66, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
|
-
const location = yield*
|
|
95
|
-
const search = yield*
|
|
94
|
+
const location = yield* Service76;
|
|
95
|
+
const search = yield* Service67;
|
|
96
96
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
97
97
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
98
98
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -103,15 +103,15 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
103
103
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
104
|
return { absolute, real, directory: location.directory };
|
|
105
105
|
});
|
|
106
|
-
return
|
|
106
|
+
return Service66.of({
|
|
107
107
|
find: search.find,
|
|
108
108
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
109
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
110
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
109
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError8({ path: input.path })), (_, error) => Effect.die(error)));
|
|
110
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError8({ path: input.path })), (_, error) => Effect.die(error)));
|
|
111
111
|
if (info.type !== "File")
|
|
112
112
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
113
113
|
return {
|
|
114
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
114
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError8({ path: input.path })), (_, error) => Effect.die(error))),
|
|
115
115
|
mime: FSUtil.mimeType(target.real)
|
|
116
116
|
};
|
|
117
117
|
}),
|
|
@@ -140,10 +140,10 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node69 = makeLocationNode({
|
|
144
|
+
service: Service66,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node80, node70]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError8, Content3, ListInput5, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event14, Service66, node69, exports_filesystem, Entry4, Match2, Submatch2 };
|