@opencode/core 0.0.0-dev-480 → 0.0.0-dev-481
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +73 -73
- package/dist/aisdk-native.js +79 -79
- package/dist/aisdk.js +84 -84
- package/dist/app.js +9 -9
- package/dist/artifact.js +196 -195
- package/dist/bus.js +62 -62
- package/dist/chunks/{app-2w814gvs.js → app-0asq6p20.js} +8 -8
- package/dist/chunks/{app-pdh4dm2s.js → app-0qdw55z7.js} +10 -10
- package/dist/chunks/{app-s320htan.js → app-0z1kk8n9.js} +7 -7
- package/dist/chunks/{app-k0q7t0cq.js → app-11pmnyyq.js} +12 -12
- package/dist/chunks/{app-rmeffpf9.js → app-11v4hymh.js} +9 -9
- package/dist/chunks/{app-hkmsr0ex.js → app-13aj6xfg.js} +31 -31
- package/dist/chunks/{app-x150ncgg.js → app-19gkfjnk.js} +1 -1
- package/dist/chunks/{app-e4zeypx4.js → app-19w73m0f.js} +9 -9
- package/dist/chunks/{app-qtf35215.js → app-1njtx4es.js} +3 -3
- package/dist/chunks/{app-94e33dpz.js → app-1vbrkdbs.js} +1 -1
- package/dist/chunks/{app-dghd1q51.js → app-20mc4p3b.js} +10 -10
- package/dist/chunks/{app-bjzy61a4.js → app-23b5bwtt.js} +3 -3
- package/dist/chunks/{app-0892kzf1.js → app-24sxtq8k.js} +6 -6
- package/dist/chunks/{app-jjvvtnfs.js → app-26wfx3k0.js} +3 -3
- package/dist/chunks/{app-1ep2p91f.js → app-27w5k9zf.js} +1 -1
- package/dist/chunks/{app-1kh27kfm.js → app-28ma8gfj.js} +148 -148
- package/dist/chunks/{app-5neq2awb.js → app-2am13szv.js} +6 -6
- package/dist/chunks/{app-sbz71ybr.js → app-2cdjxzfg.js} +2 -2
- package/dist/chunks/{app-3vea0fa5.js → app-2db5e21y.js} +5 -5
- package/dist/chunks/{app-eh2tgqqb.js → app-2emepb4b.js} +30 -30
- package/dist/chunks/{app-2x55c7c5.js → app-2gd46ww5.js} +33 -33
- package/dist/chunks/{app-0ahs07zn.js → app-2kj7f5bg.js} +6 -6
- package/dist/chunks/{app-14nqs3ap.js → app-2n05qsag.js} +1 -1
- package/dist/chunks/{app-vcr7qvjv.js → app-2zydp9t3.js} +3 -3
- package/dist/chunks/{app-ywnf2d1v.js → app-33fs0phy.js} +1 -1
- package/dist/chunks/{app-yadjp1dh.js → app-33vee48d.js} +36 -36
- package/dist/chunks/{app-m3pwqbwq.js → app-3ab9az2f.js} +9 -9
- package/dist/chunks/{app-ayjs7tqn.js → app-3cbjf1nt.js} +1 -1
- package/dist/chunks/{app-8ph5tyb9.js → app-3gqs30ps.js} +17 -17
- package/dist/chunks/{app-35tprrwd.js → app-3jqetb86.js} +19 -19
- package/dist/chunks/{app-wxej1nzg.js → app-3k6see7r.js} +17 -17
- package/dist/chunks/{app-4z1mvv1x.js → app-3nmxyean.js} +4 -4
- package/dist/chunks/{app-yg9m2vv3.js → app-3xg6wq2g.js} +12 -12
- package/dist/chunks/{app-4n2b8756.js → app-43ynt425.js} +30 -30
- package/dist/chunks/{app-szxd9z8c.js → app-45a1n0rj.js} +19 -19
- package/dist/chunks/{app-nw690v4j.js → app-4am3819x.js} +23 -23
- package/dist/chunks/{app-56je3jta.js → app-4medx3yc.js} +7 -7
- package/dist/chunks/{app-fp0vcpt3.js → app-4pc43vs5.js} +3 -3
- package/dist/chunks/{app-323cmkwk.js → app-57zkss3n.js} +12 -12
- package/dist/chunks/{app-6tzaetms.js → app-5af0c4bz.js} +10 -10
- package/dist/chunks/{app-kevqfsd3.js → app-5ftq3225.js} +3 -3
- package/dist/chunks/{app-y6ptae2a.js → app-5fz99wkv.js} +6 -6
- package/dist/chunks/{app-dv69vrjt.js → app-5tgs095n.js} +24 -24
- package/dist/chunks/{app-f3r7ra5x.js → app-5tqhmh96.js} +6 -6
- package/dist/chunks/{app-2bxnm4ec.js → app-5xfk76mk.js} +73 -73
- package/dist/chunks/{app-6xxb6mpe.js → app-5z1m43a3.js} +2 -2
- package/dist/chunks/{app-35ntjcgy.js → app-62beg8mw.js} +13 -13
- package/dist/chunks/{app-33vtbrd4.js → app-62fftzdq.js} +13 -13
- package/dist/chunks/{app-rqp2fa0h.js → app-6m70gvhx.js} +9 -9
- package/dist/chunks/{app-hzg4n0pv.js → app-6mzrbse0.js} +32 -32
- package/dist/chunks/{app-5s0vqhb5.js → app-6s3jfmgb.js} +10 -10
- package/dist/chunks/{app-hhc0852x.js → app-6tvaezwq.js} +4 -4
- package/dist/chunks/{app-2epj4sa1.js → app-6xgrzf3v.js} +4 -4
- package/dist/chunks/{app-cd9gcdpg.js → app-71jkfa4r.js} +3 -3
- package/dist/chunks/{app-25p1apms.js → app-722vxske.js} +7 -7
- package/dist/chunks/{app-xs0nknjh.js → app-750t9xmf.js} +14 -14
- package/dist/chunks/{app-690aq4ev.js → app-76ggf0cd.js} +9 -9
- package/dist/chunks/{app-wz104dr9.js → app-7ey693cm.js} +5 -5
- package/dist/chunks/{app-thtdv5s3.js → app-7ncdpmyj.js} +9 -9
- package/dist/chunks/{app-8sxe6kv8.js → app-7qrph824.js} +1 -1
- package/dist/chunks/{app-sk38pgfv.js → app-7t9chrae.js} +13 -13
- package/dist/chunks/{app-bnqpswrr.js → app-7zggx0n1.js} +6 -6
- package/dist/chunks/{app-69r3s0z2.js → app-82fxv0dw.js} +2 -2
- package/dist/chunks/{app-8e6rjbvw.js → app-847k13tf.js} +9 -9
- package/dist/chunks/{app-ndvyrhxt.js → app-87ef3s8z.js} +28 -28
- package/dist/chunks/{app-4d2dtj2f.js → app-8cg7mtm3.js} +3 -3
- package/dist/chunks/{app-7yfjyeqk.js → app-8dxpscf2.js} +22 -22
- package/dist/chunks/{app-bd76xnxh.js → app-8fzjfj5n.js} +2 -2
- package/dist/chunks/{app-2v1211kw.js → app-8g403b55.js} +21 -21
- package/dist/chunks/{app-9st9tfe3.js → app-8jw7n1ah.js} +8 -8
- package/dist/chunks/{app-n5jj43cg.js → app-8px3ddj4.js} +4 -4
- package/dist/chunks/{app-q2c48w2f.js → app-8qbdxarg.js} +22 -22
- package/dist/chunks/{app-hxhjnsvc.js → app-8sb7jtsn.js} +8 -8
- package/dist/chunks/{app-mb7mbhnz.js → app-8z6m94af.js} +1 -1
- package/dist/chunks/{app-rhprh2s9.js → app-90pvm6py.js} +9 -9
- package/dist/chunks/{app-6mtyq6z7.js → app-93n7n3x8.js} +13 -13
- package/dist/chunks/{app-cxab28sr.js → app-93xmyh8q.js} +3 -3
- package/dist/chunks/{app-59jk283z.js → app-99a9crdx.js} +9 -9
- package/dist/chunks/{app-32gn4798.js → app-9av120cb.js} +14 -14
- package/dist/chunks/{app-88ff6j75.js → app-9c645kx6.js} +1 -1
- package/dist/chunks/{app-brjmxn14.js → app-9cgaya5j.js} +9 -9
- package/dist/chunks/{app-xcqpvrxn.js → app-9hqxgecf.js} +16 -16
- package/dist/chunks/app-9kkkhnvp.js +92 -0
- package/dist/chunks/{app-035wadpx.js → app-9rqhy0gk.js} +6 -6
- package/dist/chunks/{app-z06h1gcq.js → app-9vajtycf.js} +8 -8
- package/dist/chunks/{app-wq0rd6cr.js → app-9wje21dv.js} +9 -9
- package/dist/chunks/{app-889wyzdh.js → app-a1dwv91k.js} +6 -6
- package/dist/chunks/{app-znjfpv5m.js → app-a5fx33f2.js} +3 -3
- package/dist/chunks/{app-4bwthz3m.js → app-ae65egk4.js} +5 -5
- package/dist/chunks/{app-vegpmsma.js → app-af8dd66m.js} +1 -1
- package/dist/chunks/{app-nfqr52w1.js → app-afwnmwkf.js} +38 -38
- package/dist/chunks/{app-fn6ry6x3.js → app-b37ymw5d.js} +13 -13
- package/dist/chunks/{app-vx9d4jfk.js → app-b3hbd1md.js} +11 -11
- package/dist/chunks/{app-9a2vwae8.js → app-b6s5ycsj.js} +8 -8
- package/dist/chunks/{app-htwgbsdd.js → app-bfmts8p1.js} +5 -5
- package/dist/chunks/{app-bsk7mddt.js → app-bg9cnzs0.js} +21 -21
- package/dist/chunks/{app-jkdcm5hg.js → app-bhfd478d.js} +3 -3
- package/dist/chunks/{app-bydc9kjr.js → app-bmgv8h6w.js} +10 -10
- package/dist/chunks/{app-xfzj7gv9.js → app-bprvspg8.js} +10 -10
- package/dist/chunks/{app-vgcbppz4.js → app-catycsjd.js} +9 -9
- package/dist/chunks/{app-x8fqtcqj.js → app-cfg1rk1c.js} +24 -24
- package/dist/chunks/{app-1ph3b4tr.js → app-ck4dpv2q.js} +29 -29
- package/dist/chunks/app-cpdsp3va.js +16 -0
- package/dist/chunks/{app-ff9qqsat.js → app-cpg2sjfp.js} +20 -20
- package/dist/chunks/{app-2zepk20t.js → app-czy8szj2.js} +342 -342
- package/dist/chunks/{app-47epqbk9.js → app-d4by6qpt.js} +9 -9
- package/dist/chunks/{app-hsad75c7.js → app-dbf6dzq1.js} +7 -7
- package/dist/chunks/{app-egb0tdpa.js → app-dgmx8s6q.js} +24 -24
- package/dist/chunks/{app-dgyn6wwr.js → app-dv2k300y.js} +20 -20
- package/dist/chunks/{app-j35vrh5w.js → app-dztesnfv.js} +20 -20
- package/dist/chunks/{app-kw5k2th0.js → app-dzws43fd.js} +9 -9
- package/dist/chunks/{app-ewa1ec51.js → app-ead32ctt.js} +2 -2
- package/dist/chunks/{app-4t66x4kf.js → app-erf9fzfw.js} +16 -16
- package/dist/chunks/{app-sjpm2wtc.js → app-essehzfx.js} +11 -11
- package/dist/chunks/{app-mvnwdwmw.js → app-f1y0a070.js} +1 -1
- package/dist/chunks/{app-pkzaafh3.js → app-f5hyk6e9.js} +22 -22
- package/dist/chunks/{app-5fanhgfz.js → app-f851hg2k.js} +19 -19
- package/dist/chunks/{app-bjx4a53x.js → app-fdtp6zbm.js} +8 -8
- package/dist/chunks/{app-wyzw1feq.js → app-fefx1jcc.js} +3 -3
- package/dist/chunks/{app-g4v74gy6.js → app-fhwn87jp.js} +7 -7
- package/dist/chunks/{app-4g4z4142.js → app-fk0rpprw.js} +11 -11
- package/dist/chunks/{app-yydqqga9.js → app-g1e2r5aa.js} +3 -3
- package/dist/chunks/{app-xcygg6mt.js → app-g6p4g6mv.js} +21 -21
- package/dist/chunks/{app-h9kyje9x.js → app-g7mcj942.js} +38 -38
- package/dist/chunks/{app-xk9149mm.js → app-g8dgshm1.js} +7 -7
- package/dist/chunks/{app-0x8q64rn.js → app-ge0ek74f.js} +28 -28
- package/dist/chunks/{app-mcgq8fg0.js → app-ggqsw24s.js} +14 -14
- package/dist/chunks/{app-f6ss1wp3.js → app-ghkxye21.js} +30 -30
- package/dist/chunks/{app-vsgb1f4e.js → app-ghqvcpnh.js} +12 -12
- package/dist/chunks/{app-ez7r46kf.js → app-gk56h2xy.js} +13 -13
- package/dist/chunks/{app-xzqn2rhm.js → app-gkqc8wt9.js} +8 -8
- package/dist/chunks/{app-vkq1ae39.js → app-gtse556r.js} +13 -13
- package/dist/chunks/{app-wtm34wvt.js → app-gwz0wrrb.js} +12 -12
- package/dist/chunks/{app-hbe2vhx0.js → app-h0xhqjby.js} +2 -2
- package/dist/chunks/{app-3b53hm86.js → app-h2ff2q30.js} +7 -7
- package/dist/chunks/{app-nyc4jwvb.js → app-h9hc66h4.js} +3 -3
- package/dist/chunks/{app-jqc5eb3q.js → app-hahgtam6.js} +40 -40
- package/dist/chunks/{app-kev0rknr.js → app-hetycfaa.js} +33 -33
- package/dist/chunks/{app-x9nz0k3p.js → app-hfzv1g6g.js} +31 -31
- package/dist/chunks/{app-3xvfm8m4.js → app-hxjfpgt3.js} +5 -5
- package/dist/chunks/{app-7tpyp9vw.js → app-hy8c1z76.js} +7 -7
- package/dist/chunks/{app-ep1fdtvb.js → app-hz7a74th.js} +28 -28
- package/dist/chunks/{app-wa3m3n7k.js → app-j06ysx93.js} +12 -12
- package/dist/chunks/{app-0nm9xmph.js → app-j6z15evp.js} +7 -7
- package/dist/chunks/{app-wws03c5r.js → app-jhwp234h.js} +4 -4
- package/dist/chunks/{app-psaq7w5p.js → app-jk9ctt2d.js} +26 -26
- package/dist/chunks/{app-77srnqy4.js → app-jmx08cdn.js} +13 -13
- package/dist/chunks/{app-cbf5n1y2.js → app-js4hvacx.js} +20 -20
- package/dist/chunks/{app-01sxc1c2.js → app-jy1f4pdx.js} +4 -4
- package/dist/chunks/{app-6c691zda.js → app-jy6h2y3j.js} +13 -13
- package/dist/chunks/{app-6rb0kxcw.js → app-jyntrgsj.js} +7 -7
- package/dist/chunks/{app-kse4pj6t.js → app-k44x9x7y.js} +144 -167
- package/dist/chunks/{app-rty8vnq8.js → app-k483zyxw.js} +1 -1
- package/dist/chunks/{app-2z05z86t.js → app-k8bdr0d0.js} +19 -19
- package/dist/chunks/{app-ck0a13vj.js → app-ka1mq67y.js} +12 -12
- package/dist/chunks/{app-b8rax9gc.js → app-kbsfb6et.js} +1 -1
- package/dist/chunks/{app-qr8hn1sn.js → app-kfd17r3s.js} +6 -6
- package/dist/chunks/{app-zvqwea82.js → app-kpfh6gak.js} +19 -19
- package/dist/chunks/{app-37k6b6nc.js → app-kse531ts.js} +4 -4
- package/dist/chunks/{app-tj6g9xqy.js → app-kz92qt34.js} +7 -7
- package/dist/chunks/{app-gj6zt7jr.js → app-me1613fs.js} +159 -159
- package/dist/chunks/{app-4nyxr47m.js → app-mgvq6ne3.js} +21 -21
- package/dist/chunks/{app-jm0x7179.js → app-mj1xqs5a.js} +38 -38
- package/dist/chunks/{app-f9px2wq5.js → app-mxhv6w83.js} +7 -7
- package/dist/chunks/{app-hf0syw03.js → app-n17wdgkv.js} +21 -21
- package/dist/chunks/{app-sx2sqvt0.js → app-n3bkb5q1.js} +6 -6
- package/dist/chunks/{app-9de5wjbr.js → app-n4k1ey5b.js} +2 -2
- package/dist/chunks/{app-pbtq0xh8.js → app-n8ahjr4j.js} +14 -14
- package/dist/chunks/{app-69qb4gaq.js → app-navg70v8.js} +10 -10
- package/dist/chunks/{app-6r3rh7r1.js → app-ndpzex15.js} +9 -9
- package/dist/chunks/{app-s643ebaf.js → app-np51zkq5.js} +18 -18
- package/dist/chunks/{app-dcp06de2.js → app-nr7cqb9h.js} +6 -6
- package/dist/chunks/{app-mt6vzf6s.js → app-nv1v3ewx.js} +20 -20
- package/dist/chunks/{app-kkw24wtk.js → app-nv2s17h7.js} +40 -40
- package/dist/chunks/{app-wegkxhrn.js → app-nx4vzyjd.js} +1 -1
- package/dist/chunks/{app-fzkjf62m.js → app-p5w1jxhv.js} +14 -14
- package/dist/chunks/{app-z4zjbjyv.js → app-pq46x9ny.js} +8 -8
- package/dist/chunks/{app-p8f4bkd9.js → app-prha7nnz.js} +5 -5
- package/dist/chunks/{app-fg9p65nk.js → app-prq7xxp2.js} +4 -4
- package/dist/chunks/{app-zeb1kz6r.js → app-prwg2e47.js} +3 -3
- package/dist/chunks/{app-e8myj6jb.js → app-psbj456r.js} +9 -9
- package/dist/chunks/{app-phmgg4nn.js → app-pyz2pf6w.js} +5 -5
- package/dist/chunks/{app-jn1pk9qr.js → app-q391cchf.js} +25 -25
- package/dist/chunks/{app-gjghz9g4.js → app-q7zpym3n.js} +1 -1
- package/dist/chunks/{app-ba5rcjwv.js → app-q94qz23g.js} +37 -37
- package/dist/chunks/{app-bnnprwfj.js → app-q9csfq1d.js} +13 -13
- package/dist/chunks/{app-e6fqcwsk.js → app-q9qzw55y.js} +5 -5
- package/dist/chunks/{app-vhdveqxn.js → app-qczyd0hm.js} +19 -19
- package/dist/chunks/{app-f0sjhv8k.js → app-qfwh95mr.js} +6 -6
- package/dist/chunks/{app-k46dd5bg.js → app-qfz6bxfd.js} +3 -3
- package/dist/chunks/{app-8s9gs4xt.js → app-qgk9wbmt.js} +15 -15
- package/dist/chunks/{app-2dkjcnxp.js → app-qmh7vbk2.js} +4 -4
- package/dist/chunks/{app-ct922x92.js → app-qnt4ewtn.js} +4 -4
- package/dist/chunks/{app-st0cffhr.js → app-qpe5m7rp.js} +9 -9
- package/dist/chunks/{app-bvgyq84r.js → app-qrkmc1kp.js} +9 -9
- package/dist/chunks/{app-7q7rxd99.js → app-r17y8811.js} +26 -26
- package/dist/chunks/{app-rmv7fhs4.js → app-r1fnsf7p.js} +3 -3
- package/dist/chunks/{app-ven1czbf.js → app-r1n0s1ac.js} +14 -14
- package/dist/chunks/{app-390xskpw.js → app-rchz5kjx.js} +3 -3
- package/dist/chunks/{app-esqtx2bv.js → app-rgzbxrk5.js} +6 -6
- package/dist/chunks/{app-r3am8bxq.js → app-rhg1wx68.js} +25 -25
- package/dist/chunks/{app-5zpqhmp2.js → app-rnbnz8pk.js} +4 -4
- package/dist/chunks/{app-qmkmbszb.js → app-rz032gsk.js} +13 -13
- package/dist/chunks/{app-79nnga0g.js → app-s55t9t0j.js} +45 -45
- package/dist/chunks/{app-yd5ts3vm.js → app-s5hy498g.js} +13 -13
- package/dist/chunks/{app-29znb8a3.js → app-s72x33aq.js} +17 -17
- package/dist/chunks/{app-deze0pbg.js → app-s7s2w16j.js} +34 -34
- package/dist/chunks/{app-29w6bfzb.js → app-sch7yt7r.js} +17 -17
- package/dist/chunks/{app-wbqm5j27.js → app-sgfxw3p2.js} +72 -72
- package/dist/chunks/{app-4aqcs7cm.js → app-sj4xjt7y.js} +22 -22
- package/dist/chunks/{app-1yp5yc7j.js → app-sr8x3p00.js} +16 -16
- package/dist/chunks/{app-3y6ztehy.js → app-t0zfenmz.js} +23 -23
- package/dist/chunks/{app-w3c3s7r0.js → app-t4f7c3ht.js} +15 -15
- package/dist/chunks/{app-729wf2sv.js → app-t7wtafck.js} +10 -10
- package/dist/chunks/{app-q94xbs3k.js → app-tkp5adq0.js} +7 -7
- package/dist/chunks/{app-tx9th86b.js → app-ts7bpkbv.js} +1 -1
- package/dist/chunks/{app-mf63ygpr.js → app-v0t96s7a.js} +3 -3
- package/dist/chunks/{app-0fzs4qek.js → app-v7zvx5ny.js} +30 -30
- package/dist/chunks/{app-1yq9hg58.js → app-v9ez2kgh.js} +4 -4
- package/dist/chunks/{app-t6fvvd0q.js → app-vf5rezts.js} +8 -8
- package/dist/chunks/{app-qh5g3qaw.js → app-vt4r9rmy.js} +7 -7
- package/dist/chunks/{app-wcjy6v7w.js → app-vyzwj7hv.js} +7 -7
- package/dist/chunks/{app-4fcdzvcv.js → app-w0gbs4kg.js} +27 -27
- package/dist/chunks/{app-j4re26mb.js → app-w6adzdws.js} +81 -81
- package/dist/chunks/{app-k9mev5ma.js → app-wbqzfeen.js} +14 -14
- package/dist/chunks/{app-1ccesh34.js → app-wd6ygds7.js} +1 -1
- package/dist/chunks/{app-jf43mb4q.js → app-weahyj5x.js} +3 -3
- package/dist/chunks/{app-48c4cf2k.js → app-wf5k0dcb.js} +29 -29
- package/dist/chunks/{app-r17fbvme.js → app-wfs84ra6.js} +3 -3
- package/dist/chunks/{app-xjbsd7zy.js → app-whhbv2ev.js} +7 -7
- package/dist/chunks/{app-sj49106k.js → app-whq4nd4h.js} +8 -8
- package/dist/chunks/{app-zdkp82n7.js → app-wjnwerxx.js} +6 -6
- package/dist/chunks/{app-ac642rmg.js → app-wq1xd5na.js} +9 -9
- package/dist/chunks/{app-czwy3yzx.js → app-wvr8xscb.js} +6 -6
- package/dist/chunks/{app-hny7yx1q.js → app-wy3njjma.js} +17 -17
- package/dist/chunks/{app-3ehakt2b.js → app-wyya4zt2.js} +7 -7
- package/dist/chunks/{app-th2hp9ev.js → app-wyzscbnm.js} +1 -1
- package/dist/chunks/{app-hv7hhxe7.js → app-x2eb1s38.js} +14 -14
- package/dist/chunks/{app-fm152kwa.js → app-x2kh5z67.js} +19 -19
- package/dist/chunks/{app-1zqc9pfk.js → app-x48k7f96.js} +10 -10
- package/dist/chunks/{app-2vk2ak2q.js → app-xavgr0sn.js} +22 -22
- package/dist/chunks/{app-0c255mfh.js → app-xfdj8ybq.js} +32 -32
- package/dist/chunks/{app-7yz4rvvq.js → app-xfssnbs4.js} +16 -16
- package/dist/chunks/{app-kbgs7tyr.js → app-xksw6ev0.js} +3 -3
- package/dist/chunks/{app-ygvhn020.js → app-xrj14re7.js} +7 -7
- package/dist/chunks/{app-ee8h273g.js → app-xznfvz6c.js} +11 -11
- package/dist/chunks/{app-ftsg2ab9.js → app-y3e9w5j4.js} +8 -8
- package/dist/chunks/{app-70esdp6e.js → app-y5x79gp6.js} +4 -4
- package/dist/chunks/{app-19bray3m.js → app-y70svyf1.js} +22 -22
- package/dist/chunks/{app-qsvhv05j.js → app-y9dbkkt2.js} +25 -25
- package/dist/chunks/{app-8ppgdgnm.js → app-ydejkx0z.js} +1 -1
- package/dist/chunks/{app-kak54rfk.js → app-yef98r2t.js} +13 -13
- package/dist/chunks/{app-0bskj9a3.js → app-yq2mt5qr.js} +1 -1
- package/dist/chunks/{app-h0rg6s60.js → app-yqveydy6.js} +3 -3
- package/dist/chunks/{app-t8erkws8.js → app-ysampvvb.js} +3 -3
- package/dist/chunks/{app-38aws4xb.js → app-z080rjh6.js} +3 -3
- package/dist/chunks/{app-1cs0ztjs.js → app-z4sah7cn.js} +10 -10
- package/dist/chunks/{app-tgfrqp5x.js → app-z7a53n6z.js} +5 -5
- package/dist/chunks/{app-wffevkx6.js → app-zkket41r.js} +22 -22
- package/dist/chunks/{app-r6r95tvq.js → app-zvg8q0fs.js} +2 -2
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +113 -113
- package/dist/codemode/instructions.js +8 -8
- package/dist/codemode/tool.js +119 -119
- package/dist/command.js +77 -77
- package/dist/config/discovery.js +73 -73
- package/dist/config/integration.js +3 -3
- package/dist/config/normalize.js +88 -88
- package/dist/config/plugin/agent.js +100 -100
- package/dist/config/plugin/command.js +189 -188
- package/dist/config/plugin/compaction.js +134 -134
- package/dist/config/plugin/compatibility.js +116 -116
- package/dist/config/plugin/formatter.js +101 -101
- package/dist/config/plugin/image.js +100 -100
- package/dist/config/plugin/instruction.js +101 -101
- package/dist/config/plugin/location-watcher.js +102 -102
- package/dist/config/plugin/mcp.js +105 -104
- package/dist/config/plugin/policy.js +100 -100
- package/dist/config/plugin/provider.js +100 -100
- package/dist/config/plugin/reference.js +102 -102
- package/dist/config/plugin/shell.js +102 -102
- package/dist/config/plugin/skill-file.js +113 -113
- package/dist/config/plugin/skill.js +119 -119
- package/dist/config/plugin/snapshot.js +100 -100
- package/dist/config/plugin/source.js +103 -103
- package/dist/config/plugin/tool-output.js +101 -101
- package/dist/config/plugin/websearch.js +101 -101
- package/dist/config/plugin/worktree.js +102 -102
- package/dist/config.js +106 -106
- package/dist/credential.js +71 -71
- package/dist/database/database.js +60 -60
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +50 -50
- package/dist/database/v1-migration.bun.js +18 -18
- package/dist/effect/app-node-builder.js +276 -275
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +80 -80
- package/dist/environment/index.js +80 -80
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +123 -123
- package/dist/file-mutation.js +81 -81
- package/dist/filesystem/file-watch.js +15 -15
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +205 -204
- package/dist/filesystem/search.js +84 -84
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +87 -87
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +78 -78
- package/dist/generate.js +92 -92
- package/dist/git.js +3 -3
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +89 -89
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +364 -363
- package/dist/instruction-discovery.js +78 -78
- package/dist/instructions/builtins.js +78 -78
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +72 -72
- package/dist/job.js +66 -66
- package/dist/kv.js +65 -65
- package/dist/location-activity.js +82 -82
- package/dist/location-lifecycle.js +118 -118
- package/dist/location-service-map.js +77 -77
- package/dist/location-services.js +362 -361
- package/dist/location.js +72 -72
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +21 -21
- package/dist/mcp/connection.js +110 -0
- package/dist/mcp/index.js +94 -93
- package/dist/mcp/instructions.js +147 -146
- package/dist/mcp/oauth.js +11 -11
- package/dist/mcp/stdio.js +77 -77
- package/dist/modal/models.js +89 -89
- package/dist/model-resolver.js +88 -88
- package/dist/model.js +80 -80
- package/dist/models-dev.js +96 -96
- package/dist/permission/saved.js +74 -74
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +121 -121
- package/dist/persistent-pty/index.js +77 -77
- package/dist/persistent-pty.js +65 -65
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +87 -86
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +196 -195
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +340 -339
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +85 -85
- package/dist/plugin/module.js +99 -99
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +114 -114
- package/dist/plugin/provider/amazon-bedrock.js +81 -81
- package/dist/plugin/provider/azure.js +103 -103
- package/dist/plugin/provider/chatgpt.js +99 -99
- package/dist/plugin/provider/claude-agent/aisdk.js +92 -92
- package/dist/plugin/provider/claude-agent/claude/query-options.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/sessions.js +11 -11
- package/dist/plugin/provider/claude-agent/claude/status.js +6 -6
- package/dist/plugin/provider/claude-agent/index.js +111 -111
- package/dist/plugin/provider/claude-agent/instructions.js +88 -88
- package/dist/plugin/provider/claude-agent/integration.js +87 -87
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +84 -84
- package/dist/plugin/provider/claude-agent/session.js +87 -87
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +2 -2
- package/dist/plugin/provider/claude-agent/tools/server.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +99 -99
- package/dist/plugin/provider/cloudflare-workers-ai.js +99 -99
- package/dist/plugin/provider/configured.js +97 -97
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +84 -84
- package/dist/plugin/provider/github-copilot.js +86 -86
- package/dist/plugin/provider/gitlab.js +83 -83
- package/dist/plugin/provider/google-vertex.js +98 -98
- package/dist/plugin/provider/llmgateway.js +69 -69
- package/dist/plugin/provider/lmstudio.js +105 -105
- package/dist/plugin/provider/local.js +102 -102
- package/dist/plugin/provider/modal.js +84 -84
- package/dist/plugin/provider/ollama.js +105 -105
- package/dist/plugin/provider/openai-context-caps.js +80 -80
- package/dist/plugin/provider/openai.js +99 -99
- package/dist/plugin/provider/opencode.js +121 -121
- package/dist/plugin/provider/openrouter.js +81 -81
- package/dist/plugin/provider/poe.js +69 -69
- package/dist/plugin/provider/refresh.js +68 -68
- package/dist/plugin/provider/sap-ai-core.js +80 -80
- package/dist/plugin/provider/snowflake-cortex.js +99 -99
- package/dist/plugin/provider/vllm.js +103 -103
- package/dist/plugin/provider/xai.js +81 -81
- package/dist/plugin/provider.js +188 -188
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +115 -115
- package/dist/plugin/supervisor.js +351 -350
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +77 -77
- package/dist/plugin/vcs/hg.js +75 -75
- package/dist/plugin/verbosity.js +83 -83
- package/dist/plugin/warming.js +101 -101
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +205 -204
- package/dist/project/icon.js +3 -3
- package/dist/project/schema.js +1 -1
- package/dist/project/sql.js +2 -2
- package/dist/project.js +71 -71
- package/dist/provider.js +83 -83
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +78 -78
- package/dist/reference.js +80 -80
- package/dist/repository-cache.js +70 -70
- package/dist/ripgrep.js +81 -81
- package/dist/rpc.js +77 -77
- package/dist/schedule/check.js +200 -199
- package/dist/schedule/sql.js +4 -4
- package/dist/schedule.js +206 -205
- package/dist/session/blob.js +99 -99
- package/dist/session/command.js +66 -66
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +161 -160
- package/dist/session/diff.js +78 -78
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +126 -125
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +163 -162
- package/dist/session/history.js +104 -104
- package/dist/session/inbox.js +115 -115
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +69 -69
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +109 -109
- package/dist/session/model-request.js +133 -133
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +110 -110
- package/dist/session/prompt.js +116 -116
- package/dist/session/revert.js +107 -107
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +207 -206
- package/dist/session/runner/model.js +89 -89
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +130 -130
- package/dist/session/runner/to-llm-message.js +105 -105
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +146 -146
- package/dist/session/shell.js +110 -110
- package/dist/session/skill.js +115 -115
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +110 -110
- package/dist/session/stored.js +3 -3
- package/dist/session/subagent-job.js +190 -189
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +166 -165
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +123 -122
- package/dist/session.js +201 -200
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +113 -113
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +119 -119
- package/dist/skill.js +124 -124
- package/dist/snapshot.js +82 -82
- package/dist/tool/mcp.js +146 -145
- package/dist/tool/plugin/artifact.js +189 -188
- package/dist/tool/plugin/edit.js +130 -130
- package/dist/tool/plugin/glob.js +133 -133
- package/dist/tool/plugin/grep.js +127 -127
- package/dist/tool/plugin/image-generate.js +198 -197
- package/dist/tool/plugin/mcp-resource.js +128 -127
- package/dist/tool/plugin/opencode.js +128 -128
- package/dist/tool/plugin/patch.js +132 -132
- package/dist/tool/plugin/question.js +114 -114
- package/dist/tool/plugin/read.js +136 -136
- package/dist/tool/plugin/schedule.js +205 -204
- package/dist/tool/plugin/shell.js +192 -191
- package/dist/tool/plugin/skill.js +123 -123
- package/dist/tool/plugin/subagent.js +195 -194
- package/dist/tool/plugin/todo.js +120 -120
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +123 -123
- package/dist/tool/plugin/write.js +132 -132
- package/dist/tool/read-filesystem.js +85 -85
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +129 -129
- package/dist/types/mcp/connection.d.ts +75 -0
- package/dist/types/mcp/index.d.ts +3 -3
- package/dist/usage-limits.js +73 -73
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +81 -81
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +83 -83
- package/dist/vcs.js +80 -80
- package/dist/voice.js +73 -73
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +68 -68
- package/dist/wellknown.js +73 -73
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +74 -74
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +80 -80
- package/dist/worktree.js +84 -84
- package/package.json +8 -8
- package/dist/chunks/app-yc9fq4e8.js +0 -16
- /package/dist/chunks/{app-s5r5pqmg.js → app-13am0myr.js} +0 -0
- /package/dist/chunks/{app-6xw3seg4.js → app-2hg7qvzt.js} +0 -0
- /package/dist/chunks/{app-27b1v58b.js → app-7wm6fjb2.js} +0 -0
- /package/dist/chunks/{app-775hqbnd.js → app-80mg3ag8.js} +0 -0
- /package/dist/chunks/{app-034tev2y.js → app-aj7mw0zk.js} +0 -0
- /package/dist/chunks/{app-d4v9tmah.js → app-gn8tkhbf.js} +0 -0
- /package/dist/chunks/{app-963hk181.js → app-kp2338hr.js} +0 -0
- /package/dist/chunks/{app-0mn5h64x.js → app-q0ez1hrk.js} +0 -0
- /package/dist/chunks/{app-j9nxzz3g.js → app-ze75qvmd.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service90
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-n4k1ey5b.js";
|
|
4
4
|
import {
|
|
5
5
|
Service89
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-82fxv0dw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./app-
|
|
8
|
+
Service45
|
|
9
|
+
} from "./app-ae65egk4.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
12
|
} from "./app-89287pr7.js";
|
|
@@ -14,40 +14,40 @@ import {
|
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./app-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError9,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./app-
|
|
23
|
+
} from "./app-rnbnz8pk.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
26
|
} from "./app-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./app-
|
|
28
|
+
Service54
|
|
29
|
+
} from "./app-xznfvz6c.js";
|
|
30
30
|
import {
|
|
31
31
|
SyntheticPayload2,
|
|
32
|
-
|
|
33
|
-
} from "./app-
|
|
32
|
+
Service44
|
|
33
|
+
} from "./app-3jqetb86.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./app-
|
|
35
|
+
Service42
|
|
36
|
+
} from "./app-s7s2w16j.js";
|
|
37
37
|
import {
|
|
38
38
|
prepare2
|
|
39
|
-
} from "./app-
|
|
39
|
+
} from "./app-r1n0s1ac.js";
|
|
40
40
|
import {
|
|
41
41
|
stage2,
|
|
42
42
|
clear2,
|
|
43
43
|
commit2
|
|
44
|
-
} from "./app-
|
|
44
|
+
} from "./app-jy6h2y3j.js";
|
|
45
45
|
import {
|
|
46
46
|
start4
|
|
47
|
-
} from "./app-
|
|
47
|
+
} from "./app-vyzwj7hv.js";
|
|
48
48
|
import {
|
|
49
49
|
get4
|
|
50
|
-
} from "./app-
|
|
50
|
+
} from "./app-8jw7n1ah.js";
|
|
51
51
|
import {
|
|
52
52
|
__export
|
|
53
53
|
} from "./app-9rqn6x4v.js";
|
|
@@ -56,24 +56,24 @@ import {
|
|
|
56
56
|
var exports_session4 = {};
|
|
57
57
|
__export(exports_session4, {
|
|
58
58
|
Session: () => exports_session4,
|
|
59
|
-
make: () =>
|
|
59
|
+
make: () => make24
|
|
60
60
|
});
|
|
61
61
|
import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
62
62
|
import { Event } from "@opencode/schema/event";
|
|
63
63
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
64
|
-
var
|
|
64
|
+
var make24 = Effect.fn("Session.make")(function* () {
|
|
65
65
|
const bus = yield* Service89;
|
|
66
66
|
const database = yield* Service90;
|
|
67
|
-
const store = yield*
|
|
68
|
-
const instances = yield*
|
|
69
|
-
const execution = yield*
|
|
70
|
-
const admission = yield*
|
|
67
|
+
const store = yield* Service54;
|
|
68
|
+
const instances = yield* Service45;
|
|
69
|
+
const execution = yield* Service42;
|
|
70
|
+
const admission = yield* Service44;
|
|
71
71
|
const fs = yield* FSUtil.Service;
|
|
72
72
|
const scope = yield* Scope.Scope;
|
|
73
73
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
74
74
|
const session = yield* store.get(sessionID);
|
|
75
75
|
if (!session)
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new NotFoundError9({ sessionID });
|
|
77
77
|
return session;
|
|
78
78
|
});
|
|
79
79
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -164,7 +164,7 @@ var make22 = Effect.fn("Session.make")(function* () {
|
|
|
164
164
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
165
165
|
const session = yield* get(sessionID);
|
|
166
166
|
const running = yield* Effect.gen(function* () {
|
|
167
|
-
const started = yield* start4({ session, command: input.command }).pipe(Effect.provideService(
|
|
167
|
+
const started = yield* start4({ session, command: input.command }).pipe(Effect.provideService(Service45, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
168
168
|
text: `User shell command failed to start:
|
|
169
169
|
${input.command}
|
|
170
170
|
|
|
@@ -193,7 +193,7 @@ ${error.message}`,
|
|
|
193
193
|
});
|
|
194
194
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
195
195
|
const session = yield* get(sessionID);
|
|
196
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
196
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service45, instances));
|
|
197
197
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
198
198
|
sessionID,
|
|
199
199
|
id: skill.id,
|
|
@@ -250,13 +250,13 @@ ${error.message}`,
|
|
|
250
250
|
const session = yield* get(sessionID);
|
|
251
251
|
if (yield* execution.isActive(sessionID))
|
|
252
252
|
return yield* new BusyError2({ sessionID });
|
|
253
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
253
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service90, database), Effect.provideService(Service89, bus));
|
|
254
254
|
});
|
|
255
255
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
256
256
|
const session = yield* get(sessionID);
|
|
257
257
|
if (yield* execution.isActive(sessionID))
|
|
258
258
|
return yield* new BusyError2({ sessionID });
|
|
259
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
259
|
+
yield* clear2(session).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service89, bus));
|
|
260
260
|
return yield* execution.wake(sessionID);
|
|
261
261
|
});
|
|
262
262
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -348,4 +348,4 @@ ${error.message}`,
|
|
|
348
348
|
return { forSession };
|
|
349
349
|
});
|
|
350
350
|
|
|
351
|
-
export {
|
|
351
|
+
export { make24, exports_session4 };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_keyed_mutex = {};
|
|
7
7
|
__export(exports_keyed_mutex, {
|
|
8
8
|
KeyedMutex: () => exports_keyed_mutex,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make34,
|
|
10
10
|
makeUnsafe: () => makeUnsafe2
|
|
11
11
|
});
|
|
12
12
|
import { Effect, Semaphore } from "effect";
|
|
@@ -26,6 +26,6 @@ var makeUnsafe2 = () => {
|
|
|
26
26
|
});
|
|
27
27
|
return { size: Effect.sync(() => locks.size), withLock };
|
|
28
28
|
};
|
|
29
|
-
var
|
|
29
|
+
var make34 = () => Effect.sync(makeUnsafe2);
|
|
30
30
|
|
|
31
|
-
export { makeUnsafe2,
|
|
31
|
+
export { makeUnsafe2, make34, exports_keyed_mutex };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service89,
|
|
3
3
|
node92
|
|
4
|
-
} from "./app-
|
|
4
|
+
} from "./app-82fxv0dw.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
AbsolutePath2
|
|
14
14
|
} from "./app-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./app-
|
|
16
|
+
Service75,
|
|
17
|
+
node77
|
|
18
|
+
} from "./app-p5w1jxhv.js";
|
|
19
19
|
import {
|
|
20
20
|
changes2,
|
|
21
21
|
create4
|
|
@@ -27,31 +27,31 @@ import {
|
|
|
27
27
|
// src/reference.ts
|
|
28
28
|
var exports_reference2 = {};
|
|
29
29
|
__export(exports_reference2, {
|
|
30
|
-
Event: () =>
|
|
30
|
+
Event: () => Event5,
|
|
31
31
|
GitSource: () => GitSource2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info10,
|
|
33
33
|
LocalSource: () => LocalSource2,
|
|
34
34
|
Reference: () => exports_reference2,
|
|
35
|
-
Service: () =>
|
|
36
|
-
Source: () =>
|
|
37
|
-
node: () =>
|
|
35
|
+
Service: () => Service41,
|
|
36
|
+
Source: () => Source4,
|
|
37
|
+
node: () => node43
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
41
41
|
import { Reference } from "@opencode/schema/reference";
|
|
42
42
|
import { Global } from "@opencode/util/global";
|
|
43
|
-
import { Event as
|
|
43
|
+
import { Event as Event5 } from "@opencode/schema/reference";
|
|
44
44
|
var LocalSource2 = Reference.LocalSource;
|
|
45
45
|
var GitSource2 = Reference.GitSource;
|
|
46
|
-
var
|
|
47
|
-
var
|
|
46
|
+
var Source4 = Reference.Source;
|
|
47
|
+
var Info10 = Reference.Info;
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service41 extends Context.Service()("@opencode/Reference") {
|
|
50
50
|
}
|
|
51
|
-
var layer = Layer.effect(
|
|
51
|
+
var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const bus = yield* Service89;
|
|
54
|
-
const cache = yield*
|
|
54
|
+
const cache = yield* Service75;
|
|
55
55
|
const scope = yield* Scope.Scope;
|
|
56
56
|
const list = (data = state.get()) => Array.from(data.sources).flatMap(([name, source]) => {
|
|
57
57
|
const info = {
|
|
@@ -61,7 +61,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
61
61
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
62
62
|
};
|
|
63
63
|
if (source.type === "local")
|
|
64
|
-
return [
|
|
64
|
+
return [Info10.make({ ...info, path: source.path })];
|
|
65
65
|
const repository = parse4(source.repository);
|
|
66
66
|
if (!repository || !isRemote2(repository))
|
|
67
67
|
return [];
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return [
|
|
76
|
-
|
|
76
|
+
Info10.make({
|
|
77
77
|
...info,
|
|
78
78
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
79
79
|
})
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
107
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
108
|
-
return
|
|
108
|
+
return Service41.of({
|
|
109
109
|
transform: state.transform,
|
|
110
110
|
reload: state.reload,
|
|
111
111
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
}));
|
|
116
|
-
var
|
|
117
|
-
service:
|
|
116
|
+
var node43 = makeLocationNode({
|
|
117
|
+
service: Service41,
|
|
118
118
|
layer,
|
|
119
|
-
deps: [Global.node, node92,
|
|
119
|
+
deps: [Global.node, node92, node77]
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
export { LocalSource2, GitSource2,
|
|
122
|
+
export { LocalSource2, GitSource2, Source4, Info10, Service41, node43, exports_reference2, Event5 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID17
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-x2eb1s38.js";
|
|
4
4
|
import {
|
|
5
5
|
credentialSettings2,
|
|
6
6
|
metadataSettings2
|
|
7
|
-
} from "./app-
|
|
7
|
+
} from "./app-7zggx0n1.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/provider/amazon-bedrock.ts
|
|
10
10
|
import { Effect } from "effect";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-0qdw55z7.js";
|
|
4
4
|
import {
|
|
5
5
|
Service89
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-82fxv0dw.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ID20,
|
|
9
|
+
Event20,
|
|
10
10
|
Service84
|
|
11
|
-
} from "./app-
|
|
11
|
+
} from "./app-k8bdr0d0.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./app-
|
|
14
|
+
} from "./app-jhwp234h.js";
|
|
15
15
|
import {
|
|
16
16
|
ID18,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./app-
|
|
18
|
+
} from "./app-gwz0wrrb.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
21
|
} from "./app-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
23
|
ID17,
|
|
24
|
-
|
|
25
|
-
} from "./app-
|
|
24
|
+
Service81
|
|
25
|
+
} from "./app-x2eb1s38.js";
|
|
26
26
|
import {
|
|
27
27
|
ID16
|
|
28
|
-
} from "./app-
|
|
28
|
+
} from "./app-tkp5adq0.js";
|
|
29
29
|
import {
|
|
30
30
|
interval2,
|
|
31
|
-
|
|
31
|
+
Service19,
|
|
32
32
|
fingerprint2
|
|
33
|
-
} from "./app-
|
|
33
|
+
} from "./app-0z1kk8n9.js";
|
|
34
34
|
import {
|
|
35
35
|
configuredSettings2
|
|
36
|
-
} from "./app-
|
|
36
|
+
} from "./app-24sxtq8k.js";
|
|
37
37
|
import {
|
|
38
38
|
switched2
|
|
39
|
-
} from "./app-
|
|
39
|
+
} from "./app-kfd17r3s.js";
|
|
40
40
|
|
|
41
41
|
// src/plugin/provider/azure.ts
|
|
42
42
|
import { Clock, Effect, Equal, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -71,7 +71,7 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
71
71
|
}));
|
|
72
72
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
73
73
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
74
|
-
function
|
|
74
|
+
function make16(endpoints = {
|
|
75
75
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
76
76
|
management: "https://management.azure.com"
|
|
77
77
|
}) {
|
|
@@ -82,8 +82,8 @@ function make15(endpoints = {
|
|
|
82
82
|
const processes = yield* AppProcess.Service;
|
|
83
83
|
const bus = yield* Service89;
|
|
84
84
|
const credentials = yield* Service84;
|
|
85
|
-
const providers = yield*
|
|
86
|
-
const cache = yield*
|
|
85
|
+
const providers = yield* Service81;
|
|
86
|
+
const cache = yield* Service19;
|
|
87
87
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
88
88
|
const tokens = new Map;
|
|
89
89
|
const resourceIDs = new Map;
|
|
@@ -152,7 +152,7 @@ function make15(endpoints = {
|
|
|
152
152
|
});
|
|
153
153
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
154
154
|
const connection = yield* ctx.integration.connection.active(ID17.azure);
|
|
155
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
155
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID20.make(connection.id)) : undefined;
|
|
156
156
|
return { connection, resource: credentialResource(stored?.value) };
|
|
157
157
|
});
|
|
158
158
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -297,7 +297,7 @@ function make15(endpoints = {
|
|
|
297
297
|
models.update(ID17.azure, id, (draft) => Object.assign(draft, model));
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
|
-
yield* bus.subscribe(
|
|
300
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID18.make("azure")), Stream.runForEach(() => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, switched2(discover, apply))))), Effect.forkScoped({ startImmediately: true }));
|
|
301
301
|
yield* rebind().pipe(Effect.andThen(FiberHandle.run(discovery, refresh)), Effect.forkScoped);
|
|
302
302
|
yield* Effect.sleep(interval2).pipe(Effect.andThen(FiberHandle.run(discovery, refresh, { onlyIfMissing: true })), Effect.forever, Effect.forkScoped);
|
|
303
303
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
@@ -337,7 +337,7 @@ function make15(endpoints = {
|
|
|
337
337
|
})
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
var AzurePlugin2 =
|
|
340
|
+
var AzurePlugin2 = make16();
|
|
341
341
|
function deploymentsKey(connection, credential, url) {
|
|
342
342
|
const access = credential.type === "key" ? `:${fingerprint2(credential.key)}` : "";
|
|
343
343
|
return `azure:${key2(connection)}${access}:${url}`;
|
|
@@ -397,4 +397,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
397
397
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
export {
|
|
400
|
+
export { make16, AzurePlugin2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./app-
|
|
2
|
+
Service45
|
|
3
|
+
} from "./app-ae65egk4.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-qmh7vbk2.js";
|
|
7
7
|
import {
|
|
8
8
|
SkillNotFoundError2
|
|
9
|
-
} from "./app-
|
|
9
|
+
} from "./app-rnbnz8pk.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./app-
|
|
11
|
+
Service40
|
|
12
|
+
} from "./app-mgvq6ne3.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./app-9rqn6x4v.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_skill4, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var get4 = Effect.fn("SessionSkill.get")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const skills = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service45;
|
|
26
|
+
const skills = yield* awaitActivation2.pipe(Effect.andThen(Service40), instances.provide(input.session));
|
|
27
27
|
const skill = yield* skills.get(input.skill);
|
|
28
28
|
if (!skill)
|
|
29
29
|
return yield* new SkillNotFoundError2({ skill: input.skill });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-76ggf0cd.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make14 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make18 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make14();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make14, OllamaPlugin2 };
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
TreeID2,
|
|
8
8
|
Service88,
|
|
9
9
|
node91
|
|
10
|
-
} from "./app-
|
|
10
|
+
} from "./app-wyzscbnm.js";
|
|
11
11
|
import {
|
|
12
12
|
Service86,
|
|
13
13
|
node89
|
|
14
|
-
} from "./app-
|
|
14
|
+
} from "./app-k483zyxw.js";
|
|
15
15
|
import {
|
|
16
16
|
create4
|
|
17
17
|
} from "./app-40y6dtc2.js";
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID14,
|
|
27
|
+
Service: () => Service72,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node74,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,18 +34,18 @@ import path from "path";
|
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID14 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 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 Service72 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service88;
|
|
51
51
|
const global = yield* Global.Service;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service43, 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 Error5({ 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)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID14.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service72.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node74 = makeLocationNode({
|
|
158
|
+
service: Service72,
|
|
159
159
|
layer,
|
|
160
160
|
deps: [FSUtil.node, node91, Global.node, node89]
|
|
161
161
|
});
|
|
162
|
-
var noopLayer3 = Layer.succeed(
|
|
162
|
+
var noopLayer3 = Layer.succeed(Service72, Service72.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer3 = Layer.succeed(Service43, Service43.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error5({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { ID14, Error5, Service72, node74, noopLayer3, exports_snapshot2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-8cg7mtm3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./app-9rqn6x4v.js";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service2,
|
|
13
|
+
node: () => node3
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service2 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service2.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node3 = makeGlobalNode({ service: Service2, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service2, node3, exports_update };
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./app-qfa1cgps.js";
|
|
8
8
|
import {
|
|
9
9
|
ProjectTable2
|
|
10
|
-
} from "./app-
|
|
10
|
+
} from "./app-aj7mw0zk.js";
|
|
11
11
|
|
|
12
12
|
// src/session/sql.ts
|
|
13
13
|
import { blob, sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./app-
|
|
3
|
+
Service65
|
|
4
|
+
} from "./app-afwnmwkf.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
7
|
} from "./app-hpg1pkwy.js";
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
} from "./app-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/config/plugin/websearch.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigWebSearchPlugin: () =>
|
|
16
|
-
Plugin: () =>
|
|
13
|
+
var exports_websearch2 = {};
|
|
14
|
+
__export(exports_websearch2, {
|
|
15
|
+
ConfigWebSearchPlugin: () => exports_websearch2,
|
|
16
|
+
Plugin: () => Plugin48
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin48 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service65;
|
|
24
24
|
const loaded = yield* observe2(config, ctx.event, ctx.websearch.reload());
|
|
25
25
|
yield* ctx.websearch.transform((websearch) => {
|
|
26
26
|
const selection = latest2(loaded.entries, "websearch");
|
|
@@ -32,4 +32,4 @@ var Plugin28 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin48, exports_websearch2 };
|