@opencode/core 0.0.0-dev-236 → 0.0.0-dev-241
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/agent.js +75 -75
- package/dist/aisdk-native.js +80 -80
- package/dist/aisdk.js +85 -85
- package/dist/app.js +7 -7
- package/dist/bus.js +64 -64
- package/dist/chunks/{form-z2s36kx0.js → form-06b0dpwc.js} +4 -4
- package/dist/chunks/{form-er9840mn.js → form-08h3dm3g.js} +152 -152
- package/dist/chunks/{form-crdv0qyn.js → form-0a7n7kwt.js} +1 -1
- package/dist/chunks/{form-wpm462xr.js → form-0geg3vaz.js} +4 -4
- package/dist/chunks/{form-7hv4r7xp.js → form-0kfnnbj0.js} +15 -15
- package/dist/chunks/{form-x26wqd07.js → form-0m9q59s6.js} +3 -3
- package/dist/chunks/{form-swhkgwn8.js → form-0z8aj9nb.js} +64 -64
- package/dist/chunks/{form-t08mfb53.js → form-0zracm40.js} +42 -42
- package/dist/chunks/{form-xhr3cxyj.js → form-12ce349e.js} +9 -9
- package/dist/chunks/{form-wz4vvgzg.js → form-164bbpt7.js} +31 -31
- package/dist/chunks/{form-5n27fd96.js → form-16twya52.js} +8 -8
- package/dist/chunks/{form-60v1vsga.js → form-17nembyj.js} +44 -44
- package/dist/chunks/{form-37cecxny.js → form-1ehhk9f8.js} +22 -22
- package/dist/chunks/{form-27w5k9zf.js → form-1ep2p91f.js} +1 -1
- package/dist/chunks/{form-a66tgrbp.js → form-1fy8p9jc.js} +18 -18
- package/dist/chunks/{form-y3ryyqft.js → form-1hc4tfsd.js} +1 -1
- package/dist/chunks/form-1kh93h0h.js +26 -0
- package/dist/chunks/{form-gtn9c16a.js → form-1kn6jdkn.js} +3 -3
- package/dist/chunks/{form-45qxjkfx.js → form-1kyyf73t.js} +8 -8
- package/dist/chunks/{form-cykhmcxq.js → form-1q3qkd77.js} +7 -7
- package/dist/chunks/{form-8kvd5mpw.js → form-1rp9wec1.js} +3 -3
- package/dist/chunks/{form-4er7ty69.js → form-1vseb64s.js} +12 -12
- package/dist/chunks/{form-5zrxpy3q.js → form-1yq9hg58.js} +4 -4
- package/dist/chunks/{form-h9bxdqvt.js → form-21aep2yn.js} +4 -4
- package/dist/chunks/{form-p71ca3rx.js → form-225yscb7.js} +17 -17
- package/dist/chunks/{form-8b3vzgkx.js → form-25h84942.js} +3 -3
- package/dist/chunks/{form-g3d9y95k.js → form-2bgp64vn.js} +19 -19
- package/dist/chunks/{form-dt7r1hfc.js → form-2hz06pja.js} +3 -3
- package/dist/chunks/{form-cn8yknkt.js → form-2t5drfwv.js} +9 -9
- package/dist/chunks/{form-115q1jpg.js → form-2zxqqy9n.js} +2 -2
- package/dist/chunks/{form-g4n1wayp.js → form-30ae49hf.js} +13 -13
- package/dist/chunks/{form-9wfhnavn.js → form-344ymb5t.js} +44 -44
- package/dist/chunks/{form-cpr2q5y2.js → form-34czpf76.js} +24 -24
- package/dist/chunks/{form-hz4138gk.js → form-3e3pzb31.js} +10 -10
- package/dist/chunks/{form-ma4f8va9.js → form-3ve3e0bk.js} +15 -15
- package/dist/chunks/{form-4nawp0d8.js → form-3yz3az2p.js} +183 -183
- package/dist/chunks/{form-p27rrfjt.js → form-44bj7geh.js} +19 -19
- package/dist/chunks/{form-9qg9k9gh.js → form-47xk0geh.js} +16 -16
- package/dist/chunks/{form-ctfjhx7j.js → form-4e78z1nw.js} +14 -14
- package/dist/chunks/{form-69p76eyw.js → form-4wc1e944.js} +32 -32
- package/dist/chunks/{form-jxb3gtw0.js → form-56xpzs9c.js} +7 -7
- package/dist/chunks/{form-2nm4w996.js → form-5a6cq72k.js} +37 -37
- package/dist/chunks/{form-r41sfy63.js → form-5enarcya.js} +7 -7
- package/dist/chunks/{form-mf20dtnm.js → form-5gahmjy1.js} +7 -7
- package/dist/chunks/{form-cram7zgt.js → form-5gse0r5n.js} +7 -7
- package/dist/chunks/{form-s6pdabng.js → form-5m24a4sd.js} +21 -21
- package/dist/chunks/{form-b6vsg801.js → form-5nnwax6m.js} +3 -3
- package/dist/chunks/{form-rhry30kd.js → form-5qjz8kxn.js} +10 -10
- package/dist/chunks/{form-0j3zdga0.js → form-5w6nd1s8.js} +1 -1
- package/dist/chunks/{form-20h0fae3.js → form-69vbzxa1.js} +32 -32
- package/dist/chunks/{form-vpakn3dw.js → form-6wmf2q20.js} +10 -10
- package/dist/chunks/{form-m7q6ddj2.js → form-6xqtcmxs.js} +3 -3
- package/dist/chunks/{form-2dkjcnxp.js → form-6zjm2phc.js} +4 -4
- package/dist/chunks/{form-67kez8k6.js → form-7bcs6f94.js} +11 -11
- package/dist/chunks/{form-9bcxv424.js → form-7fy0h8rf.js} +8 -8
- package/dist/chunks/{form-5s3wzs2b.js → form-7r72dc1g.js} +11 -11
- package/dist/chunks/{form-gfdy171d.js → form-80d2zcb4.js} +71 -71
- package/dist/chunks/{form-fs9kz63c.js → form-885474ts.js} +13 -13
- package/dist/chunks/{form-6xa52pg9.js → form-8azpkpgk.js} +333 -333
- package/dist/chunks/{form-7tyeehtt.js → form-8cbkaxar.js} +3 -3
- package/dist/chunks/{form-7wx5knwb.js → form-8pyh3h24.js} +24 -24
- package/dist/chunks/{form-gm7a1s2a.js → form-8q7qvvvm.js} +13 -13
- package/dist/chunks/{form-nm34g1pn.js → form-8xqhc33s.js} +9 -9
- package/dist/chunks/{form-4xd23xa0.js → form-9aqddysx.js} +2 -2
- package/dist/chunks/{form-5chyaczp.js → form-9f6y0syf.js} +5 -5
- package/dist/chunks/{form-rx0a7xyh.js → form-9mesydma.js} +13 -13
- package/dist/chunks/{form-nsd4cwk5.js → form-9x2ynd3b.js} +12 -12
- package/dist/chunks/{form-0g0wwtc6.js → form-a2yfqhnm.js} +27 -27
- package/dist/chunks/{form-mdva19h8.js → form-a5qbrk1x.js} +12 -12
- package/dist/chunks/{form-femntydq.js → form-a97jh5ay.js} +30 -30
- package/dist/chunks/{form-drvbhkez.js → form-agqd6nxz.js} +1 -1
- package/dist/chunks/{form-1naqjf9j.js → form-apsqrt3t.js} +40 -40
- package/dist/chunks/{form-3cbjf1nt.js → form-ayjs7tqn.js} +1 -1
- package/dist/chunks/{form-0pzggwk2.js → form-bd58n5m3.js} +23 -23
- package/dist/chunks/{form-pxsvpp78.js → form-bmp8ftgp.js} +9 -9
- package/dist/chunks/{form-hex344mn.js → form-bn194m36.js} +9 -9
- package/dist/chunks/{form-wdxw6h8d.js → form-bnrmard3.js} +5 -5
- package/dist/chunks/{form-gfnmyn48.js → form-bpmnncyw.js} +7 -7
- package/dist/chunks/{form-rp624dek.js → form-bxsgj37y.js} +14 -14
- package/dist/chunks/{form-apejkmwr.js → form-bzgcjp3p.js} +5 -5
- package/dist/chunks/{form-5w8z11at.js → form-c2t3ry2c.js} +14 -14
- package/dist/chunks/{form-2azy8kv6.js → form-c6x7d2ts.js} +3 -3
- package/dist/chunks/{form-mggs55rp.js → form-c7b37yvv.js} +12 -12
- package/dist/chunks/{form-65745s09.js → form-c8w8hrxy.js} +20 -20
- package/dist/chunks/{form-30jfg8m2.js → form-c9cgbm0j.js} +14 -14
- package/dist/chunks/{form-8f066r9v.js → form-caxfsg60.js} +16 -16
- package/dist/chunks/{form-s5pg1fnt.js → form-cecnk0g5.js} +25 -25
- package/dist/chunks/{form-s4j0n7b9.js → form-cegg4nag.js} +19 -19
- package/dist/chunks/{form-2daekhsq.js → form-cj0rt5w2.js} +13 -13
- package/dist/chunks/{form-812q73hy.js → form-ckrm4vaz.js} +17 -17
- package/dist/chunks/{form-ratsm3et.js → form-cnac7q8x.js} +15 -15
- package/dist/chunks/{form-800hrrsd.js → form-cq4y0zvs.js} +22 -22
- package/dist/chunks/{form-tm4pda5m.js → form-d0nww1bx.js} +2 -2
- package/dist/chunks/{form-jrqnrhvj.js → form-d4z67fwt.js} +10 -10
- package/dist/chunks/{form-xkkxpaxw.js → form-d877pmrn.js} +16 -16
- package/dist/chunks/{form-ex5g5fdx.js → form-dbn5ca56.js} +4 -4
- package/dist/chunks/{form-ksddj7ae.js → form-dmb95mhx.js} +14 -14
- package/dist/chunks/{form-3r13qzkr.js → form-dpb98s6z.js} +43 -43
- package/dist/chunks/{form-2gptajwx.js → form-dpd69dnd.js} +4 -4
- package/dist/chunks/{form-0zh0yqdd.js → form-dtg3e95z.js} +7 -7
- package/dist/chunks/{form-c7vtx2cj.js → form-e865fpdn.js} +18 -18
- package/dist/chunks/{form-zgd8t41s.js → form-e8jekyry.js} +7 -7
- package/dist/chunks/{form-rb8x5f8g.js → form-e9fqtmvn.js} +7 -7
- package/dist/chunks/{form-xty73vjp.js → form-ebc2yafe.js} +4 -4
- package/dist/chunks/{form-4b42mt74.js → form-eeejwcqn.js} +13 -13
- package/dist/chunks/{form-kg2n5yz1.js → form-emk1tmq0.js} +7 -7
- package/dist/chunks/{form-1gebr7re.js → form-epbdechd.js} +20 -20
- package/dist/chunks/{form-5xhxj3ma.js → form-eq53d4e8.js} +21 -21
- package/dist/chunks/{form-m4mdhy98.js → form-ertcz5s1.js} +9 -9
- package/dist/chunks/{form-tn4wkvja.js → form-ex68cs9x.js} +32 -32
- package/dist/chunks/{form-3mtymbf0.js → form-eydhdpnx.js} +39 -39
- package/dist/chunks/{form-v54nvb2h.js → form-f01y088k.js} +3 -3
- package/dist/chunks/{form-6v96zr1h.js → form-f0q877ce.js} +19 -19
- package/dist/chunks/{form-prq7xxp2.js → form-fg9p65nk.js} +4 -4
- package/dist/chunks/{form-81s2k8vv.js → form-fn32zha6.js} +16 -16
- package/dist/chunks/{form-x0kzwhb5.js → form-fq8z76yw.js} +2 -2
- package/dist/chunks/{form-np3f7rt0.js → form-fypmhnps.js} +1 -1
- package/dist/chunks/{form-9rmw0sn3.js → form-g1hcq0g8.js} +13 -13
- package/dist/chunks/{form-6733gk72.js → form-g450zyfk.js} +22 -22
- package/dist/chunks/{form-57pn975y.js → form-g85b9q37.js} +10 -10
- package/dist/chunks/{form-c4q1vm7v.js → form-g8a7cptb.js} +18 -18
- package/dist/chunks/{form-hpbhhm01.js → form-gbh3tqmh.js} +3 -3
- package/dist/chunks/{form-jynhhecs.js → form-gd8sx287.js} +2 -2
- package/dist/chunks/{form-58k7dgzm.js → form-gdn6yz18.js} +24 -24
- package/dist/chunks/{form-0a4nha02.js → form-gx6q6d4a.js} +7 -7
- package/dist/chunks/{form-jyvqgxbr.js → form-h9mc95dv.js} +32 -32
- package/dist/chunks/{form-39w9ysaz.js → form-hcawp3ym.js} +10 -10
- package/dist/chunks/{form-zep4evtf.js → form-hef4msp3.js} +14 -14
- package/dist/chunks/{form-wmsrda0h.js → form-hh288azd.js} +24 -24
- package/dist/chunks/{form-x4r85fe4.js → form-hh8z0h5r.js} +20 -20
- package/dist/chunks/{form-b0tt7fbs.js → form-hjhf5s4p.js} +17 -17
- package/dist/chunks/{form-dy2eaxm7.js → form-hnb1qy4e.js} +10 -10
- package/dist/chunks/{form-jh74jycr.js → form-hqxkkta1.js} +2 -2
- package/dist/chunks/{form-gry98xea.js → form-hsdtatpb.js} +1 -1
- package/dist/chunks/{form-z1s357w5.js → form-j0ft87f1.js} +21 -21
- package/dist/chunks/{form-gcdcpnqc.js → form-j3ahjss5.js} +32 -32
- package/dist/chunks/{form-9nbm1qb8.js → form-jhc11j6v.js} +4 -4
- package/dist/chunks/{form-65w5xxws.js → form-jheynnxb.js} +9 -9
- package/dist/chunks/{form-kg4r8sy9.js → form-jnndjjbg.js} +25 -25
- package/dist/chunks/{form-cenhz2kb.js → form-jvks6kr5.js} +22 -22
- package/dist/chunks/{form-6hc3w7dx.js → form-k5h0kew3.js} +32 -32
- package/dist/chunks/{form-xbts61dy.js → form-k67dv3fj.js} +31 -31
- package/dist/chunks/{form-9avx4ajz.js → form-k950nrad.js} +17 -17
- package/dist/chunks/{form-h2xt6wet.js → form-ka01146j.js} +5 -5
- package/dist/chunks/{form-zz5ve47h.js → form-kjt9j6hq.js} +28 -28
- package/dist/chunks/{form-s5h6z9gv.js → form-kpgx0vyx.js} +5 -5
- package/dist/chunks/{form-tvb592mm.js → form-kqxn4pnr.js} +4 -4
- package/dist/chunks/{form-j3w1x649.js → form-m34q2a8m.js} +28 -28
- package/dist/chunks/{form-hfgk9wzg.js → form-m37sd98t.js} +3 -3
- package/dist/chunks/{form-75q1s5an.js → form-m528r48h.js} +3 -3
- package/dist/chunks/{form-rs85nywm.js → form-maemcbqj.js} +19 -19
- package/dist/chunks/{form-8z6m94af.js → form-mb7mbhnz.js} +1 -1
- package/dist/chunks/{form-6dgef8zt.js → form-mdmwbg8j.js} +15 -15
- package/dist/chunks/{form-mgkq9fbg.js → form-mdz0js77.js} +5 -5
- package/dist/chunks/{form-tsdwyhx3.js → form-mkcsvzvr.js} +5 -5
- package/dist/chunks/{form-f952zzwb.js → form-mp850hqc.js} +4 -4
- package/dist/chunks/{form-3mt7h3sc.js → form-n37g9rz2.js} +3 -3
- package/dist/chunks/{form-58d2k2k8.js → form-n5jdsvnn.js} +28 -28
- package/dist/chunks/{form-0neff2gh.js → form-n97mvkbq.js} +5 -5
- package/dist/chunks/{form-770pw0s1.js → form-nah043kf.js} +3 -3
- package/dist/chunks/{form-37qznj3x.js → form-nfkjwrxk.js} +14 -14
- package/dist/chunks/{form-4j02pyve.js → form-ng3j8dj2.js} +8 -8
- package/dist/chunks/{form-w6rf4v00.js → form-nxbfjhca.js} +9 -9
- package/dist/chunks/{form-7pryy4s8.js → form-nxpp7t5x.js} +45 -45
- package/dist/chunks/{form-smej90w1.js → form-nzbx2r18.js} +11 -11
- package/dist/chunks/{form-nes0j92p.js → form-p2d6jc5h.js} +4 -4
- package/dist/chunks/{form-e3yq7vhq.js → form-p32m2zja.js} +25 -25
- package/dist/chunks/{form-cqgdxhj0.js → form-pez63j8g.js} +15 -15
- package/dist/chunks/{form-ax2a2y9p.js → form-pq2gn7y4.js} +4 -4
- package/dist/chunks/{form-x4ym8htq.js → form-q1dg5ken.js} +12 -12
- package/dist/chunks/{form-a2qrzhrv.js → form-qd0p20n5.js} +8 -8
- package/dist/chunks/{form-g39z3c3d.js → form-qekva0d7.js} +26 -26
- package/dist/chunks/{form-wcr7n0w7.js → form-qg4wfayj.js} +16 -16
- package/dist/chunks/{form-nt9wvz87.js → form-qhwx0fdf.js} +23 -23
- package/dist/chunks/{form-2mbjfaxd.js → form-qkc3z5ds.js} +3 -3
- package/dist/chunks/{form-2dzbnn5s.js → form-qnf47mt5.js} +6 -6
- package/dist/chunks/{form-202bxvr4.js → form-qz087kyw.js} +7 -7
- package/dist/chunks/{form-bhm8f5xf.js → form-r1r2wh37.js} +5 -5
- package/dist/chunks/{form-bq3b16qk.js → form-r2z4j37j.js} +1 -1
- package/dist/chunks/{form-9c3ec48c.js → form-r5gq5fkx.js} +76 -76
- package/dist/chunks/{form-j4zj9swe.js → form-ra4wx1p6.js} +19 -19
- package/dist/chunks/{form-jrzfxer4.js → form-rs8acqz3.js} +1 -1
- package/dist/chunks/{form-1fgjq5yh.js → form-rva7ahw2.js} +6 -6
- package/dist/chunks/{form-0568hmfx.js → form-rw00jzn7.js} +17 -17
- package/dist/chunks/{form-ztqjkmb7.js → form-rwpnrpr8.js} +1 -1
- package/dist/chunks/{form-m0nhvpz4.js → form-s3bc4aa5.js} +44 -44
- package/dist/chunks/{form-6rtanm5a.js → form-s8ecjhm6.js} +20 -20
- package/dist/chunks/{form-4vhebqs8.js → form-saap6htg.js} +22 -22
- package/dist/chunks/{form-0j7gp832.js → form-sqjzf8x2.js} +3 -3
- package/dist/chunks/{form-kgf7qxx3.js → form-sxjfgefz.js} +48 -48
- package/dist/chunks/{form-6h0z5jnc.js → form-sxramexz.js} +10 -10
- package/dist/chunks/{form-bbex01q8.js → form-syd5ygf3.js} +10 -10
- package/dist/chunks/{form-h5jrm83f.js → form-t4y2eqtb.js} +7 -7
- package/dist/chunks/{form-xtk91xpy.js → form-t925je5x.js} +10 -10
- package/dist/chunks/{form-cd6xe7sj.js → form-vjcm0c6v.js} +28 -28
- package/dist/chunks/{form-99z41sf4.js → form-vpm8vpz0.js} +3 -3
- package/dist/chunks/{form-0wkkkdkf.js → form-vr3x69az.js} +11 -11
- package/dist/chunks/{form-k302pdnh.js → form-vrcsa8qx.js} +7 -7
- package/dist/chunks/{form-03jqhmmy.js → form-vzvvagw1.js} +30 -30
- package/dist/chunks/{form-75dkjs9q.js → form-w2jxje39.js} +23 -23
- package/dist/chunks/{form-s7kyse9r.js → form-w35wzz9x.js} +3 -3
- package/dist/chunks/{form-xffdvv21.js → form-w5xp5sgq.js} +16 -16
- package/dist/chunks/{form-wr3re1en.js → form-w687dnns.js} +3 -3
- package/dist/chunks/{form-f4mscg03.js → form-wawq6c5s.js} +9 -9
- package/dist/chunks/{form-r4bcfbbz.js → form-wdeh72fh.js} +15 -15
- package/dist/chunks/{form-zgg8de7g.js → form-wewy9wfm.js} +13 -13
- package/dist/chunks/{form-fymf9s41.js → form-wg881gmg.js} +6 -6
- package/dist/chunks/{form-cv03a796.js → form-wwgpyqzb.js} +7 -7
- package/dist/chunks/{form-ffd03e03.js → form-wxknf58s.js} +8 -8
- package/dist/chunks/{form-pwarvv20.js → form-wy3fx33q.js} +19 -19
- package/dist/chunks/{form-2az9w9qg.js → form-x1wbs47z.js} +25 -25
- package/dist/chunks/{form-s6h2s3rz.js → form-xk2zn0cv.js} +3 -3
- package/dist/chunks/{form-7fz7kdv3.js → form-xq6beh0s.js} +25 -25
- package/dist/chunks/{form-1wap8mvb.js → form-xwhcj832.js} +25 -25
- package/dist/chunks/{form-1sw1ga6z.js → form-y02zb68m.js} +12 -12
- package/dist/chunks/{form-1xnfgx4x.js → form-y984veh1.js} +7 -7
- package/dist/chunks/{form-pxtfkpje.js → form-yara3q77.js} +1 -1
- package/dist/chunks/{form-0gbb59p9.js → form-yc4xwjk4.js} +7 -7
- package/dist/chunks/{form-t5prmbbw.js → form-yckvrk0f.js} +4 -4
- package/dist/chunks/{form-9310e8g9.js → form-yd39j0pc.js} +9 -9
- package/dist/chunks/{form-kmzgegqq.js → form-ydsespw1.js} +7 -7
- package/dist/chunks/{form-w5znx9nn.js → form-yewpp7ak.js} +12 -12
- package/dist/chunks/{form-pa26emph.js → form-yjhf0rgk.js} +26 -26
- package/dist/chunks/{form-zsehzjv7.js → form-yk6ggz05.js} +6 -6
- package/dist/chunks/{form-57ahrrn7.js → form-ymtvagr8.js} +13 -13
- package/dist/chunks/{form-6yppqcev.js → form-ymvwqgy0.js} +38 -38
- package/dist/chunks/{form-gsw63pph.js → form-yn3pvg3g.js} +43 -43
- package/dist/chunks/{form-pebfq84r.js → form-yp23a5z4.js} +14 -14
- package/dist/chunks/{form-eq9kvdfm.js → form-yp7f7fzt.js} +9 -9
- package/dist/chunks/{form-dnmen5cb.js → form-ypzz06n9.js} +6 -6
- package/dist/chunks/{form-5m8x74ph.js → form-ywk1qbwj.js} +1 -1
- package/dist/chunks/{form-whk88kq8.js → form-yykjbrqt.js} +28 -28
- package/dist/chunks/{form-4ashkr7h.js → form-yzfcgkx8.js} +25 -25
- package/dist/chunks/{form-9a9c6hns.js → form-za8zk8x5.js} +16 -16
- package/dist/chunks/{form-2sqgfc56.js → form-zf08ma9p.js} +43 -43
- package/dist/chunks/{form-cbht8k07.js → form-zrzd6936.js} +20 -20
- package/dist/chunks/{form-skszvm0v.js → form-zwt99n69.js} +12 -12
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +73 -73
- package/dist/config/discovery.js +74 -74
- package/dist/config/normalize.js +89 -89
- package/dist/config/plugin/agent.js +103 -103
- package/dist/config/plugin/command.js +189 -189
- package/dist/config/plugin/compaction.js +132 -132
- package/dist/config/plugin/compatibility.js +120 -120
- package/dist/config/plugin/formatter.js +102 -102
- package/dist/config/plugin/image.js +101 -101
- package/dist/config/plugin/instruction.js +102 -102
- package/dist/config/plugin/location-watcher.js +103 -103
- package/dist/config/plugin/mcp.js +108 -108
- package/dist/config/plugin/policy.js +101 -101
- package/dist/config/plugin/provider.js +101 -101
- package/dist/config/plugin/reference.js +103 -103
- package/dist/config/plugin/shell.js +103 -103
- package/dist/config/plugin/skill-file.js +116 -116
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +123 -123
- package/dist/config/plugin/snapshot.js +101 -101
- package/dist/config/plugin/source.js +104 -104
- package/dist/config/plugin/tool-output.js +102 -102
- package/dist/config/plugin/websearch.js +102 -102
- package/dist/config/plugin/worktree.js +103 -103
- package/dist/config.js +107 -107
- package/dist/credential.js +75 -75
- package/dist/database/database.js +63 -63
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +46 -46
- package/dist/database/migration.js +48 -48
- package/dist/database/v1-migration.bun.js +24 -24
- package/dist/effect/app-node-builder.js +250 -250
- package/dist/environment/environment.js +81 -81
- package/dist/environment/index.js +81 -81
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +124 -124
- package/dist/file-mutation.js +78 -78
- package/dist/filesystem/file-watch.js +14 -14
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +203 -203
- package/dist/filesystem/search.js +85 -85
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +88 -88
- package/dist/form.js +75 -75
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +78 -78
- package/dist/generate.js +93 -93
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +82 -82
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/notice.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +331 -331
- package/dist/instruction-discovery.js +80 -80
- package/dist/instructions/builtins.js +79 -79
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +80 -80
- package/dist/job.js +70 -70
- package/dist/kv.js +66 -66
- package/dist/location-activity.js +75 -75
- package/dist/location-lifecycle.js +117 -117
- package/dist/location-service-map.js +78 -78
- package/dist/location-services.js +328 -328
- package/dist/location.js +81 -81
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +92 -92
- package/dist/mcp/instructions.js +136 -136
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +78 -78
- package/dist/modal/models.js +82 -82
- package/dist/model-resolver.js +89 -89
- package/dist/model.js +91 -91
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +124 -124
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty.js +66 -66
- package/dist/plugin/agent.js +70 -70
- package/dist/plugin/command.js +89 -89
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +194 -194
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +304 -304
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +86 -86
- package/dist/plugin/module.js +101 -101
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +117 -117
- package/dist/plugin/provider/amazon-bedrock.js +82 -82
- package/dist/plugin/provider/azure.js +102 -102
- package/dist/plugin/provider/chatgpt.js +100 -100
- package/dist/plugin/provider/cloudflare-ai-gateway.js +100 -100
- package/dist/plugin/provider/cloudflare-workers-ai.js +100 -100
- package/dist/plugin/provider/configured.js +98 -98
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +83 -83
- package/dist/plugin/provider/github-copilot.js +85 -85
- package/dist/plugin/provider/gitlab.js +84 -84
- package/dist/plugin/provider/google-vertex.js +99 -99
- package/dist/plugin/provider/llmgateway.js +69 -69
- package/dist/plugin/provider/lmstudio.js +108 -108
- package/dist/plugin/provider/local.js +105 -105
- package/dist/plugin/provider/modal.js +83 -83
- package/dist/plugin/provider/ollama.js +108 -108
- package/dist/plugin/provider/openai-context-caps.js +81 -81
- package/dist/plugin/provider/openai.js +100 -100
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +82 -82
- package/dist/plugin/provider/poe.js +69 -69
- package/dist/plugin/provider/sap-ai-core.js +81 -81
- package/dist/plugin/provider/snowflake-cortex.js +100 -100
- package/dist/plugin/provider/vllm.js +108 -108
- package/dist/plugin/provider/xai.js +82 -82
- package/dist/plugin/provider.js +143 -143
- package/dist/plugin/sdk.js +71 -71
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +118 -118
- package/dist/plugin/supervisor.js +319 -319
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +77 -77
- package/dist/plugin/vcs/hg.js +77 -77
- package/dist/plugin/verbosity.js +84 -84
- package/dist/plugin/warming.js +100 -100
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +205 -205
- package/dist/project/icon.js +3 -3
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +80 -80
- package/dist/provider.js +90 -90
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +76 -76
- package/dist/reference.js +78 -78
- package/dist/repository-cache.js +72 -72
- package/dist/ripgrep.js +84 -84
- package/dist/rpc.js +78 -78
- package/dist/schedule/sql.js +4 -4
- package/dist/schedule.js +190 -190
- package/dist/session/blob.js +100 -100
- package/dist/session/command.js +68 -68
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +156 -156
- package/dist/session/diff.js +78 -78
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +123 -123
- package/dist/session/execution.js +132 -132
- package/dist/session/generate.js +158 -158
- package/dist/session/history.js +106 -106
- package/dist/session/inbox.js +117 -117
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +74 -74
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +111 -111
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +129 -129
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +110 -110
- package/dist/session/prompt.js +119 -119
- package/dist/session/revert.js +109 -109
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +203 -203
- package/dist/session/runner/model.js +90 -90
- package/dist/session/runner/publish-llm-event.js +120 -120
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +107 -107
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +146 -146
- package/dist/session/shell.js +112 -112
- package/dist/session/skill.js +118 -118
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +112 -112
- package/dist/session/stored.js +3 -3
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +188 -188
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +161 -161
- package/dist/session/to-session-error.js +119 -119
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +190 -190
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +115 -115
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +122 -122
- package/dist/skill.js +125 -125
- package/dist/snapshot.js +84 -84
- package/dist/tool/mcp.js +135 -135
- package/dist/tool/plugin/edit.js +129 -129
- package/dist/tool/plugin/glob.js +136 -136
- package/dist/tool/plugin/grep.js +136 -136
- package/dist/tool/plugin/image-generate.js +197 -197
- package/dist/tool/plugin/mcp-resource.js +130 -130
- package/dist/tool/plugin/opencode.js +128 -128
- package/dist/tool/plugin/patch.js +133 -133
- package/dist/tool/plugin/question.js +117 -117
- package/dist/tool/plugin/read.js +137 -137
- package/dist/tool/plugin/schedule.js +187 -187
- package/dist/tool/plugin/shell.js +193 -193
- package/dist/tool/plugin/skill.js +124 -124
- package/dist/tool/plugin/subagent.js +195 -195
- package/dist/tool/plugin/todo.js +119 -119
- package/dist/tool/plugin/webfetch.js +126 -126
- package/dist/tool/plugin/websearch.js +124 -124
- package/dist/tool/plugin/write.js +133 -133
- package/dist/tool/read-filesystem.js +88 -88
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +8 -8
- package/dist/usage-limits.js +79 -79
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +82 -82
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +84 -84
- package/dist/vcs.js +80 -80
- package/dist/voice.js +77 -77
- package/dist/websearch.js +76 -76
- package/dist/wellknown/plugin.js +67 -67
- package/dist/wellknown.js +70 -70
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +80 -80
- package/dist/worktree.js +90 -90
- package/package.json +8 -8
- package/dist/chunks/form-30vq0hkk.js +0 -26
- /package/dist/chunks/{form-aj7mw0zk.js → form-034tev2y.js} +0 -0
- /package/dist/chunks/{form-38adaqc0.js → form-0dfv01xh.js} +0 -0
- /package/dist/chunks/{form-sdft4pf2.js → form-7e0vrbjb.js} +0 -0
- /package/dist/chunks/{form-j99dhamb.js → form-a44gt5xs.js} +0 -0
- /package/dist/chunks/{form-gn8tkhbf.js → form-d4v9tmah.js} +0 -0
- /package/dist/chunks/{form-3yrks06x.js → form-ynk496q3.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./form-
|
|
3
|
+
Service69
|
|
4
|
+
} from "./form-eydhdpnx.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
6
|
+
Service52
|
|
7
|
+
} from "./form-44bj7geh.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./form-hpg1pkwy.js";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
} from "./form-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ConfigShellPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_shell = {};
|
|
17
|
+
__export(exports_shell, {
|
|
18
|
+
ConfigShellPlugin: () => exports_shell,
|
|
19
|
+
Plugin: () => Plugin17
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin17 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service69;
|
|
27
|
+
const shell = yield* Service52;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin48 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin17, exports_shell };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-2zxqqy9n.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./form-
|
|
7
|
+
Service69
|
|
8
|
+
} from "./form-eydhdpnx.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
10
|
+
Service57,
|
|
11
|
+
node60
|
|
12
|
+
} from "./form-ka01146j.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./form-gftt206x.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionInboxTable2
|
|
18
|
-
} from "./form-
|
|
18
|
+
} from "./form-mb7mbhnz.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./form-
|
|
20
|
+
Service54,
|
|
21
|
+
node58
|
|
22
|
+
} from "./form-k5h0kew3.js";
|
|
23
23
|
import {
|
|
24
24
|
Service25,
|
|
25
25
|
node28
|
|
26
|
-
} from "./form-
|
|
26
|
+
} from "./form-80d2zcb4.js";
|
|
27
27
|
import {
|
|
28
28
|
ScheduleTable2
|
|
29
|
-
} from "./form-
|
|
29
|
+
} from "./form-fypmhnps.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./form-9rqn6x4v.js";
|
|
@@ -37,16 +37,16 @@ __export(exports_schedule2, {
|
|
|
37
37
|
CreateInput: () => CreateInput2,
|
|
38
38
|
DisabledError: () => DisabledError2,
|
|
39
39
|
ID: () => ID2,
|
|
40
|
-
Info: () =>
|
|
40
|
+
Info: () => Info4,
|
|
41
41
|
InvalidError: () => InvalidError2,
|
|
42
42
|
NotFoundError: () => NotFoundError2,
|
|
43
43
|
Outcome: () => Outcome3,
|
|
44
44
|
Request: () => Request2,
|
|
45
45
|
Schedule: () => exports_schedule2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service14,
|
|
47
47
|
Status: () => Status2,
|
|
48
48
|
When: () => When2,
|
|
49
|
-
node: () =>
|
|
49
|
+
node: () => node16,
|
|
50
50
|
toCreateInput: () => toCreateInput2
|
|
51
51
|
});
|
|
52
52
|
import { and, asc, eq, gt, isNull, lte, min, or } from "drizzle-orm";
|
|
@@ -54,7 +54,7 @@ import { Cause, Clock, Context, Cron, DateTime, Effect, Latch, Layer, Option, Re
|
|
|
54
54
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
55
55
|
import { Schedule as ScheduleSchema } from "@opencode/schema/schedule";
|
|
56
56
|
var ID2 = ScheduleSchema.ID;
|
|
57
|
-
var
|
|
57
|
+
var Info4 = ScheduleSchema.Info;
|
|
58
58
|
var CreateInput2 = ScheduleSchema.CreateInput;
|
|
59
59
|
var Request2 = ScheduleSchema.Request;
|
|
60
60
|
var When2 = ScheduleSchema.When;
|
|
@@ -84,7 +84,7 @@ class DisabledError2 extends Schema.TaggedError()("Schedule.DisabledError", {})
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
class
|
|
87
|
+
class Service14 extends Context.Service()("@opencode/Schedule") {
|
|
88
88
|
}
|
|
89
89
|
var MINUTE = 60000;
|
|
90
90
|
var HOUR = 60 * MINUTE;
|
|
@@ -140,14 +140,14 @@ var toInfo = (row) => ({
|
|
|
140
140
|
lastOutcome: row.last_outcome ?? undefined,
|
|
141
141
|
time: { created: DateTime.makeUnsafe(row.time_created), updated: DateTime.makeUnsafe(row.time_updated) }
|
|
142
142
|
});
|
|
143
|
-
var layer = Layer.effect(
|
|
143
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
144
144
|
const { db } = yield* Service87;
|
|
145
145
|
const sessions = yield* Service25;
|
|
146
|
-
const instances = yield*
|
|
147
|
-
const execution = yield*
|
|
146
|
+
const instances = yield* Service57;
|
|
147
|
+
const execution = yield* Service54;
|
|
148
148
|
const doorbell = yield* Latch.make();
|
|
149
149
|
const settings = (session) => Effect.gen(function* () {
|
|
150
|
-
const config = yield* Effect.serviceOption(
|
|
150
|
+
const config = yield* Effect.serviceOption(Service69);
|
|
151
151
|
if (Option.isNone(config))
|
|
152
152
|
return { enabled: false, timezone: undefined };
|
|
153
153
|
const entries = yield* config.value.entries();
|
|
@@ -280,7 +280,7 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
280
280
|
return yield* new InvalidError2({ reason: `Invalid time: ${ends.at}` });
|
|
281
281
|
return Math.min(at.value, after ?? at.value);
|
|
282
282
|
});
|
|
283
|
-
return
|
|
283
|
+
return Service14.of({
|
|
284
284
|
create: Effect.fn("Schedule.create")(function* (input) {
|
|
285
285
|
const session = yield* sessions.get(input.sessionID);
|
|
286
286
|
const config = yield* settings(session).pipe(Effect.orDie);
|
|
@@ -347,10 +347,10 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
347
347
|
run
|
|
348
348
|
});
|
|
349
349
|
}));
|
|
350
|
-
var
|
|
351
|
-
service:
|
|
350
|
+
var node16 = makeGlobalNode({
|
|
351
|
+
service: Service14,
|
|
352
352
|
layer,
|
|
353
|
-
deps: [node91, node28,
|
|
353
|
+
deps: [node91, node28, node58, node60]
|
|
354
354
|
});
|
|
355
355
|
|
|
356
|
-
export { ID2,
|
|
356
|
+
export { ID2, Info4, CreateInput2, Request2, When2, Status2, Outcome3, toCreateInput2, NotFoundError2, InvalidError2, DisabledError2, Service14, node16, exports_schedule2 };
|
|
@@ -3,27 +3,27 @@ import {
|
|
|
3
3
|
} from "./form-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
MessageDecodeError2
|
|
6
|
-
} from "./form-
|
|
6
|
+
} from "./form-yckvrk0f.js";
|
|
7
7
|
import {
|
|
8
8
|
InitializationBlocked2,
|
|
9
9
|
read4
|
|
10
|
-
} from "./form-
|
|
10
|
+
} from "./form-1kn6jdkn.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionMessageTable2,
|
|
13
13
|
SessionPartTable2
|
|
14
|
-
} from "./form-
|
|
14
|
+
} from "./form-mb7mbhnz.js";
|
|
15
15
|
import {
|
|
16
16
|
initial2,
|
|
17
17
|
preview3
|
|
18
|
-
} from "./form-
|
|
18
|
+
} from "./form-gd8sx287.js";
|
|
19
19
|
import {
|
|
20
20
|
User3
|
|
21
|
-
} from "./form-
|
|
21
|
+
} from "./form-fg9p65nk.js";
|
|
22
22
|
import {
|
|
23
23
|
hydrate2,
|
|
24
24
|
keepRefs2,
|
|
25
25
|
describe2
|
|
26
|
-
} from "./form-
|
|
26
|
+
} from "./form-n97mvkbq.js";
|
|
27
27
|
import {
|
|
28
28
|
messageToText2
|
|
29
29
|
} from "./form-v2r1d0zg.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-2zxqqy9n.js";
|
|
5
5
|
import {
|
|
6
6
|
reserveSequence2,
|
|
7
7
|
Service86,
|
|
8
8
|
node90
|
|
9
|
-
} from "./form-
|
|
9
|
+
} from "./form-ywk1qbwj.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
12
|
} from "./form-ec1grn59.js";
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./form-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./form-
|
|
17
|
+
update3
|
|
18
|
+
} from "./form-5nnwax6m.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath2,
|
|
21
21
|
RelativePath2
|
|
22
22
|
} from "./form-z5v4ffb3.js";
|
|
23
23
|
import {
|
|
24
24
|
ProjectTable2
|
|
25
|
-
} from "./form-
|
|
25
|
+
} from "./form-034tev2y.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionTable2,
|
|
28
28
|
SessionMessageTable2,
|
|
29
29
|
SessionPartTable2,
|
|
30
30
|
SessionInboxTable2
|
|
31
|
-
} from "./form-
|
|
31
|
+
} from "./form-mb7mbhnz.js";
|
|
32
32
|
import {
|
|
33
33
|
User3
|
|
34
|
-
} from "./form-
|
|
34
|
+
} from "./form-fg9p65nk.js";
|
|
35
35
|
import {
|
|
36
36
|
ForkMedia2,
|
|
37
37
|
externalize2,
|
|
@@ -40,26 +40,26 @@ import {
|
|
|
40
40
|
syncRefs2,
|
|
41
41
|
releaseFrom2,
|
|
42
42
|
releaseSession2
|
|
43
|
-
} from "./form-
|
|
43
|
+
} from "./form-n97mvkbq.js";
|
|
44
44
|
import {
|
|
45
45
|
apply2,
|
|
46
46
|
initialize3,
|
|
47
47
|
advanceEpoch2,
|
|
48
48
|
rewind2
|
|
49
|
-
} from "./form-
|
|
49
|
+
} from "./form-gd8sx287.js";
|
|
50
50
|
import {
|
|
51
51
|
withParts2,
|
|
52
52
|
decodeMessageRowSync2
|
|
53
|
-
} from "./form-
|
|
53
|
+
} from "./form-yk6ggz05.js";
|
|
54
54
|
import {
|
|
55
55
|
projectAdmitted2,
|
|
56
56
|
projectDelivered2,
|
|
57
57
|
projectCancelled2,
|
|
58
58
|
projectDeliveryChanged2
|
|
59
|
-
} from "./form-
|
|
59
|
+
} from "./form-zrzd6936.js";
|
|
60
60
|
import {
|
|
61
61
|
initialize2
|
|
62
|
-
} from "./form-
|
|
62
|
+
} from "./form-4e78z1nw.js";
|
|
63
63
|
import {
|
|
64
64
|
Slug2
|
|
65
65
|
} from "./form-gebd4c9n.js";
|
|
@@ -319,7 +319,7 @@ function run(db, event) {
|
|
|
319
319
|
updateCompaction: updateMessage,
|
|
320
320
|
appendMessage
|
|
321
321
|
};
|
|
322
|
-
yield*
|
|
322
|
+
yield* update3(adapter, event);
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
var encodeStored = (message) => message.type === "user" ? encodeStoredUser(message) : encodeMessage(message);
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-ywk1qbwj.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
6
|
+
node73
|
|
7
|
+
} from "./form-mdmwbg8j.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./form-
|
|
9
|
+
Service3,
|
|
10
|
+
node4
|
|
11
|
+
} from "./form-yzfcgkx8.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./form-
|
|
13
|
+
Service26
|
|
14
|
+
} from "./form-6zjm2phc.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./form-
|
|
16
|
+
node24,
|
|
17
|
+
ID4
|
|
18
|
+
} from "./form-w5xp5sgq.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./form-
|
|
20
|
+
Service5,
|
|
21
|
+
node6
|
|
22
|
+
} from "./form-ydsespw1.js";
|
|
23
23
|
import {
|
|
24
24
|
requirements2,
|
|
25
25
|
guarded2,
|
|
26
26
|
list2
|
|
27
|
-
} from "./form-
|
|
27
|
+
} from "./form-8azpkpgk.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
29
|
+
make3,
|
|
30
30
|
LoadError2
|
|
31
|
-
} from "./form-
|
|
31
|
+
} from "./form-nxbfjhca.js";
|
|
32
32
|
import {
|
|
33
33
|
Updated2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./form-
|
|
34
|
+
Service6,
|
|
35
|
+
node7
|
|
36
|
+
} from "./form-8xqhc33s.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./form-
|
|
38
|
+
Service7,
|
|
39
|
+
node8
|
|
40
|
+
} from "./form-yc4xwjk4.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./form-9rqn6x4v.js";
|
|
@@ -47,7 +47,7 @@ var exports_supervisor = {};
|
|
|
47
47
|
__export(exports_supervisor, {
|
|
48
48
|
PluginSupervisor: () => exports_supervisor,
|
|
49
49
|
layer: () => layer3,
|
|
50
|
-
node: () =>
|
|
50
|
+
node: () => node3
|
|
51
51
|
});
|
|
52
52
|
import { Event } from "@opencode/schema/config";
|
|
53
53
|
import { Cause, Effect, Layer, Queue, Stream } from "effect";
|
|
@@ -124,7 +124,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
124
124
|
failures: [
|
|
125
125
|
...failures.values(),
|
|
126
126
|
...ordered.filter(duplicate).map((plugin) => ({
|
|
127
|
-
id:
|
|
127
|
+
id: ID4.make(plugin.id),
|
|
128
128
|
source: plugin.source ?? { type: "builtin" },
|
|
129
129
|
state: { status: "failed", error: `Duplicate plugin ID: ${plugin.id}` },
|
|
130
130
|
features: plugin.features ?? { server: true }
|
|
@@ -134,13 +134,13 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
136
|
var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
137
|
-
const registry = yield*
|
|
138
|
-
const sdk = yield*
|
|
139
|
-
const instance = yield*
|
|
140
|
-
const sources = yield*
|
|
141
|
-
const modules = yield*
|
|
137
|
+
const registry = yield* Service26;
|
|
138
|
+
const sdk = yield* Service6;
|
|
139
|
+
const instance = yield* Service5;
|
|
140
|
+
const sources = yield* Service3;
|
|
141
|
+
const modules = yield* make3();
|
|
142
142
|
const bus = yield* Service86;
|
|
143
|
-
const updates = yield*
|
|
143
|
+
const updates = yield* Service7;
|
|
144
144
|
const internal = yield* list2();
|
|
145
145
|
let release = yield* registry.hold();
|
|
146
146
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -215,14 +215,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
215
215
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
216
216
|
}));
|
|
217
217
|
var nodeDeps = [
|
|
218
|
-
|
|
218
|
+
node24,
|
|
219
|
+
node7,
|
|
220
|
+
node6,
|
|
219
221
|
node4,
|
|
220
|
-
|
|
221
|
-
node11,
|
|
222
|
-
node5,
|
|
222
|
+
node8,
|
|
223
223
|
node90,
|
|
224
224
|
Npm.node,
|
|
225
|
-
|
|
225
|
+
node73,
|
|
226
226
|
requirements2
|
|
227
227
|
];
|
|
228
228
|
function pluginSource(target) {
|
|
@@ -230,6 +230,6 @@ function pluginSource(target) {
|
|
|
230
230
|
return { type: "local", path: target };
|
|
231
231
|
return { type: "package", target };
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var node3 = makeLocationNode({ name: "plugin-supervisor", layer: layer3, deps: nodeDeps });
|
|
234
234
|
|
|
235
|
-
export { layer3,
|
|
235
|
+
export { layer3, node3, exports_supervisor };
|
|
@@ -4,33 +4,33 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service87,
|
|
6
6
|
node91
|
|
7
|
-
} from "./form-
|
|
7
|
+
} from "./form-2zxqqy9n.js";
|
|
8
8
|
import {
|
|
9
9
|
Service86,
|
|
10
10
|
node90
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-ywk1qbwj.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./form-
|
|
13
|
+
Service82,
|
|
14
|
+
node86
|
|
15
|
+
} from "./form-dtg3e95z.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID16,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info27,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event17,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./form-
|
|
23
|
+
} from "./form-wwgpyqzb.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./form-
|
|
27
|
+
} from "./form-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
refresh2
|
|
30
|
-
} from "./form-
|
|
30
|
+
} from "./form-yara3q77.js";
|
|
31
31
|
import {
|
|
32
32
|
WorktreeTable2
|
|
33
|
-
} from "./form-
|
|
33
|
+
} from "./form-ayjs7tqn.js";
|
|
34
34
|
import {
|
|
35
35
|
__export
|
|
36
36
|
} from "./form-9rqn6x4v.js";
|
|
@@ -39,14 +39,14 @@ import {
|
|
|
39
39
|
var exports_project = {};
|
|
40
40
|
__export(exports_project, {
|
|
41
41
|
Current: () => Current2,
|
|
42
|
-
ID: () =>
|
|
43
|
-
Info: () =>
|
|
42
|
+
ID: () => ID15,
|
|
43
|
+
Info: () => Info26,
|
|
44
44
|
NotFoundError: () => NotFoundError12,
|
|
45
45
|
Project: () => exports_project,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service81,
|
|
47
47
|
UpdateInput: () => UpdateInput3,
|
|
48
48
|
Vcs: () => Vcs2,
|
|
49
|
-
node: () =>
|
|
49
|
+
node: () => node85,
|
|
50
50
|
root: () => root2,
|
|
51
51
|
sweepNode: () => sweepNode2
|
|
52
52
|
});
|
|
@@ -59,14 +59,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
59
59
|
import { AppProcess } from "@opencode/util/process";
|
|
60
60
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Hash } from "@opencode/util/hash";
|
|
62
|
-
var
|
|
62
|
+
var ID15 = ID16;
|
|
63
63
|
var Vcs2 = Vcs3;
|
|
64
64
|
var Current2 = Current3;
|
|
65
|
-
var
|
|
65
|
+
var Info26 = Info27;
|
|
66
66
|
var UpdateInput3 = UpdateInput4;
|
|
67
67
|
|
|
68
68
|
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
69
|
-
projectID:
|
|
69
|
+
projectID: ID15
|
|
70
70
|
}) {
|
|
71
71
|
}
|
|
72
72
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -84,7 +84,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
84
84
|
var ACTIVATE_INTERVAL = 60000;
|
|
85
85
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
86
86
|
|
|
87
|
-
class
|
|
87
|
+
class Service81 extends Context.Service()("@opencode/Project") {
|
|
88
88
|
}
|
|
89
89
|
function fromRow(row) {
|
|
90
90
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -108,9 +108,9 @@ function fromRow(row) {
|
|
|
108
108
|
sandboxes: row.sandboxes
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
var layer = Layer.effect(
|
|
111
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
112
112
|
const fs = yield* FSUtil.Service;
|
|
113
|
-
const git = yield*
|
|
113
|
+
const git = yield* Service82;
|
|
114
114
|
const proc = yield* AppProcess.Service;
|
|
115
115
|
const bus = yield* Service86;
|
|
116
116
|
const db = (yield* Service87).db;
|
|
@@ -123,8 +123,8 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
123
123
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
124
124
|
const changed = replaced ?? unarchived;
|
|
125
125
|
if (changed)
|
|
126
|
-
yield* bus.publish(
|
|
127
|
-
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(
|
|
126
|
+
yield* bus.publish(Event17.Updated, fromRow(changed));
|
|
127
|
+
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(Event17.Updated, fromRow(row)) : Effect.void), Effect.ignoreCause, Effect.forkIn(scope));
|
|
128
128
|
if (!project.vcs)
|
|
129
129
|
return project;
|
|
130
130
|
const directories = [
|
|
@@ -160,7 +160,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
160
160
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
161
161
|
projectID: item.projectID,
|
|
162
162
|
directory: item.directory,
|
|
163
|
-
previous: project.previous ??
|
|
163
|
+
previous: project.previous ?? ID15.global,
|
|
164
164
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
165
165
|
}, {
|
|
166
166
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -185,7 +185,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
185
185
|
if (!row)
|
|
186
186
|
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
187
187
|
const project = fromRow(row);
|
|
188
|
-
yield* bus.publish(
|
|
188
|
+
yield* bus.publish(Event17.Updated, project);
|
|
189
189
|
return project;
|
|
190
190
|
});
|
|
191
191
|
const activated = new Map;
|
|
@@ -196,10 +196,10 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
196
196
|
activated.set(projectID, now);
|
|
197
197
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
198
198
|
if (row)
|
|
199
|
-
yield* bus.publish(
|
|
199
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
200
200
|
});
|
|
201
201
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
202
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
202
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID15.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
203
203
|
return;
|
|
204
204
|
}));
|
|
205
205
|
});
|
|
@@ -210,7 +210,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
210
210
|
const normalized = url(origin);
|
|
211
211
|
if (!normalized)
|
|
212
212
|
return;
|
|
213
|
-
return
|
|
213
|
+
return ID15.make(Hash.fast(`git-remote:${normalized}`));
|
|
214
214
|
});
|
|
215
215
|
function url(input) {
|
|
216
216
|
const value = input.trim();
|
|
@@ -235,7 +235,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
235
235
|
}
|
|
236
236
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
237
237
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
238
|
-
return root ?
|
|
238
|
+
return root ? ID15.make(root) : undefined;
|
|
239
239
|
});
|
|
240
240
|
const gitDiscover = Effect.fnUntraced(function* (dotGit) {
|
|
241
241
|
const repo = yield* git.repo.discover(AbsolutePath2.make(path.dirname(dotGit)));
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
251
251
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), fallback(repo.worktree));
|
|
252
252
|
const resolved = {
|
|
253
253
|
previous,
|
|
254
|
-
id: id ??
|
|
254
|
+
id: id ?? ID15.global,
|
|
255
255
|
directory: repo.worktree,
|
|
256
256
|
canonical,
|
|
257
257
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -276,7 +276,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
276
276
|
return;
|
|
277
277
|
const node = result.stdout.toString("utf8").split(`
|
|
278
278
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
279
|
-
return node ?
|
|
279
|
+
return node ? ID15.make(node) : undefined;
|
|
280
280
|
});
|
|
281
281
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
282
282
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -284,7 +284,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
284
284
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
285
285
|
return {
|
|
286
286
|
previous,
|
|
287
|
-
id: id ??
|
|
287
|
+
id: id ?? ID15.global,
|
|
288
288
|
directory: worktree,
|
|
289
289
|
vcs: { type: "hg", store: dotHg }
|
|
290
290
|
};
|
|
@@ -311,7 +311,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
return yield* save({
|
|
314
|
-
id:
|
|
314
|
+
id: ID15.make(Hash.fast(`directory:${directory}`)),
|
|
315
315
|
directory,
|
|
316
316
|
canonical: directory,
|
|
317
317
|
vcs: undefined
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
320
320
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
321
321
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
322
322
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
323
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
323
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID15.global))).all().pipe(Effect.orDie);
|
|
324
324
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
325
325
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
326
326
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -333,23 +333,23 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
333
333
|
return;
|
|
334
334
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
335
335
|
if (row)
|
|
336
|
-
yield* bus.publish(
|
|
336
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
337
337
|
}), { concurrency: 8, discard: true });
|
|
338
338
|
});
|
|
339
|
-
return
|
|
339
|
+
return Service81.of({ list, update, activate, resolve, sweep });
|
|
340
340
|
}));
|
|
341
|
-
var
|
|
342
|
-
service:
|
|
341
|
+
var node85 = makeGlobalNode({
|
|
342
|
+
service: Service81,
|
|
343
343
|
layer,
|
|
344
|
-
deps: [node90, node91, FSUtil.node,
|
|
344
|
+
deps: [node90, node91, FSUtil.node, node86, AppProcess.node]
|
|
345
345
|
});
|
|
346
346
|
var sweepNode2 = makeGlobalNode({
|
|
347
347
|
name: "project-archive-sweep",
|
|
348
348
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
349
|
-
const project = yield*
|
|
349
|
+
const project = yield* Service81;
|
|
350
350
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
351
351
|
})),
|
|
352
|
-
deps: [
|
|
352
|
+
deps: [node85]
|
|
353
353
|
});
|
|
354
354
|
|
|
355
|
-
export {
|
|
355
|
+
export { ID15, Vcs2, Current2, Info26, UpdateInput3, NotFoundError12, root2, Service81, node85, sweepNode2, exports_project };
|