@opencode/core 0.0.0-dev-21631 → 0.0.0-dev-21647
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{workspace-d5agj1pv.js → filesystem-009tt1tc.js} +29 -29
- package/dist/chunks/filesystem-00ve6mdn.js +18 -0
- package/dist/chunks/{workspace-034tev2y.js → filesystem-034tev2y.js} +2 -2
- package/dist/chunks/{workspace-sphke738.js → filesystem-0cjz94q6.js} +50 -50
- package/dist/chunks/{workspace-9djkex7c.js → filesystem-0d5pkr3t.js} +5 -5
- package/dist/chunks/{workspace-5w9qrcma.js → filesystem-0m63avf2.js} +11 -11
- package/dist/chunks/{workspace-1vf54b5a.js → filesystem-0mt6tx3t.js} +25 -25
- package/dist/chunks/{workspace-p83ne5gv.js → filesystem-0pcpg2vk.js} +10 -10
- package/dist/chunks/{workspace-tgqd2fy6.js → filesystem-0rk2tx64.js} +20 -20
- package/dist/chunks/{workspace-48qd1d8y.js → filesystem-0v552w6g.js} +10 -10
- package/dist/chunks/{workspace-0zcnfd18.js → filesystem-0zwy0wgk.js} +11 -11
- package/dist/chunks/{workspace-gcjdgkn2.js → filesystem-18g90bpv.js} +9 -9
- package/dist/chunks/{workspace-1ep2p91f.js → filesystem-1ep2p91f.js} +2 -2
- package/dist/chunks/{workspace-5f9y7f7a.js → filesystem-1n1y95ae.js} +9 -9
- package/dist/chunks/{workspace-1x2knyw4.js → filesystem-1x2knyw4.js} +1 -1
- package/dist/chunks/{workspace-esf33pnx.js → filesystem-1zaw68ze.js} +18 -18
- package/dist/chunks/{workspace-f2zvcq77.js → filesystem-2wyfsdtp.js} +21 -21
- package/dist/chunks/{workspace-2z1j29yd.js → filesystem-2z1j29yd.js} +1 -1
- package/dist/chunks/{workspace-jf7rv2bq.js → filesystem-356ycsz0.js} +10 -10
- package/dist/chunks/{workspace-pm22z908.js → filesystem-36nwec3d.js} +35 -35
- package/dist/chunks/{workspace-ty5gqdvp.js → filesystem-3e0wzh8b.js} +12 -12
- package/dist/chunks/{workspace-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
- package/dist/chunks/{workspace-tmc7xdjs.js → filesystem-3nnrz6f6.js} +4 -4
- package/dist/chunks/{workspace-p3rr1xh3.js → filesystem-3spxaejg.js} +40 -40
- package/dist/chunks/{workspace-kqf87fk8.js → filesystem-4d5fcr8w.js} +21 -21
- package/dist/chunks/{workspace-xbp4jbh1.js → filesystem-4h7a260j.js} +35 -35
- package/dist/chunks/{workspace-4v008n1t.js → filesystem-4v008n1t.js} +1 -1
- package/dist/chunks/{workspace-zjwxeyqe.js → filesystem-4whg3jbc.js} +2 -2
- package/dist/chunks/{workspace-4xvmh7wp.js → filesystem-4xvmh7wp.js} +3 -3
- package/dist/chunks/{workspace-geys63pa.js → filesystem-4zdy853b.js} +23 -23
- package/dist/chunks/{workspace-kfh17eq6.js → filesystem-51r6w5tg.js} +12 -12
- package/dist/chunks/{workspace-af16rb46.js → filesystem-51x4aarj.js} +4 -4
- package/dist/chunks/{workspace-gmkqkmgg.js → filesystem-53ehtthp.js} +13 -13
- package/dist/chunks/{workspace-1wct354y.js → filesystem-58me5448.js} +14 -14
- package/dist/chunks/{workspace-ay6kp039.js → filesystem-5cn61jve.js} +4 -4
- package/dist/chunks/{workspace-ep3cfgsw.js → filesystem-5crs9zmq.js} +4 -4
- package/dist/chunks/{workspace-cjkc2yd9.js → filesystem-5j88v3fz.js} +30 -30
- package/dist/chunks/{workspace-5m9w47nd.js → filesystem-5m9w47nd.js} +1 -1
- package/dist/chunks/{workspace-22yhmnjg.js → filesystem-5pn4ypd0.js} +11 -11
- package/dist/chunks/{workspace-mb90wd2d.js → filesystem-5q1nw5b2.js} +28 -28
- package/dist/chunks/{workspace-bqwdyg2t.js → filesystem-5qv54f7z.js} +9 -9
- package/dist/chunks/{workspace-fkjz51h9.js → filesystem-5s5rpxk9.js} +51 -50
- package/dist/chunks/{workspace-rv0yz615.js → filesystem-5t0hnzkm.js} +10 -10
- package/dist/chunks/{workspace-r4zhn8a3.js → filesystem-5xy94632.js} +8 -8
- package/dist/chunks/{workspace-k4rvgcwk.js → filesystem-68fc5fjq.js} +8 -8
- package/dist/chunks/{workspace-6esdw8yj.js → filesystem-6esdw8yj.js} +1 -1
- package/dist/chunks/{workspace-t01mmk0e.js → filesystem-6kjtmk7q.js} +10 -10
- package/dist/chunks/{workspace-2hntn1k8.js → filesystem-6kzpt8m6.js} +16 -16
- package/dist/chunks/{workspace-gnqppa8v.js → filesystem-6mf4mhq6.js} +30 -30
- package/dist/chunks/{workspace-rtq7m3w5.js → filesystem-6mw02xdg.js} +52 -52
- package/dist/chunks/{workspace-6pjqjmy2.js → filesystem-6pjqjmy2.js} +1 -1
- package/dist/chunks/{workspace-xk4x8fp8.js → filesystem-6rvpfmay.js} +5 -5
- package/dist/chunks/{workspace-k1q14wnz.js → filesystem-6vawrx7p.js} +31 -31
- package/dist/chunks/{workspace-q0wxm0f4.js → filesystem-6vgp65ky.js} +28 -28
- package/dist/chunks/{workspace-66c7hxbd.js → filesystem-74z5myxc.js} +18 -18
- package/dist/chunks/{workspace-nah043kf.js → filesystem-770pw0s1.js} +4 -4
- package/dist/chunks/{workspace-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
- package/dist/chunks/{workspace-10nvmenf.js → filesystem-7jc9rsv4.js} +17 -17
- package/dist/chunks/{workspace-cwyfam04.js → filesystem-7qh21x13.js} +4 -4
- package/dist/chunks/{workspace-c80g5ddr.js → filesystem-7qzzp3th.js} +17 -17
- package/dist/chunks/{workspace-qgarn9by.js → filesystem-7rh6cm1k.js} +8 -8
- package/dist/chunks/{workspace-7w2ypzdf.js → filesystem-7w2ypzdf.js} +1 -1
- package/dist/chunks/{workspace-3kdbrncp.js → filesystem-7xg2jm5b.js} +5 -5
- package/dist/chunks/{workspace-vjeddzcj.js → filesystem-7zfzjnyd.js} +9 -9
- package/dist/chunks/{workspace-rvqxvq6d.js → filesystem-89hkn2ck.js} +14 -14
- package/dist/chunks/{workspace-kp0f5nz1.js → filesystem-8d63q4vm.js} +24 -24
- package/dist/chunks/{workspace-edxck1ff.js → filesystem-8j8gppkv.js} +23 -23
- package/dist/chunks/{workspace-1216qybz.js → filesystem-8kvpvnp7.js} +29 -29
- package/dist/chunks/{workspace-02ggbb5g.js → filesystem-8mm41x9v.js} +26 -26
- package/dist/chunks/{workspace-z885xrfv.js → filesystem-8n969cs1.js} +4 -4
- package/dist/chunks/{workspace-rmm45jmv.js → filesystem-8ryk0bb9.js} +5 -5
- package/dist/chunks/{workspace-xbjtm4mb.js → filesystem-8tv6we1q.js} +84 -84
- package/dist/chunks/{workspace-8wtp7s3z.js → filesystem-8wtp7s3z.js} +1 -1
- package/dist/chunks/{workspace-91rj84md.js → filesystem-91rj84md.js} +1 -1
- package/dist/chunks/{workspace-0zwx71ns.js → filesystem-96t1we0v.js} +24 -24
- package/dist/chunks/{workspace-e48jzpsf.js → filesystem-98mxgbz2.js} +18 -18
- package/dist/chunks/{workspace-r1k9m3eb.js → filesystem-997dsrmm.js} +6 -6
- package/dist/chunks/{workspace-998yhzzq.js → filesystem-998yhzzq.js} +3 -3
- package/dist/chunks/{workspace-eq3fc1qc.js → filesystem-9b28cy4d.js} +5 -5
- package/dist/chunks/{workspace-rxrz6b15.js → filesystem-9dk4f4hb.js} +2 -2
- package/dist/chunks/{workspace-vsbjkqn0.js → filesystem-9fcy9jas.js} +19 -19
- package/dist/chunks/{workspace-kgq6c069.js → filesystem-9nkjg9qd.js} +6 -6
- package/dist/chunks/filesystem-9ycsyq8d.js +257 -0
- package/dist/chunks/{workspace-ey8jy4js.js → filesystem-9zhqcg1r.js} +25 -25
- package/dist/chunks/{workspace-ts03qaq4.js → filesystem-ae59h7aq.js} +43 -43
- package/dist/chunks/{workspace-ngyanjke.js → filesystem-amdzwm80.js} +5 -5
- package/dist/chunks/{workspace-x6vkv6xs.js → filesystem-ap3xe38h.js} +10 -10
- package/dist/chunks/{workspace-7vpzw89w.js → filesystem-ar426sjr.js} +16 -16
- package/dist/chunks/{workspace-3wmzcy16.js → filesystem-arsn7stx.js} +1 -1
- package/dist/chunks/{workspace-1pzczgek.js → filesystem-avbcnn8s.js} +4 -4
- package/dist/chunks/{workspace-ayjs7tqn.js → filesystem-ayjs7tqn.js} +2 -2
- package/dist/chunks/{workspace-wd1ggha8.js → filesystem-b0e0ha1k.js} +17 -17
- package/dist/chunks/{workspace-b0mv4wxm.js → filesystem-b0mv4wxm.js} +2 -2
- package/dist/chunks/{workspace-0ygh9k6m.js → filesystem-b59295hw.js} +23 -23
- package/dist/chunks/{workspace-b6vsg801.js → filesystem-b6vsg801.js} +2 -2
- package/dist/chunks/{workspace-n3795dyb.js → filesystem-bchnzv4a.js} +28 -28
- package/dist/chunks/{workspace-e5fabfm1.js → filesystem-bdsrgrhy.js} +15 -15
- package/dist/chunks/{workspace-n823y48s.js → filesystem-bhxt7mnn.js} +21 -21
- package/dist/chunks/{workspace-rfshxc0v.js → filesystem-bkna9k4r.js} +23 -23
- package/dist/chunks/{workspace-hr99w7g5.js → filesystem-brp8afje.js} +20 -20
- package/dist/chunks/{workspace-xd9cc171.js → filesystem-bstexjd6.js} +5 -5
- package/dist/chunks/{workspace-qwn3jvah.js → filesystem-bvkwt3vh.js} +13 -13
- package/dist/chunks/{workspace-n3mhfr60.js → filesystem-bx21rrrk.js} +20 -20
- package/dist/chunks/{workspace-xxfhxe4r.js → filesystem-bxr1hg8m.js} +28 -28
- package/dist/chunks/{workspace-3z36edkt.js → filesystem-c4h1hzvn.js} +8 -8
- package/dist/chunks/{workspace-vdcmvetk.js → filesystem-c5093bv4.js} +5 -5
- package/dist/chunks/{workspace-2g8e9hha.js → filesystem-c6mtb9s1.js} +10 -10
- package/dist/chunks/{workspace-tasvem1v.js → filesystem-c8666r4c.js} +6 -6
- package/dist/chunks/{workspace-9jh1w38s.js → filesystem-c8j7dx8q.js} +11 -11
- package/dist/chunks/{workspace-2hxpq778.js → filesystem-c9vjxdk9.js} +7 -7
- package/dist/chunks/{workspace-0x14psyd.js → filesystem-chey27p8.js} +43 -43
- package/dist/chunks/{workspace-xr5njmxy.js → filesystem-cq8031fv.js} +3 -3
- package/dist/chunks/{workspace-8xgvjc3j.js → filesystem-d1cerpfm.js} +21 -21
- package/dist/chunks/{workspace-c9t2ty9q.js → filesystem-d2887f8n.js} +4 -4
- package/dist/chunks/{workspace-1y0wdj51.js → filesystem-d2dx6a7h.js} +4 -4
- package/dist/chunks/{workspace-d4v9tmah.js → filesystem-d4v9tmah.js} +2 -2
- package/dist/chunks/{workspace-r10bp8tk.js → filesystem-d6xvjcm1.js} +18 -18
- package/dist/chunks/{workspace-qw2pz74r.js → filesystem-d70em1ty.js} +5 -5
- package/dist/chunks/{workspace-a7hcemwv.js → filesystem-d8qd4w10.js} +8 -8
- package/dist/chunks/{workspace-xmss3g6h.js → filesystem-d9nsghbd.js} +32 -32
- package/dist/chunks/{workspace-skb5eq6z.js → filesystem-dbkw9y8f.js} +43 -43
- package/dist/chunks/{workspace-dk5xnaxx.js → filesystem-dk5xnaxx.js} +4 -4
- package/dist/chunks/{workspace-rvqdw07f.js → filesystem-dnmtmk4w.js} +19 -19
- package/dist/chunks/{workspace-gxhbx1gv.js → filesystem-dztq030m.js} +37 -37
- package/dist/chunks/{workspace-e834z07m.js → filesystem-e834z07m.js} +1 -1
- package/dist/chunks/{workspace-ef5x83kb.js → filesystem-ef5x83kb.js} +1 -1
- package/dist/chunks/{workspace-fbjqxkhq.js → filesystem-efr9f7w8.js} +5 -5
- package/dist/chunks/{workspace-4txypjtm.js → filesystem-etk19sk0.js} +36 -36
- package/dist/chunks/{workspace-7j753ka9.js → filesystem-f33ds01d.js} +18 -18
- package/dist/chunks/{workspace-py09vape.js → filesystem-f9ntwk7j.js} +11 -11
- package/dist/chunks/{workspace-kncbdffz.js → filesystem-f9r434at.js} +11 -11
- package/dist/chunks/{workspace-f5wtb4x0.js → filesystem-ffejy4wd.js} +4 -4
- package/dist/chunks/{workspace-fffv3p7h.js → filesystem-fffv3p7h.js} +1 -1
- package/dist/chunks/{workspace-cq3z49j9.js → filesystem-fn89k98g.js} +32 -32
- package/dist/chunks/{workspace-sg9szeyg.js → filesystem-fwbqpq8p.js} +17 -17
- package/dist/chunks/{workspace-ky596kc3.js → filesystem-fwp9mfc9.js} +4 -4
- package/dist/chunks/{workspace-n0tvgbk4.js → filesystem-fwvkg7a4.js} +11 -11
- package/dist/chunks/{workspace-w687dnns.js → filesystem-fznmdakp.js} +4 -4
- package/dist/chunks/{workspace-g5h9c0rr.js → filesystem-g5h9c0rr.js} +2 -2
- package/dist/chunks/{workspace-g7esga4v.js → filesystem-g7esga4v.js} +1 -1
- package/dist/chunks/{workspace-fg9knja8.js → filesystem-gj87f6s9.js} +4 -4
- package/dist/chunks/{workspace-x95sfgj8.js → filesystem-gmjwgw4f.js} +3 -3
- package/dist/chunks/{workspace-ka29x1p3.js → filesystem-grrps705.js} +17 -17
- package/dist/chunks/{workspace-sy8vt3wj.js → filesystem-gsdn6242.js} +31 -31
- package/dist/chunks/{workspace-38vyv955.js → filesystem-gv029hbs.js} +5 -5
- package/dist/chunks/{workspace-1xvjm3kc.js → filesystem-gxpe1m6c.js} +15 -15
- package/dist/chunks/{workspace-gjzbapea.js → filesystem-gyabndjg.js} +4 -4
- package/dist/chunks/{workspace-ctyy7ctv.js → filesystem-h0d2nkz7.js} +7 -7
- package/dist/chunks/{workspace-6wx80czs.js → filesystem-hfc7xfzf.js} +19 -19
- package/dist/chunks/{workspace-j113cymg.js → filesystem-j113cymg.js} +1 -1
- package/dist/chunks/{workspace-sh8baf55.js → filesystem-j3228jtb.js} +15 -15
- package/dist/chunks/{workspace-esgjzs5t.js → filesystem-j4jzjbre.js} +23 -23
- package/dist/chunks/{workspace-xbt735bc.js → filesystem-jawcrgg3.js} +26 -26
- package/dist/chunks/{workspace-gpnxvr2a.js → filesystem-jbszwdvq.js} +6 -6
- package/dist/chunks/{workspace-jchrqzf6.js → filesystem-jchrqzf6.js} +1 -1
- package/dist/chunks/{workspace-e6xa1h83.js → filesystem-jfm4fjtg.js} +17 -17
- package/dist/chunks/{workspace-d01ndws9.js → filesystem-jg76350t.js} +47 -47
- package/dist/chunks/{workspace-a710j6jq.js → filesystem-jk3vvd6z.js} +17 -17
- package/dist/chunks/{workspace-p1fymgqq.js → filesystem-jmf5ej32.js} +7 -7
- package/dist/chunks/{workspace-r23mryza.js → filesystem-jpvfv4j9.js} +33 -33
- package/dist/chunks/{workspace-amv93mrg.js → filesystem-jqefqkzj.js} +14 -14
- package/dist/chunks/{workspace-gc7zkq2j.js → filesystem-jwndhsk1.js} +15 -15
- package/dist/chunks/{workspace-gphf8qkn.js → filesystem-jz901ekc.js} +11 -11
- package/dist/chunks/{workspace-d8wk2jpt.js → filesystem-jzdzfwts.js} +50 -50
- package/dist/chunks/{workspace-3paf0x2w.js → filesystem-k7zas86q.js} +20 -20
- package/dist/chunks/{workspace-k814nvkf.js → filesystem-k814nvkf.js} +1 -1
- package/dist/chunks/{workspace-6qbtkmgq.js → filesystem-kba41hf4.js} +16 -16
- package/dist/chunks/{workspace-nv2qnfza.js → filesystem-kphdvy8n.js} +8 -8
- package/dist/chunks/{workspace-e1my15k2.js → filesystem-kpjnnt0y.js} +34 -34
- package/dist/chunks/{workspace-9qg9bmww.js → filesystem-krc69tyh.js} +6 -6
- package/dist/chunks/{workspace-at43vtwn.js → filesystem-kw6yrzx1.js} +12 -12
- package/dist/chunks/{workspace-m1714858.js → filesystem-m1714858.js} +1 -1
- package/dist/chunks/{workspace-hzrfc1p4.js → filesystem-m5jcjszt.js} +2 -2
- package/dist/chunks/{workspace-5083qcyj.js → filesystem-m7sf20d3.js} +29 -29
- package/dist/chunks/{workspace-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
- package/dist/chunks/{workspace-maspj1v3.js → filesystem-maspj1v3.js} +1 -1
- package/dist/chunks/filesystem-mpdatzvn.js +26 -0
- package/dist/chunks/{workspace-actym6sp.js → filesystem-mz3a5edd.js} +6 -6
- package/dist/chunks/{workspace-n0p0277s.js → filesystem-n0p0277s.js} +1 -1
- package/dist/chunks/{workspace-tdbp9pqc.js → filesystem-n32wkzbx.js} +33 -33
- package/dist/chunks/{workspace-trnc4ezg.js → filesystem-n4d18xwc.js} +13 -13
- package/dist/chunks/{workspace-811sm8q5.js → filesystem-n5q96v35.js} +13 -13
- package/dist/chunks/{workspace-7scgcvrf.js → filesystem-n8gn2k8w.js} +9 -9
- package/dist/chunks/{workspace-3nh05435.js → filesystem-nd5d6z5j.js} +1 -1
- package/dist/chunks/{workspace-fk80w04t.js → filesystem-nk6d3n00.js} +40 -40
- package/dist/chunks/{workspace-59rjxnhk.js → filesystem-nm4qwr9s.js} +11 -11
- package/dist/chunks/{workspace-4rk46c4y.js → filesystem-nnv5zz39.js} +12 -12
- package/dist/chunks/{workspace-xtr5ejb8.js → filesystem-nq8bay0y.js} +27 -27
- package/dist/chunks/{workspace-9tvpxs1q.js → filesystem-nttn14j9.js} +4 -4
- package/dist/chunks/{workspace-dhndgb5g.js → filesystem-nvexje8a.js} +5 -5
- package/dist/chunks/{workspace-6c1s406r.js → filesystem-nxdk44b7.js} +6 -6
- package/dist/chunks/{workspace-p015t6z3.js → filesystem-p015t6z3.js} +2 -2
- package/dist/chunks/{workspace-2jq4ff38.js → filesystem-p0tsr9h6.js} +4 -4
- package/dist/chunks/{workspace-p7vhpwh8.js → filesystem-p7vhpwh8.js} +1 -1
- package/dist/chunks/{workspace-wd649kc4.js → filesystem-padq4g58.js} +23 -23
- package/dist/chunks/{workspace-5crety7g.js → filesystem-pc1v25hk.js} +3 -3
- package/dist/chunks/{workspace-pknna89w.js → filesystem-pknna89w.js} +1 -1
- package/dist/chunks/{workspace-gcs2fc5m.js → filesystem-pkyesxg1.js} +16 -16
- package/dist/chunks/{workspace-q86pf388.js → filesystem-pvrft5am.js} +46 -46
- package/dist/chunks/{workspace-4z3n7x5k.js → filesystem-qg8qtdad.js} +3 -3
- package/dist/chunks/{workspace-paepwcm2.js → filesystem-qh4tvjey.js} +4 -4
- package/dist/chunks/{workspace-qjgzc4b4.js → filesystem-qjgzc4b4.js} +1 -1
- package/dist/chunks/{workspace-yp2qyq5j.js → filesystem-qtm30naq.js} +18 -18
- package/dist/chunks/{workspace-q9nya8vj.js → filesystem-r0dtc59e.js} +19 -19
- package/dist/chunks/{workspace-r0yr0wbs.js → filesystem-r0yr0wbs.js} +1 -1
- package/dist/chunks/{workspace-w9geygzy.js → filesystem-r1esf721.js} +45 -45
- package/dist/chunks/{workspace-75cp5h68.js → filesystem-r3f67wnp.js} +28 -28
- package/dist/chunks/{workspace-w2eysc6j.js → filesystem-r41sfy63.js} +6 -6
- package/dist/chunks/{workspace-rb9dy4dg.js → filesystem-rb9dy4dg.js} +1 -1
- package/dist/chunks/{workspace-2xea8x11.js → filesystem-rfg9rte0.js} +16 -16
- package/dist/chunks/{workspace-rt5dr6hb.js → filesystem-rt5dr6hb.js} +1 -1
- package/dist/chunks/{workspace-d1bhb9nv.js → filesystem-rvmjpzp1.js} +9 -9
- package/dist/chunks/{workspace-tmsfm4tn.js → filesystem-s1rp2hzf.js} +14 -14
- package/dist/chunks/{workspace-eyamc8wk.js → filesystem-s3jvwajm.js} +16 -16
- package/dist/chunks/{workspace-7en38gq0.js → filesystem-s4r347cv.js} +12 -12
- package/dist/chunks/{workspace-rrad2nt9.js → filesystem-s626qfae.js} +4 -4
- package/dist/chunks/{workspace-b6ejp4av.js → filesystem-s9v9gzsc.js} +36 -36
- package/dist/chunks/{workspace-py5bb3qg.js → filesystem-sdcxcfrs.js} +6 -6
- package/dist/chunks/{workspace-6qjs3j48.js → filesystem-sejvc57q.js} +15 -15
- package/dist/chunks/{workspace-4hrd0f0s.js → filesystem-sm3pn1yy.js} +177 -177
- package/dist/chunks/{workspace-wvsk6hkh.js → filesystem-spsj76tb.js} +7 -7
- package/dist/chunks/{workspace-sqjzf8x2.js → filesystem-sqjzf8x2.js} +1 -1
- package/dist/chunks/{workspace-5445pja8.js → filesystem-st4qtcsw.js} +28 -28
- package/dist/chunks/{workspace-v6hd4jx6.js → filesystem-sz9hkbm4.js} +9 -9
- package/dist/chunks/{workspace-r9ycgn4k.js → filesystem-t271sy58.js} +12 -12
- package/dist/chunks/{workspace-dcdr9dg7.js → filesystem-t3gbfrqn.js} +11 -11
- package/dist/chunks/{workspace-t1sb82cf.js → filesystem-t3rfzc0n.js} +2 -2
- package/dist/chunks/{workspace-wy92yfz2.js → filesystem-t6cdgaq6.js} +28 -28
- package/dist/chunks/{workspace-tczq8hjw.js → filesystem-tczq8hjw.js} +1 -1
- package/dist/chunks/{workspace-xv6vex0v.js → filesystem-tfeyr919.js} +14 -14
- package/dist/chunks/{workspace-75sznh19.js → filesystem-tg0gd36c.js} +18 -18
- package/dist/chunks/{workspace-wr22rtgw.js → filesystem-tj5yfdht.js} +35 -35
- package/dist/chunks/{workspace-tpm1qpxt.js → filesystem-tpm1qpxt.js} +2 -2
- package/dist/chunks/{workspace-tw8zr1ps.js → filesystem-tw8zr1ps.js} +1 -1
- package/dist/chunks/{workspace-twv2r8f4.js → filesystem-twv2r8f4.js} +2 -2
- package/dist/chunks/{workspace-p9aj7t6q.js → filesystem-tx3h81rw.js} +14 -14
- package/dist/chunks/{workspace-xxzvbbkc.js → filesystem-tzkvb7j5.js} +76 -76
- package/dist/chunks/{workspace-v2r1d0zg.js → filesystem-v2r1d0zg.js} +1 -1
- package/dist/chunks/{workspace-3bnf6a24.js → filesystem-v44g1jae.js} +9 -9
- package/dist/chunks/{workspace-ydsespw1.js → filesystem-v5hpj9dd.js} +8 -8
- package/dist/chunks/{workspace-4hhqfxrb.js → filesystem-v81ymy3c.js} +14 -14
- package/dist/chunks/{workspace-m4smrk82.js → filesystem-v93w9dtv.js} +13 -13
- package/dist/chunks/{workspace-ka3ebb26.js → filesystem-vbcm6ahj.js} +12 -12
- package/dist/chunks/{workspace-vd3b3yk9.js → filesystem-vd3b3yk9.js} +1 -1
- package/dist/chunks/{workspace-veqvce7d.js → filesystem-veqvce7d.js} +1 -1
- package/dist/chunks/{workspace-3ge5rx21.js → filesystem-vgqfs1n2.js} +11 -11
- package/dist/chunks/{workspace-tge03dzs.js → filesystem-vnxwgqtp.js} +24 -24
- package/dist/chunks/{workspace-we1bjw9z.js → filesystem-vq1ppevj.js} +8 -8
- package/dist/chunks/{workspace-xjcqxx9h.js → filesystem-vq9exjc4.js} +69 -69
- package/dist/chunks/{workspace-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
- package/dist/chunks/{workspace-76cb1hcw.js → filesystem-w8qtt4th.js} +4 -4
- package/dist/chunks/{workspace-5pk0xbgp.js → filesystem-w96mkmzg.js} +27 -27
- package/dist/chunks/{workspace-wakvkjy4.js → filesystem-wakvkjy4.js} +1 -1
- package/dist/chunks/{workspace-3k5f8s26.js → filesystem-wckc0zrx.js} +4 -4
- package/dist/chunks/{workspace-fy7vwem6.js → filesystem-wcsf77ep.js} +7 -7
- package/dist/chunks/{workspace-wd87259q.js → filesystem-wd87259q.js} +1 -1
- package/dist/chunks/{workspace-bx934t5c.js → filesystem-wzfzr50j.js} +12 -12
- package/dist/chunks/{workspace-32mwzrrd.js → filesystem-x6h7fa0f.js} +13 -13
- package/dist/chunks/{workspace-dhjhcs6c.js → filesystem-x934s5n8.js} +4 -4
- package/dist/chunks/{workspace-5agv5pnb.js → filesystem-xggf8f2k.js} +9 -9
- package/dist/chunks/{workspace-avpraz00.js → filesystem-xnj8czy5.js} +38 -38
- package/dist/chunks/{workspace-jpff4b81.js → filesystem-xqg92hb0.js} +27 -27
- package/dist/chunks/{workspace-w8xq4g1c.js → filesystem-y2sesghw.js} +4 -4
- package/dist/chunks/{workspace-57zfgywe.js → filesystem-yawxmpnv.js} +20 -19
- package/dist/chunks/{workspace-yb20nhc3.js → filesystem-yb20nhc3.js} +1 -1
- package/dist/chunks/filesystem-ym2fpx9j.js +523 -0
- package/dist/chunks/{workspace-9ahp1agz.js → filesystem-ymrtwgat.js} +3 -3
- package/dist/chunks/{workspace-1vwr1yzz.js → filesystem-ytj9cq62.js} +13 -13
- package/dist/chunks/{workspace-q5ksxkha.js → filesystem-ytxs1176.js} +3 -3
- package/dist/chunks/{workspace-z0bkrqjs.js → filesystem-z0bkrqjs.js} +1 -1
- package/dist/chunks/{workspace-067bn7k9.js → filesystem-z0dwbekb.js} +18 -18
- package/dist/chunks/{workspace-jhx8zsag.js → filesystem-z0qqz9cx.js} +19 -19
- package/dist/chunks/{workspace-kmr8mv8d.js → filesystem-z1448dy0.js} +11 -11
- package/dist/chunks/{workspace-z38nccrw.js → filesystem-z38nccrw.js} +1 -1
- package/dist/chunks/{workspace-9y24x8tm.js → filesystem-zgjcgapj.js} +3 -3
- package/dist/chunks/{workspace-scvn2zk3.js → filesystem-zj4f4v9r.js} +20 -20
- package/dist/chunks/{workspace-zkg84ctx.js → filesystem-zkg84ctx.js} +1 -1
- package/dist/chunks/{workspace-as4kdtne.js → filesystem-zqz3yng3.js} +7 -7
- package/dist/chunks/{workspace-5qjar1cd.js → filesystem-ztmrs8ra.js} +5 -5
- package/dist/chunks/{workspace-8y2wmcqs.js → filesystem-zwqbvap5.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- 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 +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- 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 +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +154 -86
- 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 +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +2 -2
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +109 -109
- 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 +93 -93
- 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 +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +153 -153
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +357 -357
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +138 -138
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +105 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +97 -97
- 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 +89 -89
- package/dist/reference.js +87 -87
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +107 -107
- 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 +212 -212
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +137 -137
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/database/v1-migration.bun.d.ts +4 -2
- package/dist/types/job.d.ts +1 -4
- package/dist/types/permission.d.ts +0 -1
- package/dist/types/persistent-pty/daemon.d.ts +0 -6
- package/dist/types/project.d.ts +6 -2
- package/dist/types/session/diff.d.ts +0 -1
- package/dist/types/session/error.d.ts +6 -16
- package/dist/types/session/inbox.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +0 -1
- package/dist/types/session/schema.d.ts +6 -12
- package/dist/types/session/stats.d.ts +12 -11
- package/dist/types/session/store.d.ts +0 -6
- package/dist/types/session/transfer.d.ts +19 -25
- package/dist/types/session.d.ts +0 -6
- package/dist/types/tool/plugin/opencode.d.ts +0 -2
- package/dist/types/tool/plugin/subagent.d.ts +0 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/workspace-csdtf696.js +0 -26
- package/dist/chunks/workspace-gq1ys0xw.js +0 -523
- package/dist/chunks/workspace-n3r3rt18.js +0 -18
- package/dist/chunks/workspace-w4nncpsp.js +0 -257
- /package/dist/chunks/{workspace-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{workspace-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
- /package/dist/chunks/{workspace-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
- /package/dist/chunks/{workspace-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
- /package/dist/chunks/{workspace-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
- /package/dist/chunks/{workspace-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
- /package/dist/chunks/{workspace-2bv980vf.js → filesystem-2bv980vf.js} +0 -0
- /package/dist/chunks/{workspace-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{workspace-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
- /package/dist/chunks/{workspace-3asan66x.js → filesystem-3asan66x.js} +0 -0
- /package/dist/chunks/{workspace-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
- /package/dist/chunks/{workspace-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
- /package/dist/chunks/{workspace-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
- /package/dist/chunks/{workspace-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
- /package/dist/chunks/{workspace-4vcrnpx2.js → filesystem-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{workspace-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
- /package/dist/chunks/{workspace-53557ph1.js → filesystem-53557ph1.js} +0 -0
- /package/dist/chunks/{workspace-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
- /package/dist/chunks/{workspace-5fjb7ams.js → filesystem-5fjb7ams.js} +0 -0
- /package/dist/chunks/{workspace-5qd3pb7m.js → filesystem-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{workspace-6prwharc.js → filesystem-6prwharc.js} +0 -0
- /package/dist/chunks/{workspace-6q2bdcd1.js → filesystem-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{workspace-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
- /package/dist/chunks/{workspace-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
- /package/dist/chunks/{workspace-822emrt2.js → filesystem-822emrt2.js} +0 -0
- /package/dist/chunks/{workspace-84wd9syh.js → filesystem-84wd9syh.js} +0 -0
- /package/dist/chunks/{workspace-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
- /package/dist/chunks/{workspace-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
- /package/dist/chunks/{workspace-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
- /package/dist/chunks/{workspace-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
- /package/dist/chunks/{workspace-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{workspace-a058387c.js → filesystem-a058387c.js} +0 -0
- /package/dist/chunks/{workspace-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
- /package/dist/chunks/{workspace-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
- /package/dist/chunks/{workspace-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
- /package/dist/chunks/{workspace-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{workspace-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
- /package/dist/chunks/{workspace-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{workspace-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{workspace-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
- /package/dist/chunks/{workspace-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{workspace-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
- /package/dist/chunks/{workspace-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{workspace-dajrwvna.js → filesystem-dajrwvna.js} +0 -0
- /package/dist/chunks/{workspace-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
- /package/dist/chunks/{workspace-df08tz66.js → filesystem-df08tz66.js} +0 -0
- /package/dist/chunks/{workspace-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
- /package/dist/chunks/{workspace-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
- /package/dist/chunks/{workspace-e73j6tqm.js → filesystem-e73j6tqm.js} +0 -0
- /package/dist/chunks/{workspace-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
- /package/dist/chunks/{workspace-eh3zwz77.js → filesystem-eh3zwz77.js} +0 -0
- /package/dist/chunks/{workspace-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
- /package/dist/chunks/{workspace-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
- /package/dist/chunks/{workspace-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{workspace-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
- /package/dist/chunks/{workspace-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
- /package/dist/chunks/{workspace-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
- /package/dist/chunks/{workspace-g86h250q.js → filesystem-g86h250q.js} +0 -0
- /package/dist/chunks/{workspace-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
- /package/dist/chunks/{workspace-gftt206x.js → filesystem-gftt206x.js} +0 -0
- /package/dist/chunks/{workspace-hcxmzztb.js → filesystem-hcxmzztb.js} +0 -0
- /package/dist/chunks/{workspace-hk9envan.js → filesystem-hk9envan.js} +0 -0
- /package/dist/chunks/{workspace-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
- /package/dist/chunks/{workspace-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{workspace-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
- /package/dist/chunks/{workspace-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{workspace-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{workspace-jze0r7bz.js → filesystem-jze0r7bz.js} +0 -0
- /package/dist/chunks/{workspace-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{workspace-m18g726c.js → filesystem-m18g726c.js} +0 -0
- /package/dist/chunks/{workspace-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
- /package/dist/chunks/{workspace-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
- /package/dist/chunks/{workspace-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
- /package/dist/chunks/{workspace-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
- /package/dist/chunks/{workspace-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
- /package/dist/chunks/{workspace-pkyv6v7h.js → filesystem-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{workspace-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
- /package/dist/chunks/{workspace-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
- /package/dist/chunks/{workspace-qaymkmh1.js → filesystem-qaymkmh1.js} +0 -0
- /package/dist/chunks/{workspace-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
- /package/dist/chunks/{workspace-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
- /package/dist/chunks/{workspace-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
- /package/dist/chunks/{workspace-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
- /package/dist/chunks/{workspace-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{workspace-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{workspace-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
- /package/dist/chunks/{workspace-ve7vex1e.js → filesystem-ve7vex1e.js} +0 -0
- /package/dist/chunks/{workspace-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
- /package/dist/chunks/{workspace-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{workspace-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
- /package/dist/chunks/{workspace-wjj7prxr.js → filesystem-wjj7prxr.js} +0 -0
- /package/dist/chunks/{workspace-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
- /package/dist/chunks/{workspace-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
- /package/dist/chunks/{workspace-x61499pn.js → filesystem-x61499pn.js} +0 -0
- /package/dist/chunks/{workspace-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
- /package/dist/chunks/{workspace-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
- /package/dist/chunks/{workspace-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{workspace-ym463w8f.js → filesystem-ym463w8f.js} +0 -0
- /package/dist/chunks/{workspace-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{workspace-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-7qh21x13.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./filesystem-vd3b3yk9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service80,
|
|
11
|
+
node83
|
|
12
|
+
} from "./filesystem-jk3vvd6z.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID11,
|
|
16
16
|
modelSettings2,
|
|
17
17
|
mergeOverlay2,
|
|
18
18
|
mergeHeaders2,
|
|
19
19
|
Service75,
|
|
20
|
-
|
|
20
|
+
node78,
|
|
21
21
|
Event15
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./filesystem-vnxwgqtp.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/model.ts
|
|
28
28
|
var exports_model2 = {};
|
|
@@ -32,17 +32,17 @@ __export(exports_model2, {
|
|
|
32
32
|
Cost: () => Cost2,
|
|
33
33
|
Event: () => Event14,
|
|
34
34
|
Family: () => Family2,
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
35
|
+
ID: () => ID10,
|
|
36
|
+
Info: () => Info19,
|
|
37
37
|
Model: () => exports_model2,
|
|
38
38
|
ReasoningField: () => ReasoningField2,
|
|
39
39
|
Ref: () => Ref2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service74,
|
|
41
41
|
VariantID: () => VariantID2,
|
|
42
42
|
compatibility: () => compatibility2,
|
|
43
43
|
mergeCapabilities: () => mergeCapabilities2,
|
|
44
|
-
node: () =>
|
|
45
|
-
parse: () =>
|
|
44
|
+
node: () => node77,
|
|
45
|
+
parse: () => parse5,
|
|
46
46
|
supportsText: () => supportsText2
|
|
47
47
|
});
|
|
48
48
|
import { Model } from "@opencode/schema/model";
|
|
@@ -50,7 +50,7 @@ import { Context, Effect, Layer, Stream } from "effect";
|
|
|
50
50
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
51
51
|
import { freeze } from "immer";
|
|
52
52
|
import { Event as Event14 } from "@opencode/schema/model";
|
|
53
|
-
var
|
|
53
|
+
var ID10 = Model.ID;
|
|
54
54
|
var VariantID2 = Model.VariantID;
|
|
55
55
|
var Family2 = Model.Family;
|
|
56
56
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -67,14 +67,14 @@ var mergeCapabilities2 = (config, base) => {
|
|
|
67
67
|
};
|
|
68
68
|
var Cost2 = Model.Cost;
|
|
69
69
|
var Ref2 = Model.Ref;
|
|
70
|
-
var
|
|
70
|
+
var Info19 = Model.Info;
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class Service74 extends Context.Service()("@opencode/Model") {
|
|
73
73
|
}
|
|
74
|
-
var layer = Layer.effect(
|
|
74
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
75
75
|
const providers = yield* Service75;
|
|
76
76
|
const bus = yield* Service85;
|
|
77
|
-
const location = yield*
|
|
77
|
+
const location = yield* Service80;
|
|
78
78
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
79
79
|
let input;
|
|
80
80
|
const state = create3({
|
|
@@ -120,7 +120,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
120
120
|
const models = writable(providerID);
|
|
121
121
|
if (!models)
|
|
122
122
|
return;
|
|
123
|
-
const model = draft(providerID, modelID) ??
|
|
123
|
+
const model = draft(providerID, modelID) ?? Info19.default(providerID, modelID);
|
|
124
124
|
update(model);
|
|
125
125
|
model.id = modelID;
|
|
126
126
|
model.providerID = providerID;
|
|
@@ -189,7 +189,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
189
189
|
];
|
|
190
190
|
}));
|
|
191
191
|
if (disableFree)
|
|
192
|
-
for (const providerID of [
|
|
192
|
+
for (const providerID of [ID11.opencode, ID11.make("opencode-go")])
|
|
193
193
|
byProvider.get(providerID)?.forEach((model, id, models) => {
|
|
194
194
|
if (!model.cost.some((cost) => cost.input > 0))
|
|
195
195
|
models.delete(id);
|
|
@@ -217,7 +217,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
219
|
yield* bus.subscribe(Event15.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
220
|
-
return
|
|
220
|
+
return Service74.of({
|
|
221
221
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
222
222
|
reload,
|
|
223
223
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -236,7 +236,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
236
236
|
})
|
|
237
237
|
});
|
|
238
238
|
}));
|
|
239
|
-
var
|
|
239
|
+
var node77 = makeLocationNode({ service: Service74, layer, deps: [node78, node89, node83] });
|
|
240
240
|
var PREFERRED_FREE = [
|
|
241
241
|
"big-pickle",
|
|
242
242
|
"deepseek-v4.1-flash-free",
|
|
@@ -244,7 +244,7 @@ var PREFERRED_FREE = [
|
|
|
244
244
|
"muse-spark-1.3-contributor-free"
|
|
245
245
|
];
|
|
246
246
|
function preferFree(models) {
|
|
247
|
-
const freeOnly = models.every((model) => model.providerID ===
|
|
247
|
+
const freeOnly = models.every((model) => model.providerID === ID11.opencode && !model.cost.some((cost) => cost.input > 0));
|
|
248
248
|
if (!freeOnly)
|
|
249
249
|
return models;
|
|
250
250
|
const picks = PREFERRED_FREE.flatMap((id) => models.find((model) => model.id === id) ?? []);
|
|
@@ -260,12 +260,12 @@ function compatibility2(input) {
|
|
|
260
260
|
return;
|
|
261
261
|
return typeof input.field === "string" ? { reasoningField: input.field } : undefined;
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function parse5(input) {
|
|
264
264
|
const index = input.indexOf("/");
|
|
265
265
|
return {
|
|
266
|
-
providerID:
|
|
267
|
-
modelID:
|
|
266
|
+
providerID: ID11.make(index === -1 ? input : input.slice(0, index)),
|
|
267
|
+
modelID: ID10.make(index === -1 ? "" : input.slice(index + 1))
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export {
|
|
271
|
+
export { ID10, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info19, Service74, node77, supportsText2, compatibility2, parse5, exports_model2, Event14 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-qjgzc4b4.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service4,
|
|
13
|
+
node: () => node6
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service4 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service4.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node6 = makeGlobalNode({ service: Service4, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service4, node6, exports_update };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./filesystem-qg8qtdad.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./filesystem-7qh21x13.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service82,
|
|
14
|
+
node85
|
|
15
|
+
} from "./filesystem-wzfzr50j.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID16,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info27,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event19,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./filesystem-v44g1jae.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./filesystem-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./filesystem-ayjs7tqn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID15,
|
|
40
|
+
Info: () => Info26,
|
|
41
|
+
NotFoundError: () => NotFoundError12,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node84,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID15 = ID16;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info26 = Info27;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID15
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service81 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service82;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
112
112
|
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;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event19.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID15.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event19.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
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);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event19.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID15.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID15.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID15.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID15.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -247,12 +247,13 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
247
247
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
248
248
|
return {
|
|
249
249
|
previous,
|
|
250
|
-
id: id ??
|
|
250
|
+
id: id ?? ID15.global,
|
|
251
251
|
directory: worktree,
|
|
252
252
|
vcs: { type: "hg", store: dotHg }
|
|
253
253
|
};
|
|
254
254
|
});
|
|
255
|
-
const resolve = Effect.fn("Project.resolve")(function* (input) {
|
|
255
|
+
const resolve = Effect.fn("Project.resolve")(function* (input, options) {
|
|
256
|
+
const save = (project) => options?.persist === false ? Effect.succeed(project) : persist(project);
|
|
256
257
|
const directory = AbsolutePath2.make(yield* fs.resolve(input));
|
|
257
258
|
const native = yield* fs.up({ targets: [".git", ".hg"], start: directory, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.orElseSucceed(() => {
|
|
258
259
|
return;
|
|
@@ -262,9 +263,9 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
262
263
|
const previous = yield* cached(repo.commonDirectory);
|
|
263
264
|
const id = (yield* remote(repo)) ?? previous ?? (yield* rootCommit(repo));
|
|
264
265
|
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), Effect.orElseSucceed(() => repo.worktree));
|
|
265
|
-
return yield*
|
|
266
|
+
return yield* save({
|
|
266
267
|
previous,
|
|
267
|
-
id: id ??
|
|
268
|
+
id: id ?? ID15.global,
|
|
268
269
|
directory: repo.worktree,
|
|
269
270
|
canonical,
|
|
270
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -272,13 +273,13 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
272
273
|
}
|
|
273
274
|
const hg = native && path.basename(native) === ".hg" ? yield* hgDiscover(AbsolutePath2.make(native)) : undefined;
|
|
274
275
|
if (hg) {
|
|
275
|
-
return yield*
|
|
276
|
+
return yield* save({
|
|
276
277
|
...hg,
|
|
277
278
|
canonical: hg.directory
|
|
278
279
|
});
|
|
279
280
|
}
|
|
280
|
-
return yield*
|
|
281
|
-
id:
|
|
281
|
+
return yield* save({
|
|
282
|
+
id: ID15.make(Hash.fast(`directory:${directory}`)),
|
|
282
283
|
directory,
|
|
283
284
|
canonical: directory,
|
|
284
285
|
vcs: undefined
|
|
@@ -287,7 +288,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
287
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
288
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
289
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
290
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
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);
|
|
291
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
292
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
293
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -300,23 +301,23 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
300
301
|
return;
|
|
301
302
|
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);
|
|
302
303
|
if (row)
|
|
303
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event19.Updated, fromRow(row));
|
|
304
305
|
}), { concurrency: 8, discard: true });
|
|
305
306
|
});
|
|
306
|
-
return
|
|
307
|
+
return Service81.of({ list, update, activate, resolve, sweep });
|
|
307
308
|
}));
|
|
308
|
-
var
|
|
309
|
-
service:
|
|
309
|
+
var node84 = makeGlobalNode({
|
|
310
|
+
service: Service81,
|
|
310
311
|
layer,
|
|
311
|
-
deps: [node89, node90, FSUtil.node,
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node85, AppProcess.node]
|
|
312
313
|
});
|
|
313
314
|
var sweepNode2 = makeGlobalNode({
|
|
314
315
|
name: "project-archive-sweep",
|
|
315
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
316
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service81;
|
|
317
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
318
319
|
})),
|
|
319
|
-
deps: [
|
|
320
|
+
deps: [node84]
|
|
320
321
|
});
|
|
321
322
|
|
|
322
|
-
export {
|
|
323
|
+
export { ID15, Vcs2, Current2, Info26, UpdateInput3, NotFoundError12, root2, Service81, node84, sweepNode2, exports_project };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./filesystem-jk3vvd6z.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
13
13
|
__export(exports_discovery2, {
|
|
14
14
|
ConfigDiscovery: () => exports_discovery2,
|
|
15
15
|
discover: () => discover3,
|
|
16
|
-
names: () =>
|
|
16
|
+
names: () => names3,
|
|
17
17
|
preferencePaths: () => preferencePaths2,
|
|
18
18
|
stripPreferenceMetadata: () => stripPreferenceMetadata2,
|
|
19
19
|
systemDirectory: () => systemDirectory2
|
|
@@ -23,7 +23,7 @@ import path from "path";
|
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
25
25
|
import { Global } from "@opencode/util/global";
|
|
26
|
-
var
|
|
26
|
+
var names3 = ["opencode.json", "opencode.jsonc"];
|
|
27
27
|
function systemDirectory2(platform = process.platform, env = process.env) {
|
|
28
28
|
if (platform === "darwin")
|
|
29
29
|
return AbsolutePath2.make("/Library/Application Support/opencode");
|
|
@@ -54,7 +54,7 @@ function stripPreferenceMetadata2(json) {
|
|
|
54
54
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
55
55
|
const fs = yield* FSUtil.Service;
|
|
56
56
|
const global = yield* Global.Service;
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service80;
|
|
58
58
|
const system = (() => {
|
|
59
59
|
if (options?.system === false)
|
|
60
60
|
return;
|
|
@@ -71,10 +71,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
71
71
|
const directories = globalRoots.slice(0, configDirectories.length).includes(current) || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
|
|
72
72
|
const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
|
|
73
73
|
const parent = yield* fs.resolve(directory);
|
|
74
|
-
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...
|
|
74
|
+
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names3.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
|
|
75
75
|
})).pipe(Effect.map((items) => items.flat()), Effect.orDie);
|
|
76
76
|
const globalEnabled = options?.global !== false;
|
|
77
|
-
const globalFiles = yield* Effect.forEach(configDirectories.flatMap((directory) =>
|
|
77
|
+
const globalFiles = yield* Effect.forEach(configDirectories.flatMap((directory) => names3.map((name) => path.join(directory, name))), (file) => fs.resolve(file));
|
|
78
78
|
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
79
79
|
const preferences = globalEnabled && (options?.system ?? true) === true && process.platform === "darwin" ? (yield* Effect.filter(preferencePaths2(yield* Effect.try(() => os.userInfo().username).pipe(Effect.orElseSucceed(() => "user"))), fs.isFile)).at(0) : undefined;
|
|
80
80
|
return {
|
|
@@ -99,4 +99,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
99
99
|
};
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
export {
|
|
102
|
+
export { names3, systemDirectory2, preferencePaths2, stripPreferenceMetadata2, discover3, exports_discovery2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/hooks.ts
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service70,
|
|
10
|
+
node: () => node72
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service70 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service70.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node72 = makeLocationNode({ service: Service70, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service70, node72, exports_hooks };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service49
|
|
3
|
+
} from "./filesystem-d1cerpfm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service45
|
|
6
|
+
} from "./filesystem-9nkjg9qd.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./filesystem-00ve6mdn.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
22
|
+
const instances = yield* Service45;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service49), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-qg8qtdad.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./filesystem-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./filesystem-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: () => Service76,
|
|
17
|
+
node: () => node79
|
|
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 Service76 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service86).db;
|
|
26
|
-
return
|
|
26
|
+
return Service76.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 node79 = makeGlobalNode({ service: Service76, layer, deps: [node90] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service76, node79, exports_kv };
|