@opencode/core 0.0.0-dev-20042 → 0.0.0-dev-20046
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/generate-02hsrpyz.js +26 -0
- package/dist/chunks/{persistent-pty-6d0k74d0.js → generate-09ckt0s3.js} +10 -10
- package/dist/chunks/{persistent-pty-7vtw3tkk.js → generate-0bt81q2b.js} +2 -2
- package/dist/chunks/{persistent-pty-yjpe6epv.js → generate-0gmabv41.js} +6 -6
- package/dist/chunks/{persistent-pty-xq7gw347.js → generate-0jgpzw0r.js} +43 -43
- package/dist/chunks/{persistent-pty-sds13m34.js → generate-0mm9aq32.js} +15 -15
- package/dist/chunks/{persistent-pty-2vgzs72b.js → generate-0nde5ztd.js} +5 -5
- package/dist/chunks/{persistent-pty-0paq2nw3.js → generate-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-t9zs3egg.js → generate-0v53mg2y.js} +4 -4
- package/dist/chunks/{persistent-pty-b8kh8k48.js → generate-0vs0qezg.js} +27 -27
- package/dist/chunks/{persistent-pty-6ydfbg1r.js → generate-1440p5c0.js} +17 -17
- package/dist/chunks/{persistent-pty-86dkkjnf.js → generate-14zbncxz.js} +13 -13
- package/dist/chunks/{persistent-pty-eq1pz5kg.js → generate-1bbkgx8g.js} +3 -3
- package/dist/chunks/{persistent-pty-1dazxqgg.js → generate-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-xj2bvnk1.js → generate-1fw2a5v8.js} +15 -15
- package/dist/chunks/{persistent-pty-t7gzm03g.js → generate-1jcy8x34.js} +14 -14
- package/dist/chunks/{persistent-pty-yxpsvedr.js → generate-1vp5fyhh.js} +13 -13
- package/dist/chunks/{persistent-pty-q7r8ektg.js → generate-1z0p9d4e.js} +7 -7
- package/dist/chunks/{persistent-pty-4k8me329.js → generate-213r17mq.js} +2 -2
- package/dist/chunks/{persistent-pty-dfnn5kbd.js → generate-21g45xjy.js} +3 -3
- package/dist/chunks/{persistent-pty-21r38tys.js → generate-21r38tys.js} +1 -1
- package/dist/chunks/{persistent-pty-gw2tvx6f.js → generate-22j9h8xd.js} +11 -11
- package/dist/chunks/{persistent-pty-2402vzrj.js → generate-2402vzrj.js} +1 -1
- package/dist/chunks/{persistent-pty-qg0jgkcp.js → generate-24dd53tp.js} +9 -9
- package/dist/chunks/{persistent-pty-gd9e8kac.js → generate-24frbayd.js} +13 -13
- package/dist/chunks/{persistent-pty-xw1ps8cb.js → generate-256ws0gb.js} +15 -15
- package/dist/chunks/{persistent-pty-2a5m3afh.js → generate-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-rqqq06ty.js → generate-2c5cbb18.js} +29 -29
- package/dist/chunks/{persistent-pty-t898jj0x.js → generate-2dnsh64v.js} +16 -16
- package/dist/chunks/{persistent-pty-1ygqh575.js → generate-33w4ejhs.js} +6 -6
- package/dist/chunks/{persistent-pty-2eegacq4.js → generate-3a83a0n4.js} +8 -8
- package/dist/chunks/{persistent-pty-zz56sx2x.js → generate-3deq2g12.js} +11 -11
- package/dist/chunks/{persistent-pty-5qkxfyep.js → generate-3e147rt9.js} +9 -9
- package/dist/chunks/{persistent-pty-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-r677t44f.js → generate-3n9xame2.js} +33 -33
- package/dist/chunks/{persistent-pty-55cx5064.js → generate-3nye6dc5.js} +9 -9
- package/dist/chunks/{persistent-pty-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-7vbsp9bb.js → generate-3ty5qgfs.js} +11 -11
- package/dist/chunks/{persistent-pty-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-4685a8f7.js → generate-408ax8ck.js} +15 -15
- package/dist/chunks/{persistent-pty-gj0qw44p.js → generate-45g4t3ag.js} +16 -16
- package/dist/chunks/{persistent-pty-n0knvxp1.js → generate-4azfx6s3.js} +15 -15
- package/dist/chunks/{persistent-pty-cpj0znwe.js → generate-4dgbcxzg.js} +4 -4
- package/dist/chunks/{persistent-pty-j64w6b8p.js → generate-4myghj1q.js} +36 -36
- package/dist/chunks/{persistent-pty-gw4e1bwq.js → generate-4yn06qnw.js} +31 -31
- package/dist/chunks/{persistent-pty-pz5z3jcr.js → generate-4z39dsvf.js} +35 -35
- package/dist/chunks/{persistent-pty-7k434ymz.js → generate-53md4s8b.js} +12 -12
- package/dist/chunks/{persistent-pty-57ez7d0k.js → generate-57ez7d0k.js} +2 -2
- package/dist/chunks/{persistent-pty-5daktx2q.js → generate-5daktx2q.js} +1 -1
- package/dist/chunks/{persistent-pty-5ekn9679.js → generate-5ekn9679.js} +1 -1
- package/dist/chunks/{persistent-pty-mncdga5g.js → generate-5entzshm.js} +3 -3
- package/dist/chunks/{persistent-pty-jca4demv.js → generate-5frpvc34.js} +2 -2
- package/dist/chunks/{persistent-pty-1qvkgnpd.js → generate-5jhtbvzg.js} +26 -26
- package/dist/chunks/{persistent-pty-qp3v07n2.js → generate-5kw0n2ma.js} +8 -8
- package/dist/chunks/{persistent-pty-n6881739.js → generate-5sx163nq.js} +25 -25
- package/dist/chunks/{persistent-pty-5t3nmthw.js → generate-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-31k44zkb.js → generate-5yddbbw3.js} +9 -9
- package/dist/chunks/{persistent-pty-bx1t6bcv.js → generate-5yx95y46.js} +11 -11
- package/dist/chunks/{persistent-pty-6qv05xq0.js → generate-65rvndkz.js} +32 -32
- package/dist/chunks/{persistent-pty-669tq793.js → generate-669tq793.js} +1 -1
- package/dist/chunks/{persistent-pty-hxj44d9p.js → generate-66s037ct.js} +24 -24
- package/dist/chunks/{persistent-pty-fm4gasdc.js → generate-69v350yq.js} +29 -29
- package/dist/chunks/{persistent-pty-4ws8fjcn.js → generate-69xx9vs0.js} +45 -45
- package/dist/chunks/{persistent-pty-cgkdtpn3.js → generate-6cyzz8ke.js} +87 -87
- package/dist/chunks/{persistent-pty-depwzj9d.js → generate-6hjx5zpb.js} +8 -8
- package/dist/chunks/{persistent-pty-t4cdje0c.js → generate-6j71bdrn.js} +4 -4
- package/dist/chunks/{persistent-pty-6msgmcgs.js → generate-6msgmcgs.js} +1 -1
- package/dist/chunks/{persistent-pty-1z9ngvxm.js → generate-6pqpz9bj.js} +12 -12
- package/dist/chunks/{persistent-pty-07yja43e.js → generate-6tgf83tn.js} +11 -11
- package/dist/chunks/{persistent-pty-hm529q5d.js → generate-6wjk33h8.js} +22 -22
- package/dist/chunks/{persistent-pty-mwpvdsq8.js → generate-6xx656an.js} +18 -18
- package/dist/chunks/{persistent-pty-8pw1b0j6.js → generate-6yxkg8a7.js} +11 -11
- package/dist/chunks/{persistent-pty-h5crna56.js → generate-6z8hd1tn.js} +24 -24
- package/dist/chunks/{persistent-pty-hbyhqfhs.js → generate-705e2ap1.js} +5 -5
- package/dist/chunks/{persistent-pty-1stbn8g0.js → generate-77bxhrq0.js} +7 -7
- package/dist/chunks/{persistent-pty-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-tw6qbae6.js → generate-7h4rr5p2.js} +23 -23
- package/dist/chunks/{persistent-pty-r3c4069c.js → generate-7tgakezr.js} +1 -1
- package/dist/chunks/{persistent-pty-tjedn1bk.js → generate-80scg3y3.js} +4 -4
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → generate-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-cj484d79.js → generate-8k4gd91q.js} +8 -8
- package/dist/chunks/{persistent-pty-8xvk34tp.js → generate-8nhvtgvt.js} +8 -8
- package/dist/chunks/{persistent-pty-q3t37ft6.js → generate-8q7cq0y1.js} +3 -3
- package/dist/chunks/{persistent-pty-d5fc3ham.js → generate-8qh7a2b7.js} +21 -21
- package/dist/chunks/{persistent-pty-ey7c8yx5.js → generate-941wpd15.js} +8 -8
- package/dist/chunks/{persistent-pty-94ek1h2f.js → generate-94ek1h2f.js} +2 -2
- package/dist/chunks/{persistent-pty-3f3jqxta.js → generate-98vappwb.js} +13 -13
- package/dist/chunks/{persistent-pty-apek9f9a.js → generate-9zbwceek.js} +26 -26
- package/dist/chunks/{persistent-pty-yrvhhsj7.js → generate-a1zemhs9.js} +12 -12
- package/dist/chunks/{persistent-pty-mkhen09b.js → generate-a2bd23c2.js} +4 -4
- package/dist/chunks/{persistent-pty-gapsx7my.js → generate-a5vv3ypq.js} +22 -22
- package/dist/chunks/{persistent-pty-gx8rf7xa.js → generate-a6ewaavh.js} +11 -11
- package/dist/chunks/{persistent-pty-6am04jn1.js → generate-a8a3mdwp.js} +44 -44
- package/dist/chunks/{persistent-pty-aaet6srn.js → generate-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-8wsye86r.js → generate-ahd542yp.js} +8 -8
- package/dist/chunks/{persistent-pty-hkx3gg44.js → generate-ahv57w39.js} +25 -25
- package/dist/chunks/{persistent-pty-0w62qmxp.js → generate-ak9msbxp.js} +6 -6
- package/dist/chunks/{persistent-pty-768gsh1v.js → generate-arndb05z.js} +6 -6
- package/dist/chunks/{persistent-pty-8eh4zvff.js → generate-axc0517c.js} +16 -16
- package/dist/chunks/{persistent-pty-b6gygkdw.js → generate-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-5pt64gxx.js → generate-bb308dz8.js} +24 -24
- package/dist/chunks/{persistent-pty-gg7pg1rj.js → generate-bgxcxs0p.js} +5 -5
- package/dist/chunks/{persistent-pty-k589v2yc.js → generate-bpmbxd3k.js} +20 -20
- package/dist/chunks/{persistent-pty-cavr175a.js → generate-cavr175a.js} +1 -1
- package/dist/chunks/{persistent-pty-6xypr7jz.js → generate-cb4stpxc.js} +10 -10
- package/dist/chunks/{persistent-pty-f43wcbcr.js → generate-cdq5w0ff.js} +17 -17
- package/dist/chunks/{persistent-pty-h663anem.js → generate-cf2276rd.js} +12 -12
- package/dist/chunks/{persistent-pty-ckecvw8r.js → generate-ckecvw8r.js} +2 -2
- package/dist/chunks/{persistent-pty-kk3qww5s.js → generate-cme1evgc.js} +23 -23
- package/dist/chunks/{persistent-pty-g58xhhsy.js → generate-cpg3rt6q.js} +54 -54
- package/dist/chunks/{persistent-pty-d6d69879.js → generate-crnst1yf.js} +15 -15
- package/dist/chunks/{persistent-pty-hq8zt1th.js → generate-d1mtykxg.js} +6 -6
- package/dist/chunks/{persistent-pty-tn3aw0th.js → generate-d758tqe8.js} +26 -26
- package/dist/chunks/{persistent-pty-xcwzx241.js → generate-d8s47g42.js} +11 -11
- package/dist/chunks/{persistent-pty-w4scjadp.js → generate-d8zjpaz4.js} +8 -8
- package/dist/chunks/{persistent-pty-prpvt0tr.js → generate-dh18bms1.js} +13 -13
- package/dist/chunks/{persistent-pty-b0mhge8s.js → generate-dj616sdp.js} +1 -1
- package/dist/chunks/{persistent-pty-c78bbtc9.js → generate-dj9sq318.js} +5 -5
- package/dist/chunks/{persistent-pty-enrp2nyv.js → generate-dvqatnet.js} +27 -27
- package/dist/chunks/generate-e3zv43df.js +252 -0
- package/dist/chunks/{persistent-pty-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-679wzm8a.js → generate-efdg34c6.js} +33 -33
- package/dist/chunks/{persistent-pty-ndmt31ja.js → generate-ejh6vr56.js} +7 -7
- package/dist/chunks/{persistent-pty-sg4wm2jf.js → generate-eq8hfn6p.js} +34 -34
- package/dist/chunks/{persistent-pty-erw5rpbs.js → generate-erw5rpbs.js} +2 -2
- package/dist/chunks/{persistent-pty-etq0c3wd.js → generate-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-0qd1hc9n.js → generate-etvcck5n.js} +5 -5
- package/dist/chunks/{persistent-pty-r8xr0va3.js → generate-f2n192rq.js} +4 -4
- package/dist/chunks/{persistent-pty-bm48e2a0.js → generate-f4d32cs3.js} +6 -6
- package/dist/chunks/{persistent-pty-02e6q2g2.js → generate-f9rzwe3p.js} +70 -70
- package/dist/chunks/{persistent-pty-ayw4b9ht.js → generate-fdrt4ptc.js} +8 -8
- package/dist/chunks/{persistent-pty-pzgzmqw9.js → generate-ff9zj3nc.js} +17 -17
- package/dist/chunks/{persistent-pty-x3yd748b.js → generate-fn0a81m4.js} +26 -26
- package/dist/chunks/{persistent-pty-15zevn5w.js → generate-fng9e0je.js} +6 -6
- package/dist/chunks/{persistent-pty-cwykn6m4.js → generate-fp9f8xxs.js} +8 -8
- package/dist/chunks/{persistent-pty-y170be0p.js → generate-fq3yhk7e.js} +16 -16
- package/dist/chunks/{persistent-pty-g8d3gcyj.js → generate-fqb2p7cx.js} +7 -7
- package/dist/chunks/{persistent-pty-b5s03rd7.js → generate-frpc1n2d.js} +3 -3
- package/dist/chunks/{persistent-pty-bhd4rr5x.js → generate-fxy9k04v.js} +17 -17
- package/dist/chunks/{persistent-pty-cmwkp3r5.js → generate-g0445xdp.js} +4 -4
- package/dist/chunks/{persistent-pty-rcbfacwh.js → generate-g1rz1ngr.js} +6 -6
- package/dist/chunks/{persistent-pty-s43hhkdm.js → generate-g6zjvvdg.js} +29 -29
- package/dist/chunks/{persistent-pty-g8jasmdt.js → generate-g8jasmdt.js} +3 -3
- package/dist/chunks/{persistent-pty-xe08wmx0.js → generate-gbawcwdt.js} +22 -22
- package/dist/chunks/{persistent-pty-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-p5ntwjzn.js → generate-gjjgb4gb.js} +11 -11
- package/dist/chunks/{persistent-pty-cwa6csj7.js → generate-gjwgx2c5.js} +9 -9
- package/dist/chunks/{persistent-pty-zav06jzw.js → generate-gst7axd9.js} +4 -4
- package/dist/chunks/{persistent-pty-gv6a8nnw.js → generate-gv6a8nnw.js} +2 -2
- package/dist/chunks/{persistent-pty-5brb0pbm.js → generate-h0559xvs.js} +171 -171
- package/dist/chunks/{persistent-pty-kh3ehkc0.js → generate-h3j9tznw.js} +4 -4
- package/dist/chunks/{persistent-pty-mw5r620c.js → generate-h47ph6jp.js} +24 -24
- package/dist/chunks/{persistent-pty-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-9cn3db03.js → generate-hb2v93g6.js} +35 -35
- package/dist/chunks/{persistent-pty-1a1mrdgb.js → generate-hfnn7kny.js} +25 -25
- package/dist/chunks/{persistent-pty-hrd0j5f2.js → generate-hnp1s8mk.js} +10 -10
- package/dist/chunks/generate-hr9dp009.js +4 -0
- package/dist/chunks/{persistent-pty-3ktbe3hf.js → generate-hs2a3b3x.js} +6 -6
- package/dist/chunks/generate-ht5y0zrb.js +18 -0
- package/dist/chunks/{persistent-pty-j56e64zr.js → generate-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-5zr303av.js → generate-jgmx1568.js} +10 -10
- package/dist/chunks/{persistent-pty-m6bhc56w.js → generate-jnbsce1r.js} +9 -9
- package/dist/chunks/{persistent-pty-ss4mfvwp.js → generate-jp8hq39h.js} +5 -5
- package/dist/chunks/{persistent-pty-2g96k7vx.js → generate-jsq0aznb.js} +1 -1
- package/dist/chunks/{persistent-pty-2x1xwv6h.js → generate-jyrj3vqh.js} +15 -15
- package/dist/chunks/{persistent-pty-73hrd7m9.js → generate-k212m9dd.js} +6 -6
- package/dist/chunks/{persistent-pty-wqb2bwtv.js → generate-k5tz7j8z.js} +5 -5
- package/dist/chunks/{persistent-pty-2wyfts5g.js → generate-ka9pqc7f.js} +21 -21
- package/dist/chunks/{persistent-pty-5qxx2m82.js → generate-kb5y04bq.js} +3 -3
- package/dist/chunks/{persistent-pty-0xp9wjxv.js → generate-kgm00e3h.js} +26 -26
- package/dist/chunks/{persistent-pty-fqeda9mf.js → generate-kmhmhkps.js} +21 -21
- package/dist/chunks/{persistent-pty-0bx2se0g.js → generate-kvq4qv8g.js} +11 -11
- package/dist/chunks/{persistent-pty-rbd4k96t.js → generate-kwyg33s8.js} +12 -12
- package/dist/chunks/{persistent-pty-pgnaq8k5.js → generate-kx1a24hw.js} +35 -35
- package/dist/chunks/{persistent-pty-m3fdjcah.js → generate-m3fdjcah.js} +1 -1
- package/dist/chunks/{persistent-pty-hmn5tmn4.js → generate-m92f15w4.js} +14 -14
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-66t0h02t.js → generate-marx3rdf.js} +16 -16
- package/dist/chunks/{persistent-pty-n9z7mj6d.js → generate-mm1zeq39.js} +27 -27
- package/dist/chunks/{persistent-pty-44ke2mar.js → generate-mmr7bq34.js} +8 -8
- package/dist/chunks/{persistent-pty-1q803bdb.js → generate-mpfv79en.js} +9 -9
- package/dist/chunks/{persistent-pty-yfj0yy3f.js → generate-mq5qvf98.js} +5 -5
- package/dist/chunks/{persistent-pty-wq4mmp7m.js → generate-mvksx64m.js} +4 -4
- package/dist/chunks/{persistent-pty-bsd2nd03.js → generate-mw0kncyf.js} +18 -18
- package/dist/chunks/{persistent-pty-j7kjea59.js → generate-n76g8031.js} +11 -11
- package/dist/chunks/{persistent-pty-sg81b8ak.js → generate-n7kq1k7k.js} +9 -9
- package/dist/chunks/{persistent-pty-xr54qchj.js → generate-ncgeszke.js} +8 -8
- package/dist/chunks/{persistent-pty-0p8fja5q.js → generate-ngd2431n.js} +46 -45
- package/dist/chunks/{persistent-pty-4t9wz2vk.js → generate-ngv1k710.js} +10 -10
- package/dist/chunks/{persistent-pty-nmjdsd9n.js → generate-nmnp2ymx.js} +20 -20
- package/dist/chunks/{persistent-pty-k3c624dm.js → generate-nzks3jc8.js} +3 -3
- package/dist/chunks/{persistent-pty-cr07tj7n.js → generate-p44d8wdy.js} +5 -5
- package/dist/chunks/{persistent-pty-90rjpb8w.js → generate-p4s7j977.js} +14 -14
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-d1fh6jb3.js → generate-prrcw8js.js} +30 -30
- package/dist/chunks/{persistent-pty-39q291vc.js → generate-pzqw1wav.js} +30 -30
- package/dist/chunks/{persistent-pty-1636sbse.js → generate-q5gjyfgp.js} +22 -22
- package/dist/chunks/{persistent-pty-chwd528f.js → generate-q6fyt7vz.js} +5 -5
- package/dist/chunks/{persistent-pty-4pfpv52f.js → generate-qg0cj28n.js} +8 -8
- package/dist/chunks/{persistent-pty-0jwsre1p.js → generate-qgn6gcr1.js} +5 -5
- package/dist/chunks/{persistent-pty-xfkkasph.js → generate-qqeeq2t9.js} +7 -7
- package/dist/chunks/{persistent-pty-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-9v19sw1s.js → generate-r3dhan7w.js} +31 -31
- package/dist/chunks/{persistent-pty-crhd7pgs.js → generate-rapp18dr.js} +29 -29
- package/dist/chunks/{persistent-pty-8dzzav18.js → generate-rck92678.js} +4 -4
- package/dist/chunks/{persistent-pty-53fyba40.js → generate-rdecwvm0.js} +4 -4
- package/dist/chunks/{persistent-pty-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-eaj1djv9.js → generate-rhjbct0v.js} +8 -8
- package/dist/chunks/{persistent-pty-7gryrk58.js → generate-rjygdas5.js} +25 -25
- package/dist/chunks/{persistent-pty-bpjsyh0e.js → generate-rqvaktkj.js} +23 -23
- package/dist/chunks/{persistent-pty-kqjd1yhv.js → generate-rswww9ew.js} +8 -8
- package/dist/chunks/{persistent-pty-7z7az0f5.js → generate-s0hza5ac.js} +4 -4
- package/dist/chunks/{persistent-pty-g95rc6bm.js → generate-s7pvmk24.js} +5 -5
- package/dist/chunks/{persistent-pty-hj5k1nvz.js → generate-s8nzptyh.js} +50 -50
- package/dist/chunks/{persistent-pty-pzwa7kng.js → generate-sb5t4k0s.js} +12 -12
- package/dist/chunks/{persistent-pty-bqvjxhzq.js → generate-sb7jh7an.js} +6 -6
- package/dist/chunks/{persistent-pty-r4v8qatr.js → generate-sc4v13qp.js} +8 -8
- package/dist/chunks/{persistent-pty-re89hen7.js → generate-sdak5pwx.js} +3 -3
- package/dist/chunks/{persistent-pty-58fpexbr.js → generate-sfd9g3pf.js} +7 -7
- package/dist/chunks/{persistent-pty-neppcg31.js → generate-snk33gt5.js} +25 -25
- package/dist/chunks/{persistent-pty-4d5pscc0.js → generate-ss8mggvm.js} +9 -9
- package/dist/chunks/{persistent-pty-3dav9012.js → generate-syfwxnch.js} +9 -9
- package/dist/chunks/{persistent-pty-g5r6kmbd.js → generate-sz1n82y1.js} +27 -27
- package/dist/chunks/{persistent-pty-544cyea4.js → generate-t6rzr7x0.js} +23 -23
- package/dist/chunks/{persistent-pty-jegrsze7.js → generate-tatq26y7.js} +41 -41
- package/dist/chunks/{persistent-pty-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-89znhe33.js → generate-tcezcvh9.js} +4 -4
- package/dist/chunks/{persistent-pty-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-bwvhsys1.js → generate-tj32tqzk.js} +11 -11
- package/dist/chunks/{persistent-pty-56scbdfa.js → generate-ttg3xw16.js} +22 -22
- package/dist/chunks/{persistent-pty-jgnkgs1r.js → generate-tvnr69ec.js} +23 -23
- package/dist/chunks/{persistent-pty-tvtrv512.js → generate-tvtrv512.js} +1 -1
- package/dist/chunks/{persistent-pty-4d3yg0sd.js → generate-v0hhcyk6.js} +3 -3
- package/dist/chunks/{persistent-pty-6hc4pxhc.js → generate-v14dkeae.js} +3 -3
- package/dist/chunks/{persistent-pty-wmdbx2q5.js → generate-v2v746m1.js} +20 -20
- package/dist/chunks/generate-v691y2we.js +503 -0
- package/dist/chunks/{persistent-pty-8qc9bzp8.js → generate-vahype7v.js} +22 -22
- package/dist/chunks/{persistent-pty-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-ph20cxtq.js → generate-vktwk5kv.js} +9 -9
- package/dist/chunks/{persistent-pty-pgxezfdk.js → generate-vn6fxsg1.js} +5 -5
- package/dist/chunks/{persistent-pty-eqtj21ma.js → generate-vnn0hhza.js} +13 -13
- package/dist/chunks/{persistent-pty-vtxr0yy2.js → generate-vtxr0yy2.js} +2 -2
- package/dist/chunks/{persistent-pty-gmjq4p6e.js → generate-vy4zg7qh.js} +5 -5
- package/dist/chunks/{persistent-pty-vzcthcp8.js → generate-vzcthcp8.js} +1 -1
- package/dist/chunks/{persistent-pty-k1sg37e2.js → generate-w251xrcq.js} +4 -4
- package/dist/chunks/{persistent-pty-gcftrmma.js → generate-w2j062zp.js} +48 -48
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-s4ahaey6.js → generate-wb0t2qn7.js} +7 -7
- package/dist/chunks/{persistent-pty-90w267cj.js → generate-wccf8jja.js} +20 -20
- package/dist/chunks/{persistent-pty-hg9qxph4.js → generate-wcz1zxve.js} +11 -11
- package/dist/chunks/{persistent-pty-wd3x2cqz.js → generate-wd3x2cqz.js} +2 -2
- package/dist/chunks/{persistent-pty-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-zhth6nwz.js → generate-wkwxx8bs.js} +7 -7
- package/dist/chunks/{persistent-pty-6y4kmedr.js → generate-wn1gkswa.js} +78 -78
- package/dist/chunks/{persistent-pty-17ggxybq.js → generate-wwxvwabb.js} +37 -37
- package/dist/chunks/{persistent-pty-s1x2d4kw.js → generate-wx47vh9f.js} +17 -17
- package/dist/chunks/{persistent-pty-x1ezjp6w.js → generate-x1ezjp6w.js} +1 -1
- package/dist/chunks/{persistent-pty-y56hh3ws.js → generate-x42atskx.js} +11 -11
- package/dist/chunks/{persistent-pty-dwj2yfa0.js → generate-x692666y.js} +27 -27
- package/dist/chunks/{persistent-pty-7xzxry9y.js → generate-x8v30ny9.js} +3 -3
- package/dist/chunks/{persistent-pty-et5dj639.js → generate-xde9qd6b.js} +28 -28
- package/dist/chunks/{persistent-pty-f8h9tg4t.js → generate-xjnt3mz7.js} +4 -4
- package/dist/chunks/{persistent-pty-yhnkyc0a.js → generate-xmq2yw5m.js} +26 -26
- package/dist/chunks/{persistent-pty-0735k9hj.js → generate-xxrx4782.js} +16 -16
- package/dist/chunks/{persistent-pty-j8s0raxh.js → generate-xyzn9sqz.js} +16 -16
- package/dist/chunks/{persistent-pty-ajvrh1yc.js → generate-y19c3zcv.js} +4 -4
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-y71avatq.js → generate-y71avatq.js} +1 -1
- package/dist/chunks/{persistent-pty-7k1gvst3.js → generate-ygn80rtk.js} +4 -4
- package/dist/chunks/{persistent-pty-yrhqyw5v.js → generate-yrhqyw5v.js} +1 -1
- package/dist/chunks/{persistent-pty-yrznvahk.js → generate-yrznvahk.js} +2 -2
- package/dist/chunks/{persistent-pty-ggfg2vv6.js → generate-yt1wq2wy.js} +7 -7
- package/dist/chunks/{persistent-pty-fcj2ezqc.js → generate-ytrvastn.js} +16 -16
- package/dist/chunks/{persistent-pty-z07pqspn.js → generate-z07pqspn.js} +3 -3
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-z63w68vq.js → generate-z63w68vq.js} +2 -2
- package/dist/chunks/{persistent-pty-rvrv9k52.js → generate-zck7feqp.js} +33 -33
- package/dist/chunks/{persistent-pty-zeh9ct20.js → generate-zeh9ct20.js} +2 -2
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-e8nxqz0t.js → generate-zwh520xa.js} +16 -16
- package/dist/chunks/{persistent-pty-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +142 -142
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.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 +361 -361
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +358 -358
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- 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 +3 -3
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +91 -91
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +120 -120
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +120 -120
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- 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 +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- 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 +125 -125
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/types/model-resolver.d.ts +2 -0
- package/dist/types/session/model-transport.d.ts +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-4v7qdvcn.js +0 -18
- package/dist/chunks/persistent-pty-ha2kee0e.js +0 -503
- package/dist/chunks/persistent-pty-kx0ks824.js +0 -26
- package/dist/chunks/persistent-pty-qapv375x.js +0 -4
- package/dist/chunks/persistent-pty-rh3p3f6n.js +0 -252
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-34c7v6d4.js → generate-34c7v6d4.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → generate-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5qd3pb7m.js → generate-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-922hggd3.js → generate-922hggd3.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → generate-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hjbc5kem.js → generate-hjbc5kem.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-sk3qaz4a.js → generate-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → generate-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelativePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80,
|
|
6
6
|
node84
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-213r17mq.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service76,
|
|
10
|
+
node79
|
|
11
|
+
} from "./generate-1jcy8x34.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
names3
|
|
15
|
+
} from "./generate-tcezcvh9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/filesystem/search.ts
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options2,
|
|
25
|
+
Service: () => Service14,
|
|
26
|
+
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer8,
|
|
29
|
+
node: () => node16,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options2 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service14 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
62
62
|
const location = yield* Service80;
|
|
63
|
-
const ripgrep = yield*
|
|
63
|
+
const ripgrep = yield* Service76;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -77,7 +77,7 @@ var ripgrepLayer2 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
77
77
|
cwd: location.directory,
|
|
78
78
|
pattern: "*",
|
|
79
79
|
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
|
|
80
|
-
exclude: home ? [...
|
|
80
|
+
exclude: home ? [...names3()].map((name) => `${name}/**`) : undefined,
|
|
81
81
|
onEntry: (entry) => Effect.sync(() => {
|
|
82
82
|
next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
|
|
83
83
|
const parts = entry.path.split("/");
|
|
@@ -105,14 +105,14 @@ var ripgrepLayer2 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service14.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
115
|
+
var fffLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service80;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service14.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service14.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,7 +174,7 @@ var fffLayer2 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
178
|
const location = yield* Service80;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
@@ -182,9 +182,9 @@ var layer23 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured2(options) {
|
|
186
|
+
return makeLocationNode({ service: Service14, layer: layer8(options), deps: [node84, node79] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node16 = configured2();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options2, Service14, ripgrepLayer2, fffLayer2, layer8, configured2, node16, exports_search };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
8
|
Service82,
|
|
9
9
|
node86
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-vy4zg7qh.js";
|
|
11
11
|
import {
|
|
12
12
|
Service80,
|
|
13
13
|
node84
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./generate-213r17mq.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./generate-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./generate-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
26
|
ID: () => ID5,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service53,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node56,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
@@ -36,16 +36,16 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import { ID as ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service53 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service53.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node56 = makeLocationNode({
|
|
144
|
+
service: Service53,
|
|
145
145
|
layer,
|
|
146
146
|
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service53, Service53.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service35, Service35.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error3({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export { ID5,
|
|
166
|
+
export { ID5, Error3, Service53, node56, noopLayer3, exports_snapshot2 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-ygn80rtk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event20,
|
|
7
|
+
Service75,
|
|
8
|
+
node78
|
|
9
|
+
} from "./generate-prrcw8js.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service43,
|
|
12
|
+
node45
|
|
13
|
+
} from "./generate-q5gjyfgp.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./generate-922hggd3.js";
|
|
17
17
|
import {
|
|
18
18
|
Service80,
|
|
19
19
|
node84
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./generate-213r17mq.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./generate-yrznvahk.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./generate-ka9pqc7f.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names4,
|
|
29
29
|
discover3
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-8nhvtgvt.js";
|
|
31
31
|
import {
|
|
32
32
|
plan2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./generate-j56e64zr.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
35
|
+
Service44,
|
|
36
|
+
Event7,
|
|
37
|
+
node46
|
|
38
|
+
} from "./generate-bpmbxd3k.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./generate-9rqn6x4v.js";
|
|
42
42
|
|
|
43
43
|
// src/config.ts
|
|
44
44
|
var exports_config = {};
|
|
45
45
|
__export(exports_config, {
|
|
46
46
|
Config: () => exports_config,
|
|
47
47
|
Options: () => Options5,
|
|
48
|
-
Service: () =>
|
|
48
|
+
Service: () => Service42,
|
|
49
49
|
Test: () => Test2,
|
|
50
|
-
configured: () =>
|
|
50
|
+
configured: () => configured5,
|
|
51
51
|
latest: () => latest2,
|
|
52
|
-
layer: () =>
|
|
53
|
-
node: () =>
|
|
52
|
+
layer: () => layer18,
|
|
53
|
+
node: () => node44,
|
|
54
54
|
testLayer: () => testLayer2
|
|
55
55
|
});
|
|
56
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -71,7 +71,7 @@ var Options5 = Schema.Struct({
|
|
|
71
71
|
content: Schema.optional(Schema.String)
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service42 extends Context.Service()("@opencode/Config") {
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -89,16 +89,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
89
89
|
setEntries: (next) => Ref.set(entries, next),
|
|
90
90
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
91
91
|
});
|
|
92
|
-
return Context.empty().pipe(Context.add(
|
|
92
|
+
return Context.empty().pipe(Context.add(Service42, service), Context.add(Test2, service));
|
|
93
93
|
}));
|
|
94
|
-
var
|
|
94
|
+
var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
95
95
|
const fs = yield* FSUtil.Service;
|
|
96
96
|
const location = yield* Service80;
|
|
97
|
-
const watcher = yield*
|
|
97
|
+
const watcher = yield* Service43;
|
|
98
98
|
const bus = yield* Service83;
|
|
99
|
-
const credentials = yield*
|
|
99
|
+
const credentials = yield* Service75;
|
|
100
100
|
const globalService = yield* Global.Service;
|
|
101
|
-
const wellknown = yield*
|
|
101
|
+
const wellknown = yield* Service44;
|
|
102
102
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
103
103
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
104
104
|
const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
@@ -167,7 +167,7 @@ var layer16 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
167
167
|
});
|
|
168
168
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
169
169
|
return [
|
|
170
|
-
...yield* Effect.forEach(
|
|
170
|
+
...yield* Effect.forEach(names4, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
171
171
|
new Directory({ type: "directory", path: directory })
|
|
172
172
|
];
|
|
173
173
|
});
|
|
@@ -221,8 +221,8 @@ var layer16 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
221
221
|
}, (effect) => reloadLock.withPermit(effect));
|
|
222
222
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
223
223
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
224
|
-
yield* bus.subscribe(
|
|
225
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
225
|
+
yield* bus.subscribe(Event7.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
226
226
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
227
227
|
if (!wellknown.snapshot().length)
|
|
228
228
|
return Effect.void;
|
|
@@ -235,7 +235,7 @@ var layer16 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
235
235
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
236
236
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
237
237
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
238
|
-
const candidates =
|
|
238
|
+
const candidates = names4.map((name) => path.join(directory, name));
|
|
239
239
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
240
240
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
241
241
|
`;
|
|
@@ -250,7 +250,7 @@ var layer16 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
250
250
|
`);
|
|
251
251
|
yield* requestReload;
|
|
252
252
|
}, (effect) => updateLock.withPermit(effect));
|
|
253
|
-
return
|
|
253
|
+
return Service42.of({
|
|
254
254
|
entries: Effect.fnUntraced(function* () {
|
|
255
255
|
return configs;
|
|
256
256
|
}),
|
|
@@ -262,13 +262,13 @@ var layer16 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
262
262
|
update
|
|
263
263
|
});
|
|
264
264
|
}));
|
|
265
|
-
function
|
|
265
|
+
function configured5(options) {
|
|
266
266
|
return makeLocationNode({
|
|
267
|
-
service:
|
|
268
|
-
layer:
|
|
269
|
-
deps: [
|
|
267
|
+
service: Service42,
|
|
268
|
+
layer: layer18(options),
|
|
269
|
+
deps: [node45, node87, FSUtil.node, Global.node, node84, node78, node46]
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
var
|
|
272
|
+
var node44 = configured5();
|
|
273
273
|
|
|
274
|
-
export { latest2, Options5,
|
|
274
|
+
export { latest2, Options5, Service42, Test2, testLayer2, layer18, configured5, node44, exports_config };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/protected.ts
|
|
6
6
|
var exports_protected = {};
|
|
7
7
|
__export(exports_protected, {
|
|
8
8
|
Protected: () => exports_protected,
|
|
9
9
|
isHome: () => isHome2,
|
|
10
|
-
names: () =>
|
|
10
|
+
names: () => names3,
|
|
11
11
|
paths: () => paths2
|
|
12
12
|
});
|
|
13
13
|
import os from "os";
|
|
@@ -41,7 +41,7 @@ var DARWIN_LIBRARY = [
|
|
|
41
41
|
];
|
|
42
42
|
var DARWIN_ROOT = ["/.DocumentRevisions-V100", "/.Spotlight-V100", "/.Trashes", "/.fseventsd"];
|
|
43
43
|
var WIN32_HOME = ["AppData", "Downloads", "Desktop", "Documents", "Pictures", "Music", "Videos", "OneDrive"];
|
|
44
|
-
function
|
|
44
|
+
function names3() {
|
|
45
45
|
if (process.platform === "darwin")
|
|
46
46
|
return new Set(DARWIN_HOME);
|
|
47
47
|
if (process.platform === "win32")
|
|
@@ -60,4 +60,4 @@ function paths2() {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export { isHome2,
|
|
63
|
+
export { isHome2, names3, paths2, exports_protected };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./generate-69v350yq.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID10,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Info24
|
|
11
|
+
} from "./generate-0vs0qezg.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./generate-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
17
|
var exports_models = {};
|
|
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID10.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
118
118
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
|
-
return
|
|
122
|
-
...
|
|
121
|
+
return Info24.make({
|
|
122
|
+
...Info24.default(ID12.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID10.make(remote.id),
|
|
125
|
+
providerID: ID12.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-5yx95y46.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-ygn80rtk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./generate-prrcw8js.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./generate-g6zjvvdg.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./generate-4dgbcxzg.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service54
|
|
20
|
+
} from "./generate-d8zjpaz4.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
22
|
+
ID12,
|
|
23
23
|
mergeOverlay2,
|
|
24
24
|
mergeHeaders2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./generate-69v350yq.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
ID3,
|
|
28
|
+
Input14,
|
|
29
29
|
Response2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-hfnn7kny.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/opencode.ts
|
|
33
33
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -42,7 +42,7 @@ var methodID = MethodID2.make("device");
|
|
|
42
42
|
var RemoteResponse = Schema.Struct({
|
|
43
43
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
44
44
|
websearch: Schema.Struct({
|
|
45
|
-
providerID:
|
|
45
|
+
providerID: ID3
|
|
46
46
|
}).pipe(Schema.optional),
|
|
47
47
|
experimental: Schema.Struct({
|
|
48
48
|
policies: Schema.Array(ConfigPolicy.Info).pipe(Schema.optional)
|
|
@@ -67,7 +67,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
67
67
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
68
68
|
function oauth(http) {
|
|
69
69
|
return {
|
|
70
|
-
integrationID:
|
|
70
|
+
integrationID: ID13.make("opencode"),
|
|
71
71
|
method: {
|
|
72
72
|
id: methodID,
|
|
73
73
|
type: "oauth",
|
|
@@ -124,7 +124,7 @@ var OpencodePlugin2 = define({
|
|
|
124
124
|
const bus = yield* Service83;
|
|
125
125
|
const client = yield* HttpClient.HttpClient;
|
|
126
126
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
127
|
-
const managed = yield*
|
|
127
|
+
const managed = yield* Service54;
|
|
128
128
|
const loading = Semaphore.makeUnsafe(1);
|
|
129
129
|
let snapshot = { config: undefined, connection: undefined, organization: undefined };
|
|
130
130
|
const load = Effect.fn("OpencodePlugin.load")(function* () {
|
|
@@ -157,7 +157,7 @@ var OpencodePlugin2 = define({
|
|
|
157
157
|
providers.update(providerID, (provider) => {
|
|
158
158
|
if (source && source.provider !== provider)
|
|
159
159
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
160
|
-
provider.integrationID =
|
|
160
|
+
provider.integrationID = ID13.make("opencode");
|
|
161
161
|
if (item.canonical !== undefined)
|
|
162
162
|
provider.canonical = item.canonical;
|
|
163
163
|
if (item.name !== undefined)
|
|
@@ -227,7 +227,7 @@ var OpencodePlugin2 = define({
|
|
|
227
227
|
sourceConnection: snapshot.connection
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
const item = providers.get(
|
|
230
|
+
const item = providers.get(ID12.opencode);
|
|
231
231
|
if (!item)
|
|
232
232
|
return;
|
|
233
233
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -239,7 +239,7 @@ var OpencodePlugin2 = define({
|
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
241
|
yield* ctx.model.transform((models) => {
|
|
242
|
-
const item = models.provider.get(
|
|
242
|
+
const item = models.provider.get(ID12.opencode);
|
|
243
243
|
if (!item)
|
|
244
244
|
return;
|
|
245
245
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -273,7 +273,7 @@ var OpencodePlugin2 = define({
|
|
|
273
273
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
274
274
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
275
275
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
276
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
276
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
277
277
|
query: input.query,
|
|
278
278
|
providerID: descriptor.providerID
|
|
279
279
|
}));
|
|
@@ -295,7 +295,7 @@ var OpencodePlugin2 = define({
|
|
|
295
295
|
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
296
296
|
});
|
|
297
297
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
298
|
-
yield* bus.subscribe(
|
|
298
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
299
299
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
300
300
|
})
|
|
301
301
|
});
|