@opencode/core 0.0.0-dev-80 → 0.0.0-dev-81
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 +89 -89
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{ripgrep-aj7mw0zk.js → generate-034tev2y.js} +2 -2
- package/dist/chunks/{ripgrep-k28m6mdm.js → generate-03efvwc7.js} +12 -12
- package/dist/chunks/{ripgrep-cb54j1zr.js → generate-09a8m3xd.js} +9 -9
- package/dist/chunks/{ripgrep-87cy3nxk.js → generate-0brwp79y.js} +14 -14
- package/dist/chunks/{ripgrep-df17qpd9.js → generate-0j37w4ym.js} +4 -4
- package/dist/chunks/{ripgrep-56hhdn6r.js → generate-0vpw1p67.js} +15 -15
- package/dist/chunks/{ripgrep-jsvd7yjj.js → generate-0yrgkn6z.js} +21 -21
- package/dist/chunks/{ripgrep-x8nvjgx0.js → generate-11hfp36g.js} +4 -4
- package/dist/chunks/{ripgrep-g1ttnxq8.js → generate-138apfz4.js} +41 -41
- package/dist/chunks/{ripgrep-8d2bz6m6.js → generate-160yv0cs.js} +8 -8
- package/dist/chunks/{ripgrep-med93trz.js → generate-1ce0rtfx.js} +4 -4
- package/dist/chunks/{ripgrep-fjf4pq9j.js → generate-1d6rqfwz.js} +15 -15
- package/dist/chunks/{ripgrep-27w5k9zf.js → generate-1ep2p91f.js} +2 -2
- package/dist/chunks/{ripgrep-rsjqfdc9.js → generate-1gpknkjr.js} +1 -1
- package/dist/chunks/{ripgrep-c3mymrd0.js → generate-1hkqnyxs.js} +5 -5
- package/dist/chunks/{ripgrep-s9j2kwh6.js → generate-1p5r6cjt.js} +45 -45
- package/dist/chunks/{ripgrep-sqbb0ctm.js → generate-1q5awywt.js} +5 -5
- package/dist/chunks/{ripgrep-pfj0xs0p.js → generate-1w4xpz6a.js} +21 -21
- package/dist/chunks/{ripgrep-1x2knyw4.js → generate-1x2knyw4.js} +1 -1
- package/dist/chunks/{ripgrep-9pskqgbs.js → generate-1yebjb7n.js} +21 -21
- package/dist/chunks/{ripgrep-1yq9hg58.js → generate-1yq9hg58.js} +1 -1
- package/dist/chunks/{ripgrep-204s3925.js → generate-204s3925.js} +1 -1
- package/dist/chunks/{ripgrep-2mdz3tk1.js → generate-20ax9mvp.js} +15 -15
- package/dist/chunks/{ripgrep-6d3rx8wt.js → generate-20yb03sy.js} +25 -25
- package/dist/chunks/{ripgrep-8k2vnwwb.js → generate-21gczqff.js} +15 -15
- package/dist/chunks/{ripgrep-r5493qw4.js → generate-22b1x2mz.js} +18 -18
- package/dist/chunks/{ripgrep-5b4c6ssz.js → generate-251v4ac3.js} +30 -30
- package/dist/chunks/{ripgrep-7fx6peza.js → generate-25rhbghy.js} +5 -5
- package/dist/chunks/{ripgrep-9at5fq9s.js → generate-2gp0ejb3.js} +13 -13
- package/dist/chunks/{ripgrep-e2ne77ac.js → generate-2jrrfqe1.js} +4 -4
- package/dist/chunks/{ripgrep-cxy0d1dt.js → generate-2k5h4fp7.js} +1 -1
- package/dist/chunks/{ripgrep-32pwgmem.js → generate-2r5swsc6.js} +13 -13
- package/dist/chunks/{ripgrep-6rdptfg1.js → generate-2xh3b742.js} +6 -6
- package/dist/chunks/{ripgrep-hsxwhxza.js → generate-2zp4fvvj.js} +42 -42
- package/dist/chunks/{ripgrep-gfrk9heb.js → generate-301e04c8.js} +18 -18
- package/dist/chunks/{ripgrep-xn661xyh.js → generate-36639cz4.js} +23 -23
- package/dist/chunks/{ripgrep-kz0q6sc1.js → generate-3bpzsehq.js} +18 -18
- package/dist/chunks/{ripgrep-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-rfcwtbbn.js → generate-3n7cxz37.js} +27 -27
- package/dist/chunks/{ripgrep-3nnrz6f6.js → generate-3nnrz6f6.js} +1 -1
- package/dist/chunks/{ripgrep-5rcvdxf6.js → generate-3p1ghjfc.js} +3 -3
- package/dist/chunks/{ripgrep-v4vw7d5e.js → generate-40smdzyz.js} +22 -22
- package/dist/chunks/{ripgrep-7c7a89na.js → generate-40ykd73j.js} +5 -5
- package/dist/chunks/generate-47mgcevd.js +18 -0
- package/dist/chunks/{ripgrep-yhnsyv94.js → generate-4gry5n0p.js} +8 -8
- package/dist/chunks/{ripgrep-rvdapjqy.js → generate-4p3cqz3x.js} +11 -11
- package/dist/chunks/{ripgrep-4pyp9zr9.js → generate-4pyp9zr9.js} +1 -1
- package/dist/chunks/{ripgrep-y00x4xpa.js → generate-4tqs0jzk.js} +4 -4
- package/dist/chunks/{ripgrep-4v008n1t.js → generate-4v008n1t.js} +1 -1
- package/dist/chunks/{ripgrep-yby3zgg4.js → generate-4x344z2c.js} +2 -2
- package/dist/chunks/{ripgrep-mxbg502x.js → generate-500djfy4.js} +43 -43
- package/dist/chunks/{ripgrep-4s6kdcz7.js → generate-53antfq0.js} +34 -34
- package/dist/chunks/{ripgrep-088pd99w.js → generate-54vd48rk.js} +38 -38
- package/dist/chunks/{ripgrep-yzhzc5rz.js → generate-54x4knwr.js} +14 -14
- package/dist/chunks/{ripgrep-369akvbe.js → generate-5h88a2js.js} +22 -22
- package/dist/chunks/{ripgrep-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
- package/dist/chunks/{ripgrep-6ttkwnky.js → generate-5n5cq6dk.js} +5 -5
- package/dist/chunks/{ripgrep-3tbr4cqx.js → generate-5p98y19k.js} +92 -92
- package/dist/chunks/{ripgrep-kn05yypj.js → generate-5zch7wr3.js} +33 -33
- package/dist/chunks/{ripgrep-ar2j3j0f.js → generate-61ennm6n.js} +4 -4
- package/dist/chunks/{ripgrep-atft9rda.js → generate-63mgg1rp.js} +11 -11
- package/dist/chunks/{ripgrep-egbe5b71.js → generate-6712xt67.js} +12 -12
- package/dist/chunks/{ripgrep-c4rtwfmc.js → generate-67scqdth.js} +14 -14
- package/dist/chunks/{ripgrep-4bj5kpb7.js → generate-6ak84kja.js} +6 -6
- package/dist/chunks/{ripgrep-wj35k8fd.js → generate-6dwbj699.js} +18 -18
- package/dist/chunks/{ripgrep-6esdw8yj.js → generate-6esdw8yj.js} +1 -1
- package/dist/chunks/{ripgrep-2p6ra54c.js → generate-6f3v2fef.js} +47 -47
- package/dist/chunks/{ripgrep-18g90bpv.js → generate-6twykydk.js} +9 -9
- package/dist/chunks/{ripgrep-hetdxzf5.js → generate-6yfzf5e6.js} +6 -6
- package/dist/chunks/{ripgrep-af5csmsa.js → generate-71wjfbxa.js} +36 -36
- package/dist/chunks/{ripgrep-jjk3mcr6.js → generate-72sg82ve.js} +39 -39
- package/dist/chunks/{ripgrep-nah043kf.js → generate-770pw0s1.js} +4 -4
- package/dist/chunks/{ripgrep-whpc6sfg.js → generate-79nptycn.js} +5 -5
- package/dist/chunks/{ripgrep-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-beftacqj.js → generate-7h4tq4n1.js} +11 -11
- package/dist/chunks/{ripgrep-fe9sakca.js → generate-7w1eqnvf.js} +27 -27
- package/dist/chunks/{ripgrep-7w2ypzdf.js → generate-7w2ypzdf.js} +1 -1
- package/dist/chunks/{ripgrep-80svsvjd.js → generate-7wemp1j9.js} +3 -3
- package/dist/chunks/{ripgrep-s01r1pv0.js → generate-7x1s9yws.js} +47 -47
- package/dist/chunks/{ripgrep-xbazz2d9.js → generate-8ekhwd22.js} +11 -11
- package/dist/chunks/{ripgrep-wsh0m2bq.js → generate-8essger0.js} +11 -11
- package/dist/chunks/{ripgrep-t2yw8h65.js → generate-8g8pwsx1.js} +19 -19
- package/dist/chunks/{ripgrep-e8e8nyhn.js → generate-8hesv9dy.js} +9 -9
- package/dist/chunks/{ripgrep-jfwapypb.js → generate-8n33y3k3.js} +32 -32
- package/dist/chunks/{ripgrep-8wtp7s3z.js → generate-8wtp7s3z.js} +1 -1
- package/dist/chunks/{ripgrep-g7esga4v.js → generate-8y4jps98.js} +7 -7
- package/dist/chunks/{ripgrep-90zstvax.js → generate-90zstvax.js} +1 -1
- package/dist/chunks/{ripgrep-f40h8bb4.js → generate-91p4ggbh.js} +27 -27
- package/dist/chunks/{ripgrep-1k1debk9.js → generate-9c8mgkwd.js} +21 -21
- package/dist/chunks/{ripgrep-d6x0x4gv.js → generate-9d7mqhyt.js} +9 -9
- package/dist/chunks/{ripgrep-eyemdhec.js → generate-9nzqwf7d.js} +13 -13
- package/dist/chunks/{ripgrep-egvqapfn.js → generate-9r6pmcfc.js} +15 -15
- package/dist/chunks/{ripgrep-znpwn00m.js → generate-9t0hde1r.js} +6 -6
- package/dist/chunks/{ripgrep-dp66fs17.js → generate-9t2khtsw.js} +11 -11
- package/dist/chunks/{ripgrep-ekj5s85x.js → generate-9w44n7hp.js} +42 -42
- package/dist/chunks/{ripgrep-bvysct2v.js → generate-a38kcqy6.js} +4 -4
- package/dist/chunks/{ripgrep-whwj36b7.js → generate-a5rsj065.js} +28 -28
- package/dist/chunks/{ripgrep-avm9nspx.js → generate-aed20f0x.js} +22 -22
- package/dist/chunks/{ripgrep-gtgtppsz.js → generate-afb5aatv.js} +6 -6
- package/dist/chunks/{ripgrep-0g9tw212.js → generate-akqe8dt6.js} +21 -21
- package/dist/chunks/{ripgrep-7fdjd8sw.js → generate-apyew4sh.js} +16 -16
- package/dist/chunks/{ripgrep-h5qpngq0.js → generate-aq5yna8t.js} +23 -23
- package/dist/chunks/{ripgrep-waaaz1pk.js → generate-as0atjke.js} +88 -88
- package/dist/chunks/{ripgrep-n441rgj1.js → generate-axp9e7dj.js} +19 -19
- package/dist/chunks/{ripgrep-3cbjf1nt.js → generate-ayjs7tqn.js} +2 -2
- package/dist/chunks/{ripgrep-7v7pq9bn.js → generate-b5kdkb71.js} +22 -22
- package/dist/chunks/{ripgrep-b6vsg801.js → generate-b6vsg801.js} +2 -2
- package/dist/chunks/{ripgrep-p7jhty20.js → generate-bbba65ws.js} +22 -22
- package/dist/chunks/{ripgrep-bz7kwm0q.js → generate-be81zkxx.js} +4 -4
- package/dist/chunks/{ripgrep-kkew1p9e.js → generate-bh1et42v.js} +6 -6
- package/dist/chunks/{ripgrep-26kaq2yd.js → generate-br8sx1gf.js} +27 -27
- package/dist/chunks/{ripgrep-5s0mcww8.js → generate-brk3g9gh.js} +34 -34
- package/dist/chunks/{ripgrep-xd9cc171.js → generate-bstexjd6.js} +5 -5
- package/dist/chunks/{ripgrep-9j0qcbqj.js → generate-c3e7yfrv.js} +14 -14
- package/dist/chunks/{ripgrep-7vgs011g.js → generate-c5gtzg91.js} +22 -22
- package/dist/chunks/{ripgrep-tqgfaemp.js → generate-cnf0gdnp.js} +16 -16
- package/dist/chunks/{ripgrep-yjk9nwe0.js → generate-cpnzy11t.js} +14 -14
- package/dist/chunks/{ripgrep-dqdq9hrz.js → generate-cr86k73f.js} +5 -5
- package/dist/chunks/{ripgrep-wcxk9yeq.js → generate-crfddmzc.js} +8 -8
- package/dist/chunks/{ripgrep-58t0zvek.js → generate-csmn30a6.js} +18 -18
- package/dist/chunks/{ripgrep-0ak2x9h8.js → generate-cwbxe8yb.js} +330 -330
- package/dist/chunks/{ripgrep-cwrgdav8.js → generate-cwrgdav8.js} +2 -2
- package/dist/chunks/{ripgrep-b134vsz7.js → generate-cy3hxfvf.js} +7 -7
- package/dist/chunks/{ripgrep-d4v9tmah.js → generate-d4v9tmah.js} +2 -2
- package/dist/chunks/{ripgrep-9np782jn.js → generate-d5drkmka.js} +29 -29
- package/dist/chunks/{ripgrep-s6qcrcda.js → generate-dcqept39.js} +49 -49
- package/dist/chunks/{ripgrep-fczcv4ax.js → generate-dfrvr67t.js} +4 -4
- package/dist/chunks/{ripgrep-k7ngd8gp.js → generate-ds023f62.js} +43 -43
- package/dist/chunks/{ripgrep-dt77769w.js → generate-dt77769w.js} +1 -1
- package/dist/chunks/{ripgrep-94r7trmv.js → generate-e38cwtn4.js} +14 -14
- package/dist/chunks/{ripgrep-e834z07m.js → generate-e834z07m.js} +1 -1
- package/dist/chunks/{ripgrep-xtd7xn7c.js → generate-e8gkemrs.js} +16 -16
- package/dist/chunks/{ripgrep-qnghve6e.js → generate-ez1g32xq.js} +8 -8
- package/dist/chunks/{ripgrep-4m70se6x.js → generate-f0wnzmyw.js} +21 -21
- package/dist/chunks/{ripgrep-b24mhxf9.js → generate-f62s2454.js} +18 -18
- package/dist/chunks/generate-f8t92yxe.js +26 -0
- package/dist/chunks/{ripgrep-g60sf386.js → generate-fbbqkjna.js} +15 -15
- package/dist/chunks/{ripgrep-fffv3p7h.js → generate-fffv3p7h.js} +1 -1
- package/dist/chunks/{ripgrep-fg9p65nk.js → generate-fg9p65nk.js} +2 -2
- package/dist/chunks/{ripgrep-zj9d1drk.js → generate-fhc9sedx.js} +8 -8
- package/dist/chunks/{ripgrep-n1ebme49.js → generate-fvw7fpk2.js} +7 -7
- package/dist/chunks/{ripgrep-pt95v14f.js → generate-g3t4yj1z.js} +11 -11
- package/dist/chunks/{ripgrep-v1stdd41.js → generate-g7e5n1s9.js} +22 -22
- package/dist/chunks/{ripgrep-khv4yf1p.js → generate-g9h88g1w.js} +9 -9
- package/dist/chunks/{ripgrep-wqwapjjj.js → generate-gbnxd7gn.js} +12 -12
- package/dist/chunks/{ripgrep-2ab3aktw.js → generate-gbqwd2zm.js} +16 -16
- package/dist/chunks/{ripgrep-ep59zg61.js → generate-gg8p9cgs.js} +3 -3
- package/dist/chunks/{ripgrep-szez8t3h.js → generate-gnef790b.js} +45 -45
- package/dist/chunks/{ripgrep-3w5nebbj.js → generate-gqvm7anc.js} +20 -20
- package/dist/chunks/{ripgrep-mh86pja4.js → generate-gwx54z98.js} +28 -28
- package/dist/chunks/{ripgrep-f2zj0t6k.js → generate-h2vbff59.js} +19 -19
- package/dist/chunks/{ripgrep-mnjz2ecc.js → generate-h5j7qrbp.js} +30 -30
- package/dist/chunks/{ripgrep-hdfrs5mg.js → generate-hdfrs5mg.js} +2 -2
- package/dist/chunks/{ripgrep-ncqtsx5w.js → generate-hfj3jdg6.js} +20 -20
- package/dist/chunks/{ripgrep-hpg1pkwy.js → generate-hpg1pkwy.js} +1 -1
- package/dist/chunks/{ripgrep-d2k0mtej.js → generate-htfy1f57.js} +8 -8
- package/dist/chunks/{ripgrep-ef7fp8z8.js → generate-j08vsdds.js} +11 -11
- package/dist/chunks/{ripgrep-ese4m9k3.js → generate-j3x9csx9.js} +15 -15
- package/dist/chunks/{ripgrep-mhvjr1t0.js → generate-j9e1a4db.js} +11 -11
- package/dist/chunks/{ripgrep-vbjqtebd.js → generate-j9krqxqk.js} +11 -11
- package/dist/chunks/{ripgrep-jfaecv01.js → generate-jfaecv01.js} +1 -1
- package/dist/chunks/{ripgrep-wakh2edy.js → generate-jh3ekwcy.js} +18 -18
- package/dist/chunks/{ripgrep-smfe966e.js → generate-jhbdwcm4.js} +24 -24
- package/dist/chunks/{ripgrep-k1r1j926.js → generate-jsq7ewwj.js} +185 -185
- package/dist/chunks/{ripgrep-jtnps1zs.js → generate-jtnps1zs.js} +2 -2
- package/dist/chunks/{ripgrep-5ac7ycjy.js → generate-k0gkqvt1.js} +11 -11
- package/dist/chunks/{ripgrep-6gchybz4.js → generate-k0n1bgzs.js} +17 -17
- package/dist/chunks/{ripgrep-8xdd5vcj.js → generate-k0ysn4xj.js} +33 -33
- package/dist/chunks/{ripgrep-z83xd19b.js → generate-k3yt60zb.js} +10 -10
- package/dist/chunks/{ripgrep-k814nvkf.js → generate-k814nvkf.js} +1 -1
- package/dist/chunks/{ripgrep-qqg9c0kv.js → generate-kd4chd64.js} +7 -7
- package/dist/chunks/{ripgrep-1ax49313.js → generate-khsakms0.js} +30 -30
- package/dist/chunks/{ripgrep-ak3gvmya.js → generate-kkdts8xr.js} +15 -15
- package/dist/chunks/{ripgrep-s2rjrqgv.js → generate-kn76f024.js} +29 -29
- package/dist/chunks/{ripgrep-aqkr4v1j.js → generate-ksdhek8b.js} +25 -25
- package/dist/chunks/{ripgrep-kt3bjfbg.js → generate-kt3bjfbg.js} +1 -1
- package/dist/chunks/{ripgrep-2c98r4e2.js → generate-kwvnq2ts.js} +14 -14
- package/dist/chunks/{ripgrep-m1714858.js → generate-m1714858.js} +1 -1
- package/dist/chunks/{ripgrep-46wzcrep.js → generate-m2th4j2b.js} +9 -9
- package/dist/chunks/{ripgrep-9hfpmwpz.js → generate-m32vg8vz.js} +17 -17
- package/dist/chunks/{ripgrep-pbcm2cp0.js → generate-m3vm7evr.js} +31 -31
- package/dist/chunks/{ripgrep-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-jce146zy.js → generate-mfrr2svg.js} +33 -33
- package/dist/chunks/{ripgrep-0g35qp0e.js → generate-mfxp7adw.js} +11 -11
- package/dist/chunks/{ripgrep-qkqjbc48.js → generate-mqe7nf5n.js} +3 -3
- package/dist/chunks/{ripgrep-s7k6069s.js → generate-mqwrzhmg.js} +18 -18
- package/dist/chunks/{ripgrep-kd78bhya.js → generate-mr14th8x.js} +14 -14
- package/dist/chunks/{ripgrep-h15brmzx.js → generate-mvj3t52g.js} +9 -9
- package/dist/chunks/{ripgrep-8whp40kv.js → generate-my4zabxr.js} +3 -3
- package/dist/chunks/{ripgrep-axb490gr.js → generate-ne4tt1ep.js} +9 -9
- package/dist/chunks/{ripgrep-6gkj1px0.js → generate-njamm2cm.js} +12 -12
- package/dist/chunks/{ripgrep-bhak5syd.js → generate-njmvt0nj.js} +4 -4
- package/dist/chunks/{ripgrep-m8c2jzgg.js → generate-njwjh564.js} +4 -4
- package/dist/chunks/{ripgrep-xmdremne.js → generate-nmtbp73c.js} +5 -5
- package/dist/chunks/{ripgrep-70ha973v.js → generate-nnt30w3v.js} +8 -8
- package/dist/chunks/{ripgrep-v3vj6w0p.js → generate-ntp0m708.js} +37 -37
- package/dist/chunks/{ripgrep-w5q9nec7.js → generate-nvfej1dx.js} +55 -55
- package/dist/chunks/{ripgrep-p015t6z3.js → generate-p015t6z3.js} +2 -2
- package/dist/chunks/{ripgrep-dfsm4808.js → generate-p1vte9h6.js} +11 -11
- package/dist/chunks/{ripgrep-nsxce02n.js → generate-p7snmzw9.js} +2 -2
- package/dist/chunks/{ripgrep-26x8chrq.js → generate-p869v6ff.js} +6 -6
- package/dist/chunks/{ripgrep-6zs6nt10.js → generate-pbbktnbz.js} +4 -4
- package/dist/chunks/{ripgrep-epbqh0vp.js → generate-pcty9z1k.js} +4 -4
- package/dist/chunks/{ripgrep-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-ehhyyyn7.js → generate-pzgm482x.js} +46 -46
- package/dist/chunks/{ripgrep-41b5jrt2.js → generate-q174ee3q.js} +9 -9
- package/dist/chunks/{ripgrep-zgd7st2n.js → generate-q18as39h.js} +29 -29
- package/dist/chunks/generate-q331f19b.js +257 -0
- package/dist/chunks/{ripgrep-cbrygq68.js → generate-q526re3s.js} +3 -3
- package/dist/chunks/{ripgrep-754mq792.js → generate-q9k672yb.js} +9 -9
- package/dist/chunks/{ripgrep-nfzcmjp8.js → generate-qaf4nrm9.js} +16 -16
- package/dist/chunks/{ripgrep-3a7jzk54.js → generate-qcxq8hjc.js} +24 -24
- package/dist/chunks/{ripgrep-577qsrq7.js → generate-qp6mrnfa.js} +7 -7
- package/dist/chunks/{ripgrep-qp7r0hxv.js → generate-qp7r0hxv.js} +1 -1
- package/dist/chunks/{ripgrep-tqf554py.js → generate-qsh779tg.js} +16 -16
- package/dist/chunks/{ripgrep-r0yr0wbs.js → generate-r0yr0wbs.js} +1 -1
- package/dist/chunks/{ripgrep-r542h3bh.js → generate-r542h3bh.js} +1 -1
- package/dist/chunks/{ripgrep-x3y1gccb.js → generate-raxq219f.js} +25 -25
- package/dist/chunks/{ripgrep-rb9dy4dg.js → generate-rb9dy4dg.js} +1 -1
- package/dist/chunks/{ripgrep-8r9nj4s8.js → generate-rcbjwvze.js} +4 -4
- package/dist/chunks/{ripgrep-9wzjb77v.js → generate-rfy1qsv0.js} +5 -5
- package/dist/chunks/{ripgrep-rt5dr6hb.js → generate-rt5dr6hb.js} +1 -1
- package/dist/chunks/{ripgrep-rw0vxzvv.js → generate-s7jh2bt2.js} +12 -12
- package/dist/chunks/{ripgrep-sa3fpqfw.js → generate-sa3fpqfw.js} +2 -2
- package/dist/chunks/{ripgrep-4wvca7dx.js → generate-spqbgcqv.js} +5 -5
- package/dist/chunks/{ripgrep-sqjzf8x2.js → generate-sqjzf8x2.js} +1 -1
- package/dist/chunks/{ripgrep-c9t2ty9q.js → generate-ssfehs1z.js} +4 -4
- package/dist/chunks/{ripgrep-svcy3p9a.js → generate-svcy3p9a.js} +1 -1
- package/dist/chunks/{ripgrep-szcgc7h4.js → generate-szcgc7h4.js} +2 -2
- package/dist/chunks/{ripgrep-67v8yagg.js → generate-t1fs0nta.js} +8 -8
- package/dist/chunks/{ripgrep-06ezgrzy.js → generate-t2hws329.js} +6 -6
- package/dist/chunks/{ripgrep-tczq8hjw.js → generate-tczq8hjw.js} +1 -1
- package/dist/chunks/{ripgrep-xjzq7hnt.js → generate-tgwbm25x.js} +13 -13
- package/dist/chunks/{ripgrep-qzm6q9ch.js → generate-tkcrbpkc.js} +6 -6
- package/dist/chunks/{ripgrep-twssxy5n.js → generate-twssxy5n.js} +2 -2
- package/dist/chunks/{ripgrep-v2r1d0zg.js → generate-v2r1d0zg.js} +1 -1
- package/dist/chunks/{ripgrep-km92jeaq.js → generate-v5ahc3ch.js} +15 -15
- package/dist/chunks/{ripgrep-b3aag47p.js → generate-v7bnf05s.js} +17 -17
- package/dist/chunks/{ripgrep-cgjret3e.js → generate-vcvg2s1w.js} +11 -11
- package/dist/chunks/{ripgrep-81pg0v03.js → generate-vdpapx9q.js} +13 -13
- package/dist/chunks/{ripgrep-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-gw22fdws.js → generate-vgx7atgj.js} +39 -39
- package/dist/chunks/{ripgrep-c2rtzjd7.js → generate-vyv0j8nn.js} +25 -25
- package/dist/chunks/{ripgrep-cy5ayqt4.js → generate-vzd7w2ek.js} +43 -43
- package/dist/chunks/{ripgrep-40za9wsf.js → generate-w2eysc6j.js} +9 -9
- package/dist/chunks/{ripgrep-h7d4rbrg.js → generate-w35wzz9x.js} +4 -4
- package/dist/chunks/{ripgrep-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-wyyb2rea.js → generate-w43zhwmv.js} +2 -2
- package/dist/chunks/{ripgrep-fv2q085q.js → generate-w8gkdedy.js} +11 -11
- package/dist/chunks/{ripgrep-76cb1hcw.js → generate-w8qtt4th.js} +4 -4
- package/dist/chunks/{ripgrep-51d35nkj.js → generate-wa8k00xj.js} +6 -6
- package/dist/chunks/{ripgrep-wakvkjy4.js → generate-wakvkjy4.js} +1 -1
- package/dist/chunks/{ripgrep-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-ap93h9h9.js → generate-wdccw9aa.js} +9 -9
- package/dist/chunks/{ripgrep-rrjn135q.js → generate-wfwbmxj9.js} +22 -22
- package/dist/chunks/{ripgrep-xsvyg0zg.js → generate-wfxkb6jf.js} +12 -12
- package/dist/chunks/{ripgrep-chtd0as3.js → generate-wncvwmyx.js} +73 -73
- package/dist/chunks/{ripgrep-wnhgecwx.js → generate-wnhgecwx.js} +1 -1
- package/dist/chunks/{ripgrep-kh5b5n0x.js → generate-wr0x8q8w.js} +11 -11
- package/dist/chunks/{ripgrep-w687dnns.js → generate-wr3re1en.js} +4 -4
- package/dist/chunks/{ripgrep-9mv4bqkt.js → generate-wresbwaf.js} +11 -11
- package/dist/chunks/{ripgrep-25841xge.js → generate-wwpqwb19.js} +33 -33
- package/dist/chunks/{ripgrep-3marnbwx.js → generate-x2jb7586.js} +20 -20
- package/dist/chunks/{ripgrep-h3tz4d10.js → generate-x8kf0qe2.js} +30 -30
- package/dist/chunks/{ripgrep-x2gs057w.js → generate-xgh8r5md.js} +19 -19
- package/dist/chunks/{ripgrep-ssky9yg5.js → generate-xjrcb2hz.js} +4 -4
- package/dist/chunks/{ripgrep-xt0z8zst.js → generate-xt0z8zst.js} +1 -1
- package/dist/chunks/{ripgrep-8haq8m5n.js → generate-y0nfsw3x.js} +25 -25
- package/dist/chunks/{ripgrep-6b33zqre.js → generate-y3pzht0c.js} +5 -5
- package/dist/chunks/{ripgrep-qkw2jr9b.js → generate-yara3q77.js} +2 -2
- package/dist/chunks/{ripgrep-yb20nhc3.js → generate-yb20nhc3.js} +1 -1
- package/dist/chunks/{ripgrep-w52ybf1s.js → generate-yrxdp6ww.js} +54 -54
- package/dist/chunks/{ripgrep-h0p593e3.js → generate-yw016jnw.js} +21 -21
- package/dist/chunks/{ripgrep-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-z38nccrw.js → generate-z38nccrw.js} +1 -1
- package/dist/chunks/{ripgrep-rqynnb9h.js → generate-z72vmst9.js} +14 -14
- package/dist/chunks/{ripgrep-bxe7n28z.js → generate-zavmbsdh.js} +8 -8
- package/dist/chunks/{ripgrep-zegc5h6d.js → generate-zbwtxs0r.js} +20 -20
- package/dist/chunks/{ripgrep-g3dtbvmz.js → generate-zcvy3frr.js} +12 -12
- package/dist/chunks/{ripgrep-y1eshr2q.js → generate-zcxysqg2.js} +13 -13
- package/dist/chunks/{ripgrep-zgkm4kzm.js → generate-zgkm4kzm.js} +3 -3
- package/dist/chunks/{ripgrep-zh7bbm8x.js → generate-zh7bbm8x.js} +2 -2
- package/dist/chunks/{ripgrep-vwvg46tm.js → generate-zmwx25fz.js} +2 -2
- package/dist/chunks/{ripgrep-9hd5kt3n.js → generate-zqy7k0qn.js} +7 -7
- package/dist/chunks/{ripgrep-9knspxm5.js → generate-zs3j1aq1.js} +18 -18
- package/dist/chunks/{ripgrep-bwsv21wr.js → generate-zs7h2624.js} +34 -34
- package/dist/chunks/{ripgrep-a3rq0v5y.js → generate-zskc75ww.js} +18 -18
- package/dist/chunks/{ripgrep-e5vtkg49.js → generate-zw4834mw.js} +26 -26
- package/dist/chunks/{ripgrep-qrg0trs5.js → generate-zxxmr6sq.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +91 -91
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +121 -121
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +96 -96
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +382 -382
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +232 -232
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -110
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +117 -117
- package/dist/git.js +11 -11
- 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 +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -373
- package/dist/instruction-discovery.js +90 -90
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +370 -370
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +115 -115
- package/dist/mcp/instructions.js +166 -166
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +143 -143
- 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 +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +225 -225
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -343
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- 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 +360 -360
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +6 -6
- 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 +230 -230
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +94 -94
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +162 -162
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- 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 +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +152 -152
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +190 -190
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +227 -227
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +135 -135
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +146 -146
- package/dist/snapshot.js +97 -97
- 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 +167 -167
- package/dist/tool/plugin/edit.js +150 -150
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +140 -140
- package/dist/tool/plugin/read.js +159 -159
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +145 -145
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +143 -143
- package/dist/tool/plugin/webfetch.js +147 -147
- package/dist/tool/plugin/websearch.js +147 -147
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +101 -101
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +96 -96
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/ripgrep-4hbcjkqy.js +0 -257
- package/dist/chunks/ripgrep-j1207za8.js +0 -26
- package/dist/chunks/ripgrep-jztn5z23.js +0 -18
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1jakw16s.js → generate-1jakw16s.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2bv980vf.js → generate-2bv980vf.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4m86bj6y.js → generate-4m86bj6y.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-5w3e23ze.js → generate-5w3e23ze.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-84wd9syh.js → generate-84wd9syh.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a058387c.js → generate-a058387c.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-beh6qq61.js → generate-beh6qq61.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cqv5kn06.js → generate-cqv5kn06.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fkpq3x5p.js → generate-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jwr30sdr.js → generate-jwr30sdr.js} +0 -0
- /package/dist/chunks/{ripgrep-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-m18g726c.js → generate-m18g726c.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-ncqqe42p.js → generate-ncqqe42p.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-p71gwv9c.js → generate-p71gwv9c.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service58
|
|
3
|
+
} from "./generate-vzd7w2ek.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID6,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service55
|
|
10
|
+
} from "./generate-y0nfsw3x.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./generate-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
Input: () =>
|
|
16
|
+
var exports_skill = {};
|
|
17
|
+
__export(exports_skill, {
|
|
18
|
+
Input: () => Input3,
|
|
19
19
|
Output: () => Output2,
|
|
20
|
-
Plugin: () =>
|
|
21
|
-
SkillTool: () =>
|
|
20
|
+
Plugin: () => Plugin4,
|
|
21
|
+
SkillTool: () => exports_skill,
|
|
22
22
|
description: () => description2,
|
|
23
|
-
name: () =>
|
|
23
|
+
name: () => name3,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
27
27
|
import { Effect, Schema } from "effect";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
id:
|
|
29
|
+
var name3 = "skill";
|
|
30
|
+
var Input3 = Schema.Struct({
|
|
31
|
+
id: ID6.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
33
|
var Output2 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
@@ -43,17 +43,17 @@ var description2 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin4 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service55;
|
|
51
|
+
const permission = yield* Service58;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
|
-
name:
|
|
53
|
+
name: name3,
|
|
54
54
|
options: { codemode: false },
|
|
55
55
|
description: description2,
|
|
56
|
-
input:
|
|
56
|
+
input: Input3,
|
|
57
57
|
output: Output2,
|
|
58
58
|
execute: (input, context) => Effect.gen(function* () {
|
|
59
59
|
const skill = yield* skills.get(input.id);
|
|
@@ -61,7 +61,7 @@ var Plugin37 = {
|
|
|
61
61
|
return yield* unableToLoad(input.id);
|
|
62
62
|
return yield* Effect.gen(function* () {
|
|
63
63
|
yield* permission.assert({
|
|
64
|
-
action:
|
|
64
|
+
action: name3,
|
|
65
65
|
resources: [skill.id],
|
|
66
66
|
save: [skill.id],
|
|
67
67
|
sessionID: context.sessionID,
|
|
@@ -79,4 +79,4 @@ var Plugin37 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { name3, Input3, Output2, description2, toModelOutput2, Plugin4, exports_skill };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./generate-h5j7qrbp.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-2xh3b742.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
11
11
|
import { Form } from "@opencode/schema/form";
|
|
12
|
-
var providerID =
|
|
12
|
+
var providerID = ID13.make("cloudflare-workers-ai");
|
|
13
13
|
var CloudflareWorkersAIPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-my4zabxr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -20,7 +20,7 @@ __export(exports_error, {
|
|
|
20
20
|
InvalidListCursorError: () => InvalidListCursorError2,
|
|
21
21
|
MessageDecodeError: () => MessageDecodeError2,
|
|
22
22
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError8,
|
|
24
24
|
PromptConflictError: () => PromptConflictError2,
|
|
25
25
|
SessionErrors: () => exports_error,
|
|
26
26
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError8 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError8, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
server2,
|
|
3
3
|
headers2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-kt3bjfbg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
ID14,
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./generate-q18as39h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/usage-limits.ts
|
|
15
15
|
var exports_usage_limits = {};
|
|
16
16
|
__export(exports_usage_limits, {
|
|
17
|
-
Info: () =>
|
|
18
|
-
Service: () =>
|
|
19
|
-
UnavailableError: () =>
|
|
17
|
+
Info: () => Info6,
|
|
18
|
+
Service: () => Service25,
|
|
19
|
+
UnavailableError: () => UnavailableError4,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
21
|
+
layer: () => layer13,
|
|
22
|
+
node: () => node28
|
|
23
23
|
});
|
|
24
24
|
import { Model } from "@opencode/schema/model";
|
|
25
25
|
import { Money } from "@opencode/schema/money";
|
|
@@ -29,23 +29,23 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
29
29
|
import { httpClient } from "@opencode/util/effect/app-node-platform";
|
|
30
30
|
import { Context, Duration, Effect, Layer, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var Info6 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError4 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service25 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer13 = Layer.effect(Service25, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service80;
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
44
44
|
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
|
-
const connection = yield* integrations.connection.active(
|
|
45
|
+
const connection = yield* integrations.connection.active(ID14.make("opencode"));
|
|
46
46
|
if (!connection)
|
|
47
47
|
return;
|
|
48
|
-
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new
|
|
48
|
+
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError4({ message: error.message })));
|
|
49
49
|
if (!credential || credential.type === "external")
|
|
50
50
|
return;
|
|
51
51
|
const workspaceID = credential.metadata?.orgID;
|
|
@@ -54,7 +54,7 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
54
54
|
const server = server2(credential);
|
|
55
55
|
const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
|
|
56
56
|
duration: Duration.seconds(15),
|
|
57
|
-
orElse: () => Effect.fail(new
|
|
57
|
+
orElse: () => Effect.fail(new UnavailableError4({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -66,12 +66,12 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
66
66
|
budgets
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service25.of({ get });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
72
|
-
service:
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
71
|
+
var node28 = makeLocationNode({
|
|
72
|
+
service: Service25,
|
|
73
|
+
layer: layer13,
|
|
74
|
+
deps: [node84, httpClient]
|
|
75
75
|
});
|
|
76
76
|
var ConsoleBudget = Schema.Struct({
|
|
77
77
|
ruleID: Schema.String,
|
|
@@ -117,17 +117,17 @@ function readBudgets(http, server, credential) {
|
|
|
117
117
|
picked: budget.picked,
|
|
118
118
|
shared: budget.shared,
|
|
119
119
|
resetsAt: budget.resetsAt.getTime()
|
|
120
|
-
}))))), Effect.scoped, Effect.mapError((error) => new
|
|
120
|
+
}))))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
|
|
121
121
|
}
|
|
122
122
|
function readGo(http, server, credential, workspaceID) {
|
|
123
123
|
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
|
|
124
124
|
rolling: meter(body.usage.rolling),
|
|
125
125
|
weekly: meter(body.usage.weekly),
|
|
126
126
|
monthly: meter(body.usage.monthly)
|
|
127
|
-
})))), Effect.scoped, Effect.mapError((error) => new
|
|
127
|
+
})))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
|
|
128
128
|
}
|
|
129
129
|
function meter(value) {
|
|
130
130
|
return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export {
|
|
133
|
+
export { Info6, UnavailableError4, Service25, layer13, node28, exports_usage_limits };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-61ennm6n.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service86
|
|
6
|
+
} from "./generate-qsh779tg.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./generate-5zch7wr3.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./generate-q18as39h.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service79
|
|
20
|
+
} from "./generate-h5j7qrbp.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID11
|
|
23
|
+
} from "./generate-zs7h2624.js";
|
|
24
24
|
import {
|
|
25
25
|
load4,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./generate-8essger0.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-p1vte9h6.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID9
|
|
33
|
+
} from "./generate-ksdhek8b.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./generate-3nnrz6f6.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { isRecord } from "@opencode/util/record";
|
|
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
66
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
67
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
68
68
|
var oauth = (app) => ({
|
|
69
|
-
integrationID:
|
|
69
|
+
integrationID: ID14.make("github-copilot"),
|
|
70
70
|
method: {
|
|
71
71
|
id: methodID,
|
|
72
72
|
type: "oauth",
|
|
@@ -164,8 +164,8 @@ var oauth = (app) => ({
|
|
|
164
164
|
var GithubCopilotPlugin2 = define({
|
|
165
165
|
id: "opencode.provider.github.copilot",
|
|
166
166
|
effect: Effect.fn(function* (ctx) {
|
|
167
|
-
const providers = yield*
|
|
168
|
-
const bus = yield*
|
|
167
|
+
const providers = yield* Service79;
|
|
168
|
+
const bus = yield* Service86;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
const loaded = {};
|
|
171
171
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -181,7 +181,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
184
|
-
const provider = yield* providers.get(
|
|
184
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
185
185
|
const remote = yield* Effect.tryPromise({
|
|
186
186
|
try: () => load4(url, {
|
|
187
187
|
...provider?.headers,
|
|
@@ -203,7 +203,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
203
203
|
editor.method.update(oauth(ctx.app));
|
|
204
204
|
});
|
|
205
205
|
yield* ctx.provider.transform((evt) => {
|
|
206
|
-
const item = evt.get(
|
|
206
|
+
const item = evt.get(ID13.githubCopilot);
|
|
207
207
|
if (!item)
|
|
208
208
|
return;
|
|
209
209
|
if (loaded.models) {
|
|
@@ -231,17 +231,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
yield* ctx.model.transform((models) => {
|
|
234
|
-
if (models.get(
|
|
235
|
-
models.update(
|
|
234
|
+
if (models.get(ID13.githubCopilot, ID11.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID13.githubCopilot, ID11.make("gpt-5-chat-latest"), (model) => {
|
|
236
236
|
model.enabled = false;
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
243
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
247
247
|
return;
|
|
@@ -250,7 +250,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
250
250
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
251
251
|
}));
|
|
252
252
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
254
254
|
return;
|
|
255
255
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
256
256
|
return;
|
|
@@ -260,13 +260,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
260
260
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
261
261
|
if (interaction !== "conversation-agent")
|
|
262
262
|
evt.headers["x-initiator"] = "agent";
|
|
263
|
-
}), { providerID:
|
|
263
|
+
}), { providerID: ID13.githubCopilot });
|
|
264
264
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
265
|
-
if (evt.model.providerID !==
|
|
265
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
266
266
|
return;
|
|
267
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
268
268
|
return;
|
|
269
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
269
|
+
const agent = yield* ctx.agent.get({ agentID: ID9.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
270
270
|
return;
|
|
271
271
|
}));
|
|
272
272
|
if (agent?.data.model)
|
|
@@ -277,9 +277,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
277
277
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
278
278
|
return;
|
|
279
279
|
}));
|
|
280
|
-
}), { providerID:
|
|
280
|
+
}), { providerID: ID13.githubCopilot });
|
|
281
281
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
282
|
-
if (evt.model.providerID !==
|
|
282
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
283
283
|
return;
|
|
284
284
|
const token = evt.request.headers.get("x-api-key");
|
|
285
285
|
if (!token)
|
|
@@ -287,9 +287,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
287
287
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
288
288
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
289
289
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
290
|
-
}), { providerID:
|
|
290
|
+
}), { providerID: ID13.githubCopilot });
|
|
291
291
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
292
|
-
if (evt.model.providerID !==
|
|
292
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
293
293
|
return;
|
|
294
294
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
295
295
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/repository.ts
|
|
6
6
|
var exports_repository = {};
|
|
@@ -13,7 +13,7 @@ __export(exports_repository, {
|
|
|
13
13
|
cachePath: () => cachePath2,
|
|
14
14
|
isFile: () => isFile2,
|
|
15
15
|
isRemote: () => isRemote2,
|
|
16
|
-
parse: () =>
|
|
16
|
+
parse: () => parse4,
|
|
17
17
|
parseRemote: () => parseRemote2,
|
|
18
18
|
same: () => same2,
|
|
19
19
|
validateBranch: () => validateBranch3
|
|
@@ -39,7 +39,7 @@ class InvalidBranchError3 extends Schema.TaggedError()("RepositoryInvalidBranchE
|
|
|
39
39
|
message: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function parse4(input) {
|
|
43
43
|
const cleaned = normalizeInput(input);
|
|
44
44
|
if (!cleaned)
|
|
45
45
|
return;
|
|
@@ -72,7 +72,7 @@ function parse5(input) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
function parseRemote2(input) {
|
|
75
|
-
const reference =
|
|
75
|
+
const reference = parse4(input);
|
|
76
76
|
if (!reference) {
|
|
77
77
|
throw new InvalidReferenceError2({
|
|
78
78
|
repository: input,
|
|
@@ -172,4 +172,4 @@ function buildFile(input) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3,
|
|
175
|
+
export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse4, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service81
|
|
3
|
+
} from "./generate-aq5yna8t.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service58
|
|
6
|
+
} from "./generate-vzd7w2ek.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input15,
|
|
16
16
|
Output: () => Output10,
|
|
17
17
|
Plugin: () => Plugin51,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name15,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name15 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input15 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output10 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin51 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service81;
|
|
57
|
+
const permission = yield* Service58;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name15,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input15,
|
|
63
63
|
output: Output10,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { name15, description6, Input15, Output10, CancelledError2, toModelContent7, Plugin51, exports_question };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service87,
|
|
3
|
+
node91
|
|
4
|
+
} from "./generate-wresbwaf.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
|
-
ID: () =>
|
|
16
|
+
ID: () => ID8,
|
|
17
17
|
Info: () => Info11,
|
|
18
|
-
NotFoundError: () =>
|
|
18
|
+
NotFoundError: () => NotFoundError7,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service59,
|
|
21
|
+
node: () => node61
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { isSqlError } from "effect/sql/SqlError";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
28
|
+
var ID8 = PermissionSaved.ID;
|
|
29
29
|
var Info11 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
32
|
-
id:
|
|
31
|
+
class NotFoundError7 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
|
+
id: ID8
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
37
|
-
id:
|
|
37
|
+
id: ID8,
|
|
38
38
|
action: Schema.String,
|
|
39
39
|
resource: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service59 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const db = (yield*
|
|
45
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
46
|
+
const db = (yield* Service87).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
49
49
|
return rows.map(info);
|
|
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
52
52
|
if (!input.resources.length)
|
|
53
53
|
return;
|
|
54
54
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
55
|
-
id:
|
|
55
|
+
id: ID8.create(),
|
|
56
56
|
project_id: input.projectID,
|
|
57
57
|
action: input.action,
|
|
58
58
|
resource
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
61
61
|
const update = Effect.fn("PermissionSaved.update")(function* (input) {
|
|
62
62
|
const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
|
|
63
63
|
if (!current)
|
|
64
|
-
return yield* new
|
|
64
|
+
return yield* new NotFoundError7({ id: input.id });
|
|
65
65
|
const action = input.action ?? current.action;
|
|
66
66
|
const resource = input.resource ?? current.resource;
|
|
67
67
|
const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
|
|
68
68
|
if (!updated)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError7({ id: input.id });
|
|
70
70
|
return info(updated);
|
|
71
71
|
});
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service59.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node61 = makeGlobalNode({ service: Service59, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { ID8, Info11, NotFoundError7, ConflictError2, Service59, node61, exports_saved };
|