@opencode/core 2.1.1 → 2.1.2
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 +69 -69
- package/dist/aisdk-native.js +74 -74
- package/dist/aisdk.js +79 -79
- package/dist/app.js +9 -9
- package/dist/bus.js +60 -60
- package/dist/chunks/{repository-cache-jnk63p10.js → repository-cache-068g2d37.js} +28 -28
- package/dist/chunks/{repository-cache-mhdex35g.js → repository-cache-07rqgew6.js} +5 -5
- package/dist/chunks/{repository-cache-b2ckp95n.js → repository-cache-09390rf8.js} +13 -13
- package/dist/chunks/{repository-cache-b4nzaj04.js → repository-cache-0cg871e2.js} +3 -3
- package/dist/chunks/{repository-cache-8d1pd201.js → repository-cache-0cwe34aq.js} +21 -21
- package/dist/chunks/{repository-cache-v210v162.js → repository-cache-0javqkgf.js} +7 -7
- package/dist/chunks/{repository-cache-6nq3099y.js → repository-cache-0nz7j1v1.js} +1 -1
- package/dist/chunks/{repository-cache-94p6wp9x.js → repository-cache-136rxf1v.js} +16 -16
- package/dist/chunks/{repository-cache-fbxj9tpm.js → repository-cache-14z3krkx.js} +4 -4
- package/dist/chunks/{repository-cache-7303zb1f.js → repository-cache-1bsm6gb2.js} +15 -15
- package/dist/chunks/{repository-cache-a0kr73jj.js → repository-cache-1g044nmy.js} +9 -9
- package/dist/chunks/{repository-cache-9m35c2r0.js → repository-cache-1hyfwtsr.js} +7 -7
- package/dist/chunks/{repository-cache-1ngx28bn.js → repository-cache-1rf4yw31.js} +2 -2
- package/dist/chunks/{repository-cache-0vf8bfn5.js → repository-cache-1rj8m5vq.js} +4 -4
- package/dist/chunks/{repository-cache-f94wsmf1.js → repository-cache-1sj4xbsw.js} +1 -1
- package/dist/chunks/{repository-cache-t5nm1h7p.js → repository-cache-1ycwwje8.js} +38 -38
- package/dist/chunks/{repository-cache-qsbh95pa.js → repository-cache-2296e4cw.js} +16 -16
- package/dist/chunks/{repository-cache-3hkcw4we.js → repository-cache-23fc6a7j.js} +12 -12
- package/dist/chunks/{repository-cache-0vtn597b.js → repository-cache-24ra19qx.js} +19 -19
- package/dist/chunks/{repository-cache-ezhy60ay.js → repository-cache-25m6jntb.js} +27 -27
- package/dist/chunks/{repository-cache-s5met55r.js → repository-cache-2eegacq4.js} +7 -7
- package/dist/chunks/{repository-cache-77d0na5t.js → repository-cache-2ntc19nv.js} +43 -43
- package/dist/chunks/{repository-cache-rmtct2jg.js → repository-cache-2r3bm1pf.js} +17 -17
- package/dist/chunks/{repository-cache-fww2ha2b.js → repository-cache-3g642jy4.js} +8 -8
- package/dist/chunks/{repository-cache-yfdycbsw.js → repository-cache-3ske6nsv.js} +18 -18
- package/dist/chunks/{repository-cache-3ns80m0h.js → repository-cache-3wvrfr7w.js} +11 -11
- package/dist/chunks/{repository-cache-15e8hpnt.js → repository-cache-3wxjf8vr.js} +8 -8
- package/dist/chunks/{repository-cache-63t8kvdx.js → repository-cache-3xcrjpsd.js} +14 -14
- package/dist/chunks/{repository-cache-0qb6tpgj.js → repository-cache-41bqvch9.js} +9 -9
- package/dist/chunks/{repository-cache-pnf7bv7v.js → repository-cache-4evmdpem.js} +19 -19
- package/dist/chunks/{repository-cache-yew0zm8m.js → repository-cache-4m3ygwz0.js} +10 -10
- package/dist/chunks/{repository-cache-tza759th.js → repository-cache-4nxvs59q.js} +13 -13
- package/dist/chunks/{repository-cache-57myy5jh.js → repository-cache-4xpgt2w9.js} +3 -3
- package/dist/chunks/{repository-cache-065m31h9.js → repository-cache-4xtxvh3c.js} +9 -9
- package/dist/chunks/{repository-cache-dzxp512b.js → repository-cache-58a6xtee.js} +50 -50
- package/dist/chunks/{repository-cache-qmqgtz8f.js → repository-cache-5d607bsg.js} +7 -7
- package/dist/chunks/{repository-cache-kqe08t1d.js → repository-cache-5f1cq77a.js} +9 -9
- package/dist/chunks/{repository-cache-7vt9yzvg.js → repository-cache-5j9zz1y4.js} +9 -9
- package/dist/chunks/{repository-cache-h1schjng.js → repository-cache-5mnspefx.js} +29 -29
- package/dist/chunks/{repository-cache-gnrrjsmd.js → repository-cache-5xn7qbr2.js} +16 -14
- package/dist/chunks/{repository-cache-wqz8rkkb.js → repository-cache-5xte2yyn.js} +13 -13
- package/dist/chunks/{repository-cache-r8tt5pdh.js → repository-cache-60xtzwnm.js} +17 -17
- package/dist/chunks/{repository-cache-3fcx2j2w.js → repository-cache-63jfzrme.js} +17 -17
- package/dist/chunks/{repository-cache-9hn6k4tm.js → repository-cache-6f890ccd.js} +7 -7
- package/dist/chunks/{repository-cache-6kthashm.js → repository-cache-6khagj97.js} +27 -27
- package/dist/chunks/{repository-cache-r8qzytx6.js → repository-cache-6nhfh867.js} +6 -6
- package/dist/chunks/{repository-cache-py3kkmfq.js → repository-cache-6pc27hjz.js} +5 -5
- package/dist/chunks/{repository-cache-v7kdkfkp.js → repository-cache-6qprtkrf.js} +24 -24
- package/dist/chunks/{repository-cache-6qn8gjqg.js → repository-cache-6yftxg5c.js} +19 -19
- package/dist/chunks/{repository-cache-dv4jvz6s.js → repository-cache-78c4e6ad.js} +19 -19
- package/dist/chunks/{repository-cache-kq77jz7h.js → repository-cache-7b2pfqtj.js} +4 -4
- package/dist/chunks/{repository-cache-t5gc52ef.js → repository-cache-84cpmds6.js} +22 -22
- package/dist/chunks/{repository-cache-w1eejvng.js → repository-cache-84txncab.js} +4 -4
- package/dist/chunks/{repository-cache-k9gaxmgh.js → repository-cache-8pvf9cdd.js} +15 -15
- package/dist/chunks/{repository-cache-7p9sqgn0.js → repository-cache-8s3pces3.js} +10 -10
- package/dist/chunks/{repository-cache-kx8xg74a.js → repository-cache-8s4xtewj.js} +12 -12
- package/dist/chunks/{repository-cache-pfhhvb3w.js → repository-cache-8w6fvyhj.js} +1 -1
- package/dist/chunks/{repository-cache-3ty6jwen.js → repository-cache-8wmb0r1y.js} +3 -3
- package/dist/chunks/{repository-cache-c15zmvx5.js → repository-cache-8xnvw0w1.js} +9 -9
- package/dist/chunks/{repository-cache-95tpv30c.js → repository-cache-95hwhe14.js} +13 -13
- package/dist/chunks/{repository-cache-wp7khyzv.js → repository-cache-95t8ye7z.js} +39 -39
- package/dist/chunks/{repository-cache-8vy56zzm.js → repository-cache-96dnwma2.js} +30 -30
- package/dist/chunks/{repository-cache-q0p071b0.js → repository-cache-9bh5q6pj.js} +1 -1
- package/dist/chunks/{repository-cache-tgfxvvf8.js → repository-cache-9da6j7qw.js} +12 -12
- package/dist/chunks/{repository-cache-vnm2wjz3.js → repository-cache-9f77xx3w.js} +12 -12
- package/dist/chunks/{repository-cache-z6c3x22d.js → repository-cache-9hwaqfsw.js} +3 -3
- package/dist/chunks/{repository-cache-ewj35nqb.js → repository-cache-9j0x65xk.js} +3 -3
- package/dist/chunks/{repository-cache-842mqg42.js → repository-cache-9sr4q53q.js} +9 -9
- package/dist/chunks/{repository-cache-t4rnqcab.js → repository-cache-a9vzac7j.js} +5 -5
- package/dist/chunks/{repository-cache-w12shgbp.js → repository-cache-acd8cc5y.js} +20 -20
- package/dist/chunks/{repository-cache-txwpsv2p.js → repository-cache-am5vmnvv.js} +18 -18
- package/dist/chunks/{repository-cache-77a66swy.js → repository-cache-amsnh37f.js} +7 -7
- package/dist/chunks/{repository-cache-1ptgpzsy.js → repository-cache-apagrtrt.js} +16 -16
- package/dist/chunks/{repository-cache-0fztarvd.js → repository-cache-atj1s5r2.js} +12 -12
- package/dist/chunks/{repository-cache-6bq45c98.js → repository-cache-aws4c0c0.js} +19 -19
- package/dist/chunks/{repository-cache-c2sed5cq.js → repository-cache-axe3mf62.js} +3 -3
- package/dist/chunks/{repository-cache-1ze9gtzp.js → repository-cache-baqyxak2.js} +1 -1
- package/dist/chunks/{repository-cache-mn5j6xz9.js → repository-cache-be5vje8s.js} +15 -7
- package/dist/chunks/{repository-cache-dmpxat65.js → repository-cache-befx3zey.js} +4 -4
- package/dist/chunks/{repository-cache-kf0zwkk2.js → repository-cache-begyvfqb.js} +20 -20
- package/dist/chunks/{repository-cache-x7wne18b.js → repository-cache-bf876wkh.js} +10 -10
- package/dist/chunks/{repository-cache-4tyzw6xh.js → repository-cache-bkafj4ay.js} +7 -7
- package/dist/chunks/{repository-cache-jsg4jcbs.js → repository-cache-bnqg0hxn.js} +3 -3
- package/dist/chunks/{repository-cache-hh0jpq4c.js → repository-cache-br622wkd.js} +63 -63
- package/dist/chunks/{repository-cache-tzaz3z0t.js → repository-cache-btpxpz9q.js} +4 -4
- package/dist/chunks/{repository-cache-dqjdwcmj.js → repository-cache-bzcwmnv3.js} +9 -9
- package/dist/chunks/{repository-cache-1ep4rre3.js → repository-cache-bzeyqsqd.js} +3 -3
- package/dist/chunks/{repository-cache-yjxqy5ha.js → repository-cache-c02r2nwt.js} +9 -9
- package/dist/chunks/{repository-cache-v30mg9q2.js → repository-cache-cbfm0wb6.js} +7 -7
- package/dist/chunks/{repository-cache-scqf7y3w.js → repository-cache-cd8v38ms.js} +84 -84
- package/dist/chunks/{repository-cache-mx97exft.js → repository-cache-cg5q9ras.js} +30 -30
- package/dist/chunks/{repository-cache-8g2mbw9h.js → repository-cache-cmkn1bh9.js} +16 -16
- package/dist/chunks/{repository-cache-37cqxn50.js → repository-cache-ctxez2a7.js} +4 -4
- package/dist/chunks/{repository-cache-vhwx28nx.js → repository-cache-cz1210nh.js} +18 -13
- package/dist/chunks/{repository-cache-6xjvsea3.js → repository-cache-d04ep358.js} +8 -8
- package/dist/chunks/{repository-cache-9hzyxvsk.js → repository-cache-d72a72b9.js} +12 -12
- package/dist/chunks/{repository-cache-njebe5fw.js → repository-cache-dcdf7gkr.js} +17 -17
- package/dist/chunks/{repository-cache-h7q4kewv.js → repository-cache-dh0nadn9.js} +36 -36
- package/dist/chunks/{repository-cache-y71avatq.js → repository-cache-dpkg50ah.js} +3 -3
- package/dist/chunks/{repository-cache-z86wre2g.js → repository-cache-dqr3pwk6.js} +20 -20
- package/dist/chunks/{repository-cache-xfkkasph.js → repository-cache-drwq78ky.js} +3 -3
- package/dist/chunks/{repository-cache-rfmm8jvy.js → repository-cache-dsx0mmc6.js} +21 -21
- package/dist/chunks/repository-cache-e5ybad6w.js +257 -0
- package/dist/chunks/{repository-cache-mk935gd8.js → repository-cache-eg5kq0wk.js} +9 -9
- package/dist/chunks/{repository-cache-a75ad8v4.js → repository-cache-ek8edefh.js} +1 -1
- package/dist/chunks/{repository-cache-d2qeb4wf.js → repository-cache-ethnw1sn.js} +12 -12
- package/dist/chunks/{repository-cache-tfp3dpkf.js → repository-cache-ettmqyzq.js} +2 -2
- package/dist/chunks/{repository-cache-na3b46a7.js → repository-cache-ey9nrxd1.js} +19 -19
- package/dist/chunks/{repository-cache-8t50b4ww.js → repository-cache-ez5pkgh4.js} +23 -23
- package/dist/chunks/{repository-cache-zmy0eq9j.js → repository-cache-ezx2brb0.js} +16 -16
- package/dist/chunks/{repository-cache-jargxt5j.js → repository-cache-f31q5wm1.js} +13 -13
- package/dist/chunks/{repository-cache-qcy13bhz.js → repository-cache-f8yphcvr.js} +16 -16
- package/dist/chunks/{repository-cache-zp864mkb.js → repository-cache-fpen5yq5.js} +20 -20
- package/dist/chunks/{repository-cache-1q92ejr7.js → repository-cache-g2qvt889.js} +19 -19
- package/dist/chunks/{repository-cache-gp5jn49f.js → repository-cache-g5ngm8f4.js} +28 -28
- package/dist/chunks/{repository-cache-gkge597h.js → repository-cache-g90zrjvy.js} +17 -17
- package/dist/chunks/{repository-cache-2v5tj3gs.js → repository-cache-gen6sgf1.js} +10 -10
- package/dist/chunks/{repository-cache-zx24wvbj.js → repository-cache-gm3f9v0x.js} +4 -4
- package/dist/chunks/{repository-cache-fzdrxngq.js → repository-cache-gng93yft.js} +1 -1
- package/dist/chunks/{repository-cache-djbskq1b.js → repository-cache-gtdxectv.js} +1 -1
- package/dist/chunks/{repository-cache-gec8gq51.js → repository-cache-gxdr2vwe.js} +7 -7
- package/dist/chunks/{repository-cache-6e57763q.js → repository-cache-gye9bare.js} +1 -1
- package/dist/chunks/{repository-cache-rrymd76b.js → repository-cache-h1g26er5.js} +21 -21
- package/dist/chunks/{repository-cache-7z1jx34y.js → repository-cache-hbvyahhm.js} +21 -21
- package/dist/chunks/{repository-cache-ek4c2f0v.js → repository-cache-hehc42eq.js} +8 -8
- package/dist/chunks/{repository-cache-hjygm116.js → repository-cache-hm1sg1ry.js} +34 -34
- package/dist/chunks/{repository-cache-h1f52gh9.js → repository-cache-hnvjv21h.js} +30 -23
- package/dist/chunks/{repository-cache-k1jycaz7.js → repository-cache-hspen3n6.js} +24 -24
- package/dist/chunks/{repository-cache-6hjx5zpb.js → repository-cache-hwjyn0yt.js} +8 -8
- package/dist/chunks/{repository-cache-dzr38x1r.js → repository-cache-j2xqfvk3.js} +9 -9
- package/dist/chunks/{repository-cache-nbs22qen.js → repository-cache-jcwtgcwh.js} +3 -3
- package/dist/chunks/{repository-cache-fj6qct2w.js → repository-cache-k07nhkpw.js} +37 -37
- package/dist/chunks/{repository-cache-zs22chpb.js → repository-cache-k1php5wk.js} +22 -22
- package/dist/chunks/{repository-cache-6s242g8e.js → repository-cache-k20z56w2.js} +35 -35
- package/dist/chunks/{repository-cache-4prqf89h.js → repository-cache-k2vh0b3r.js} +26 -26
- package/dist/chunks/{repository-cache-gpqw730e.js → repository-cache-k4q5zqd4.js} +7 -7
- package/dist/chunks/{repository-cache-rpjgfq5s.js → repository-cache-k7myrtme.js} +7 -7
- package/dist/chunks/{repository-cache-ms89s1xg.js → repository-cache-k9tkpxn3.js} +144 -144
- package/dist/chunks/{repository-cache-s2b0mt3v.js → repository-cache-ka0kb0pp.js} +1 -1
- package/dist/chunks/{repository-cache-tdbmj82j.js → repository-cache-kdz0rk07.js} +7 -7
- package/dist/chunks/{repository-cache-7jwh32ts.js → repository-cache-ke7rr379.js} +25 -25
- package/dist/chunks/{repository-cache-savvjd0x.js → repository-cache-kg7htk1j.js} +46 -24
- package/dist/chunks/{repository-cache-vbfgae2j.js → repository-cache-kkp8zx71.js} +3 -3
- package/dist/chunks/{repository-cache-5dycw2n2.js → repository-cache-kkq0x60e.js} +8 -8
- package/dist/chunks/{repository-cache-2ky2kwtz.js → repository-cache-kp3dd9gy.js} +2 -2
- package/dist/chunks/{repository-cache-g2kfam58.js → repository-cache-kvk0xsab.js} +10 -10
- package/dist/chunks/{repository-cache-43x4yszk.js → repository-cache-m12bw8xw.js} +14 -14
- package/dist/chunks/{repository-cache-exgm3bba.js → repository-cache-mjfbh2zj.js} +12 -12
- package/dist/chunks/{repository-cache-0xfcnhey.js → repository-cache-mjxa0fkz.js} +28 -28
- package/dist/chunks/{repository-cache-yv2cmth8.js → repository-cache-mk9tkz9j.js} +1 -1
- package/dist/chunks/{repository-cache-9v5raxs8.js → repository-cache-mkqa88c4.js} +2 -2
- package/dist/chunks/{repository-cache-vhj1m4b0.js → repository-cache-mq56jt1j.js} +22 -22
- package/dist/chunks/{repository-cache-sz15zhhw.js → repository-cache-mqqhst8y.js} +3 -3
- package/dist/chunks/{repository-cache-x06a86kn.js → repository-cache-mr0cv7ny.js} +15 -15
- package/dist/chunks/{repository-cache-dzse07y5.js → repository-cache-mx9vqzsb.js} +5 -5
- package/dist/chunks/{repository-cache-j5w7gx2k.js → repository-cache-n196avmr.js} +33 -33
- package/dist/chunks/{repository-cache-x4jd4xmr.js → repository-cache-n99h6tw9.js} +31 -31
- package/dist/chunks/{repository-cache-21n0xhjn.js → repository-cache-nsxxvcpe.js} +13 -13
- package/dist/chunks/{repository-cache-bf4bmw04.js → repository-cache-pk0dmpdf.js} +8 -8
- package/dist/chunks/{repository-cache-fncqf4dd.js → repository-cache-psj2x98s.js} +4 -4
- package/dist/chunks/{repository-cache-46mephjz.js → repository-cache-pzc1z4et.js} +28 -28
- package/dist/chunks/{repository-cache-p7pstqch.js → repository-cache-qd284e96.js} +13 -13
- package/dist/chunks/{repository-cache-sxy57xts.js → repository-cache-qd9a1hat.js} +83 -83
- package/dist/chunks/{repository-cache-fcrkznn8.js → repository-cache-qgn6gcr1.js} +4 -4
- package/dist/chunks/{repository-cache-4wehpdsn.js → repository-cache-qm621tfa.js} +29 -29
- package/dist/chunks/{repository-cache-znqen040.js → repository-cache-qrtd1qkj.js} +9 -9
- package/dist/chunks/{repository-cache-2577k5af.js → repository-cache-qs0n9k2z.js} +9 -9
- package/dist/chunks/{repository-cache-kh81xvt5.js → repository-cache-qy7ffa5a.js} +2 -2
- package/dist/chunks/{repository-cache-y50tnaxc.js → repository-cache-qz7vxdk7.js} +8 -8
- package/dist/chunks/{repository-cache-r8mc9fw8.js → repository-cache-rbyshrxq.js} +6 -6
- package/dist/chunks/{repository-cache-47cwnsyn.js → repository-cache-rjzs5m1z.js} +7 -7
- package/dist/chunks/repository-cache-rvyd7pdz.js +517 -0
- package/dist/chunks/{repository-cache-g9rqxbv3.js → repository-cache-rw0rmakh.js} +5 -5
- package/dist/chunks/{repository-cache-rjf4ffg7.js → repository-cache-rx1rzkp9.js} +16 -16
- package/dist/chunks/{repository-cache-brcmb8c2.js → repository-cache-s1aqfa5x.js} +33 -33
- package/dist/chunks/repository-cache-s2jpy0bd.js +26 -0
- package/dist/chunks/{repository-cache-hfkjwy2f.js → repository-cache-s3ertt83.js} +10 -10
- package/dist/chunks/{repository-cache-jaym3td0.js → repository-cache-s7ggtf3y.js} +20 -20
- package/dist/chunks/{repository-cache-rhjbct0v.js → repository-cache-s8d7rejh.js} +3 -3
- package/dist/chunks/{repository-cache-pmx6p9t5.js → repository-cache-se9m0ate.js} +24 -24
- package/dist/chunks/{repository-cache-a3c7ahw6.js → repository-cache-sfjrjc0q.js} +3 -3
- package/dist/chunks/{repository-cache-86eqfcce.js → repository-cache-sfy3bb98.js} +7 -7
- package/dist/chunks/{repository-cache-gtsbe4v4.js → repository-cache-sq37fes3.js} +8 -8
- package/dist/chunks/{repository-cache-e80seqcp.js → repository-cache-sxcaecc0.js} +2 -2
- package/dist/chunks/{repository-cache-szwj80cc.js → repository-cache-t1r0yajc.js} +1 -1
- package/dist/chunks/{repository-cache-83whknbm.js → repository-cache-t720n0zt.js} +32 -32
- package/dist/chunks/{repository-cache-00x4qneg.js → repository-cache-t89fqycx.js} +6 -6
- package/dist/chunks/{repository-cache-g5g9rrdp.js → repository-cache-t8z4ntba.js} +7 -7
- package/dist/chunks/{repository-cache-c5ggqzvz.js → repository-cache-t95zrypp.js} +8 -8
- package/dist/chunks/{repository-cache-h74mnx9x.js → repository-cache-tcxc2yk9.js} +10 -10
- package/dist/chunks/{repository-cache-r38tb40c.js → repository-cache-tkt1yh5w.js} +8 -8
- package/dist/chunks/{repository-cache-hbb7npd7.js → repository-cache-tt8gc4fv.js} +3 -3
- package/dist/chunks/{repository-cache-3rq8r7zt.js → repository-cache-twwrpnjg.js} +13 -13
- package/dist/chunks/{repository-cache-a4db0rvv.js → repository-cache-v1vh7s4p.js} +7 -7
- package/dist/chunks/{repository-cache-ys5mczsm.js → repository-cache-vbj53afp.js} +7 -7
- package/dist/chunks/{repository-cache-1acjjqhc.js → repository-cache-vep9yay1.js} +4 -14
- package/dist/chunks/{repository-cache-by5v678g.js → repository-cache-vnkjks7b.js} +4 -4
- package/dist/chunks/{repository-cache-f39mejfg.js → repository-cache-vs7zhs8r.js} +12 -12
- package/dist/chunks/{repository-cache-hs0qwjvp.js → repository-cache-vsa820f9.js} +31 -31
- package/dist/chunks/{repository-cache-5f5dfnyg.js → repository-cache-vzjp43bk.js} +1 -1
- package/dist/chunks/{repository-cache-mmfyj663.js → repository-cache-w0cy9m9e.js} +6 -6
- package/dist/chunks/{repository-cache-fmnd8f8t.js → repository-cache-w7fj1zb2.js} +7 -7
- package/dist/chunks/{repository-cache-z6dhcqsk.js → repository-cache-w94dkyq7.js} +25 -25
- package/dist/chunks/{repository-cache-5m84d531.js → repository-cache-wrmbd4ct.js} +6 -6
- package/dist/chunks/{repository-cache-4bk9s89f.js → repository-cache-wwh9ddtq.js} +9 -9
- package/dist/chunks/{repository-cache-xkrbr206.js → repository-cache-wwkjqs8e.js} +7 -7
- package/dist/chunks/{repository-cache-n268d91j.js → repository-cache-x1jjhmsh.js} +13 -13
- package/dist/chunks/{repository-cache-ht1p01b4.js → repository-cache-x41h92ne.js} +10 -10
- package/dist/chunks/{repository-cache-haz4dce7.js → repository-cache-x51ersaw.js} +15 -15
- package/dist/chunks/{repository-cache-y8tjtsy7.js → repository-cache-x98xddc7.js} +8 -8
- package/dist/chunks/{repository-cache-gpz4bnby.js → repository-cache-xh38a0x5.js} +1 -1
- package/dist/chunks/{repository-cache-knhxpfbp.js → repository-cache-xhbe8e91.js} +14 -14
- package/dist/chunks/{repository-cache-yfsa45n4.js → repository-cache-xwgk07kc.js} +30 -30
- package/dist/chunks/{repository-cache-pmx89wj9.js → repository-cache-y1yvzwwp.js} +12 -12
- package/dist/chunks/{repository-cache-twy8yh4t.js → repository-cache-y642zbcz.js} +21 -21
- package/dist/chunks/{repository-cache-a58n7r3a.js → repository-cache-ys3h2zrn.js} +38 -38
- package/dist/chunks/{repository-cache-bjx1sjef.js → repository-cache-ywt8jp22.js} +7 -7
- package/dist/chunks/{repository-cache-nxhdjhjw.js → repository-cache-z0mn1t4q.js} +41 -41
- package/dist/chunks/{repository-cache-8reangzk.js → repository-cache-z1fx9rk1.js} +2 -2
- package/dist/chunks/{repository-cache-ps8kb85m.js → repository-cache-za7dxrd4.js} +13 -13
- package/dist/chunks/{repository-cache-cgc2saxs.js → repository-cache-zj2b8f8d.js} +24 -24
- package/dist/chunks/{repository-cache-baaqp4zd.js → repository-cache-zvt5dnpc.js} +3 -3
- package/dist/chunks/{repository-cache-zz6a9he3.js → repository-cache-zzv2xjb0.js} +32 -32
- package/dist/codemode/instructions.js +6 -6
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +73 -73
- package/dist/config/discovery.js +68 -68
- package/dist/config/normalize.js +83 -83
- package/dist/config/plugin/agent.js +96 -96
- package/dist/config/plugin/command.js +176 -176
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/compatibility.js +110 -110
- package/dist/config/plugin/formatter.js +95 -95
- package/dist/config/plugin/image.js +94 -94
- package/dist/config/plugin/instruction.js +95 -95
- package/dist/config/plugin/location-watcher.js +94 -94
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +95 -95
- package/dist/config/plugin/provider.js +94 -94
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +96 -96
- package/dist/config/plugin/skill-file.js +83 -83
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +113 -113
- package/dist/config/plugin/snapshot.js +94 -94
- package/dist/config/plugin/source.js +97 -97
- package/dist/config/plugin/tool-output.js +95 -95
- package/dist/config/plugin/websearch.js +95 -95
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config.js +100 -100
- package/dist/credential.js +73 -73
- package/dist/database/database.js +58 -58
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +41 -41
- package/dist/database/migration.js +43 -43
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +235 -235
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +76 -76
- package/dist/environment/index.js +78 -78
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +86 -86
- package/dist/file-mutation.js +77 -77
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +186 -186
- package/dist/filesystem/search.js +84 -84
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +81 -81
- package/dist/form.js +61 -61
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +73 -73
- package/dist/generate.js +87 -87
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +2 -2
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +76 -76
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +317 -317
- package/dist/instruction-discovery.js +74 -74
- package/dist/instructions/builtins.js +73 -73
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +68 -68
- package/dist/kv.js +63 -63
- package/dist/location-activity.js +104 -77
- package/dist/location-lifecycle.js +89 -89
- package/dist/location-service-map.js +72 -72
- package/dist/location-services.js +316 -316
- package/dist/location.js +73 -73
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +91 -91
- package/dist/mcp/instructions.js +106 -106
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +73 -73
- package/dist/modal/models.js +76 -76
- package/dist/model-resolver.js +83 -83
- package/dist/model.js +87 -87
- package/dist/models-dev.js +91 -91
- package/dist/permission/saved.js +71 -71
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +74 -74
- package/dist/persistent-pty.js +62 -62
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +84 -84
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +179 -179
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +291 -291
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +80 -80
- package/dist/plugin/module.js +95 -95
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +84 -84
- package/dist/plugin/provider/amazon-bedrock.js +75 -75
- package/dist/plugin/provider/azure.js +95 -95
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -92
- package/dist/plugin/provider/cloudflare-workers-ai.js +92 -92
- package/dist/plugin/provider/configured.js +91 -91
- package/dist/plugin/provider/digitalocean.js +77 -77
- package/dist/plugin/provider/github-copilot.js +79 -79
- package/dist/plugin/provider/gitlab.js +77 -77
- package/dist/plugin/provider/google-vertex.js +92 -92
- package/dist/plugin/provider/llmgateway.js +67 -67
- package/dist/plugin/provider/lmstudio.js +100 -100
- package/dist/plugin/provider/local.js +97 -97
- package/dist/plugin/provider/modal.js +77 -77
- package/dist/plugin/provider/ollama.js +100 -100
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +82 -82
- package/dist/plugin/provider/openrouter.js +76 -76
- package/dist/plugin/provider/poe.js +67 -67
- package/dist/plugin/provider/sap-ai-core.js +75 -75
- package/dist/plugin/provider/snowflake-cortex.js +93 -93
- package/dist/plugin/provider/vercel.js +75 -75
- package/dist/plugin/provider/vllm.js +98 -98
- package/dist/plugin/provider/xai.js +76 -76
- package/dist/plugin/provider.js +136 -136
- package/dist/plugin/sdk.js +67 -67
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +110 -110
- package/dist/plugin/supervisor.js +306 -306
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +72 -72
- package/dist/plugin/vcs/hg.js +72 -72
- package/dist/plugin/verbosity.js +78 -78
- package/dist/plugin/warming.js +93 -93
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +5 -5
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +186 -186
- package/dist/project/schema.js +7 -7
- package/dist/project.js +74 -74
- package/dist/provider.js +74 -74
- package/dist/pty.js +82 -82
- package/dist/reference/instructions.js +76 -76
- package/dist/reference.js +76 -76
- package/dist/repository-cache.js +69 -69
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +79 -79
- package/dist/rpc.js +72 -72
- package/dist/session/command.js +64 -64
- package/dist/session/compaction.js +111 -111
- package/dist/session/context.js +128 -128
- package/dist/session/diff.js +72 -72
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +110 -110
- package/dist/session/execution.js +108 -108
- package/dist/session/generate.js +128 -128
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +78 -78
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +66 -66
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +80 -80
- package/dist/session/model-request.js +100 -100
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +108 -108
- package/dist/session/projector.js +72 -72
- package/dist/session/prompt.js +87 -87
- package/dist/session/revert.js +77 -77
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +189 -189
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +93 -93
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +105 -105
- package/dist/session/runner/to-llm-message.js +7 -7
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +136 -136
- package/dist/session/shell.js +105 -105
- package/dist/session/skill.js +85 -85
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +72 -72
- package/dist/session/subagent-job.js +174 -174
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +131 -131
- package/dist/session/to-session-error.js +92 -92
- package/dist/session/transfer.js +107 -107
- package/dist/session.js +183 -183
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +104 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +87 -87
- package/dist/skill.js +94 -94
- package/dist/snapshot.js +79 -79
- package/dist/tool/mcp.js +103 -103
- package/dist/tool/plugin/edit.js +98 -98
- package/dist/tool/plugin/glob.js +101 -101
- package/dist/tool/plugin/grep.js +101 -101
- package/dist/tool/plugin/mcp-resource.js +95 -95
- package/dist/tool/plugin/opencode.js +89 -89
- package/dist/tool/plugin/patch.js +100 -100
- package/dist/tool/plugin/question.js +85 -85
- package/dist/tool/plugin/read.js +102 -102
- package/dist/tool/plugin/shell.js +176 -176
- package/dist/tool/plugin/skill.js +91 -91
- package/dist/tool/plugin/subagent.js +177 -177
- package/dist/tool/plugin/todo.js +113 -113
- package/dist/tool/plugin/webfetch.js +92 -92
- package/dist/tool/plugin/websearch.js +96 -96
- package/dist/tool/plugin/write.js +98 -98
- package/dist/tool/read-filesystem.js +81 -81
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/job.d.ts +1 -0
- package/dist/types/location-activity.d.ts +2 -1
- package/dist/types/session/error.d.ts +1 -0
- package/dist/types/session/execution.d.ts +2 -5
- package/dist/types/session/history.d.ts +10 -0
- package/dist/types/session/run-coordinator.d.ts +2 -5
- package/dist/types/session/transfer.d.ts +10 -2
- package/dist/types/worktree/git.d.ts +3 -3
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +76 -76
- 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 +78 -78
- package/dist/vcs.js +75 -75
- package/dist/voice.js +75 -75
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +66 -66
- package/dist/wellknown.js +71 -71
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +70 -70
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/strategies.js +74 -74
- package/dist/worktree.js +80 -80
- package/package.json +8 -8
- package/dist/chunks/repository-cache-9wrj4pc9.js +0 -257
- package/dist/chunks/repository-cache-v061a9c2.js +0 -517
- package/dist/chunks/repository-cache-w2nph7ph.js +0 -26
- /package/dist/chunks/{repository-cache-x2gnjtg4.js → repository-cache-6b2stqvb.js} +0 -0
- /package/dist/chunks/{repository-cache-4v4bfvma.js → repository-cache-6vq97qmv.js} +0 -0
- /package/dist/chunks/{repository-cache-7v6vae4w.js → repository-cache-a20pjse5.js} +0 -0
- /package/dist/chunks/{repository-cache-bq3hn31g.js → repository-cache-b0b3nmkz.js} +0 -0
- /package/dist/chunks/{repository-cache-rd8qctj1.js → repository-cache-hpfdwx7h.js} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ID14,
|
|
3
3
|
Service79,
|
|
4
4
|
node83
|
|
5
|
-
} from "./repository-cache-
|
|
5
|
+
} from "./repository-cache-t8z4ntba.js";
|
|
6
6
|
import {
|
|
7
7
|
ID13,
|
|
8
8
|
isAISDK2,
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
mergeHeaders2,
|
|
18
18
|
Service78,
|
|
19
19
|
node82
|
|
20
|
-
} from "./repository-cache-
|
|
20
|
+
} from "./repository-cache-1hyfwtsr.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./repository-cache-
|
|
22
|
+
Service69,
|
|
23
|
+
node73
|
|
24
|
+
} from "./repository-cache-pk0dmpdf.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
26
|
+
ID8,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service68,
|
|
30
|
+
node72,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./repository-cache-
|
|
32
|
+
} from "./repository-cache-hnvjv21h.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
35
|
} from "./repository-cache-9rqn6x4v.js";
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service55,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer22,
|
|
52
|
+
node: () => node58,
|
|
53
53
|
resolveModel: () => resolveModel2,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -60,7 +60,7 @@ import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
|
60
60
|
import { Npm } from "@opencode/util/npm";
|
|
61
61
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
62
62
|
providerID: ID13,
|
|
63
|
-
modelID:
|
|
63
|
+
modelID: ID8,
|
|
64
64
|
variant: VariantID2
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
@@ -70,7 +70,7 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
70
70
|
|
|
71
71
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
72
72
|
providerID: ID13,
|
|
73
|
-
modelID:
|
|
73
|
+
modelID: ID8,
|
|
74
74
|
package: Schema.String
|
|
75
75
|
}) {
|
|
76
76
|
get message() {
|
|
@@ -81,7 +81,7 @@ var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
|
81
81
|
|
|
82
82
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
83
83
|
providerID: ID13,
|
|
84
|
-
modelID:
|
|
84
|
+
modelID: ID8,
|
|
85
85
|
package: Schema.String,
|
|
86
86
|
detail: Schema.String
|
|
87
87
|
}) {
|
|
@@ -92,7 +92,7 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
92
92
|
|
|
93
93
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
94
94
|
providerID: ID13,
|
|
95
|
-
modelID:
|
|
95
|
+
modelID: ID8,
|
|
96
96
|
package: Schema.String,
|
|
97
97
|
phase: InitializationPhase2,
|
|
98
98
|
detail: Schema.String
|
|
@@ -104,7 +104,7 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
104
104
|
|
|
105
105
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
106
106
|
providerID: ID13,
|
|
107
|
-
modelID:
|
|
107
|
+
modelID: ID8,
|
|
108
108
|
variables: Schema.Array(Schema.String)
|
|
109
109
|
}) {
|
|
110
110
|
get message() {
|
|
@@ -114,7 +114,7 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
114
114
|
|
|
115
115
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
116
116
|
providerID: ID13,
|
|
117
|
-
modelID:
|
|
117
|
+
modelID: ID8,
|
|
118
118
|
route: Schema.String
|
|
119
119
|
}) {
|
|
120
120
|
get message() {
|
|
@@ -122,7 +122,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
class
|
|
125
|
+
class Service55 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -269,12 +269,12 @@ var causeMessage = (cause) => {
|
|
|
269
269
|
};
|
|
270
270
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
271
271
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
272
|
-
var
|
|
272
|
+
var layer22 = Layer.effect(Service55, Effect.gen(function* () {
|
|
273
273
|
const providers = yield* Service78;
|
|
274
|
-
const models = yield*
|
|
274
|
+
const models = yield* Service68;
|
|
275
275
|
const integrations = yield* Service79;
|
|
276
276
|
const npm = yield* Npm.Service;
|
|
277
|
-
const aisdk = yield*
|
|
277
|
+
const aisdk = yield* Service69;
|
|
278
278
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
279
279
|
const provider = yield* providers.get(selected.providerID);
|
|
280
280
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
@@ -304,7 +304,7 @@ var layer27 = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
304
304
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service55.of({
|
|
308
308
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
309
309
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
310
310
|
if (!selected)
|
|
@@ -321,10 +321,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
321
321
|
const name = packageName2(packageName);
|
|
322
322
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
service:
|
|
326
|
-
layer:
|
|
327
|
-
deps: [node82,
|
|
324
|
+
var node58 = makeLocationNode({
|
|
325
|
+
service: Service55,
|
|
326
|
+
layer: layer22,
|
|
327
|
+
deps: [node82, node72, node83, Npm.node, node73]
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
330
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service55, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node58, exports_model_resolver };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./repository-cache-
|
|
4
|
+
} from "./repository-cache-qy7ffa5a.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make21,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./repository-cache-
|
|
10
|
+
} from "./repository-cache-s8d7rejh.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
13
|
} from "./repository-cache-c1fqxshp.js";
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info4,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service32,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node35,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info4 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,12 +56,12 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service32 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
64
|
+
var source = (entry) => make21({
|
|
65
65
|
key: Key3.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make20({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service86;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service32.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node35 = makeLocationNode({ service: Service32, layer, deps: [node90] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info4, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service32, node35, exports_instruction_entry };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ID12,
|
|
3
|
+
Info21,
|
|
4
4
|
SessionSchema2
|
|
5
|
-
} from "./repository-cache-
|
|
5
|
+
} from "./repository-cache-axe3mf62.js";
|
|
6
6
|
import {
|
|
7
7
|
RelativePath2
|
|
8
8
|
} from "./repository-cache-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Service86,
|
|
11
11
|
node90
|
|
12
|
-
} from "./repository-cache-
|
|
12
|
+
} from "./repository-cache-qy7ffa5a.js";
|
|
13
13
|
import {
|
|
14
14
|
isSynced2,
|
|
15
15
|
Service85,
|
|
16
16
|
node89
|
|
17
|
-
} from "./repository-cache-
|
|
17
|
+
} from "./repository-cache-z1fx9rk1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./repository-cache-
|
|
19
|
+
Service82,
|
|
20
|
+
node86
|
|
21
|
+
} from "./repository-cache-95t8ye7z.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./repository-cache-
|
|
23
|
+
Service45,
|
|
24
|
+
node47
|
|
25
|
+
} from "./repository-cache-mx9vqzsb.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionEvent2
|
|
28
28
|
} from "./repository-cache-ec1grn59.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
SessionMessageTable2
|
|
31
31
|
} from "./repository-cache-c1fqxshp.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
33
|
+
NotFoundError10,
|
|
34
34
|
InvalidListCursorError2,
|
|
35
35
|
MessageNotFoundError2,
|
|
36
36
|
ForkEmptyError2,
|
|
@@ -42,75 +42,75 @@ import {
|
|
|
42
42
|
BusyError2,
|
|
43
43
|
InboxConflictError2,
|
|
44
44
|
SkillNotFoundError2
|
|
45
|
-
} from "./repository-cache-
|
|
45
|
+
} from "./repository-cache-ctxez2a7.js";
|
|
46
46
|
import {
|
|
47
47
|
current2
|
|
48
|
-
} from "./repository-cache-
|
|
48
|
+
} from "./repository-cache-baqyxak2.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./repository-cache-
|
|
50
|
+
node48
|
|
51
|
+
} from "./repository-cache-g90zrjvy.js";
|
|
52
52
|
import {
|
|
53
53
|
snapshot2
|
|
54
|
-
} from "./repository-cache-
|
|
54
|
+
} from "./repository-cache-qd284e96.js";
|
|
55
55
|
import {
|
|
56
56
|
Slug2
|
|
57
57
|
} from "./repository-cache-gebd4c9n.js";
|
|
58
58
|
import {
|
|
59
59
|
SessionAlreadyProjected2,
|
|
60
|
-
|
|
61
|
-
} from "./repository-cache-
|
|
60
|
+
node25
|
|
61
|
+
} from "./repository-cache-qs0n9k2z.js";
|
|
62
62
|
import {
|
|
63
63
|
Metadata2,
|
|
64
|
-
|
|
65
|
-
} from "./repository-cache-
|
|
64
|
+
node70
|
|
65
|
+
} from "./repository-cache-4m3ygwz0.js";
|
|
66
66
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} from "./repository-cache-
|
|
67
|
+
ListInput5,
|
|
68
|
+
Service75,
|
|
69
|
+
node79
|
|
70
|
+
} from "./repository-cache-d72a72b9.js";
|
|
71
71
|
import {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
} from "./repository-cache-
|
|
72
|
+
Service48,
|
|
73
|
+
node50
|
|
74
|
+
} from "./repository-cache-5xn7qbr2.js";
|
|
75
75
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
} from "./repository-cache-
|
|
76
|
+
Service43,
|
|
77
|
+
node46
|
|
78
|
+
} from "./repository-cache-dh0nadn9.js";
|
|
79
79
|
import {
|
|
80
80
|
llmClient2
|
|
81
81
|
} from "./repository-cache-775gj3j1.js";
|
|
82
82
|
import {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} from "./repository-cache-
|
|
83
|
+
Service31,
|
|
84
|
+
node34
|
|
85
|
+
} from "./repository-cache-eg5kq0wk.js";
|
|
86
86
|
import {
|
|
87
87
|
generate2
|
|
88
|
-
} from "./repository-cache-
|
|
88
|
+
} from "./repository-cache-8s3pces3.js";
|
|
89
89
|
import {
|
|
90
90
|
execute2
|
|
91
|
-
} from "./repository-cache-
|
|
91
|
+
} from "./repository-cache-vbj53afp.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} from "./repository-cache-
|
|
93
|
+
Service72,
|
|
94
|
+
node76
|
|
95
|
+
} from "./repository-cache-qz7vxdk7.js";
|
|
96
96
|
import {
|
|
97
97
|
DestinationNotFoundError2,
|
|
98
98
|
DestinationNotDirectoryError2,
|
|
99
99
|
DestinationUnavailableError2,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} from "./repository-cache-
|
|
100
|
+
Service21,
|
|
101
|
+
node24
|
|
102
|
+
} from "./repository-cache-58a6xtee.js";
|
|
103
103
|
import {
|
|
104
|
-
|
|
104
|
+
Service50,
|
|
105
105
|
node52
|
|
106
|
-
} from "./repository-cache-
|
|
106
|
+
} from "./repository-cache-t89fqycx.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./repository-cache-
|
|
108
|
+
make12
|
|
109
|
+
} from "./repository-cache-5mnspefx.js";
|
|
110
110
|
import {
|
|
111
111
|
TurnRangeError2,
|
|
112
112
|
turn2
|
|
113
|
-
} from "./repository-cache-
|
|
113
|
+
} from "./repository-cache-tkt1yh5w.js";
|
|
114
114
|
import {
|
|
115
115
|
__export
|
|
116
116
|
} from "./repository-cache-9rqn6x4v.js";
|
|
@@ -124,24 +124,24 @@ __export(exports_session, {
|
|
|
124
124
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
125
125
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
126
126
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
127
|
-
ID: () =>
|
|
127
|
+
ID: () => ID12,
|
|
128
128
|
InboxConflictError: () => InboxConflictError2,
|
|
129
|
-
Info: () =>
|
|
129
|
+
Info: () => Info21,
|
|
130
130
|
InvalidListCursorError: () => InvalidListCursorError2,
|
|
131
131
|
ListAnchor: () => ListAnchor2,
|
|
132
132
|
ListCursor: () => ListCursor2,
|
|
133
133
|
ListInput: () => ListInput3,
|
|
134
134
|
MessageDecodeError: () => MessageDecodeError2,
|
|
135
135
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
136
|
-
NotFoundError: () =>
|
|
136
|
+
NotFoundError: () => NotFoundError10,
|
|
137
137
|
PromptConflictError: () => PromptConflictError2,
|
|
138
|
-
Service: () =>
|
|
138
|
+
Service: () => Service20,
|
|
139
139
|
Session: () => exports_session,
|
|
140
140
|
SessionSchema: () => SessionSchema2,
|
|
141
141
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
142
142
|
SyntheticConflictError: () => SyntheticConflictError2,
|
|
143
143
|
TurnRangeError: () => TurnRangeError2,
|
|
144
|
-
node: () =>
|
|
144
|
+
node: () => node23
|
|
145
145
|
});
|
|
146
146
|
import { DateTime, Effect, Layer, Schema, Context, Stream } from "effect";
|
|
147
147
|
import { LLMClient } from "@opencode/ai";
|
|
@@ -151,28 +151,28 @@ import { Model } from "@opencode/schema/model";
|
|
|
151
151
|
import path from "path";
|
|
152
152
|
import { Node } from "@opencode/util/effect/app-node";
|
|
153
153
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
154
|
-
var ListInput3 =
|
|
154
|
+
var ListInput3 = ListInput5;
|
|
155
155
|
var DefaultListLimit = 50;
|
|
156
|
-
class
|
|
156
|
+
class Service20 extends Context.Service()("@opencode/Session") {
|
|
157
157
|
}
|
|
158
|
-
var layer = Layer.effect(
|
|
158
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
159
159
|
const app = yield* Metadata2;
|
|
160
160
|
const database = yield* Service86;
|
|
161
161
|
const db = database.db;
|
|
162
162
|
const bus = yield* Service85;
|
|
163
|
-
const projects = yield*
|
|
164
|
-
const execution = yield*
|
|
163
|
+
const projects = yield* Service82;
|
|
164
|
+
const execution = yield* Service43;
|
|
165
165
|
const llm = yield* LLMClient.Service;
|
|
166
|
-
const transport = yield*
|
|
167
|
-
const store = yield*
|
|
168
|
-
const instances = yield*
|
|
169
|
-
const moves = yield*
|
|
170
|
-
const jobs = yield*
|
|
171
|
-
const environments = yield*
|
|
172
|
-
const locations = yield*
|
|
173
|
-
const sessions = yield*
|
|
166
|
+
const transport = yield* Service31;
|
|
167
|
+
const store = yield* Service75;
|
|
168
|
+
const instances = yield* Service45;
|
|
169
|
+
const moves = yield* Service21;
|
|
170
|
+
const jobs = yield* Service48;
|
|
171
|
+
const environments = yield* Service50;
|
|
172
|
+
const locations = yield* Service72;
|
|
173
|
+
const sessions = yield* make12();
|
|
174
174
|
const isDurableSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
175
|
-
const result =
|
|
175
|
+
const result = Service20.of({
|
|
176
176
|
create: Effect.fn("Session.create")(function* (input) {
|
|
177
177
|
const sessionID = input.id ?? SessionSchema2.ID.create();
|
|
178
178
|
const recorded = yield* store.get(sessionID);
|
|
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
180
180
|
return recorded;
|
|
181
181
|
const parent = input.parentID ? yield* store.get(input.parentID) : undefined;
|
|
182
182
|
if (input.parentID && parent === undefined)
|
|
183
|
-
return yield* new
|
|
183
|
+
return yield* new NotFoundError10({ sessionID: input.parentID });
|
|
184
184
|
const location = parent?.location ?? input.location;
|
|
185
185
|
if (location === undefined)
|
|
186
186
|
return yield* Effect.die(new Error("Session.create requires either location or an existing parentID"));
|
|
@@ -301,11 +301,11 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
301
301
|
prompt: (input) => sessions.forSession(input.sessionID).prompt(input),
|
|
302
302
|
generate: Effect.fn("Session.generate")(function* (input) {
|
|
303
303
|
const session = yield* result.get(input.sessionID);
|
|
304
|
-
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(
|
|
304
|
+
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service86, database), Effect.provideService(LLMClient.Service, llm));
|
|
305
305
|
}),
|
|
306
306
|
command: Effect.fn("Session.command")(function* (input) {
|
|
307
307
|
const session = yield* result.get(input.sessionID);
|
|
308
|
-
return yield* execute2({ ...input, session }).pipe(Effect.provideService(
|
|
308
|
+
return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service45, instances));
|
|
309
309
|
}),
|
|
310
310
|
shell: (input) => sessions.forSession(input.sessionID).shell(input),
|
|
311
311
|
skill: (input) => sessions.forSession(input.sessionID).skill(input),
|
|
@@ -349,27 +349,27 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
349
349
|
});
|
|
350
350
|
return result;
|
|
351
351
|
}));
|
|
352
|
-
var
|
|
353
|
-
service:
|
|
352
|
+
var node23 = Node.makeGlobalNode({
|
|
353
|
+
service: Service20,
|
|
354
354
|
layer,
|
|
355
355
|
deps: [
|
|
356
|
-
|
|
356
|
+
node50,
|
|
357
357
|
node52,
|
|
358
358
|
node90,
|
|
359
359
|
node89,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
node86,
|
|
361
|
+
node46,
|
|
362
|
+
node34,
|
|
363
363
|
llmClient2,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
364
|
+
node79,
|
|
365
|
+
node47,
|
|
366
|
+
node48,
|
|
367
|
+
node24,
|
|
368
|
+
node25,
|
|
369
|
+
node76,
|
|
370
370
|
FSUtil.node,
|
|
371
|
-
|
|
371
|
+
node70
|
|
372
372
|
]
|
|
373
373
|
});
|
|
374
374
|
|
|
375
|
-
export { ListAnchor2, ListCursor2, ListInput3,
|
|
375
|
+
export { ListAnchor2, ListCursor2, ListInput3, Service20, node23, exports_session };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options7,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options7 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options7]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options7, Spec2, exports_plugin3 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./repository-cache-
|
|
4
|
+
} from "./repository-cache-z1fx9rk1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./repository-cache-
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./repository-cache-t95zrypp.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./repository-cache-
|
|
10
|
+
Service81,
|
|
11
|
+
node85
|
|
12
|
+
} from "./repository-cache-8pvf9cdd.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./repository-cache-
|
|
15
|
+
} from "./repository-cache-vnkjks7b.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./repository-cache-
|
|
17
|
+
Service57,
|
|
18
|
+
node60
|
|
19
|
+
} from "./repository-cache-ey9nrxd1.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./repository-cache-
|
|
21
|
+
node21
|
|
22
|
+
} from "./repository-cache-cmkn1bh9.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./repository-cache-
|
|
24
|
+
Service5,
|
|
25
|
+
node6
|
|
26
|
+
} from "./repository-cache-5d607bsg.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./repository-cache-9rqn6x4v.js";
|
|
@@ -32,23 +32,23 @@ import {
|
|
|
32
32
|
var exports_location_watcher = {};
|
|
33
33
|
__export(exports_location_watcher, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service2,
|
|
36
|
+
node: () => node2
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service81;
|
|
47
|
+
const watcher = yield* Service57;
|
|
48
48
|
const bus = yield* Service85;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
|
+
const policy = yield* Service5;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service2.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node2 = makeLocationNode({
|
|
106
|
+
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node60, FSUtil.node, node85, node87, node89, node21, node6]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service2, node2, exports_location_watcher };
|