@opencode/core 0.0.0-dev-20026 → 0.0.0-dev-20029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{variant-kqbmdx55.js → managed-policy-02rzac9a.js} +29 -29
- package/dist/chunks/{variant-8eh51za7.js → managed-policy-07ntzvz4.js} +9 -9
- package/dist/chunks/{variant-k5y748ge.js → managed-policy-0c92dpjb.js} +3 -3
- package/dist/chunks/{variant-af7j52hr.js → managed-policy-0fcjr1ar.js} +4 -4
- package/dist/chunks/{variant-zzexawz9.js → managed-policy-0g0txq2z.js} +23 -23
- package/dist/chunks/{variant-pt7424fw.js → managed-policy-0k1wajbn.js} +7 -7
- package/dist/chunks/{variant-0paq2nw3.js → managed-policy-0paq2nw3.js} +1 -1
- package/dist/chunks/{variant-r6cdbtvh.js → managed-policy-0r5abbz4.js} +4 -4
- package/dist/chunks/{variant-dtss6q18.js → managed-policy-0sf511qw.js} +11 -11
- package/dist/chunks/{variant-ppxpc5nv.js → managed-policy-0vqt28aq.js} +3 -3
- package/dist/chunks/{variant-t6055e0v.js → managed-policy-19e700kt.js} +31 -31
- package/dist/chunks/{variant-4n6z1r8s.js → managed-policy-1a551269.js} +24 -24
- package/dist/chunks/{variant-yp2x3t23.js → managed-policy-1acjjqhc.js} +4 -4
- package/dist/chunks/{variant-zqy8ejrp.js → managed-policy-1ag1pq0v.js} +14 -14
- package/dist/chunks/{variant-1dazxqgg.js → managed-policy-1dazxqgg.js} +2 -2
- package/dist/chunks/{variant-7xgrqf4n.js → managed-policy-1edxvj4h.js} +15 -15
- package/dist/chunks/{variant-xb02k0wq.js → managed-policy-1g7epwpd.js} +7 -7
- package/dist/chunks/{variant-ajk3nktm.js → managed-policy-1pyqratn.js} +33 -33
- package/dist/chunks/{variant-fbc9vsj2.js → managed-policy-1tdcmptc.js} +20 -20
- package/dist/chunks/{variant-21r38tys.js → managed-policy-21r38tys.js} +1 -1
- package/dist/chunks/{variant-2402vzrj.js → managed-policy-2402vzrj.js} +1 -1
- package/dist/chunks/{variant-md1qfzvn.js → managed-policy-251d3kbp.js} +30 -30
- package/dist/chunks/{variant-2a5m3afh.js → managed-policy-2a5m3afh.js} +1 -1
- package/dist/chunks/{variant-a6x7shte.js → managed-policy-2da53pjx.js} +3 -3
- package/dist/chunks/{variant-xe0jn6g3.js → managed-policy-2p8k3371.js} +5 -5
- package/dist/chunks/{variant-f747t98r.js → managed-policy-2ryrf09a.js} +16 -16
- package/dist/chunks/{variant-rtgnjske.js → managed-policy-2vng4z65.js} +31 -31
- package/dist/chunks/{variant-5hwa0061.js → managed-policy-2wygw19c.js} +2 -2
- package/dist/chunks/{variant-6p55r51m.js → managed-policy-30kwrm97.js} +1 -1
- package/dist/chunks/{variant-2ptfhmaq.js → managed-policy-38h5e1be.js} +16 -16
- package/dist/chunks/{variant-stas9bdh.js → managed-policy-3cz6x5mb.js} +9 -9
- package/dist/chunks/{variant-3fc6dm20.js → managed-policy-3fc6dm20.js} +1 -1
- package/dist/chunks/{variant-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{variant-6rxwp35s.js → managed-policy-3hhw65fg.js} +20 -20
- package/dist/chunks/{variant-2d57kztd.js → managed-policy-3k6sfp50.js} +6 -6
- package/dist/chunks/{variant-3smtnn6g.js → managed-policy-3smtnn6g.js} +1 -1
- package/dist/chunks/{variant-3tvqynh2.js → managed-policy-3tvqynh2.js} +1 -1
- package/dist/chunks/{variant-dngx6zgq.js → managed-policy-3wdbfyxb.js} +2 -2
- package/dist/chunks/{variant-3zsf4n22.js → managed-policy-3zsf4n22.js} +1 -1
- package/dist/chunks/{variant-v7eyjk8c.js → managed-policy-41dak7mt.js} +27 -27
- package/dist/chunks/{variant-ecnb5xks.js → managed-policy-41fs1qjb.js} +16 -16
- package/dist/chunks/{variant-wnsqmkbm.js → managed-policy-42tscsba.js} +24 -24
- package/dist/chunks/{variant-knb7evpn.js → managed-policy-44ke2mar.js} +2 -2
- package/dist/chunks/{variant-a5t4p5xt.js → managed-policy-473re8za.js} +24 -24
- package/dist/chunks/{variant-ehd2w0yp.js → managed-policy-4hpzevxd.js} +17 -17
- package/dist/chunks/{variant-nydghdxw.js → managed-policy-4jr8td7z.js} +24 -24
- package/dist/chunks/{variant-5b64cte8.js → managed-policy-4rsy6rhw.js} +18 -18
- package/dist/chunks/{variant-wbtey438.js → managed-policy-4s6vd5dk.js} +8 -8
- package/dist/chunks/{variant-r9684t3a.js → managed-policy-4y6b28a1.js} +10 -10
- package/dist/chunks/{variant-9mye8vwy.js → managed-policy-4yx5pf48.js} +11 -11
- package/dist/chunks/{variant-eqvqvd13.js → managed-policy-4zv6n53j.js} +12 -12
- package/dist/chunks/{variant-56gdpj1q.js → managed-policy-56gdpj1q.js} +2 -2
- package/dist/chunks/{variant-9jwjh49g.js → managed-policy-578fqz8n.js} +32 -32
- package/dist/chunks/{variant-pef6k0gg.js → managed-policy-57ez7d0k.js} +9 -9
- package/dist/chunks/managed-policy-57q3t40e.js +503 -0
- package/dist/chunks/{variant-5daktx2q.js → managed-policy-5daktx2q.js} +1 -1
- package/dist/chunks/{variant-5ekn9679.js → managed-policy-5ekn9679.js} +1 -1
- package/dist/chunks/{variant-5jf3agd7.js → managed-policy-5h11ybms.js} +1 -1
- package/dist/chunks/{variant-d27k1qq2.js → managed-policy-5kbfeevd.js} +17 -17
- package/dist/chunks/{variant-e3qxr5gk.js → managed-policy-5qd3pb7m.js} +2 -2
- package/dist/chunks/{variant-5t3nmthw.js → managed-policy-5t3nmthw.js} +2 -2
- package/dist/chunks/{variant-q7azfttr.js → managed-policy-5xpznt2d.js} +4 -4
- package/dist/chunks/{variant-gga0wymx.js → managed-policy-61qqwrfn.js} +68 -68
- package/dist/chunks/{variant-669tq793.js → managed-policy-669tq793.js} +1 -1
- package/dist/chunks/{variant-mm84f3fs.js → managed-policy-67d3kp3s.js} +27 -27
- package/dist/chunks/{variant-7c8esnqs.js → managed-policy-6b1r9qfx.js} +25 -25
- package/dist/chunks/{variant-7d4hdxdy.js → managed-policy-6c314mz2.js} +11 -11
- package/dist/chunks/{variant-fzhdr1mx.js → managed-policy-6djy54x7.js} +1 -1
- package/dist/chunks/managed-policy-6kdq0pjd.js +4 -0
- package/dist/chunks/{variant-zxbrzaq9.js → managed-policy-6kzvch4n.js} +11 -11
- package/dist/chunks/{variant-yaktvxn2.js → managed-policy-6mct90se.js} +15 -15
- package/dist/chunks/{variant-84sj45vf.js → managed-policy-6mnafygm.js} +15 -15
- package/dist/chunks/{variant-6msgmcgs.js → managed-policy-6msgmcgs.js} +1 -1
- package/dist/chunks/{variant-v1nyvan4.js → managed-policy-6nvgqmbz.js} +38 -38
- package/dist/chunks/{variant-9r5qhkng.js → managed-policy-6rewzfhv.js} +15 -15
- package/dist/chunks/{variant-71zkw7xr.js → managed-policy-72zxmgt4.js} +9 -9
- package/dist/chunks/{variant-5mef3xk7.js → managed-policy-76cqma85.js} +15 -15
- package/dist/chunks/{variant-j55501wg.js → managed-policy-76xhfwj9.js} +6 -6
- package/dist/chunks/{variant-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{variant-rbqcddk9.js → managed-policy-7dvrqder.js} +14 -14
- package/dist/chunks/{variant-8tpythmx.js → managed-policy-7h9mx2w5.js} +24 -24
- package/dist/chunks/{variant-q7mj73f6.js → managed-policy-7jykq1cg.js} +24 -24
- package/dist/chunks/{variant-mjncxbbh.js → managed-policy-7s6gk46a.js} +9 -9
- package/dist/chunks/{variant-tk2xtqnn.js → managed-policy-7szh0m8y.js} +32 -32
- package/dist/chunks/{variant-mn93ga5d.js → managed-policy-87q0yepe.js} +17 -17
- package/dist/chunks/{variant-tcezcvh9.js → managed-policy-89znhe33.js} +4 -4
- package/dist/chunks/{variant-ybday7y9.js → managed-policy-8aj1qpge.js} +11 -11
- package/dist/chunks/{variant-8d7r5vzw.js → managed-policy-8d7r5vzw.js} +1 -1
- package/dist/chunks/{variant-nj481gba.js → managed-policy-8fhzpqwh.js} +5 -5
- package/dist/chunks/{variant-fzgxakwn.js → managed-policy-8q61w4ba.js} +6 -6
- package/dist/chunks/{variant-jes8xwtq.js → managed-policy-8xh1vfpb.js} +6 -6
- package/dist/chunks/{variant-gfvb90ym.js → managed-policy-94ek1h2f.js} +2 -2
- package/dist/chunks/{variant-834a0b17.js → managed-policy-984xje6x.js} +7 -7
- package/dist/chunks/{variant-r39jerzg.js → managed-policy-9b0k8yaa.js} +10 -10
- package/dist/chunks/{variant-jk953tft.js → managed-policy-9bqmq0zv.js} +4 -4
- package/dist/chunks/{variant-e37stjd8.js → managed-policy-9eyez545.js} +11 -11
- package/dist/chunks/{variant-g20tdqpk.js → managed-policy-9jmvwkse.js} +32 -32
- package/dist/chunks/{variant-kfd45557.js → managed-policy-9ra9hhs6.js} +18 -18
- package/dist/chunks/{variant-ar8vm0ff.js → managed-policy-9yxd2v4q.js} +13 -13
- package/dist/chunks/managed-policy-9zdhvgqs.js +18 -0
- package/dist/chunks/{variant-dbdtaeh3.js → managed-policy-a293rvby.js} +42 -42
- package/dist/chunks/{variant-s5d9hk7s.js → managed-policy-a3ftg8j6.js} +9 -9
- package/dist/chunks/{variant-aaet6srn.js → managed-policy-aaet6srn.js} +2 -2
- package/dist/chunks/{variant-t3hvp6ye.js → managed-policy-ad2m42br.js} +37 -37
- package/dist/chunks/{variant-yh7kjdpc.js → managed-policy-aej8eep8.js} +9 -9
- package/dist/chunks/{variant-21xkm9mw.js → managed-policy-akq6t692.js} +22 -22
- package/dist/chunks/{variant-hpfrvn9v.js → managed-policy-aw4bep3f.js} +16 -16
- package/dist/chunks/{variant-g2yz86wh.js → managed-policy-b09hzw3k.js} +2 -2
- package/dist/chunks/{variant-yf5fe4my.js → managed-policy-b11r5vy8.js} +18 -18
- package/dist/chunks/{variant-b6gygkdw.js → managed-policy-b6gygkdw.js} +2 -2
- package/dist/chunks/{variant-2p623br6.js → managed-policy-b7b4ctej.js} +5 -5
- package/dist/chunks/{variant-jx4tygjy.js → managed-policy-bgx3rwgq.js} +10 -10
- package/dist/chunks/{variant-8mvw6bgy.js → managed-policy-bxbprr42.js} +25 -25
- package/dist/chunks/{variant-r2m716tb.js → managed-policy-c765mh8b.js} +5 -5
- package/dist/chunks/{variant-6w0aczmv.js → managed-policy-c9mmfgm8.js} +11 -11
- package/dist/chunks/{variant-54tcyq79.js → managed-policy-ckecvw8r.js} +2 -2
- package/dist/chunks/{variant-6zedfc54.js → managed-policy-cn0pj63m.js} +27 -27
- package/dist/chunks/managed-policy-crpty8yf.js +252 -0
- package/dist/chunks/{variant-s07fdbeq.js → managed-policy-d9jh3nn5.js} +19 -19
- package/dist/chunks/{variant-557d9c8t.js → managed-policy-d9v6a70r.js} +20 -20
- package/dist/chunks/{variant-nk7804dj.js → managed-policy-dd5dn1hm.js} +11 -11
- package/dist/chunks/{variant-v1x57w6y.js → managed-policy-ddnyxkgk.js} +19 -19
- package/dist/chunks/{variant-7836xe6r.js → managed-policy-dej5hqqy.js} +7 -7
- package/dist/chunks/{variant-3g33scay.js → managed-policy-dg2cj1yd.js} +4 -4
- package/dist/chunks/{variant-9byqxeta.js → managed-policy-drkpxzze.js} +17 -17
- package/dist/chunks/{variant-8epdgwc0.js → managed-policy-dz2720q4.js} +26 -26
- package/dist/chunks/{variant-t0yy7xg2.js → managed-policy-eabvk12d.js} +87 -87
- package/dist/chunks/{variant-2eyvmpqy.js → managed-policy-ebp4vjcq.js} +37 -37
- package/dist/chunks/{variant-s41dxx30.js → managed-policy-ed38yjr8.js} +1 -1
- package/dist/chunks/{variant-bfhm6t97.js → managed-policy-eezffbxh.js} +10 -10
- package/dist/chunks/{variant-ef5x83kb.js → managed-policy-ef5x83kb.js} +1 -1
- package/dist/chunks/{variant-vya4f7hk.js → managed-policy-ekj7a5hz.js} +11 -11
- package/dist/chunks/{variant-bjn6skbd.js → managed-policy-erv8bcet.js} +5 -5
- package/dist/chunks/{variant-erw5rpbs.js → managed-policy-erw5rpbs.js} +2 -2
- package/dist/chunks/{variant-was7srj9.js → managed-policy-et0rkxxj.js} +8 -8
- package/dist/chunks/{variant-etq0c3wd.js → managed-policy-etq0c3wd.js} +1 -1
- package/dist/chunks/{variant-sjgae2xy.js → managed-policy-ew6h5s3h.js} +24 -24
- package/dist/chunks/{variant-cmh4zy5x.js → managed-policy-fanxnb74.js} +11 -11
- package/dist/chunks/{variant-b51jbz85.js → managed-policy-fapvw67d.js} +10 -10
- package/dist/chunks/{variant-nmvjxe16.js → managed-policy-fb6g4eyr.js} +10 -10
- package/dist/chunks/{variant-n7hwxzgv.js → managed-policy-fnqpbz25.js} +26 -26
- package/dist/chunks/{variant-2hr5nhwa.js → managed-policy-fqhbsnr5.js} +8 -8
- package/dist/chunks/{variant-b8y4420x.js → managed-policy-fr55k2sw.js} +43 -43
- package/dist/chunks/{variant-kns7re6s.js → managed-policy-fvgj0p1d.js} +18 -18
- package/dist/chunks/managed-policy-g14e49v8.js +26 -0
- package/dist/chunks/{variant-0xezjjjn.js → managed-policy-g1sxm558.js} +8 -8
- package/dist/chunks/{variant-1j4qs2dp.js → managed-policy-g7cdhhyx.js} +13 -13
- package/dist/chunks/{variant-6mmx0pze.js → managed-policy-g9trvnpg.js} +7 -7
- package/dist/chunks/{variant-gd4qta3r.js → managed-policy-gd4qta3r.js} +1 -1
- package/dist/chunks/{variant-4h2qm5xd.js → managed-policy-gfn7xntb.js} +40 -40
- package/dist/chunks/{variant-2d0rz701.js → managed-policy-gsc5p4tt.js} +16 -16
- package/dist/chunks/{variant-vrk0cgw0.js → managed-policy-gshdf3b6.js} +24 -24
- package/dist/chunks/{variant-gv6a8nnw.js → managed-policy-gv6a8nnw.js} +2 -2
- package/dist/chunks/{variant-0kdyx93j.js → managed-policy-gw0bnd3r.js} +20 -20
- package/dist/chunks/{variant-e6y173sj.js → managed-policy-gza8p2w0.js} +9 -9
- package/dist/chunks/{variant-h6r3nrb9.js → managed-policy-h6r3nrb9.js} +1 -1
- package/dist/chunks/{variant-h6vf3j39.js → managed-policy-h6vf3j39.js} +1 -1
- package/dist/chunks/{variant-zd5rdewp.js → managed-policy-hk10n3xs.js} +8 -8
- package/dist/chunks/{variant-1wyzf5g7.js → managed-policy-hsxmh5g8.js} +2 -2
- package/dist/chunks/{variant-6wjad31y.js → managed-policy-j3m7wdn9.js} +7 -7
- package/dist/chunks/{variant-j56e64zr.js → managed-policy-j56e64zr.js} +1 -1
- package/dist/chunks/{variant-gf45v5rv.js → managed-policy-j7kakgc5.js} +9 -9
- package/dist/chunks/{variant-engkm2d6.js → managed-policy-jgttmm4a.js} +5 -5
- package/dist/chunks/{variant-2a6rn6yr.js → managed-policy-jhf3jymm.js} +6 -6
- package/dist/chunks/{variant-rhafb4aa.js → managed-policy-jjs74g98.js} +9 -9
- package/dist/chunks/{variant-bjn91642.js → managed-policy-jva4mgym.js} +4 -4
- package/dist/chunks/{variant-hkafdcbz.js → managed-policy-jyw9wa94.js} +1 -1
- package/dist/chunks/{variant-563rq041.js → managed-policy-jzapyy4j.js} +89 -89
- package/dist/chunks/{variant-0bzevza6.js → managed-policy-jzvhswbf.js} +18 -18
- package/dist/chunks/{variant-rh1n8m2g.js → managed-policy-k0b3m8xv.js} +11 -11
- package/dist/chunks/{variant-3wwqqeqp.js → managed-policy-k2a0w1ze.js} +2 -2
- package/dist/chunks/{variant-nzks3jc8.js → managed-policy-k3c624dm.js} +3 -3
- package/dist/chunks/{variant-vtd2qwnf.js → managed-policy-k53npxr2.js} +1 -1
- package/dist/chunks/{variant-0krcabsn.js → managed-policy-kavv7h9b.js} +6 -6
- package/dist/chunks/{variant-cgrt34rb.js → managed-policy-kmkte60t.js} +26 -26
- package/dist/chunks/{variant-2n3rws7p.js → managed-policy-kpa692bj.js} +16 -16
- package/dist/chunks/{variant-80dj63ps.js → managed-policy-kq7dkryj.js} +9 -9
- package/dist/chunks/{variant-rwnjws6z.js → managed-policy-kwe3mta9.js} +7 -7
- package/dist/chunks/{variant-cenw4sj9.js → managed-policy-kzcf93wx.js} +171 -171
- package/dist/chunks/{variant-m3fdjcah.js → managed-policy-m3fdjcah.js} +1 -1
- package/dist/chunks/{variant-1xcw6xjf.js → managed-policy-m56t3ka1.js} +27 -27
- package/dist/chunks/{variant-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{variant-6sr3ve8g.js → managed-policy-magykp64.js} +21 -21
- package/dist/chunks/{variant-na0h3a6c.js → managed-policy-mkhtgmm9.js} +19 -19
- package/dist/chunks/{variant-gs9rpsen.js → managed-policy-mvdfc68y.js} +11 -11
- package/dist/chunks/{variant-1bbkgx8g.js → managed-policy-mvfsc1pv.js} +3 -3
- package/dist/chunks/{variant-83xz4qq9.js → managed-policy-mxye78ab.js} +20 -20
- package/dist/chunks/{variant-4hz2mmtn.js → managed-policy-mzdhr4f5.js} +6 -6
- package/dist/chunks/{variant-fjeqa7jj.js → managed-policy-n17fh37w.js} +8 -8
- package/dist/chunks/{variant-dcer5810.js → managed-policy-nq90v52f.js} +26 -26
- package/dist/chunks/{variant-9f1seg8j.js → managed-policy-ntpzaq4y.js} +30 -30
- package/dist/chunks/{variant-9qw4j31g.js → managed-policy-ntrdmkct.js} +9 -9
- package/dist/chunks/{variant-8nx8zez9.js → managed-policy-p08t8h9z.js} +13 -13
- package/dist/chunks/{variant-m74j5n8t.js → managed-policy-p0ey5wrv.js} +44 -44
- package/dist/chunks/{variant-avrnkb01.js → managed-policy-p7pse8xf.js} +46 -46
- package/dist/chunks/{variant-c8swy7ka.js → managed-policy-p8hywtm9.js} +15 -15
- package/dist/chunks/{variant-17j9h1rv.js → managed-policy-pb1eahw5.js} +11 -11
- package/dist/chunks/{variant-p37cw4rj.js → managed-policy-phstrbs2.js} +8 -8
- package/dist/chunks/{variant-pjvnvgmy.js → managed-policy-pjvnvgmy.js} +1 -1
- package/dist/chunks/{variant-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{variant-gbdr24b9.js → managed-policy-pn2fvd3j.js} +12 -12
- package/dist/chunks/{variant-c5ezeqt5.js → managed-policy-q4pw0c2n.js} +27 -27
- package/dist/chunks/{variant-wtm3ybk1.js → managed-policy-q4yhrq2j.js} +3 -3
- package/dist/chunks/{variant-dvc89yjx.js → managed-policy-q6amncqc.js} +8 -8
- package/dist/chunks/{variant-kzynzy4y.js → managed-policy-qa1h2r6b.js} +14 -14
- package/dist/chunks/{variant-g04dwg7s.js → managed-policy-qdes8zwy.js} +4 -4
- package/dist/chunks/{variant-45p7gsnq.js → managed-policy-qdy7cmrh.js} +25 -25
- package/dist/chunks/{variant-7dqw4kz8.js → managed-policy-qgn6gcr1.js} +5 -5
- package/dist/chunks/{variant-hcz3zddy.js → managed-policy-qn4ba14w.js} +5 -5
- package/dist/chunks/{variant-qsdy395h.js → managed-policy-qsdy395h.js} +1 -1
- package/dist/chunks/{variant-8fz7s7fk.js → managed-policy-rd8gyews.js} +3 -3
- package/dist/chunks/{variant-xycc92pn.js → managed-policy-rdp0wvtx.js} +32 -32
- package/dist/chunks/{variant-rdw6cm16.js → managed-policy-rdw6cm16.js} +1 -1
- package/dist/chunks/{variant-nq97rzw1.js → managed-policy-retwe0n8.js} +21 -21
- package/dist/chunks/{variant-8qdtva9t.js → managed-policy-rf504ff2.js} +15 -15
- package/dist/chunks/{variant-fhpv401t.js → managed-policy-rf7cpa0c.js} +47 -47
- package/dist/chunks/{variant-kad49353.js → managed-policy-rjq8wmvv.js} +14 -14
- package/dist/chunks/{variant-g1zq083n.js → managed-policy-rncv50b8.js} +13 -13
- package/dist/chunks/{variant-5mvsdnr7.js → managed-policy-rpg9xyrt.js} +4 -4
- package/dist/chunks/{variant-3h50d2d8.js → managed-policy-rrq86xxm.js} +8 -8
- package/dist/chunks/{variant-72v9w41r.js → managed-policy-ryw39exz.js} +54 -54
- package/dist/chunks/{variant-b9dsjnj7.js → managed-policy-s13azqgb.js} +8 -8
- package/dist/chunks/{variant-eaj1djv9.js → managed-policy-s8d7rejh.js} +6 -6
- package/dist/chunks/{variant-3cz8rj72.js → managed-policy-s8zy8myc.js} +5 -5
- package/dist/chunks/{variant-vkepkbsm.js → managed-policy-skvzhceq.js} +20 -20
- package/dist/chunks/{variant-3prdw56f.js → managed-policy-sr8wmms9.js} +46 -46
- package/dist/chunks/{variant-1a6p2twq.js → managed-policy-sx1n432n.js} +4 -4
- package/dist/chunks/{variant-nv7t75ky.js → managed-policy-t38q3erb.js} +11 -11
- package/dist/chunks/{variant-qmkkft71.js → managed-policy-t7mznaap.js} +20 -20
- package/dist/chunks/{variant-n3hpqbgj.js → managed-policy-tar13cek.js} +11 -11
- package/dist/chunks/{variant-tazgh4e4.js → managed-policy-tazgh4e4.js} +1 -1
- package/dist/chunks/{variant-tbmac1c7.js → managed-policy-tbmac1c7.js} +1 -1
- package/dist/chunks/{variant-tdstcens.js → managed-policy-tdstcens.js} +1 -1
- package/dist/chunks/{variant-dfjemdtf.js → managed-policy-tmfw0skg.js} +32 -32
- package/dist/chunks/{variant-tvtrv512.js → managed-policy-tvtrv512.js} +1 -1
- package/dist/chunks/{variant-z3pw5915.js → managed-policy-tz2bjj40.js} +5 -5
- package/dist/chunks/{variant-zvt5dnpc.js → managed-policy-tz4n1mmd.js} +4 -4
- package/dist/chunks/{variant-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{variant-jn81emqq.js → managed-policy-vff1trn9.js} +11 -11
- package/dist/chunks/{variant-a5fr2mj9.js → managed-policy-vgbd6tbf.js} +20 -20
- package/dist/chunks/{variant-cm9mwwq8.js → managed-policy-vk08gg5p.js} +29 -29
- package/dist/chunks/{variant-9cyfspf3.js → managed-policy-vtxr0yy2.js} +5 -5
- package/dist/chunks/{variant-0z6w7vfv.js → managed-policy-vy4zg7qh.js} +12 -12
- package/dist/chunks/{variant-0f3fkebw.js → managed-policy-vyp2nf9v.js} +4 -4
- package/dist/chunks/{variant-vzcthcp8.js → managed-policy-vzcthcp8.js} +1 -1
- package/dist/chunks/{variant-ngjw7veb.js → managed-policy-w1rh5dj8.js} +3 -3
- package/dist/chunks/{variant-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{variant-2g7pkq9k.js → managed-policy-w5684xyg.js} +20 -20
- package/dist/chunks/{variant-psazpmmj.js → managed-policy-wd3x2cqz.js} +2 -2
- package/dist/chunks/{variant-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{variant-9esb0m0p.js → managed-policy-wjxzpywc.js} +1 -1
- package/dist/chunks/{variant-rc0khjqf.js → managed-policy-wxzf76mr.js} +12 -12
- package/dist/chunks/{variant-x1ezjp6w.js → managed-policy-x1ezjp6w.js} +1 -1
- package/dist/chunks/{variant-62m7qsdd.js → managed-policy-x1kf4mj5.js} +3 -3
- package/dist/chunks/{variant-z16bdfpw.js → managed-policy-x35r8jm4.js} +9 -9
- package/dist/chunks/{variant-edv89m0p.js → managed-policy-x5j8ez8g.js} +44 -44
- package/dist/chunks/{variant-s7h606h9.js → managed-policy-x6mfsyej.js} +25 -25
- package/dist/chunks/{variant-fx8cm3j5.js → managed-policy-xbcmvxpx.js} +11 -11
- package/dist/chunks/{variant-7yrwfpwm.js → managed-policy-xf43b6z6.js} +11 -11
- package/dist/chunks/{variant-drwq78ky.js → managed-policy-xfkkasph.js} +4 -4
- package/dist/chunks/{variant-n2cj49gr.js → managed-policy-xmvnm6d3.js} +22 -22
- package/dist/chunks/{variant-yq6sxka3.js → managed-policy-xsascqe8.js} +48 -48
- package/dist/chunks/{variant-avd8ev9v.js → managed-policy-y19c3zcv.js} +4 -4
- package/dist/chunks/{variant-y1fvbwt7.js → managed-policy-y1fvbwt7.js} +1 -1
- package/dist/chunks/{variant-p8djes8h.js → managed-policy-y49pmrpy.js} +19 -19
- package/dist/chunks/{variant-xkhfjrgz.js → managed-policy-y6f0p4jw.js} +3 -3
- package/dist/chunks/{variant-y71avatq.js → managed-policy-y71avatq.js} +1 -1
- package/dist/chunks/{variant-31rgt9cd.js → managed-policy-y9xjjn74.js} +15 -15
- package/dist/chunks/{variant-75x4dgvy.js → managed-policy-yckd2dzx.js} +8 -8
- package/dist/chunks/{variant-jfmkgsry.js → managed-policy-yk0hjqzt.js} +18 -18
- package/dist/chunks/{variant-yrhqyw5v.js → managed-policy-yrhqyw5v.js} +1 -1
- package/dist/chunks/{variant-s4enseaf.js → managed-policy-yrznvahk.js} +2 -2
- package/dist/chunks/{variant-r8bjv7hd.js → managed-policy-yzg6r347.js} +14 -14
- package/dist/chunks/{variant-bjtzbw4r.js → managed-policy-z07pqspn.js} +3 -3
- package/dist/chunks/{variant-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{variant-rt8yt3bf.js → managed-policy-z13zbn97.js} +17 -17
- package/dist/chunks/{variant-29x78va6.js → managed-policy-z63w68vq.js} +6 -6
- package/dist/chunks/{variant-02av72dv.js → managed-policy-z8518aq2.js} +35 -35
- package/dist/chunks/{variant-7y60eay9.js → managed-policy-z85wtvq4.js} +37 -37
- package/dist/chunks/{variant-apg24jar.js → managed-policy-zbd32vaa.js} +30 -30
- package/dist/chunks/{variant-zeh9ct20.js → managed-policy-zeh9ct20.js} +2 -2
- package/dist/chunks/{variant-1w0wkfxf.js → managed-policy-zj1szvsc.js} +5 -5
- package/dist/chunks/{variant-d42e34ke.js → managed-policy-zpez7jvj.js} +49 -49
- package/dist/chunks/{variant-zr2ceqn5.js → managed-policy-zr2ceqn5.js} +1 -1
- package/dist/chunks/{variant-zxq2ej10.js → managed-policy-zxq2ej10.js} +1 -1
- 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 +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +121 -121
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +4 -4
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +106 -106
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -361
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +358 -358
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +96 -96
- package/dist/models-dev.js +97 -97
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +1 -1
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +91 -91
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +94 -94
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -96
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/variant-b6ck6p7e.js +0 -26
- package/dist/chunks/variant-cr86fwsy.js +0 -252
- package/dist/chunks/variant-ctefx7dc.js +0 -18
- package/dist/chunks/variant-fczcbajx.js +0 -503
- package/dist/chunks/variant-qapv375x.js +0 -4
- /package/dist/chunks/{variant-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{variant-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{variant-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{variant-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{variant-1kg9ymc8.js → managed-policy-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{variant-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{variant-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{variant-2axfhc9x.js → managed-policy-2axfhc9x.js} +0 -0
- /package/dist/chunks/{variant-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{variant-34c7v6d4.js → managed-policy-34c7v6d4.js} +0 -0
- /package/dist/chunks/{variant-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{variant-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{variant-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{variant-3w5fmr99.js → managed-policy-3w5fmr99.js} +0 -0
- /package/dist/chunks/{variant-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{variant-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{variant-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{variant-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{variant-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{variant-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{variant-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{variant-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{variant-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{variant-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{variant-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{variant-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{variant-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{variant-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{variant-922hggd3.js → managed-policy-922hggd3.js} +0 -0
- /package/dist/chunks/{variant-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{variant-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{variant-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{variant-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{variant-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{variant-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{variant-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{variant-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{variant-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{variant-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{variant-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{variant-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{variant-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{variant-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{variant-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{variant-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{variant-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{variant-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{variant-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{variant-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{variant-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{variant-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{variant-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{variant-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{variant-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{variant-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{variant-fxgpk5d8.js → managed-policy-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{variant-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{variant-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{variant-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{variant-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{variant-hjbc5kem.js → managed-policy-hjbc5kem.js} +0 -0
- /package/dist/chunks/{variant-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{variant-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{variant-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{variant-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{variant-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{variant-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{variant-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{variant-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{variant-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{variant-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{variant-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{variant-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{variant-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{variant-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{variant-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{variant-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{variant-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{variant-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{variant-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{variant-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{variant-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{variant-sk3qaz4a.js → managed-policy-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{variant-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{variant-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{variant-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{variant-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{variant-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{variant-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{variant-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{variant-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{variant-y8cydn3q.js → managed-policy-y8cydn3q.js} +0 -0
- /package/dist/chunks/{variant-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{variant-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{variant-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{variant-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-y6f0p4jw.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-984xje6x.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./managed-policy-s8d7rejh.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-z07pqspn.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./managed-policy-5xpznt2d.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./managed-policy-dg2cj1yd.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/session/history.ts
|
|
31
31
|
var exports_history = {};
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load5,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-vyp2nf9v.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./managed-policy-4hpzevxd.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID4
|
|
11
|
+
} from "./managed-policy-6kdq0pjd.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service52,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
node55
|
|
16
|
+
} from "./managed-policy-d9jh3nn5.js";
|
|
17
17
|
import {
|
|
18
18
|
lazy2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-88xbtdfr.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/pty.ts
|
|
25
25
|
var exports_pty = {};
|
|
26
26
|
__export(exports_pty, {
|
|
27
27
|
CreateInput: () => CreateInput3,
|
|
28
|
-
Event: () =>
|
|
28
|
+
Event: () => Event9,
|
|
29
29
|
ExitedError: () => ExitedError2,
|
|
30
|
-
Info: () =>
|
|
31
|
-
NotFoundError: () =>
|
|
30
|
+
Info: () => Info18,
|
|
31
|
+
NotFoundError: () => NotFoundError6,
|
|
32
32
|
Pty: () => exports_pty,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service51,
|
|
34
34
|
UpdateInput: () => UpdateInput2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node54
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
39
39
|
import { Pty } from "@opencode/schema/pty";
|
|
40
|
-
import { Event as
|
|
40
|
+
import { Event as Event9 } from "@opencode/schema/pty";
|
|
41
41
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
42
42
|
var EXITED_LIMIT = 25;
|
|
43
43
|
var pty = lazy2(() => import("#pty"));
|
|
44
|
-
var
|
|
44
|
+
var Info18 = Pty.Info;
|
|
45
45
|
var CreateInput3 = Pty.CreateInput;
|
|
46
46
|
var UpdateInput2 = Pty.UpdateInput;
|
|
47
47
|
|
|
48
|
-
class
|
|
49
|
-
ptyID:
|
|
48
|
+
class NotFoundError6 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
49
|
+
ptyID: ID4
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
54
|
-
ptyID:
|
|
54
|
+
ptyID: ID4
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service51 extends Context.Service()("@opencode/Pty") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
60
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
61
61
|
const bus = yield* Service83;
|
|
62
|
-
const location = yield*
|
|
63
|
-
const shell = yield*
|
|
62
|
+
const location = yield* Service80;
|
|
63
|
+
const shell = yield* Service52;
|
|
64
64
|
const context = yield* Effect.context();
|
|
65
65
|
const runFork = Effect.runForkWith(context);
|
|
66
66
|
const sessions = new Map;
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
97
97
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
98
98
|
const session = sessions.get(id);
|
|
99
99
|
if (!session)
|
|
100
|
-
return yield* new
|
|
100
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
101
101
|
return session;
|
|
102
102
|
});
|
|
103
103
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -123,7 +123,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
123
123
|
return (yield* requireSession(id)).info;
|
|
124
124
|
});
|
|
125
125
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
126
|
-
const id =
|
|
126
|
+
const id = ID4.ascending();
|
|
127
127
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
128
128
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
129
129
|
const cwd = input.cwd || location.directory;
|
|
@@ -268,12 +268,12 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
|
-
return
|
|
271
|
+
return Service51.of({ list, get, create, update, remove, write, attach });
|
|
272
272
|
}));
|
|
273
|
-
var
|
|
274
|
-
service:
|
|
273
|
+
var node54 = makeLocationNode({
|
|
274
|
+
service: Service51,
|
|
275
275
|
layer,
|
|
276
|
-
deps: [node87,
|
|
276
|
+
deps: [node87, node84, node55]
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { Info18, CreateInput3, UpdateInput2, NotFoundError6, ExitedError2, Service51, node54, exports_pty, Event9 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-vyp2nf9v.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Event19
|
|
7
|
+
} from "./managed-policy-zbd32vaa.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-02rzac9a.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-h6r3nrb9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service59
|
|
17
|
+
} from "./managed-policy-q6amncqc.js";
|
|
18
18
|
import {
|
|
19
19
|
ID13,
|
|
20
20
|
mergeOverlay2,
|
|
21
21
|
mergeHeaders2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./managed-policy-0g0txq2z.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
ID5,
|
|
25
|
+
Input14,
|
|
26
26
|
Response2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./managed-policy-x6mfsyej.js";
|
|
28
28
|
|
|
29
29
|
// src/plugin/provider/opencode.ts
|
|
30
30
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -39,7 +39,7 @@ var methodID = MethodID2.make("device");
|
|
|
39
39
|
var RemoteResponse = Schema.Struct({
|
|
40
40
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
41
41
|
websearch: Schema.Struct({
|
|
42
|
-
providerID:
|
|
42
|
+
providerID: ID5
|
|
43
43
|
}).pipe(Schema.optional),
|
|
44
44
|
experimental: Schema.Struct({
|
|
45
45
|
policies: Schema.Array(ConfigPolicy.Info).pipe(Schema.optional)
|
|
@@ -64,7 +64,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
64
64
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
65
65
|
function oauth(http) {
|
|
66
66
|
return {
|
|
67
|
-
integrationID:
|
|
67
|
+
integrationID: ID14.make("opencode"),
|
|
68
68
|
method: {
|
|
69
69
|
id: methodID,
|
|
70
70
|
type: "oauth",
|
|
@@ -120,7 +120,7 @@ var OpencodePlugin2 = define({
|
|
|
120
120
|
effect: Effect.fn(function* (ctx) {
|
|
121
121
|
const bus = yield* Service83;
|
|
122
122
|
const http = yield* HttpClient.HttpClient;
|
|
123
|
-
const managed = yield*
|
|
123
|
+
const managed = yield* Service59;
|
|
124
124
|
const loading = Semaphore.makeUnsafe(1);
|
|
125
125
|
let snapshot = { config: undefined, connection: undefined, organization: undefined };
|
|
126
126
|
const load = Effect.fn("OpencodePlugin.load")(function* () {
|
|
@@ -153,7 +153,7 @@ var OpencodePlugin2 = define({
|
|
|
153
153
|
providers.update(providerID, (provider) => {
|
|
154
154
|
if (source && source.provider !== provider)
|
|
155
155
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
156
|
-
provider.integrationID =
|
|
156
|
+
provider.integrationID = ID14.make("opencode");
|
|
157
157
|
if (item.canonical !== undefined)
|
|
158
158
|
provider.canonical = item.canonical;
|
|
159
159
|
if (item.name !== undefined)
|
|
@@ -269,7 +269,7 @@ var OpencodePlugin2 = define({
|
|
|
269
269
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
270
270
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
271
271
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
272
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
272
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
273
273
|
query: input.query,
|
|
274
274
|
providerID: descriptor.providerID
|
|
275
275
|
}));
|
|
@@ -291,7 +291,7 @@ var OpencodePlugin2 = define({
|
|
|
291
291
|
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
292
292
|
});
|
|
293
293
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
294
|
-
yield* bus.subscribe(
|
|
294
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
295
295
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
296
296
|
})
|
|
297
297
|
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service48,
|
|
3
|
+
node51,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./managed-policy-dd5dn1hm.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service37,
|
|
8
|
+
node39
|
|
9
|
+
} from "./managed-policy-jhf3jymm.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service13
|
|
12
|
+
} from "./managed-policy-z8518aq2.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./managed-policy-crpty8yf.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service48, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service13);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node39.replace(Layer.succeed(Service37, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node51.replace(Layer.succeed(Service48, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service30,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service30 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service30.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service30, awaitActivation2, exports_service };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84,
|
|
6
6
|
node88
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-q4yhrq2j.js";
|
|
8
8
|
import {
|
|
9
9
|
Service83,
|
|
10
10
|
node87
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-vyp2nf9v.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service82,
|
|
14
|
+
node86
|
|
15
|
+
} from "./managed-policy-vy4zg7qh.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info34,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-57ez7d0k.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./managed-policy-wd3x2cqz.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./managed-policy-94ek1h2f.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID17,
|
|
40
|
+
Info: () => Info33,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node85,
|
|
47
47
|
root: () => root2
|
|
48
48
|
});
|
|
49
49
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
55
55
|
import { AppProcess } from "@opencode/util/process";
|
|
56
56
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
57
57
|
import { Hash } from "@opencode/util/hash";
|
|
58
|
-
var
|
|
58
|
+
var ID17 = ID18;
|
|
59
59
|
var Vcs2 = Vcs3;
|
|
60
60
|
var Current2 = Current3;
|
|
61
|
-
var
|
|
61
|
+
var Info33 = Info34;
|
|
62
62
|
var UpdateInput3 = UpdateInput4;
|
|
63
63
|
|
|
64
|
-
class
|
|
65
|
-
projectID:
|
|
64
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
65
|
+
projectID: ID17
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -72,7 +72,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
72
72
|
});
|
|
73
73
|
var ACTIVATE_INTERVAL = 60000;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class Service81 extends Context.Service()("@opencode/Project") {
|
|
76
76
|
}
|
|
77
77
|
function fromRow(row) {
|
|
78
78
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -95,9 +95,9 @@ function fromRow(row) {
|
|
|
95
95
|
sandboxes: row.sandboxes
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
var layer = Layer.effect(
|
|
98
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
|
-
const git = yield*
|
|
100
|
+
const git = yield* Service82;
|
|
101
101
|
const proc = yield* AppProcess.Service;
|
|
102
102
|
const bus = yield* Service83;
|
|
103
103
|
const db = (yield* Service84).db;
|
|
@@ -108,7 +108,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
108
108
|
if (previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true)))) {
|
|
109
109
|
const row = yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie);
|
|
110
110
|
if (row)
|
|
111
|
-
yield* bus.publish(
|
|
111
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
112
112
|
}
|
|
113
113
|
if (!project.vcs)
|
|
114
114
|
return project;
|
|
@@ -145,7 +145,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
145
145
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
146
146
|
projectID: item.projectID,
|
|
147
147
|
directory: item.directory,
|
|
148
|
-
previous: project.previous ??
|
|
148
|
+
previous: project.previous ?? ID17.global,
|
|
149
149
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
150
150
|
}, {
|
|
151
151
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -168,9 +168,9 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
168
168
|
time_updated: Date.now()
|
|
169
169
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
170
170
|
if (!row)
|
|
171
|
-
return yield* new
|
|
171
|
+
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
172
172
|
const project = fromRow(row);
|
|
173
|
-
yield* bus.publish(
|
|
173
|
+
yield* bus.publish(Event21.Updated, project);
|
|
174
174
|
return project;
|
|
175
175
|
});
|
|
176
176
|
const activated = new Map;
|
|
@@ -181,10 +181,10 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
181
181
|
activated.set(projectID, now);
|
|
182
182
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
183
183
|
if (row)
|
|
184
|
-
yield* bus.publish(
|
|
184
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
185
185
|
});
|
|
186
186
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
187
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
187
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
188
188
|
return;
|
|
189
189
|
}));
|
|
190
190
|
});
|
|
@@ -195,7 +195,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
195
195
|
const normalized = url(origin);
|
|
196
196
|
if (!normalized)
|
|
197
197
|
return;
|
|
198
|
-
return
|
|
198
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
199
199
|
});
|
|
200
200
|
function url(input) {
|
|
201
201
|
const value = input.trim();
|
|
@@ -220,7 +220,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
220
220
|
}
|
|
221
221
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
222
222
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
223
|
-
return root ?
|
|
223
|
+
return root ? ID17.make(root) : undefined;
|
|
224
224
|
});
|
|
225
225
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
226
226
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -236,7 +236,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
236
236
|
return;
|
|
237
237
|
const node = result.stdout.toString("utf8").split(`
|
|
238
238
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
239
|
-
return node ?
|
|
239
|
+
return node ? ID17.make(node) : undefined;
|
|
240
240
|
});
|
|
241
241
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
242
242
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -245,7 +245,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
245
245
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
246
246
|
return {
|
|
247
247
|
previous,
|
|
248
|
-
id: id ??
|
|
248
|
+
id: id ?? ID17.global,
|
|
249
249
|
directory: worktree,
|
|
250
250
|
vcs: { type: "hg", store }
|
|
251
251
|
};
|
|
@@ -262,7 +262,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
262
262
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
263
263
|
return yield* persist({
|
|
264
264
|
previous,
|
|
265
|
-
id: id ??
|
|
265
|
+
id: id ?? ID17.global,
|
|
266
266
|
directory: repo.worktree,
|
|
267
267
|
canonical,
|
|
268
268
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -276,18 +276,18 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
return yield* persist({
|
|
279
|
-
id:
|
|
279
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
280
280
|
directory,
|
|
281
281
|
canonical: directory,
|
|
282
282
|
vcs: undefined
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
return
|
|
285
|
+
return Service81.of({ list, update, activate, resolve });
|
|
286
286
|
}));
|
|
287
|
-
var
|
|
288
|
-
service:
|
|
287
|
+
var node85 = makeGlobalNode({
|
|
288
|
+
service: Service81,
|
|
289
289
|
layer,
|
|
290
|
-
deps: [node87, node88, FSUtil.node,
|
|
290
|
+
deps: [node87, node88, FSUtil.node, node86, AppProcess.node]
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
export {
|
|
293
|
+
export { ID17, Vcs2, Current2, Info33, UpdateInput3, NotFoundError11, root2, Service81, node85, exports_project };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service10,
|
|
13
|
+
node: () => node12
|
|
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 Service10 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service10, 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 Service10.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(Service9, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node12 = makeGlobalNode({ service: Service10, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service10, node12, exports_update };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./managed-policy-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/memory.ts
|
|
11
11
|
var exports_memory = {};
|