@opencode/core 0.0.0-dev-20487 → 0.0.0-dev-20488
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{git-475q9svy.js → instruction-discovery-09w819ma.js} +15 -15
- package/dist/chunks/{git-wmnssb6q.js → instruction-discovery-0m47ftre.js} +24 -24
- package/dist/chunks/{git-zfs8ae4p.js → instruction-discovery-0me0fk48.js} +4 -4
- package/dist/chunks/{git-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{git-0vbcp93d.js → instruction-discovery-0vbcp93d.js} +2 -2
- package/dist/chunks/{git-pavar7ea.js → instruction-discovery-0whds7zr.js} +32 -32
- package/dist/chunks/{git-rrjhvgg4.js → instruction-discovery-0ws6ajg2.js} +13 -13
- package/dist/chunks/{git-16apfsbq.js → instruction-discovery-0wxkqsx5.js} +15 -15
- package/dist/chunks/{git-vvwn34gm.js → instruction-discovery-0yjgx9tf.js} +26 -26
- package/dist/chunks/{git-e8tr3786.js → instruction-discovery-10pgvwje.js} +36 -36
- package/dist/chunks/{git-bf0bx9gk.js → instruction-discovery-198btxyk.js} +9 -9
- package/dist/chunks/{git-yp2x3t23.js → instruction-discovery-1acjjqhc.js} +4 -4
- package/dist/chunks/{git-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{git-nr6bfqmd.js → instruction-discovery-1dwkpgwq.js} +27 -27
- package/dist/chunks/{git-bsbz52zb.js → instruction-discovery-1f7sha8m.js} +22 -22
- package/dist/chunks/{git-em4qz8cs.js → instruction-discovery-2151whcr.js} +13 -13
- package/dist/chunks/{git-avae2qkj.js → instruction-discovery-234nbg4f.js} +13 -13
- package/dist/chunks/{git-w24kdg89.js → instruction-discovery-257nxyp3.js} +18 -18
- package/dist/chunks/{git-edgxv28b.js → instruction-discovery-28vg5v99.js} +15 -15
- package/dist/chunks/{git-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{git-j5w2yx54.js → instruction-discovery-2a6rn6yr.js} +6 -6
- package/dist/chunks/{git-gca7nrd2.js → instruction-discovery-2a8nq3m5.js} +74 -74
- package/dist/chunks/{git-6pgc1f5w.js → instruction-discovery-2fqj34yx.js} +12 -12
- package/dist/chunks/{git-b131bxh3.js → instruction-discovery-2gsqsx3d.js} +24 -24
- package/dist/chunks/{git-fcrkznn8.js → instruction-discovery-2k8khapm.js} +5 -5
- package/dist/chunks/{git-w1ad28wa.js → instruction-discovery-2w5dyyz8.js} +5 -5
- package/dist/chunks/{git-1j8ev5c3.js → instruction-discovery-3a7dge26.js} +24 -24
- package/dist/chunks/{git-h2b79v29.js → instruction-discovery-3cegwx68.js} +2 -2
- package/dist/chunks/{git-qqm7ywwe.js → instruction-discovery-3dvt8w09.js} +22 -22
- package/dist/chunks/{git-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{git-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{git-3j8n7zh4.js → instruction-discovery-3q1z0jfz.js} +18 -18
- package/dist/chunks/{git-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{git-tftvtmn6.js → instruction-discovery-3trkeaa7.js} +24 -24
- package/dist/chunks/{git-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{git-mzytx70b.js → instruction-discovery-3ty6e2kw.js} +93 -93
- package/dist/chunks/{git-ab3b0rew.js → instruction-discovery-3y4fpz99.js} +4 -4
- package/dist/chunks/{git-tc14gx3q.js → instruction-discovery-3zbwexce.js} +11 -11
- package/dist/chunks/{git-3zsf4n22.js → instruction-discovery-3zsf4n22.js} +1 -1
- package/dist/chunks/{git-2bc3cxj7.js → instruction-discovery-43nas8ga.js} +49 -49
- package/dist/chunks/{git-2k9fjx65.js → instruction-discovery-47jkzegy.js} +5 -5
- package/dist/chunks/{git-gz56ec1j.js → instruction-discovery-49hrmjvb.js} +41 -41
- package/dist/chunks/{git-hjndax5w.js → instruction-discovery-4egf5287.js} +21 -21
- package/dist/chunks/{git-fm9vx6we.js → instruction-discovery-4epjg9n3.js} +10 -10
- package/dist/chunks/{git-73apqjm5.js → instruction-discovery-4jrrtpc9.js} +19 -19
- package/dist/chunks/{git-b0ze2mb8.js → instruction-discovery-4mc7mr7m.js} +10 -10
- package/dist/chunks/{git-xdj3jjdd.js → instruction-discovery-4t523vn3.js} +11 -11
- package/dist/chunks/{git-2ccvkpx1.js → instruction-discovery-4ts7tf6z.js} +2 -2
- package/dist/chunks/{git-pp3qghtd.js → instruction-discovery-4tw3n1rs.js} +5 -5
- package/dist/chunks/{git-s3s036sb.js → instruction-discovery-4xr7br1c.js} +3 -3
- package/dist/chunks/{git-thtvf947.js → instruction-discovery-534enda7.js} +5 -5
- package/dist/chunks/{git-6n8y2g7x.js → instruction-discovery-53mskn80.js} +7 -7
- package/dist/chunks/{git-6jr8kha2.js → instruction-discovery-57am6r6d.js} +8 -8
- package/dist/chunks/{git-4etvww50.js → instruction-discovery-5c3yvawb.js} +185 -185
- package/dist/chunks/{git-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{git-d7jaa4wg.js → instruction-discovery-5jx484x5.js} +11 -11
- package/dist/chunks/{git-1phwnavf.js → instruction-discovery-5n5bh537.js} +11 -11
- package/dist/chunks/{git-f5gy8qwh.js → instruction-discovery-5q13c62c.js} +8 -8
- package/dist/chunks/{git-e3qxr5gk.js → instruction-discovery-5qd3pb7m.js} +2 -2
- package/dist/chunks/{git-tkh413by.js → instruction-discovery-5rqkpza8.js} +9 -9
- package/dist/chunks/{git-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{git-qzexb7dd.js → instruction-discovery-5zyqsw7g.js} +12 -12
- package/dist/chunks/{git-jdnhh2g6.js → instruction-discovery-61wngfpk.js} +46 -46
- package/dist/chunks/{git-9pa8tak9.js → instruction-discovery-63db42yp.js} +2 -2
- package/dist/chunks/{git-p45atnv4.js → instruction-discovery-64hcb429.js} +16 -16
- package/dist/chunks/{git-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{git-bh00h86y.js → instruction-discovery-67x749rj.js} +22 -22
- package/dist/chunks/instruction-discovery-695my56f.js +26 -0
- package/dist/chunks/{git-33b8fnsk.js → instruction-discovery-69zvy5zj.js} +6 -6
- package/dist/chunks/{git-h017z5nv.js → instruction-discovery-6nkyp4bj.js} +16 -16
- package/dist/chunks/{git-c2kekdpx.js → instruction-discovery-6nxh550w.js} +1 -1
- package/dist/chunks/{git-nk6rbrgr.js → instruction-discovery-6q181wvc.js} +28 -28
- package/dist/chunks/{git-0t098hqn.js → instruction-discovery-6vq97qmv.js} +5 -5
- package/dist/chunks/{git-s1mk6ccd.js → instruction-discovery-6vwe9kp6.js} +11 -11
- package/dist/chunks/{git-7eb1d2yt.js → instruction-discovery-6xs26ss7.js} +30 -30
- package/dist/chunks/{git-8zhmd018.js → instruction-discovery-6zh6wxqg.js} +36 -36
- package/dist/chunks/{git-5hwzk0w4.js → instruction-discovery-77jt29wt.js} +29 -29
- package/dist/chunks/{git-6xkwkya9.js → instruction-discovery-7a0fz05z.js} +13 -13
- package/dist/chunks/{git-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{git-0w8cbt7c.js → instruction-discovery-7jawp51c.js} +32 -32
- package/dist/chunks/{git-bzt0dk37.js → instruction-discovery-7sk8ve6j.js} +19 -19
- package/dist/chunks/{git-pfebza6x.js → instruction-discovery-7x76hv1h.js} +32 -32
- package/dist/chunks/{git-gv1782g9.js → instruction-discovery-7zdg2jq8.js} +27 -27
- package/dist/chunks/{git-1dvck2a7.js → instruction-discovery-84h8c373.js} +2 -2
- package/dist/chunks/{git-6pf3my43.js → instruction-discovery-890j4q8g.js} +4 -4
- package/dist/chunks/{git-11wpxp25.js → instruction-discovery-89qmb68j.js} +35 -35
- package/dist/chunks/{git-nkh99vgj.js → instruction-discovery-8ca5gf6d.js} +15 -15
- package/dist/chunks/{git-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{git-cwz9jdg6.js → instruction-discovery-8ftpwjsb.js} +17 -17
- package/dist/chunks/{git-fsse434c.js → instruction-discovery-8hdaq0f1.js} +6 -6
- package/dist/chunks/{git-gzn9fqyv.js → instruction-discovery-92f202f2.js} +32 -32
- package/dist/chunks/{git-ff8nr4y0.js → instruction-discovery-99c1fcab.js} +35 -35
- package/dist/chunks/{git-8f95w5kh.js → instruction-discovery-9mqbw0dd.js} +11 -11
- package/dist/chunks/{git-nj62jbws.js → instruction-discovery-9pefrk9y.js} +62 -62
- package/dist/chunks/{git-vwwdt11q.js → instruction-discovery-9taqfd41.js} +13 -13
- package/dist/chunks/{git-cth98fgx.js → instruction-discovery-9tdkd6vr.js} +48 -48
- package/dist/chunks/{git-jgf0bwqe.js → instruction-discovery-9tv16z90.js} +5 -5
- package/dist/chunks/{git-yg4x4cvm.js → instruction-discovery-9w97dca2.js} +9 -9
- package/dist/chunks/{git-73tb2d7t.js → instruction-discovery-a1gpj94z.js} +3 -3
- package/dist/chunks/{git-g1sxm558.js → instruction-discovery-a2qe2ev9.js} +8 -8
- package/dist/chunks/{git-9vtq88j9.js → instruction-discovery-a78fw167.js} +30 -30
- package/dist/chunks/{git-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{git-v2mjd211.js → instruction-discovery-anye7z91.js} +40 -40
- package/dist/chunks/{git-bn8r8h40.js → instruction-discovery-aqxydgd6.js} +18 -18
- package/dist/chunks/{git-xvvg8evz.js → instruction-discovery-asf9fbg3.js} +2 -2
- package/dist/chunks/{git-satpgpy0.js → instruction-discovery-atwnmxpf.js} +20 -20
- package/dist/chunks/{git-6mhn18hh.js → instruction-discovery-b1dewbpn.js} +19 -19
- package/dist/chunks/{git-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{git-8vpe69nk.js → instruction-discovery-bgdwj0fa.js} +28 -28
- package/dist/chunks/{git-wa9061eh.js → instruction-discovery-bpnyhyfj.js} +3 -3
- package/dist/chunks/{git-njerjs8t.js → instruction-discovery-bzcbjd9t.js} +29 -29
- package/dist/chunks/{git-gtczcmth.js → instruction-discovery-c4x5783g.js} +5 -5
- package/dist/chunks/{git-50bccm45.js → instruction-discovery-c75vb053.js} +36 -36
- package/dist/chunks/{git-n79tw6se.js → instruction-discovery-c7ycb71c.js} +4 -4
- package/dist/chunks/{git-2pnhn36q.js → instruction-discovery-cavr175a.js} +21 -21
- package/dist/chunks/{git-py3kkmfq.js → instruction-discovery-cfsekr6v.js} +2 -2
- package/dist/chunks/{git-d7rqbc4v.js → instruction-discovery-cg2k9t5z.js} +33 -33
- package/dist/chunks/{git-ztjvgwme.js → instruction-discovery-cgesad6j.js} +19 -19
- package/dist/chunks/{git-0bbrpfc7.js → instruction-discovery-chfzcee1.js} +14 -14
- package/dist/chunks/{git-h6310vsd.js → instruction-discovery-cp937pt4.js} +4 -4
- package/dist/chunks/{git-vc5agm35.js → instruction-discovery-csp7vt80.js} +32 -32
- package/dist/chunks/{git-5yzzbxa7.js → instruction-discovery-czfptnv9.js} +8 -8
- package/dist/chunks/{git-g1d57xsd.js → instruction-discovery-dgzr8r92.js} +42 -42
- package/dist/chunks/{git-p1463psw.js → instruction-discovery-dhzm9p0q.js} +5 -5
- package/dist/chunks/{git-q6jj9914.js → instruction-discovery-dm6xa1w8.js} +21 -21
- package/dist/chunks/{git-s8tf1dff.js → instruction-discovery-dma9gyvt.js} +12 -12
- package/dist/chunks/{git-dmqcgk4z.js → instruction-discovery-dmqcgk4z.js} +2 -2
- package/dist/chunks/{git-m4qj4fpw.js → instruction-discovery-dv1bcy32.js} +11 -11
- package/dist/chunks/{git-hj210d1a.js → instruction-discovery-e35g93k6.js} +7 -7
- package/dist/chunks/{git-9mdv1d98.js → instruction-discovery-e8vwfchq.js} +9 -9
- package/dist/chunks/{git-pttd3nzj.js → instruction-discovery-e96qe5tn.js} +25 -25
- package/dist/chunks/{git-ys8thrvz.js → instruction-discovery-eda12k7e.js} +3 -3
- package/dist/chunks/{git-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{git-yj5m20h0.js → instruction-discovery-en9mxp96.js} +9 -9
- package/dist/chunks/{git-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{git-8pm5vmt4.js → instruction-discovery-exmq4wqv.js} +20 -20
- package/dist/chunks/{git-71az546q.js → instruction-discovery-f75zav2x.js} +2 -2
- package/dist/chunks/instruction-discovery-f81tjggh.js +18 -0
- package/dist/chunks/{git-wnpk5cj0.js → instruction-discovery-fbr3nfbw.js} +11 -11
- package/dist/chunks/{git-m64hph1b.js → instruction-discovery-fxs0yy90.js} +15 -15
- package/dist/chunks/{git-g5kmhmn4.js → instruction-discovery-g17kg1qe.js} +11 -11
- package/dist/chunks/{git-xfkkasph.js → instruction-discovery-g5w8qwbj.js} +4 -4
- package/dist/chunks/{git-w2h15q85.js → instruction-discovery-g6yfr6ja.js} +5 -5
- package/dist/chunks/{git-0x70nm0y.js → instruction-discovery-gcw3aq97.js} +9 -9
- package/dist/chunks/{git-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{git-5hzbnnap.js → instruction-discovery-gg2r8a4c.js} +14 -14
- package/dist/chunks/{git-s5qxm7c2.js → instruction-discovery-gn31e51v.js} +11 -11
- package/dist/chunks/{git-x661k3y3.js → instruction-discovery-gqtdsdt7.js} +4 -4
- package/dist/chunks/{git-rr03d8em.js → instruction-discovery-grvhawas.js} +21 -21
- package/dist/chunks/{git-1b4m0bzf.js → instruction-discovery-gw7cjrad.js} +4 -4
- package/dist/chunks/{git-yfeh97mb.js → instruction-discovery-gxhzym33.js} +21 -21
- package/dist/chunks/{git-7gd3hzpr.js → instruction-discovery-h2ac09zz.js} +22 -22
- package/dist/chunks/{git-1e03kyp0.js → instruction-discovery-h3e5tqcb.js} +8 -8
- package/dist/chunks/{git-56qj8wan.js → instruction-discovery-h4g9p4f2.js} +5 -5
- package/dist/chunks/{git-y9ehdwpk.js → instruction-discovery-h4vfkhfc.js} +6 -6
- package/dist/chunks/{git-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{git-1f2q55ad.js → instruction-discovery-hn4y6d17.js} +33 -33
- package/dist/chunks/{git-2p5y98w0.js → instruction-discovery-hsewmz24.js} +6 -6
- package/dist/chunks/{git-tczj4wcr.js → instruction-discovery-hwbe8hjp.js} +8 -8
- package/dist/chunks/{git-2vp5hvvb.js → instruction-discovery-hwfxa3cw.js} +8 -8
- package/dist/chunks/{git-c243x79n.js → instruction-discovery-j07gkf3t.js} +34 -34
- package/dist/chunks/{git-9cnxfjke.js → instruction-discovery-j0qwk3p8.js} +22 -22
- package/dist/chunks/{git-2c3eq8z5.js → instruction-discovery-j3q689wm.js} +1 -1
- package/dist/chunks/{git-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{git-938vy3my.js → instruction-discovery-j5fbqtdd.js} +35 -35
- package/dist/chunks/{git-5dcjqgan.js → instruction-discovery-jf7a66sb.js} +15 -15
- package/dist/chunks/{git-0f7xk5x9.js → instruction-discovery-k6qg2bky.js} +11 -11
- package/dist/chunks/{git-9e5bzkjp.js → instruction-discovery-kb9j3d72.js} +3 -3
- package/dist/chunks/{git-rjw6hp1j.js → instruction-discovery-kgd31h0f.js} +25 -25
- package/dist/chunks/{git-4c9fjdh1.js → instruction-discovery-khyjcraz.js} +11 -11
- package/dist/chunks/{git-3jda838f.js → instruction-discovery-knwj7e2t.js} +16 -16
- package/dist/chunks/{git-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{git-w2dybhf4.js → instruction-discovery-m8y9xexq.js} +3 -3
- package/dist/chunks/{git-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{git-zftzqrxt.js → instruction-discovery-maq9famm.js} +11 -11
- package/dist/chunks/{git-4rchyh60.js → instruction-discovery-mbwvgf1x.js} +5 -5
- package/dist/chunks/{git-gsnyd5qq.js → instruction-discovery-mcwfras5.js} +7 -7
- package/dist/chunks/{git-1ygqh575.js → instruction-discovery-mfqp6xfm.js} +6 -6
- package/dist/chunks/{git-2bw54qtz.js → instruction-discovery-mq2tvvhp.js} +6 -6
- package/dist/chunks/{git-rrt2er56.js → instruction-discovery-mvdg29ky.js} +3 -3
- package/dist/chunks/{git-wgwzc84g.js → instruction-discovery-mvyst4k3.js} +46 -46
- package/dist/chunks/{git-nyfw82fd.js → instruction-discovery-n42msxhh.js} +22 -22
- package/dist/chunks/{git-2m6x7dk2.js → instruction-discovery-n549q8gq.js} +24 -24
- package/dist/chunks/{git-n1mcftb7.js → instruction-discovery-n5a0bm5f.js} +13 -13
- package/dist/chunks/{git-vs1y934m.js → instruction-discovery-n9mcnjvb.js} +18 -18
- package/dist/chunks/instruction-discovery-nae5rbdw.js +253 -0
- package/dist/chunks/{git-qyzaws7n.js → instruction-discovery-nc4b9ezq.js} +11 -11
- package/dist/chunks/{git-1by5q0j9.js → instruction-discovery-njg6ebp9.js} +26 -26
- package/dist/chunks/{git-y71avatq.js → instruction-discovery-nxm207yx.js} +4 -4
- package/dist/chunks/{git-x2rw7g36.js → instruction-discovery-nyqx1cb3.js} +5 -5
- package/dist/chunks/{git-p79yms0y.js → instruction-discovery-nz9wwjtp.js} +10 -10
- package/dist/chunks/{git-sa28a9tf.js → instruction-discovery-p4587dg3.js} +9 -9
- package/dist/chunks/{git-yev3q7x9.js → instruction-discovery-p4dv011m.js} +18 -18
- package/dist/chunks/{git-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{git-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{git-0j77ygfz.js → instruction-discovery-q0xm7vwc.js} +6 -6
- package/dist/chunks/{git-0zghx38h.js → instruction-discovery-qchxrxbp.js} +15 -15
- package/dist/chunks/{git-zn3xdhgm.js → instruction-discovery-qcprstc3.js} +4 -4
- package/dist/chunks/{git-qnc92qwc.js → instruction-discovery-qnc92qwc.js} +1 -1
- package/dist/chunks/{git-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{git-qxjc9qry.js → instruction-discovery-qxjc9qry.js} +3 -3
- package/dist/chunks/{git-qmqgtz8f.js → instruction-discovery-r2m716tb.js} +9 -9
- package/dist/chunks/{git-54ma36ye.js → instruction-discovery-r94pvvab.js} +4 -4
- package/dist/chunks/{git-b27vhd2z.js → instruction-discovery-ratrq7cm.js} +4 -4
- package/dist/chunks/{git-c8s4yex5.js → instruction-discovery-rbkz5k6g.js} +16 -16
- package/dist/chunks/{git-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{git-7zqvbyaq.js → instruction-discovery-rf7k241v.js} +17 -17
- package/dist/chunks/{git-9ppqf0fm.js → instruction-discovery-rgb6bxvk.js} +23 -23
- package/dist/chunks/{git-5y9w058m.js → instruction-discovery-rn4p5jba.js} +11 -11
- package/dist/chunks/{git-73nkehxt.js → instruction-discovery-rqm8rmge.js} +8 -8
- package/dist/chunks/{git-db35ckwp.js → instruction-discovery-rxmvmgfa.js} +20 -20
- package/dist/chunks/{git-m5eggbga.js → instruction-discovery-s3jjtrcx.js} +11 -11
- package/dist/chunks/{git-scgrse2b.js → instruction-discovery-scgrse2b.js} +2 -2
- package/dist/chunks/{git-143qq2q9.js → instruction-discovery-ss358qx3.js} +3 -3
- package/dist/chunks/{git-b43h1dzc.js → instruction-discovery-sxjnac8t.js} +12 -12
- package/dist/chunks/{git-q9zb0ecv.js → instruction-discovery-t4sf8wv4.js} +94 -94
- package/dist/chunks/{git-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{git-1174b0hx.js → instruction-discovery-tbezpxf3.js} +16 -16
- package/dist/chunks/{git-szbzmdkq.js → instruction-discovery-tc0tejgn.js} +15 -15
- package/dist/chunks/{git-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{git-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{git-mnraq51s.js → instruction-discovery-tqwt26jr.js} +20 -20
- package/dist/chunks/{git-56espktj.js → instruction-discovery-tt2v6w0g.js} +18 -18
- package/dist/chunks/{git-6g7e4dd5.js → instruction-discovery-v0es1rhs.js} +7 -7
- package/dist/chunks/{git-h79qd4dv.js → instruction-discovery-v2hz81kc.js} +12 -12
- package/dist/chunks/{git-524eer23.js → instruction-discovery-vdcnzv66.js} +13 -13
- package/dist/chunks/{git-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{git-n3qqcskk.js → instruction-discovery-vjh434ps.js} +33 -33
- package/dist/chunks/{git-at2w5gta.js → instruction-discovery-vpmjnhk9.js} +35 -35
- package/dist/chunks/{git-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{git-vzs5sf6e.js → instruction-discovery-vzs5sf6e.js} +1 -1
- package/dist/chunks/{git-1k4dr7g1.js → instruction-discovery-w16jkc0m.js} +32 -32
- package/dist/chunks/{git-84txncab.js → instruction-discovery-w1eejvng.js} +5 -5
- package/dist/chunks/{git-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{git-r3vcwrv4.js → instruction-discovery-w7s3shsg.js} +29 -29
- package/dist/chunks/{git-2003xh4j.js → instruction-discovery-w8djw5a7.js} +9 -9
- package/dist/chunks/{git-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{git-nr6gcs3w.js → instruction-discovery-we2v2aqd.js} +8 -8
- package/dist/chunks/{git-8fnsfksf.js → instruction-discovery-we4kaebg.js} +19 -19
- package/dist/chunks/{git-zbfyanxm.js → instruction-discovery-wead7aht.js} +8 -8
- package/dist/chunks/instruction-discovery-wgjdrefs.js +507 -0
- package/dist/chunks/{git-99d0s71v.js → instruction-discovery-wmkjrt6y.js} +4 -4
- package/dist/chunks/{git-s8d7rejh.js → instruction-discovery-wv396vej.js} +8 -8
- package/dist/chunks/{git-325sge2s.js → instruction-discovery-wxyynt4w.js} +1 -1
- package/dist/chunks/{git-dx0zancp.js → instruction-discovery-x08kk3pc.js} +11 -11
- package/dist/chunks/{git-1bvxe6eh.js → instruction-discovery-x10r85z8.js} +62 -62
- package/dist/chunks/{git-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{git-631zgpvt.js → instruction-discovery-x1sw2jt5.js} +13 -13
- package/dist/chunks/{git-3pnse8ed.js → instruction-discovery-x8anjrbb.js} +14 -14
- package/dist/chunks/{git-pt5yrvtv.js → instruction-discovery-x8zyqsnc.js} +3 -3
- package/dist/chunks/{git-zm2ry5m5.js → instruction-discovery-xb2vsd53.js} +20 -20
- package/dist/chunks/{git-m99rkf63.js → instruction-discovery-xd9vdtda.js} +5 -5
- package/dist/chunks/{git-q4g8h7yf.js → instruction-discovery-xf8k9j4s.js} +44 -44
- package/dist/chunks/{git-nf3bc7kp.js → instruction-discovery-xqrhmb6a.js} +23 -23
- package/dist/chunks/{git-v7qe61cb.js → instruction-discovery-xxgwgp89.js} +11 -11
- package/dist/chunks/{git-vgepzxbh.js → instruction-discovery-xxndcd6m.js} +4 -4
- package/dist/chunks/{git-ep5xej2h.js → instruction-discovery-y0dt3xqy.js} +54 -54
- package/dist/chunks/{git-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{git-1ycnedvv.js → instruction-discovery-y68tptm5.js} +34 -34
- package/dist/chunks/{git-ph842b28.js → instruction-discovery-y6mhz57t.js} +4 -4
- package/dist/chunks/{git-2hr5nhwa.js → instruction-discovery-y72zmemf.js} +8 -8
- package/dist/chunks/{git-29mm1gn9.js → instruction-discovery-yk1234b4.js} +35 -35
- package/dist/chunks/{git-0jq9fyba.js → instruction-discovery-yr715y08.js} +9 -9
- package/dist/chunks/{git-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{git-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{git-k18ytf7m.js → instruction-discovery-z2qvtray.js} +4 -4
- package/dist/chunks/{git-6vabwvmw.js → instruction-discovery-zbmj01pq.js} +17 -17
- package/dist/chunks/{git-d7tmzpbn.js → instruction-discovery-zdnf9v5q.js} +47 -47
- package/dist/chunks/{git-94pjbwqw.js → instruction-discovery-zewtftjh.js} +10 -10
- package/dist/chunks/{git-xezz0ntz.js → instruction-discovery-zha7grgq.js} +31 -31
- package/dist/chunks/{git-4t94svg8.js → instruction-discovery-zjh1mmzv.js} +26 -26
- package/dist/chunks/{git-xb9d739d.js → instruction-discovery-zmwj70rk.js} +32 -32
- package/dist/chunks/{git-rf94mawb.js → instruction-discovery-zqbymf7j.js} +21 -21
- package/dist/chunks/{git-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{git-tbj8krrj.js → instruction-discovery-zr4jefnj.js} +42 -42
- package/dist/chunks/{git-1hya600g.js → instruction-discovery-zsh647e0.js} +5 -5
- package/dist/chunks/{git-n7m60htf.js → instruction-discovery-zt8sfb0h.js} +42 -42
- package/dist/chunks/{git-m70sbz6t.js → instruction-discovery-zvt5dnpc.js} +4 -4
- package/dist/chunks/{git-zxq2ej10.js → instruction-discovery-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 +79 -79
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +98 -98
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -355
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +344 -344
- 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/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- 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/affinity.js +3 -3
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- 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 +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +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 +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +93 -93
- 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 +128 -128
- 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 +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +3 -3
- 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 +96 -96
- package/package.json +8 -8
- package/dist/chunks/git-1x11rq2a.js +0 -18
- package/dist/chunks/git-j2kychf2.js +0 -26
- package/dist/chunks/git-nrkx522j.js +0 -507
- package/dist/chunks/git-q2cxkkpz.js +0 -253
- /package/dist/chunks/{git-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{git-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{git-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{git-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{git-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{git-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{git-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{git-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{git-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{git-34c7v6d4.js → instruction-discovery-34c7v6d4.js} +0 -0
- /package/dist/chunks/{git-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{git-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{git-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{git-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{git-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{git-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{git-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{git-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{git-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{git-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{git-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{git-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{git-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{git-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{git-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{git-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{git-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{git-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{git-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{git-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{git-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{git-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{git-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{git-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{git-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{git-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{git-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{git-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{git-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{git-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{git-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{git-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{git-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{git-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{git-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{git-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{git-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{git-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{git-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{git-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{git-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{git-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{git-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{git-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{git-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{git-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{git-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{git-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{git-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{git-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{git-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{git-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{git-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{git-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{git-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{git-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{git-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{git-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{git-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{git-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{git-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{git-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{git-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{git-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{git-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{git-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{git-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{git-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{git-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{git-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{git-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{git-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{git-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{git-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{git-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{git-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{git-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{git-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{git-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{git-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{git-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{git-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{git-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{git-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{git-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{git-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./instruction-discovery-v2hz81kc.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse5,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-w1eejvng.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service70,
|
|
16
|
+
node74
|
|
17
|
+
} from "./instruction-discovery-2151whcr.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/repository-cache.ts
|
|
23
23
|
var exports_repository_cache = {};
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service68,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node72,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service68 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service84;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service70;
|
|
110
|
+
return Service68.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse5(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse5(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node72 = makeGlobalNode({
|
|
171
|
+
service: Service68,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node88, Global.node, node74]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service68, isError2, validateBranch2, node72, exports_repository_cache };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service60
|
|
4
|
+
} from "./instruction-discovery-mvyst4k3.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service53
|
|
7
|
+
} from "./instruction-discovery-gn31e51v.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/tool-output.ts
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin11
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin11 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service60;
|
|
27
|
+
const output = yield* Service53;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin35 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin11, exports_tool_output };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_opencode, {
|
|
|
8
8
|
ModelsInput: () => ModelsInput2,
|
|
9
9
|
MoveInput: () => MoveInput2,
|
|
10
10
|
OpenCodeTools: () => exports_opencode,
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin39,
|
|
12
12
|
RenameInput: () => RenameInput2
|
|
13
13
|
});
|
|
14
14
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -64,7 +64,7 @@ var ModelsOutput = Schema.Struct({
|
|
|
64
64
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
65
65
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
66
66
|
});
|
|
67
|
-
var
|
|
67
|
+
var Plugin39 = {
|
|
68
68
|
id: "opencode.tools",
|
|
69
69
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
70
70
|
const hook = (event) => Effect.sync(() => {
|
|
@@ -161,4 +161,4 @@ var Plugin20 = {
|
|
|
161
161
|
})
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export { RenameInput2, MoveInput2, ModelsInput2,
|
|
164
|
+
export { RenameInput2, MoveInput2, ModelsInput2, Plugin39, exports_opencode };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-nxm207yx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service82,
|
|
6
|
+
node86
|
|
7
|
+
} from "./instruction-discovery-64hcb429.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event15,
|
|
10
|
+
Service66,
|
|
11
|
+
node70
|
|
12
|
+
} from "./instruction-discovery-10pgvwje.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./instruction-discovery-rbkz5k6g.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service56,
|
|
19
|
+
node58
|
|
20
|
+
} from "./instruction-discovery-n549q8gq.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID11,
|
|
23
|
+
Service67,
|
|
24
|
+
node71
|
|
25
|
+
} from "./instruction-discovery-bzcbjd9t.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID9,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service65,
|
|
34
|
+
node69
|
|
35
|
+
} from "./instruction-discovery-vjh434ps.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError5,
|
|
45
|
+
Options: () => Options5,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service42,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured5,
|
|
56
|
+
layer: () => layer16,
|
|
57
|
+
node: () => node45
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service42 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options5 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
114
|
+
var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service80;
|
|
116
|
+
const environment = yield* Service56;
|
|
117
|
+
const bus = yield* Service82;
|
|
118
|
+
const forms = yield* Service67;
|
|
119
|
+
const integration = yield* Service65;
|
|
120
|
+
const credentials = yield* Service66;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID9.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service66, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError5({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service66, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID11.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service56, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer13 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service42.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured5(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service42,
|
|
536
|
+
layer: layer16(options),
|
|
537
|
+
deps: [node84, node58, node86, node71, node69, node70]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node45 = configured5();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service42, Options5, layer16, configured5, node45, exports_mcp4 };
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./instruction-discovery-nc4b9ezq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./instruction-discovery-64hcb429.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-5t3nmthw.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
15
15
|
import {
|
|
16
16
|
estimate2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-h6vf3j39.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionEvent2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
21
21
|
import {
|
|
22
22
|
provenance2,
|
|
23
23
|
compatible2,
|
|
24
24
|
isCheckpoint2,
|
|
25
25
|
encode2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./instruction-discovery-gw7cjrad.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
load5
|
|
29
|
+
} from "./instruction-discovery-dv1bcy32.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./instruction-discovery-wxyynt4w.js";
|
|
33
33
|
import {
|
|
34
34
|
baseTranscript2,
|
|
35
35
|
unsupportedParts2,
|
|
36
36
|
boundImages2,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
37
|
+
Service37,
|
|
38
|
+
node40
|
|
39
|
+
} from "./instruction-discovery-vpmjnhk9.js";
|
|
40
40
|
import {
|
|
41
41
|
isRetryable2,
|
|
42
42
|
policy2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./instruction-discovery-scgrse2b.js";
|
|
44
44
|
import {
|
|
45
45
|
toSessionError2,
|
|
46
46
|
contentFilterError2
|
|
47
|
-
} from "./
|
|
47
|
+
} from "./instruction-discovery-mbwvgf1x.js";
|
|
48
48
|
import {
|
|
49
49
|
calculateCost2,
|
|
50
50
|
record2,
|
|
51
51
|
add2
|
|
52
|
-
} from "./
|
|
52
|
+
} from "./instruction-discovery-tdstcens.js";
|
|
53
53
|
import {
|
|
54
54
|
__export
|
|
55
|
-
} from "./
|
|
55
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
56
56
|
|
|
57
57
|
// src/session/compaction.ts
|
|
58
58
|
var exports_compaction2 = {};
|
|
59
59
|
__export(exports_compaction2, {
|
|
60
|
-
Service: () =>
|
|
60
|
+
Service: () => Service9,
|
|
61
61
|
SessionCompaction: () => exports_compaction2,
|
|
62
62
|
buildPrompt: () => buildPrompt2,
|
|
63
63
|
estimateContext: () => estimateContext2,
|
|
64
64
|
estimatePrompt: () => estimatePrompt2,
|
|
65
65
|
layer: () => layer6,
|
|
66
|
-
node: () =>
|
|
66
|
+
node: () => node11,
|
|
67
67
|
recentUserMessages: () => recentUserMessages2
|
|
68
68
|
});
|
|
69
69
|
import {
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "@opencode/ai";
|
|
80
80
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
81
81
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
82
|
-
class
|
|
82
|
+
class Service9 extends Context.Service()("@opencode/SessionCompaction") {
|
|
83
83
|
}
|
|
84
84
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
85
85
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -158,11 +158,11 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
158
158
|
};
|
|
159
159
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
160
160
|
var LEGACY_HEADING = "## Additional Context";
|
|
161
|
-
var layer6 = Layer.effect(
|
|
162
|
-
const bus = yield*
|
|
161
|
+
var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
162
|
+
const bus = yield* Service82;
|
|
163
163
|
const llm = yield* LLMClient.Service;
|
|
164
|
-
const db = (yield*
|
|
165
|
-
const requests = yield*
|
|
164
|
+
const db = (yield* Service83).db;
|
|
165
|
+
const requests = yield* Service37;
|
|
166
166
|
const state = create3({
|
|
167
167
|
name: "session-compaction",
|
|
168
168
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -250,7 +250,7 @@ var layer6 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
250
250
|
const send = (request) => {
|
|
251
251
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
252
252
|
return Effect.gen(function* () {
|
|
253
|
-
const history = yield*
|
|
253
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
254
254
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
255
255
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
256
256
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -450,16 +450,16 @@ ${text}`;
|
|
|
450
450
|
}, { metadata: outcome.metadata });
|
|
451
451
|
return { status: "completed" };
|
|
452
452
|
});
|
|
453
|
-
return
|
|
453
|
+
return Service9.of({
|
|
454
454
|
transform: state.transform,
|
|
455
455
|
reload: state.reload,
|
|
456
456
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
457
457
|
});
|
|
458
458
|
}));
|
|
459
|
-
var
|
|
460
|
-
service:
|
|
459
|
+
var node11 = makeLocationNode({
|
|
460
|
+
service: Service9,
|
|
461
461
|
layer: layer6,
|
|
462
|
-
deps: [
|
|
462
|
+
deps: [node86, node87, llmClient2, node40]
|
|
463
463
|
});
|
|
464
464
|
var previousCompaction = (messages) => {
|
|
465
465
|
const [first] = messages;
|
|
@@ -664,4 +664,4 @@ var estimateMedia = (mime) => {
|
|
|
664
664
|
return 0;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
-
export {
|
|
667
|
+
export { Service9, buildPrompt2, layer6, node11, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin32,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin32 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin12 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin32, exports_identity };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service52,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node54
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service52 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service52, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service52.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service49, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node54 = makeGlobalNode({ service: Service52, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service52, node54, exports_environment };
|