@opencode/core 0.0.0-dev-20485 → 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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{model-v7ppr8mj.js → instruction-discovery-09w819ma.js} +15 -15
- package/dist/chunks/{model-efzthefc.js → instruction-discovery-0m47ftre.js} +23 -23
- package/dist/chunks/{model-as7cf5zz.js → instruction-discovery-0me0fk48.js} +4 -4
- package/dist/chunks/{model-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{model-0vbcp93d.js → instruction-discovery-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-qvct5ygj.js → instruction-discovery-0whds7zr.js} +32 -32
- package/dist/chunks/{model-f6pqa65c.js → instruction-discovery-0ws6ajg2.js} +13 -13
- package/dist/chunks/{model-8n6ayns8.js → instruction-discovery-0wxkqsx5.js} +15 -15
- package/dist/chunks/{model-60a34fq7.js → instruction-discovery-0yjgx9tf.js} +27 -27
- package/dist/chunks/{model-mk6maazp.js → instruction-discovery-10pgvwje.js} +35 -35
- package/dist/chunks/{model-29k7ew3e.js → instruction-discovery-198btxyk.js} +9 -9
- package/dist/chunks/{model-1acjjqhc.js → instruction-discovery-1acjjqhc.js} +1 -1
- package/dist/chunks/{model-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{model-c72vdqf6.js → instruction-discovery-1dwkpgwq.js} +24 -24
- package/dist/chunks/{model-x5yxy9ce.js → instruction-discovery-1f7sha8m.js} +22 -22
- package/dist/chunks/{model-vg2w4f0q.js → instruction-discovery-2151whcr.js} +12 -12
- package/dist/chunks/{model-37sfe3bm.js → instruction-discovery-234nbg4f.js} +13 -13
- package/dist/chunks/{model-y2xq9eg3.js → instruction-discovery-257nxyp3.js} +18 -18
- package/dist/chunks/{model-3y4agpkd.js → instruction-discovery-28vg5v99.js} +15 -15
- package/dist/chunks/{model-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{model-0jkw1j53.js → instruction-discovery-2a6rn6yr.js} +6 -6
- package/dist/chunks/{model-76kesw26.js → instruction-discovery-2a8nq3m5.js} +71 -71
- package/dist/chunks/{model-sajnc0bs.js → instruction-discovery-2fqj34yx.js} +12 -12
- package/dist/chunks/{model-2hq8kthn.js → instruction-discovery-2gsqsx3d.js} +24 -24
- package/dist/chunks/{model-2k8khapm.js → instruction-discovery-2k8khapm.js} +1 -1
- package/dist/chunks/{model-fp97dk2y.js → instruction-discovery-2w5dyyz8.js} +5 -5
- package/dist/chunks/{model-cfc6ste8.js → instruction-discovery-3a7dge26.js} +24 -24
- package/dist/chunks/{model-h2b79v29.js → instruction-discovery-3cegwx68.js} +2 -2
- package/dist/chunks/{model-51s6es2h.js → instruction-discovery-3dvt8w09.js} +22 -22
- package/dist/chunks/{model-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{model-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-kgy301q9.js → instruction-discovery-3q1z0jfz.js} +18 -18
- package/dist/chunks/{model-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-89enqms3.js → instruction-discovery-3trkeaa7.js} +32 -32
- package/dist/chunks/{model-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-5v18ah2v.js → instruction-discovery-3ty6e2kw.js} +92 -92
- package/dist/chunks/{model-tb71966t.js → instruction-discovery-3y4fpz99.js} +4 -4
- package/dist/chunks/{model-esvm55dh.js → instruction-discovery-3zbwexce.js} +8 -8
- package/dist/chunks/{model-3zsf4n22.js → instruction-discovery-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-71hbha9p.js → instruction-discovery-43nas8ga.js} +49 -49
- package/dist/chunks/{model-0r3c1bmw.js → instruction-discovery-47jkzegy.js} +5 -5
- package/dist/chunks/{model-e1prbm9r.js → instruction-discovery-49hrmjvb.js} +25 -25
- package/dist/chunks/{model-dvh3phbs.js → instruction-discovery-4egf5287.js} +23 -23
- package/dist/chunks/{model-6xeymcnr.js → instruction-discovery-4epjg9n3.js} +10 -10
- package/dist/chunks/{model-75ex3r9z.js → instruction-discovery-4jrrtpc9.js} +19 -19
- package/dist/chunks/{model-f3w8yar8.js → instruction-discovery-4mc7mr7m.js} +10 -10
- package/dist/chunks/{model-08ths63p.js → instruction-discovery-4t523vn3.js} +11 -11
- package/dist/chunks/{model-4ts7tf6z.js → instruction-discovery-4ts7tf6z.js} +2 -2
- package/dist/chunks/{model-daz5sg0c.js → instruction-discovery-4tw3n1rs.js} +5 -5
- package/dist/chunks/{model-vz45eem2.js → instruction-discovery-4xr7br1c.js} +3 -3
- package/dist/chunks/{model-ecec8gfh.js → instruction-discovery-534enda7.js} +5 -5
- package/dist/chunks/{model-pm611pbk.js → instruction-discovery-53mskn80.js} +10 -10
- package/dist/chunks/{model-y6z2hynk.js → instruction-discovery-57am6r6d.js} +8 -8
- package/dist/chunks/{model-0sgs1mbc.js → instruction-discovery-5c3yvawb.js} +175 -175
- package/dist/chunks/{model-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{model-szsh9msw.js → instruction-discovery-5jx484x5.js} +11 -11
- package/dist/chunks/{model-cvtzrr9c.js → instruction-discovery-5n5bh537.js} +11 -11
- package/dist/chunks/{model-jpgzdbsd.js → instruction-discovery-5q13c62c.js} +8 -8
- package/dist/chunks/{model-5crtsp9b.js → instruction-discovery-5rqkpza8.js} +9 -9
- package/dist/chunks/{model-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{model-at4c9pms.js → instruction-discovery-5zyqsw7g.js} +12 -12
- package/dist/chunks/{model-0etz39gn.js → instruction-discovery-61wngfpk.js} +35 -35
- package/dist/chunks/{model-drnf6xwf.js → instruction-discovery-63db42yp.js} +2 -2
- package/dist/chunks/{model-4txtbyef.js → instruction-discovery-64hcb429.js} +16 -16
- package/dist/chunks/{model-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{model-5j4dmmsv.js → instruction-discovery-67x749rj.js} +22 -22
- package/dist/chunks/instruction-discovery-695my56f.js +26 -0
- package/dist/chunks/{model-rzfprt5n.js → instruction-discovery-69zvy5zj.js} +6 -6
- package/dist/chunks/{model-1phc8qeg.js → instruction-discovery-6nkyp4bj.js} +16 -16
- package/dist/chunks/{model-1hzrc3tk.js → instruction-discovery-6nxh550w.js} +1 -1
- package/dist/chunks/{model-styw8a6f.js → instruction-discovery-6q181wvc.js} +28 -28
- package/dist/chunks/{model-6vq97qmv.js → instruction-discovery-6vq97qmv.js} +5 -5
- package/dist/chunks/{model-w644rytb.js → instruction-discovery-6vwe9kp6.js} +11 -11
- package/dist/chunks/{model-k9c08k2d.js → instruction-discovery-6xs26ss7.js} +30 -30
- package/dist/chunks/{model-wqfjjqax.js → instruction-discovery-6zh6wxqg.js} +36 -36
- package/dist/chunks/{model-wyh91q6x.js → instruction-discovery-77jt29wt.js} +24 -24
- package/dist/chunks/{model-7wcjkrs0.js → instruction-discovery-7a0fz05z.js} +12 -12
- package/dist/chunks/{model-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-mckd0gz6.js → instruction-discovery-7jawp51c.js} +33 -33
- package/dist/chunks/{model-0x8512f9.js → instruction-discovery-7sk8ve6j.js} +28 -28
- package/dist/chunks/{model-07e3556j.js → instruction-discovery-7x76hv1h.js} +18 -18
- package/dist/chunks/{model-y9xwgxxz.js → instruction-discovery-7zdg2jq8.js} +27 -27
- package/dist/chunks/{model-1dvck2a7.js → instruction-discovery-84h8c373.js} +2 -2
- package/dist/chunks/{model-m24h2fcb.js → instruction-discovery-890j4q8g.js} +4 -4
- package/dist/chunks/{model-rn8xq1a1.js → instruction-discovery-89qmb68j.js} +38 -38
- package/dist/chunks/{model-12rxm3gg.js → instruction-discovery-8ca5gf6d.js} +15 -15
- package/dist/chunks/{model-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{model-tx7sz9e4.js → instruction-discovery-8ftpwjsb.js} +17 -17
- package/dist/chunks/{model-09pc141r.js → instruction-discovery-8hdaq0f1.js} +6 -6
- package/dist/chunks/{model-v0qcg2ew.js → instruction-discovery-92f202f2.js} +30 -30
- package/dist/chunks/{model-h5mvh91p.js → instruction-discovery-99c1fcab.js} +33 -33
- package/dist/chunks/{model-cd2w4432.js → instruction-discovery-9mqbw0dd.js} +9 -9
- package/dist/chunks/{model-0agwad7d.js → instruction-discovery-9pefrk9y.js} +57 -57
- package/dist/chunks/{model-r6p7ac2e.js → instruction-discovery-9taqfd41.js} +13 -13
- package/dist/chunks/{model-gt9pfhey.js → instruction-discovery-9tdkd6vr.js} +48 -48
- package/dist/chunks/{model-9mw9xj7j.js → instruction-discovery-9tv16z90.js} +5 -5
- package/dist/chunks/{model-g7n7v10r.js → instruction-discovery-9w97dca2.js} +9 -9
- package/dist/chunks/{model-73tb2d7t.js → instruction-discovery-a1gpj94z.js} +3 -3
- package/dist/chunks/{model-44dr8ap3.js → instruction-discovery-a2qe2ev9.js} +7 -7
- package/dist/chunks/{model-219g1411.js → instruction-discovery-a78fw167.js} +34 -34
- package/dist/chunks/{model-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{model-cg80w4wg.js → instruction-discovery-anye7z91.js} +39 -39
- package/dist/chunks/{model-zf1pj567.js → instruction-discovery-aqxydgd6.js} +15 -15
- package/dist/chunks/{model-9bxzc1hn.js → instruction-discovery-asf9fbg3.js} +2 -2
- package/dist/chunks/{model-7hz7r7dy.js → instruction-discovery-atwnmxpf.js} +17 -17
- package/dist/chunks/{model-crsxn195.js → instruction-discovery-b1dewbpn.js} +22 -22
- package/dist/chunks/{model-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{model-bdg5fp48.js → instruction-discovery-bgdwj0fa.js} +23 -23
- package/dist/chunks/{model-fc674bdp.js → instruction-discovery-bpnyhyfj.js} +3 -3
- package/dist/chunks/{model-n5yrxb74.js → instruction-discovery-bzcbjd9t.js} +28 -28
- package/dist/chunks/{model-2q50h12w.js → instruction-discovery-c4x5783g.js} +3 -3
- package/dist/chunks/{model-yt7zdmr1.js → instruction-discovery-c75vb053.js} +36 -36
- package/dist/chunks/{model-gy71bdfa.js → instruction-discovery-c7ycb71c.js} +4 -4
- package/dist/chunks/{model-mjymc32g.js → instruction-discovery-cavr175a.js} +4 -4
- package/dist/chunks/{model-8sze2n9a.js → instruction-discovery-cfsekr6v.js} +6 -6
- package/dist/chunks/{model-vn8yg3r1.js → instruction-discovery-cg2k9t5z.js} +33 -33
- package/dist/chunks/{model-rn0hsr98.js → instruction-discovery-cgesad6j.js} +19 -19
- package/dist/chunks/{model-5jpjgy91.js → instruction-discovery-chfzcee1.js} +14 -14
- package/dist/chunks/{model-btbmdjwj.js → instruction-discovery-cp937pt4.js} +4 -4
- package/dist/chunks/{model-rbhr2x85.js → instruction-discovery-csp7vt80.js} +40 -40
- package/dist/chunks/{model-1ajx6rf5.js → instruction-discovery-czfptnv9.js} +8 -8
- package/dist/chunks/{model-mxt3es3f.js → instruction-discovery-dgzr8r92.js} +43 -43
- package/dist/chunks/{model-yxdaryky.js → instruction-discovery-dhzm9p0q.js} +5 -5
- package/dist/chunks/{model-gvzvf8z9.js → instruction-discovery-dm6xa1w8.js} +21 -21
- package/dist/chunks/{model-gb8ekxdy.js → instruction-discovery-dma9gyvt.js} +12 -12
- package/dist/chunks/{model-xkntkrq7.js → instruction-discovery-dmqcgk4z.js} +5 -5
- package/dist/chunks/{model-kjbb6xsn.js → instruction-discovery-dv1bcy32.js} +8 -8
- package/dist/chunks/{model-a48zkktv.js → instruction-discovery-e35g93k6.js} +7 -7
- package/dist/chunks/{model-7dy85ahw.js → instruction-discovery-e8vwfchq.js} +6 -6
- package/dist/chunks/{model-038wgxtv.js → instruction-discovery-e96qe5tn.js} +22 -22
- package/dist/chunks/{model-f0qvdz3k.js → instruction-discovery-eda12k7e.js} +6 -6
- package/dist/chunks/{model-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-gh5z95q3.js → instruction-discovery-en9mxp96.js} +9 -9
- package/dist/chunks/{model-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{model-m8tjn3n8.js → instruction-discovery-exmq4wqv.js} +20 -20
- package/dist/chunks/{model-71az546q.js → instruction-discovery-f75zav2x.js} +2 -2
- package/dist/chunks/instruction-discovery-f81tjggh.js +18 -0
- package/dist/chunks/{model-xdwtyvvm.js → instruction-discovery-fbr3nfbw.js} +11 -11
- package/dist/chunks/{model-ppthwm7w.js → instruction-discovery-fxs0yy90.js} +15 -15
- package/dist/chunks/{model-ex7a17jg.js → instruction-discovery-g17kg1qe.js} +11 -11
- package/dist/chunks/{model-xfkkasph.js → instruction-discovery-g5w8qwbj.js} +4 -4
- package/dist/chunks/{model-1pxz8ven.js → instruction-discovery-g6yfr6ja.js} +5 -5
- package/dist/chunks/{model-pgphf0kf.js → instruction-discovery-gcw3aq97.js} +9 -9
- package/dist/chunks/{model-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-e699czct.js → instruction-discovery-gg2r8a4c.js} +14 -14
- package/dist/chunks/{model-86qjnnqk.js → instruction-discovery-gn31e51v.js} +11 -11
- package/dist/chunks/{model-addxnjmp.js → instruction-discovery-gqtdsdt7.js} +4 -4
- package/dist/chunks/{model-813jgmaw.js → instruction-discovery-grvhawas.js} +22 -22
- package/dist/chunks/{model-yrcj3v3g.js → instruction-discovery-gw7cjrad.js} +4 -4
- package/dist/chunks/{model-2zybwwx3.js → instruction-discovery-gxhzym33.js} +22 -22
- package/dist/chunks/{model-tnn50rwz.js → instruction-discovery-h2ac09zz.js} +23 -23
- package/dist/chunks/{model-7vk99ank.js → instruction-discovery-h3e5tqcb.js} +5 -5
- package/dist/chunks/{model-v21rmwhw.js → instruction-discovery-h4g9p4f2.js} +10 -10
- package/dist/chunks/{model-aghzj44m.js → instruction-discovery-h4vfkhfc.js} +6 -6
- package/dist/chunks/{model-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-kr4dq3rv.js → instruction-discovery-hn4y6d17.js} +33 -33
- package/dist/chunks/{model-yzyc98yn.js → instruction-discovery-hsewmz24.js} +6 -6
- package/dist/chunks/{model-cs8mpvx0.js → instruction-discovery-hwbe8hjp.js} +8 -8
- package/dist/chunks/{model-gr6b6mj1.js → instruction-discovery-hwfxa3cw.js} +11 -11
- package/dist/chunks/{model-zkzvq0vc.js → instruction-discovery-j07gkf3t.js} +37 -37
- package/dist/chunks/{model-scqzz155.js → instruction-discovery-j0qwk3p8.js} +22 -22
- package/dist/chunks/{model-yc1ky4es.js → instruction-discovery-j3q689wm.js} +1 -1
- package/dist/chunks/{model-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{model-p3n0f46f.js → instruction-discovery-j5fbqtdd.js} +30 -30
- package/dist/chunks/{model-j8vpeap7.js → instruction-discovery-jf7a66sb.js} +15 -15
- package/dist/chunks/{model-jez0550v.js → instruction-discovery-k6qg2bky.js} +11 -11
- package/dist/chunks/{model-9e5bzkjp.js → instruction-discovery-kb9j3d72.js} +3 -3
- package/dist/chunks/{model-90zqj351.js → instruction-discovery-kgd31h0f.js} +25 -25
- package/dist/chunks/{model-yjkcqmhb.js → instruction-discovery-khyjcraz.js} +13 -13
- package/dist/chunks/{model-d31ggzr5.js → instruction-discovery-knwj7e2t.js} +16 -16
- package/dist/chunks/{model-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{model-d9smpnnn.js → instruction-discovery-m8y9xexq.js} +3 -3
- package/dist/chunks/{model-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-gdv5h7q7.js → instruction-discovery-maq9famm.js} +11 -11
- package/dist/chunks/{model-8h2gr9vp.js → instruction-discovery-mbwvgf1x.js} +5 -5
- package/dist/chunks/{model-r3bdtpme.js → instruction-discovery-mcwfras5.js} +7 -7
- package/dist/chunks/{model-33w4ejhs.js → instruction-discovery-mfqp6xfm.js} +9 -9
- package/dist/chunks/{model-5jp7hb67.js → instruction-discovery-mq2tvvhp.js} +3 -3
- package/dist/chunks/{model-qgtd49nm.js → instruction-discovery-mvdg29ky.js} +3 -3
- package/dist/chunks/{model-4fzxpz0x.js → instruction-discovery-mvyst4k3.js} +49 -49
- package/dist/chunks/{model-w9rw661y.js → instruction-discovery-n42msxhh.js} +20 -20
- package/dist/chunks/{model-697r6qsh.js → instruction-discovery-n549q8gq.js} +24 -24
- package/dist/chunks/{model-v5w5twdg.js → instruction-discovery-n5a0bm5f.js} +13 -13
- package/dist/chunks/{model-75zxyf1y.js → instruction-discovery-n9mcnjvb.js} +17 -17
- package/dist/chunks/instruction-discovery-nae5rbdw.js +253 -0
- package/dist/chunks/{model-2cw2ysd6.js → instruction-discovery-nc4b9ezq.js} +14 -14
- package/dist/chunks/{model-47het4ez.js → instruction-discovery-njg6ebp9.js} +24 -24
- package/dist/chunks/{model-y71avatq.js → instruction-discovery-nxm207yx.js} +4 -4
- package/dist/chunks/{model-5697fheg.js → instruction-discovery-nyqx1cb3.js} +5 -5
- package/dist/chunks/{model-f69b8y66.js → instruction-discovery-nz9wwjtp.js} +10 -10
- package/dist/chunks/{model-tfwg41v3.js → instruction-discovery-p4587dg3.js} +9 -9
- package/dist/chunks/{model-3ab3fmem.js → instruction-discovery-p4dv011m.js} +12 -12
- package/dist/chunks/{model-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{model-q0xm7vwc.js → instruction-discovery-q0xm7vwc.js} +2 -2
- package/dist/chunks/{model-zscw2c1w.js → instruction-discovery-qchxrxbp.js} +22 -22
- package/dist/chunks/{model-dwjfp2rp.js → instruction-discovery-qcprstc3.js} +4 -4
- package/dist/chunks/{model-qnc92qwc.js → instruction-discovery-qnc92qwc.js} +1 -1
- package/dist/chunks/{model-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{model-qxjc9qry.js → instruction-discovery-qxjc9qry.js} +3 -3
- package/dist/chunks/{model-cwa6csj7.js → instruction-discovery-r2m716tb.js} +9 -9
- package/dist/chunks/{model-54ma36ye.js → instruction-discovery-r94pvvab.js} +4 -4
- package/dist/chunks/{model-tkmwgdpd.js → instruction-discovery-ratrq7cm.js} +7 -7
- package/dist/chunks/{model-kw2aa91g.js → instruction-discovery-rbkz5k6g.js} +14 -14
- package/dist/chunks/{model-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-z93rnxyq.js → instruction-discovery-rf7k241v.js} +17 -17
- package/dist/chunks/{model-n97n1pdx.js → instruction-discovery-rgb6bxvk.js} +28 -28
- package/dist/chunks/{model-88c09w79.js → instruction-discovery-rn4p5jba.js} +11 -11
- package/dist/chunks/{model-jh3gssky.js → instruction-discovery-rqm8rmge.js} +8 -8
- package/dist/chunks/{model-rytdy19x.js → instruction-discovery-rxmvmgfa.js} +19 -19
- package/dist/chunks/{model-dgjsd0ga.js → instruction-discovery-s3jjtrcx.js} +11 -11
- package/dist/chunks/{model-scgrse2b.js → instruction-discovery-scgrse2b.js} +2 -2
- package/dist/chunks/{model-my4zabxr.js → instruction-discovery-ss358qx3.js} +3 -3
- package/dist/chunks/{model-v0qypzh8.js → instruction-discovery-sxjnac8t.js} +12 -12
- package/dist/chunks/{model-ybbb90ez.js → instruction-discovery-t4sf8wv4.js} +98 -98
- package/dist/chunks/{model-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-sgz4afxd.js → instruction-discovery-tbezpxf3.js} +16 -16
- package/dist/chunks/{model-2ccvtpy8.js → instruction-discovery-tc0tejgn.js} +28 -28
- package/dist/chunks/{model-89znhe33.js → instruction-discovery-tcezcvh9.js} +4 -4
- package/dist/chunks/{model-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{model-f6bgm0fy.js → instruction-discovery-tqwt26jr.js} +15 -15
- package/dist/chunks/{model-hpw55k04.js → instruction-discovery-tt2v6w0g.js} +18 -18
- package/dist/chunks/{model-v0es1rhs.js → instruction-discovery-v0es1rhs.js} +2 -2
- package/dist/chunks/{model-17prjfpm.js → instruction-discovery-v2hz81kc.js} +12 -12
- package/dist/chunks/{model-hj8xqgxx.js → instruction-discovery-vdcnzv66.js} +13 -13
- package/dist/chunks/{model-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{model-8dgstwvc.js → instruction-discovery-vjh434ps.js} +33 -33
- package/dist/chunks/{model-d7eq7yry.js → instruction-discovery-vpmjnhk9.js} +34 -34
- package/dist/chunks/{model-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{model-vzs5sf6e.js → instruction-discovery-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-r0fcwqjf.js → instruction-discovery-w16jkc0m.js} +31 -31
- package/dist/chunks/{model-w1eejvng.js → instruction-discovery-w1eejvng.js} +1 -1
- package/dist/chunks/{model-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-8f10j8es.js → instruction-discovery-w7s3shsg.js} +27 -27
- package/dist/chunks/{model-z7f9qxd7.js → instruction-discovery-w8djw5a7.js} +9 -9
- package/dist/chunks/{model-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{model-71ryw543.js → instruction-discovery-we2v2aqd.js} +8 -8
- package/dist/chunks/{model-hrmk24qx.js → instruction-discovery-we4kaebg.js} +19 -19
- package/dist/chunks/{model-p05qy2sb.js → instruction-discovery-wead7aht.js} +8 -8
- package/dist/chunks/instruction-discovery-wgjdrefs.js +507 -0
- package/dist/chunks/{model-fm4gx2wh.js → instruction-discovery-wmkjrt6y.js} +4 -4
- package/dist/chunks/{model-rhjbct0v.js → instruction-discovery-wv396vej.js} +8 -8
- package/dist/chunks/{model-b69jv39p.js → instruction-discovery-wxyynt4w.js} +1 -1
- package/dist/chunks/{model-mvy7k6n2.js → instruction-discovery-x08kk3pc.js} +11 -11
- package/dist/chunks/{model-7h5hgt6k.js → instruction-discovery-x10r85z8.js} +60 -60
- package/dist/chunks/{model-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{model-501ysnmm.js → instruction-discovery-x1sw2jt5.js} +13 -13
- package/dist/chunks/{model-4p7fae02.js → instruction-discovery-x8anjrbb.js} +18 -18
- package/dist/chunks/{model-bz9s2dkj.js → instruction-discovery-x8zyqsnc.js} +3 -3
- package/dist/chunks/{model-6fvrsfkg.js → instruction-discovery-xb2vsd53.js} +23 -23
- package/dist/chunks/{model-g9mrszkn.js → instruction-discovery-xd9vdtda.js} +5 -5
- package/dist/chunks/{model-szdtaxh1.js → instruction-discovery-xf8k9j4s.js} +42 -42
- package/dist/chunks/{model-st7vrkqj.js → instruction-discovery-xqrhmb6a.js} +20 -20
- package/dist/chunks/{model-pzqdc8ks.js → instruction-discovery-xxgwgp89.js} +11 -11
- package/dist/chunks/{model-em3h5ktn.js → instruction-discovery-xxndcd6m.js} +4 -4
- package/dist/chunks/{model-nnsez8tv.js → instruction-discovery-y0dt3xqy.js} +54 -54
- package/dist/chunks/{model-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-1df8azz5.js → instruction-discovery-y68tptm5.js} +23 -23
- package/dist/chunks/{model-nb9p6b26.js → instruction-discovery-y6mhz57t.js} +4 -4
- package/dist/chunks/{model-qvb3nf84.js → instruction-discovery-y72zmemf.js} +8 -8
- package/dist/chunks/{model-8cy6v4vd.js → instruction-discovery-yk1234b4.js} +35 -35
- package/dist/chunks/{model-0996nyz8.js → instruction-discovery-yr715y08.js} +5 -5
- package/dist/chunks/{model-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{model-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-ck0ahkdp.js → instruction-discovery-z2qvtray.js} +8 -8
- package/dist/chunks/{model-km6wx086.js → instruction-discovery-zbmj01pq.js} +16 -16
- package/dist/chunks/{model-7sb9v7px.js → instruction-discovery-zdnf9v5q.js} +47 -47
- package/dist/chunks/{model-5g7rexsp.js → instruction-discovery-zewtftjh.js} +10 -10
- package/dist/chunks/{model-e22ewehh.js → instruction-discovery-zha7grgq.js} +26 -26
- package/dist/chunks/{model-twqkm6qv.js → instruction-discovery-zjh1mmzv.js} +26 -26
- package/dist/chunks/{model-0j5k85vb.js → instruction-discovery-zmwj70rk.js} +34 -34
- package/dist/chunks/{model-2sznx2p4.js → instruction-discovery-zqbymf7j.js} +23 -23
- package/dist/chunks/{model-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-rvd4wa3q.js → instruction-discovery-zr4jefnj.js} +29 -29
- package/dist/chunks/{model-dqkxv1e7.js → instruction-discovery-zsh647e0.js} +5 -5
- package/dist/chunks/{model-s0p3rwnk.js → instruction-discovery-zt8sfb0h.js} +40 -40
- package/dist/chunks/{model-k76fn4kw.js → instruction-discovery-zvt5dnpc.js} +4 -4
- package/dist/chunks/{model-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 +81 -81
- package/dist/config/discovery.js +84 -84
- 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 +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +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 +100 -100
- 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 +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +104 -104
- package/dist/form.js +84 -84
- 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 +85 -85
- 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 +127 -127
- 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 +96 -96
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +3 -3
- 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 +4 -4
- 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 +115 -115
- 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 +95 -95
- 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 +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +129 -129
- 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 +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- 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 +4 -4
- 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 +1 -1
- 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 +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- 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 +87 -87
- 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 +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +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 +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +206 -206
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +204 -204
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +114 -114
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/model-ewexgy4e.js +0 -253
- package/dist/chunks/model-exn3fdxy.js +0 -26
- package/dist/chunks/model-phvtb2qf.js +0 -507
- package/dist/chunks/model-q509s3k3.js +0 -18
- /package/dist/chunks/{model-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-34c7v6d4.js → instruction-discovery-34c7v6d4.js} +0 -0
- /package/dist/chunks/{model-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{model-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{model-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{model-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{model-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{model-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{model-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{model-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{model-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{model-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{model-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{model-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{model-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{model-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{model-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{model-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-nc4b9ezq.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-nxm207yx.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service82,
|
|
10
|
+
node86
|
|
11
|
+
} from "./instruction-discovery-64hcb429.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-ss358qx3.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-kb9j3d72.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/session/inbox.ts
|
|
30
30
|
var exports_inbox = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info7,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service46,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +45,12 @@ __export(exports_inbox, {
|
|
|
45
45
|
UserPayload: () => UserPayload2,
|
|
46
46
|
find: () => find2,
|
|
47
47
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
49
|
-
list: () =>
|
|
48
|
+
layer: () => layer18,
|
|
49
|
+
list: () => list3,
|
|
50
50
|
make: () => make18,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node48,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info7,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,12 +151,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service46 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
156
|
var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
|
-
const database = yield*
|
|
157
|
+
const database = yield* Service83;
|
|
158
158
|
const db = database.db;
|
|
159
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service82;
|
|
160
160
|
const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
|
|
161
161
|
const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
|
|
162
162
|
if (existing === undefined)
|
|
@@ -173,7 +173,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info7.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -193,7 +193,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
193
193
|
}
|
|
194
194
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
195
195
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
196
|
-
const pending = (yield*
|
|
196
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
197
197
|
if (pending)
|
|
198
198
|
return pending;
|
|
199
199
|
return yield* admit({
|
|
@@ -218,7 +218,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
218
218
|
delivery: "queue"
|
|
219
219
|
})));
|
|
220
220
|
return {
|
|
221
|
-
list: (sessionID) =>
|
|
221
|
+
list: (sessionID) => list3(db, sessionID),
|
|
222
222
|
reconcile,
|
|
223
223
|
admit,
|
|
224
224
|
admitCompaction,
|
|
@@ -227,8 +227,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var layer18 = Layer.effect(Service46, make18());
|
|
231
|
+
var node48 = makeGlobalNode({ service: Service46, layer: layer18, deps: [node87, node86] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -266,7 +266,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
266
266
|
from: input.delivery === "steer" ? "queue" : "steer",
|
|
267
267
|
to: input.delivery
|
|
268
268
|
}));
|
|
269
|
-
var
|
|
269
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
270
270
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
271
271
|
return rows.map(fromRow);
|
|
272
272
|
});
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info7, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service46, make18, layer18, node48, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
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
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event15,
|
|
24
|
+
ID: () => ID10,
|
|
25
|
+
Info: () => Info20,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service66,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node70
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID10 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event15 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info20 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID10,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service66 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
54
|
-
const db = (yield*
|
|
55
|
-
const bus = yield*
|
|
53
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
54
|
+
const db = (yield* Service83).db;
|
|
55
|
+
const bus = yield* Service82;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info20({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service66.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id: input.id ??
|
|
79
|
+
const credential = new Info20({
|
|
80
|
+
id: input.id ?? ID10.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -108,9 +108,9 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
108
108
|
type: credential.value.type,
|
|
109
109
|
active: activated
|
|
110
110
|
});
|
|
111
|
-
yield* bus.publish(
|
|
111
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
112
112
|
if (activated)
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event15.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
114
114
|
return credential;
|
|
115
115
|
}),
|
|
116
116
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
130
130
|
})), Effect.orDie);
|
|
131
131
|
if (integrationID) {
|
|
132
132
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
133
|
-
yield* bus.publish(
|
|
133
|
+
yield* bus.publish(Event15.Switched, { integrationID, credentialID: id }, { global: true });
|
|
134
134
|
}
|
|
135
135
|
}),
|
|
136
136
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -162,7 +162,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
162
162
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
163
163
|
});
|
|
164
164
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
165
|
-
yield* bus.publish(
|
|
165
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
166
166
|
}),
|
|
167
167
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
168
168
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -195,12 +195,12 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
195
195
|
active: removed.switched,
|
|
196
196
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
197
197
|
});
|
|
198
|
-
yield* bus.publish(
|
|
198
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
199
199
|
if (removed.switched)
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event15.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
203
|
}));
|
|
204
|
-
var
|
|
204
|
+
var node70 = makeGlobalNode({ service: Service66, layer, deps: [node87, node86] });
|
|
205
205
|
|
|
206
|
-
export {
|
|
206
|
+
export { ID10, OAuth3, Key3, Value2, Event15, Info20, Service66, node70, exports_credential };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-hwfxa3cw.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-mfqp6xfm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin27,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint6
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint6 = "https://search.parallel.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
objective: Schema.String,
|
|
24
24
|
search_queries: Schema.Array(Schema.String),
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin27 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -69,7 +69,7 @@ var Plugin21 = define({
|
|
|
69
69
|
execute: (input) => Effect.gen(function* () {
|
|
70
70
|
const connection = yield* ctx.integration.connection.active("parallel");
|
|
71
71
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
72
|
-
const result = yield* call2(http,
|
|
72
|
+
const result = yield* call2(http, endpoint6, "web_search", { input: McpInput, output: McpOutput }, {
|
|
73
73
|
objective: input.query,
|
|
74
74
|
search_queries: [input.query]
|
|
75
75
|
}, {
|
|
@@ -93,4 +93,4 @@ var Plugin21 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { endpoint6, Plugin27, exports_parallel };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./instruction-discovery-64hcb429.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
13
|
var exports_agent4 = {};
|
|
14
14
|
__export(exports_agent4, {
|
|
15
15
|
Agent: () => exports_agent4,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event20,
|
|
18
|
+
ID: () => ID15,
|
|
19
|
+
Info: () => Info25,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service78,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node82
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event20 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
|
-
var
|
|
33
|
+
var ID15 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
|
-
var defaultID2 =
|
|
35
|
+
var defaultID2 = ID15.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info25 = Agent.Info;
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service78 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const bus = yield*
|
|
41
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
42
|
+
const bus = yield* Service82;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
45
45
|
{ action: "external_directory", resource: SHELL_OUTPUT_GLOB(global.data), effect: "allow" },
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info25.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
79
79
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
80
80
|
if (configured)
|
|
81
81
|
return configured;
|
|
82
|
-
const build = selectable(data.agents.get(
|
|
82
|
+
const build = selectable(data.agents.get(ID15.make("build")));
|
|
83
83
|
if (build)
|
|
84
84
|
return build;
|
|
85
85
|
for (const agent of data.agents.values()) {
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
88
88
|
return fallback;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return Service78.of({
|
|
92
92
|
transform: state.transform,
|
|
93
93
|
reload: state.reload,
|
|
94
94
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -96,12 +96,12 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
96
96
|
}),
|
|
97
97
|
resolve: Effect.fnUntraced(function* (id) {
|
|
98
98
|
if (id !== undefined)
|
|
99
|
-
return state.get().agents.get(
|
|
99
|
+
return state.get().agents.get(ID15.make(id));
|
|
100
100
|
return selectedDefault();
|
|
101
101
|
}),
|
|
102
102
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
103
103
|
if (id !== undefined) {
|
|
104
|
-
const selected =
|
|
104
|
+
const selected = ID15.make(id);
|
|
105
105
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
106
106
|
}
|
|
107
107
|
const info = selectedDefault();
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node82 = makeLocationNode({ service: Service78, layer, deps: [node86, Global.node] });
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { ID15, Name3, defaultID2, Color2, Info25, Service78, node82, exports_agent4, Event20 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event10,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options9,
|
|
17
|
+
Service: () => Service61,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured10,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer23,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node65,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event10 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options9 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service61 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer23 = (options) => Layer.effect(Service61, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service61.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer17 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service61.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer23().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service61).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service61, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured10(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service61, layer: layer23(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node65 = configured10();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event10, hasNativeBinding2, Native3, Options9, Service61, Test3, layer23, testLayer3, nativeLayer2, nativeNode2, configured10, node65, exports_watcher };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-nc4b9ezq.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service70,
|
|
17
|
+
node: () => node74
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service70 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
25
|
-
const db = (yield*
|
|
26
|
-
return
|
|
24
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
25
|
+
const db = (yield* Service83).db;
|
|
26
|
+
return Service70.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node74 = makeGlobalNode({ service: Service70, layer, deps: [node87] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service70, node74, exports_kv };
|