@opencode/core 0.0.0-dev-146 → 0.0.0-dev-149
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 +87 -87
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{formatter-6t1z78dt.js → plugin-023350j2.js} +25 -25
- package/dist/chunks/{formatter-hgd7c2hz.js → plugin-02xem3g7.js} +9 -9
- package/dist/chunks/{formatter-wtn2pt4a.js → plugin-0artd7x6.js} +6 -6
- package/dist/chunks/{formatter-80kvr5bw.js → plugin-0b7gzexh.js} +8 -8
- package/dist/chunks/{formatter-v519ksy7.js → plugin-0byhdbpk.js} +48 -48
- package/dist/chunks/{formatter-advnjzs0.js → plugin-0gc20grr.js} +32 -32
- package/dist/chunks/{formatter-zv35kxex.js → plugin-0j0hgpg3.js} +16 -16
- package/dist/chunks/{formatter-60g5e9a4.js → plugin-0sp0v5x6.js} +15 -15
- package/dist/chunks/{formatter-g9jxkka8.js → plugin-0vypjg2b.js} +11 -11
- package/dist/chunks/{formatter-k63k4b1f.js → plugin-0xhcwp0e.js} +24 -24
- package/dist/chunks/{formatter-c9hwcyhb.js → plugin-0zfb02tz.js} +18 -18
- package/dist/chunks/{formatter-a609rjt8.js → plugin-10krap29.js} +11 -11
- package/dist/chunks/{formatter-8jztxfpf.js → plugin-11hfp36g.js} +4 -4
- package/dist/chunks/{formatter-9ctbbx4t.js → plugin-13sfv54y.js} +5 -5
- package/dist/chunks/{formatter-da1nsxc2.js → plugin-197frfyp.js} +12 -12
- package/dist/chunks/{formatter-1kn6jdkn.js → plugin-1kn6jdkn.js} +1 -1
- package/dist/chunks/{formatter-1x2knyw4.js → plugin-1x2knyw4.js} +1 -1
- package/dist/chunks/{formatter-02f3mwsw.js → plugin-1xpesaja.js} +55 -55
- package/dist/chunks/{formatter-204s3925.js → plugin-204s3925.js} +1 -1
- package/dist/chunks/{formatter-vaq1yek0.js → plugin-26x8chrq.js} +6 -6
- package/dist/chunks/{formatter-1ep2p91f.js → plugin-27w5k9zf.js} +2 -2
- package/dist/chunks/{formatter-7ngzeq25.js → plugin-2aj7fkzc.js} +11 -11
- package/dist/chunks/{formatter-mpswt61j.js → plugin-2bf9kvgn.js} +1 -1
- package/dist/chunks/{formatter-9t0k5eya.js → plugin-2cy9cbrx.js} +11 -11
- package/dist/chunks/{formatter-fq6avx26.js → plugin-2dpmrcw8.js} +31 -31
- package/dist/chunks/{formatter-nrv1y2q0.js → plugin-2gyck6q0.js} +2 -2
- package/dist/chunks/{formatter-65f11974.js → plugin-2ht51f9z.js} +6 -6
- package/dist/chunks/{formatter-yqveydy6.js → plugin-2mbjfaxd.js} +4 -4
- package/dist/chunks/{formatter-whtafen9.js → plugin-2n0r37q4.js} +12 -12
- package/dist/chunks/{formatter-h4p3pyf8.js → plugin-2yvtks3w.js} +6 -6
- package/dist/chunks/{formatter-hhe1ee49.js → plugin-3167kh59.js} +3 -3
- package/dist/chunks/{formatter-c2gy53he.js → plugin-31z3tt8p.js} +8 -8
- package/dist/chunks/{formatter-31wms35x.js → plugin-360yt0tf.js} +8 -8
- package/dist/chunks/{formatter-75evnb93.js → plugin-36cj4gmt.js} +9 -9
- package/dist/chunks/{formatter-pd78jttv.js → plugin-37eted7f.js} +16 -16
- package/dist/chunks/{formatter-2xwkyk0m.js → plugin-38adaqc0.js} +5 -5
- package/dist/chunks/{formatter-35zt77b2.js → plugin-38hqgsk1.js} +26 -26
- package/dist/chunks/{formatter-kz7z5vjf.js → plugin-38qaxswc.js} +9 -9
- package/dist/chunks/{formatter-ayjs7tqn.js → plugin-3cbjf1nt.js} +2 -2
- package/dist/chunks/{formatter-sjchwnp0.js → plugin-3gp97vax.js} +25 -25
- package/dist/chunks/{formatter-3hepkmqq.js → plugin-3hepkmqq.js} +1 -1
- package/dist/chunks/{formatter-3kdbrncp.js → plugin-3kdbrncp.js} +2 -2
- package/dist/chunks/{formatter-3nnrz6f6.js → plugin-3nnrz6f6.js} +1 -1
- package/dist/chunks/{formatter-jq9280ps.js → plugin-3rcscnb1.js} +4 -4
- package/dist/chunks/{formatter-9zcxsq7k.js → plugin-3tjrgpk4.js} +10 -10
- package/dist/chunks/{formatter-ghfyfjkc.js → plugin-3vwws94n.js} +25 -25
- package/dist/chunks/{formatter-h659ea78.js → plugin-3ytse99a.js} +4 -4
- package/dist/chunks/{formatter-fmt2zjvb.js → plugin-42rqyp4k.js} +22 -22
- package/dist/chunks/{formatter-vrx9q2v9.js → plugin-43e24x2b.js} +12 -12
- package/dist/chunks/{formatter-bc4s7aac.js → plugin-457hahnb.js} +16 -16
- package/dist/chunks/{formatter-4pyp9zr9.js → plugin-4pyp9zr9.js} +1 -1
- package/dist/chunks/{formatter-4v008n1t.js → plugin-4v008n1t.js} +1 -1
- package/dist/chunks/{formatter-brwf83f1.js → plugin-5kb7v1wv.js} +23 -23
- package/dist/chunks/{formatter-5m9w47nd.js → plugin-5m9w47nd.js} +1 -1
- package/dist/chunks/{formatter-6dra8ttr.js → plugin-5qrcxmcm.js} +37 -37
- package/dist/chunks/{formatter-1yq9hg58.js → plugin-5zrxpy3q.js} +5 -5
- package/dist/chunks/{formatter-9v0dawq3.js → plugin-60k7rxvs.js} +13 -13
- package/dist/chunks/{formatter-54ptjt3c.js → plugin-623yr967.js} +6 -6
- package/dist/chunks/{formatter-tbhy4r12.js → plugin-64c707zx.js} +2 -2
- package/dist/chunks/{formatter-3ykedks4.js → plugin-6c2a7p2k.js} +18 -18
- package/dist/chunks/{formatter-6esdw8yj.js → plugin-6esdw8yj.js} +1 -1
- package/dist/chunks/{formatter-76cb1hcw.js → plugin-76cb1hcw.js} +1 -1
- package/dist/chunks/{formatter-nah043kf.js → plugin-770pw0s1.js} +4 -4
- package/dist/chunks/{formatter-cxx4120z.js → plugin-79cgpb4a.js} +6 -6
- package/dist/chunks/{formatter-zayt27d7.js → plugin-7aq8rkr3.js} +15 -15
- package/dist/chunks/{formatter-7bmhse3q.js → plugin-7bmhse3q.js} +1 -1
- package/dist/chunks/{formatter-yhn7d48k.js → plugin-7fvcpx9m.js} +12 -12
- package/dist/chunks/{formatter-vjbxdeb8.js → plugin-7smxv6qm.js} +14 -14
- package/dist/chunks/{formatter-7w2ypzdf.js → plugin-7w2ypzdf.js} +1 -1
- package/dist/chunks/{formatter-ka1bgm7s.js → plugin-7x516nkt.js} +46 -46
- package/dist/chunks/{formatter-6v5r3k3y.js → plugin-7ycxtgxb.js} +35 -35
- package/dist/chunks/{formatter-176yg0jf.js → plugin-7yz3nkr2.js} +23 -23
- package/dist/chunks/{formatter-7ye1cp98.js → plugin-82776bsn.js} +10 -10
- package/dist/chunks/{formatter-ngxbkp8v.js → plugin-8ft3xw2m.js} +5 -5
- package/dist/chunks/{formatter-envv585q.js → plugin-8jvwjrps.js} +54 -54
- package/dist/chunks/{formatter-67dmgvxj.js → plugin-8n7h5d4s.js} +27 -27
- package/dist/chunks/{formatter-8ykqf5wm.js → plugin-8rgb2cvr.js} +7 -7
- package/dist/chunks/{formatter-t87050pk.js → plugin-8w7pper6.js} +5 -5
- package/dist/chunks/{formatter-8wtp7s3z.js → plugin-8wtp7s3z.js} +1 -1
- package/dist/chunks/{formatter-90zstvax.js → plugin-90zstvax.js} +1 -1
- package/dist/chunks/{formatter-mq5znjk8.js → plugin-91y6r506.js} +13 -13
- package/dist/chunks/{formatter-ssnx7b4e.js → plugin-927xh9nh.js} +21 -21
- package/dist/chunks/{formatter-cjce029x.js → plugin-93a9jndt.js} +34 -34
- package/dist/chunks/{formatter-mwx8k457.js → plugin-96h9ajm3.js} +23 -23
- package/dist/chunks/{formatter-hz5mdqd1.js → plugin-97c5t57a.js} +18 -18
- package/dist/chunks/{formatter-30wq98rm.js → plugin-9brshkr5.js} +17 -17
- package/dist/chunks/{formatter-6add78pk.js → plugin-9dja39nt.js} +50 -50
- package/dist/chunks/{formatter-pt7m923m.js → plugin-9ebmah4g.js} +11 -11
- package/dist/chunks/{formatter-8yhc7zrg.js → plugin-9f3sjfep.js} +9 -9
- package/dist/chunks/{formatter-enxh4fyk.js → plugin-9hr3w0ac.js} +16 -16
- package/dist/chunks/{formatter-8430rgvc.js → plugin-9kpkhjk2.js} +8 -8
- package/dist/chunks/{formatter-zg5q7ejm.js → plugin-a01n3spq.js} +63 -63
- package/dist/chunks/{formatter-8843840p.js → plugin-a15jtcfa.js} +3 -3
- package/dist/chunks/{formatter-9tacn0cp.js → plugin-a3vjmkxr.js} +2 -2
- package/dist/chunks/{formatter-hdfrs5mg.js → plugin-af0k6e03.js} +9 -9
- package/dist/chunks/{formatter-034tev2y.js → plugin-aj7mw0zk.js} +2 -2
- package/dist/chunks/{formatter-kjjfjqy3.js → plugin-ajnhcgwj.js} +15 -15
- package/dist/chunks/{formatter-6rt7ts86.js → plugin-amcehceb.js} +4 -4
- package/dist/chunks/{formatter-0qf1t2tf.js → plugin-atx93y9v.js} +9 -9
- package/dist/chunks/{formatter-b6vsg801.js → plugin-b6vsg801.js} +2 -2
- package/dist/chunks/{formatter-r85hedwm.js → plugin-b8987e27.js} +9 -9
- package/dist/chunks/{formatter-cymxkkyw.js → plugin-bb2gy873.js} +32 -32
- package/dist/chunks/{formatter-91za51b6.js → plugin-bcastkv0.js} +13 -13
- package/dist/chunks/{formatter-mjz2tdxa.js → plugin-bddgjnn0.js} +16 -16
- package/dist/chunks/{formatter-afbxbw72.js → plugin-brtbsxkn.js} +11 -11
- package/dist/chunks/{formatter-bph6tfhv.js → plugin-bycfeyc6.js} +17 -17
- package/dist/chunks/{formatter-8ymr7d4s.js → plugin-c1qqsdsb.js} +24 -24
- package/dist/chunks/{formatter-r2h6cvw2.js → plugin-cn335rzh.js} +1 -1
- package/dist/chunks/{formatter-yy19he2s.js → plugin-cr66ykxa.js} +32 -32
- package/dist/chunks/{formatter-cwrgdav8.js → plugin-cwrgdav8.js} +2 -2
- package/dist/chunks/{formatter-a9atne55.js → plugin-d2w1yggf.js} +5 -5
- package/dist/chunks/{formatter-zwjwjj82.js → plugin-d3ssywhq.js} +16 -16
- package/dist/chunks/{formatter-m7fwq7c0.js → plugin-d4qn5jcn.js} +25 -25
- package/dist/chunks/{formatter-d4v9tmah.js → plugin-d4v9tmah.js} +2 -2
- package/dist/chunks/{formatter-tg1vr1qt.js → plugin-ddvn7d3w.js} +8 -8
- package/dist/chunks/{formatter-s7xmnr8t.js → plugin-drvbhkez.js} +6 -6
- package/dist/chunks/{formatter-dt77769w.js → plugin-dt77769w.js} +1 -1
- package/dist/chunks/{formatter-s3g9ecv2.js → plugin-dys0nn3x.js} +24 -24
- package/dist/chunks/{formatter-0jjwjx0v.js → plugin-e2ry9241.js} +33 -33
- package/dist/chunks/{formatter-hp39vnpe.js → plugin-e4tm35ss.js} +33 -33
- package/dist/chunks/{formatter-e834z07m.js → plugin-e834z07m.js} +1 -1
- package/dist/chunks/{formatter-gsrcb0q9.js → plugin-e9z9ekwf.js} +36 -36
- package/dist/chunks/{formatter-gg8p9cgs.js → plugin-ep59zg61.js} +3 -3
- package/dist/chunks/{formatter-6asz9jay.js → plugin-epkrfhse.js} +11 -11
- package/dist/chunks/{formatter-6td4j3g2.js → plugin-etfsdzn3.js} +2 -2
- package/dist/chunks/{formatter-yh2xpw0b.js → plugin-eykczw6s.js} +20 -20
- package/dist/chunks/{formatter-c46s9eb3.js → plugin-f01y088k.js} +5 -5
- package/dist/chunks/{formatter-4vxvd6mv.js → plugin-f7jj8f84.js} +6 -6
- package/dist/chunks/plugin-f8ma18fn.js +18 -0
- package/dist/chunks/{formatter-3zjnpbwd.js → plugin-fcbsb19f.js} +29 -29
- package/dist/chunks/{formatter-7hmjb961.js → plugin-fchc5cs2.js} +21 -21
- package/dist/chunks/{formatter-fffv3p7h.js → plugin-fffv3p7h.js} +1 -1
- package/dist/chunks/{formatter-fg9p65nk.js → plugin-fg9p65nk.js} +2 -2
- package/dist/chunks/{formatter-ay20v4cr.js → plugin-fjjkker5.js} +4 -4
- package/dist/chunks/{formatter-xwyda8kd.js → plugin-fqjwhs84.js} +6 -6
- package/dist/chunks/{formatter-pkh3c91y.js → plugin-fqjx0mtk.js} +27 -27
- package/dist/chunks/{formatter-rc57nzph.js → plugin-g1bf65h0.js} +17 -17
- package/dist/chunks/{formatter-pwzrj9r4.js → plugin-g2tn4t9t.js} +27 -27
- package/dist/chunks/{formatter-n98b5x95.js → plugin-gb4m33x1.js} +4 -4
- package/dist/chunks/{formatter-vrcsa8qx.js → plugin-gcjdgkn2.js} +9 -9
- package/dist/chunks/{formatter-chgm1tby.js → plugin-gcrehvxf.js} +4 -4
- package/dist/chunks/{formatter-3jw91zxn.js → plugin-gg56aea0.js} +22 -22
- package/dist/chunks/{formatter-hyaynvgx.js → plugin-ggxt8q7a.js} +25 -25
- package/dist/chunks/{formatter-9nkjg9qd.js → plugin-h2xt6wet.js} +6 -6
- package/dist/chunks/{formatter-8phszwmc.js → plugin-h6evkf2m.js} +11 -11
- package/dist/chunks/{formatter-vmfhgzt5.js → plugin-hfgk9wzg.js} +4 -4
- package/dist/chunks/{formatter-rvbdf6ee.js → plugin-hgfpvvhf.js} +16 -16
- package/dist/chunks/{formatter-5x26af84.js → plugin-hj8dv2fv.js} +4 -4
- package/dist/chunks/{formatter-hpg1pkwy.js → plugin-hpg1pkwy.js} +1 -1
- package/dist/chunks/{formatter-9r0x1bva.js → plugin-hs9b4b47.js} +9 -9
- package/dist/chunks/{formatter-1eqvcz7d.js → plugin-hv8gebrm.js} +21 -21
- package/dist/chunks/{formatter-3qgpmfb2.js → plugin-j8yg66kd.js} +23 -23
- package/dist/chunks/{formatter-2vjv0qpa.js → plugin-jb98ea0v.js} +12 -12
- package/dist/chunks/{formatter-jfaecv01.js → plugin-jfaecv01.js} +1 -1
- package/dist/chunks/{formatter-2saggmey.js → plugin-jgr9rt82.js} +24 -24
- package/dist/chunks/{formatter-2zp5a6yg.js → plugin-jh74jycr.js} +3 -3
- package/dist/chunks/{formatter-b5rjhvjd.js → plugin-jj25aphh.js} +14 -14
- package/dist/chunks/{formatter-wkztgnzq.js → plugin-jm1kbgn5.js} +24 -24
- package/dist/chunks/{formatter-ge85sm10.js → plugin-jn9v78dn.js} +29 -29
- package/dist/chunks/{formatter-jtnps1zs.js → plugin-jtnps1zs.js} +2 -2
- package/dist/chunks/{formatter-tknbc31d.js → plugin-jzsddmmt.js} +7 -7
- package/dist/chunks/{formatter-70agar2m.js → plugin-k2zdq3mp.js} +2 -2
- package/dist/chunks/{formatter-pa0ex826.js → plugin-k31rcwbk.js} +11 -11
- package/dist/chunks/{formatter-x7gm0ha8.js → plugin-k5c2ssdt.js} +1 -1
- package/dist/chunks/{formatter-k814nvkf.js → plugin-k814nvkf.js} +1 -1
- package/dist/chunks/{formatter-jwxccdg8.js → plugin-k83ve1kc.js} +6 -6
- package/dist/chunks/{formatter-54bnvst0.js → plugin-k87qgv3b.js} +43 -43
- package/dist/chunks/{formatter-w307e9wj.js → plugin-k9zkdd2y.js} +4 -4
- package/dist/chunks/{formatter-34b2q3dm.js → plugin-kna34kpp.js} +29 -29
- package/dist/chunks/{formatter-gc1mvsnx.js → plugin-kpaptj6h.js} +10 -10
- package/dist/chunks/{formatter-00pktjsy.js → plugin-kpbwe1qr.js} +21 -21
- package/dist/chunks/plugin-kq90df9y.js +26 -0
- package/dist/chunks/{formatter-kt3bjfbg.js → plugin-kt3bjfbg.js} +1 -1
- package/dist/chunks/{formatter-jvcwjysj.js → plugin-ktg919s3.js} +178 -178
- package/dist/chunks/{formatter-c6qe9nk0.js → plugin-m07vw4yt.js} +19 -19
- package/dist/chunks/{formatter-mwq3mt8e.js → plugin-m10c82vj.js} +32 -32
- package/dist/chunks/{formatter-m1714858.js → plugin-m1714858.js} +1 -1
- package/dist/chunks/{formatter-q2zh2gwm.js → plugin-m4x6ymdg.js} +17 -17
- package/dist/chunks/{formatter-npbdyff7.js → plugin-m9s6j6x5.js} +30 -30
- package/dist/chunks/{formatter-m9w0rfyh.js → plugin-m9w0rfyh.js} +1 -1
- package/dist/chunks/{formatter-180ps155.js → plugin-meevhkww.js} +46 -46
- package/dist/chunks/{formatter-s7zt2hwe.js → plugin-mkk6jxrn.js} +23 -23
- package/dist/chunks/{formatter-grv0jex9.js → plugin-msya5s3a.js} +11 -11
- package/dist/chunks/{formatter-k00f7hr2.js → plugin-n10b8vxr.js} +21 -21
- package/dist/chunks/{formatter-t0dansjm.js → plugin-n6adtcwm.js} +5 -5
- package/dist/chunks/{formatter-t2z71z34.js → plugin-n72e3dxd.js} +5 -5
- package/dist/chunks/{formatter-7hqt66pc.js → plugin-n74ky04a.js} +28 -28
- package/dist/chunks/{formatter-9k3wnwh3.js → plugin-npg5se5z.js} +6 -6
- package/dist/chunks/{formatter-vx3jgdek.js → plugin-nvxqht09.js} +3 -3
- package/dist/chunks/{formatter-p015t6z3.js → plugin-p015t6z3.js} +2 -2
- package/dist/chunks/{formatter-3h9jmy66.js → plugin-p0fnxbrs.js} +27 -27
- package/dist/chunks/{formatter-qqg9c0kv.js → plugin-p0tsr9h6.js} +4 -4
- package/dist/chunks/{formatter-xzqqj5cv.js → plugin-p3rndcyt.js} +10 -10
- package/dist/chunks/{formatter-pknna89w.js → plugin-pknna89w.js} +1 -1
- package/dist/chunks/{formatter-01awnnjy.js → plugin-pz2hbxnb.js} +324 -324
- package/dist/chunks/{formatter-qw68mmce.js → plugin-q5pv97qv.js} +5 -5
- package/dist/chunks/{formatter-q63cb7ap.js → plugin-q63cb7ap.js} +3 -3
- package/dist/chunks/{formatter-zzg16z9m.js → plugin-q6vpdb57.js} +11 -11
- package/dist/chunks/{formatter-thvf23q9.js → plugin-q7cvrf9n.js} +7 -7
- package/dist/chunks/{formatter-q39rmv9p.js → plugin-qgrpvdhs.js} +98 -98
- package/dist/chunks/{formatter-yara3q77.js → plugin-qkw2jr9b.js} +2 -2
- package/dist/chunks/{formatter-hbdn8m45.js → plugin-qmysd79e.js} +33 -33
- package/dist/chunks/{formatter-qp7r0hxv.js → plugin-qp7r0hxv.js} +1 -1
- package/dist/chunks/{formatter-fahcx4cp.js → plugin-qr5d7g8r.js} +74 -74
- package/dist/chunks/{formatter-4e1keyg1.js → plugin-qrez554k.js} +13 -13
- package/dist/chunks/{formatter-htx3sbcr.js → plugin-qs4830ty.js} +28 -28
- package/dist/chunks/{formatter-ec29h8ha.js → plugin-qzwtc0ad.js} +50 -50
- package/dist/chunks/{formatter-r0yr0wbs.js → plugin-r0yr0wbs.js} +1 -1
- package/dist/chunks/{formatter-j9revkc6.js → plugin-r1y4q7eg.js} +48 -48
- package/dist/chunks/{formatter-40za9wsf.js → plugin-r41sfy63.js} +6 -6
- package/dist/chunks/{formatter-r542h3bh.js → plugin-r542h3bh.js} +1 -1
- package/dist/chunks/{formatter-e5qfbzbw.js → plugin-r72fjvgr.js} +9 -9
- package/dist/chunks/{formatter-206jryat.js → plugin-r7xk0eym.js} +32 -32
- package/dist/chunks/{formatter-rb9dy4dg.js → plugin-rb9dy4dg.js} +1 -1
- package/dist/chunks/{formatter-xzwcmcya.js → plugin-rckzcncc.js} +14 -14
- package/dist/chunks/{formatter-afhdzj43.js → plugin-rp6tyec3.js} +29 -29
- package/dist/chunks/{formatter-rt5dr6hb.js → plugin-rt5dr6hb.js} +1 -1
- package/dist/chunks/{formatter-tp0wxn7d.js → plugin-rvsw30t9.js} +5 -5
- package/dist/chunks/{formatter-v6z303eq.js → plugin-rvte90y7.js} +29 -29
- package/dist/chunks/{formatter-nsevj23t.js → plugin-s3xbe3tv.js} +17 -17
- package/dist/chunks/{formatter-mgcsgjq4.js → plugin-s4f8ct6t.js} +4 -4
- package/dist/chunks/{formatter-s7kyse9r.js → plugin-s7kyse9r.js} +1 -1
- package/dist/chunks/{formatter-wxrt44b6.js → plugin-s7qpx3zw.js} +37 -37
- package/dist/chunks/{formatter-ze827wmr.js → plugin-s9eh0yy5.js} +35 -35
- package/dist/chunks/{formatter-sa3fpqfw.js → plugin-sa3fpqfw.js} +2 -2
- package/dist/chunks/{formatter-4k8v9b7f.js → plugin-sqcd90z6.js} +6 -6
- package/dist/chunks/{formatter-sqjzf8x2.js → plugin-sqjzf8x2.js} +1 -1
- package/dist/chunks/{formatter-65q9xmpy.js → plugin-sr3pe222.js} +21 -21
- package/dist/chunks/{formatter-c9t2ty9q.js → plugin-ssfehs1z.js} +4 -4
- package/dist/chunks/{formatter-27bs79w9.js → plugin-st7p3hwb.js} +2 -2
- package/dist/chunks/{formatter-svcy3p9a.js → plugin-svcy3p9a.js} +1 -1
- package/dist/chunks/{formatter-k15fpqjy.js → plugin-syqc1q91.js} +11 -11
- package/dist/chunks/{formatter-hn3gdjg3.js → plugin-sz0km235.js} +36 -36
- package/dist/chunks/{formatter-3gbv69k7.js → plugin-t3y9r3y2.js} +32 -32
- package/dist/chunks/{formatter-we007nbv.js → plugin-t57f7ggb.js} +23 -23
- package/dist/chunks/{formatter-enj9pb4k.js → plugin-t9qkp5rw.js} +9 -9
- package/dist/chunks/{formatter-tczq8hjw.js → plugin-tczq8hjw.js} +1 -1
- package/dist/chunks/{formatter-twssxy5n.js → plugin-twssxy5n.js} +2 -2
- package/dist/chunks/{formatter-xwc4j8ee.js → plugin-ty2rqtrv.js} +12 -12
- package/dist/chunks/{formatter-v2r1d0zg.js → plugin-v2r1d0zg.js} +1 -1
- package/dist/chunks/{formatter-veqvce7d.js → plugin-veqvce7d.js} +1 -1
- package/dist/chunks/{formatter-g6wkcjn2.js → plugin-vk3nwvaj.js} +12 -12
- package/dist/chunks/{formatter-hx6gesf1.js → plugin-vq1ppevj.js} +8 -8
- package/dist/chunks/{formatter-95qeadzf.js → plugin-vw2s6thg.js} +22 -22
- package/dist/chunks/{formatter-q35sm1em.js → plugin-vxp4ss06.js} +1 -1
- package/dist/chunks/{formatter-w3wsvvr9.js → plugin-w3wsvvr9.js} +1 -1
- package/dist/chunks/{formatter-w687dnns.js → plugin-w687dnns.js} +1 -1
- package/dist/chunks/{formatter-1tz3dvpf.js → plugin-w8waja94.js} +28 -28
- package/dist/chunks/{formatter-wakvkjy4.js → plugin-wakvkjy4.js} +1 -1
- package/dist/chunks/{formatter-r0pbn82r.js → plugin-wcqyq6xg.js} +11 -11
- package/dist/chunks/{formatter-wd87259q.js → plugin-wd87259q.js} +1 -1
- package/dist/chunks/{formatter-wnhgecwx.js → plugin-wnhgecwx.js} +1 -1
- package/dist/chunks/{formatter-fnac5zc8.js → plugin-wvm11qkm.js} +13 -13
- package/dist/chunks/{formatter-2jexqb4b.js → plugin-wyhjxk24.js} +21 -21
- package/dist/chunks/{formatter-y03y2908.js → plugin-wzsnw9zx.js} +13 -13
- package/dist/chunks/{formatter-58t0t45t.js → plugin-x19938zk.js} +13 -13
- package/dist/chunks/{formatter-kgzzqqhe.js → plugin-x41rd3ct.js} +9 -9
- package/dist/chunks/{formatter-fdthysjs.js → plugin-xbzzjpen.js} +26 -26
- package/dist/chunks/{formatter-bstexjd6.js → plugin-xd9cc171.js} +5 -5
- package/dist/chunks/{formatter-zj8xsvef.js → plugin-xh3etvdp.js} +25 -25
- package/dist/chunks/{formatter-b727e2mf.js → plugin-xjrcpxys.js} +6 -6
- package/dist/chunks/{formatter-0tqctwjc.js → plugin-xkrr3nbc.js} +21 -21
- package/dist/chunks/{formatter-hvkex31a.js → plugin-xp2r83c8.js} +19 -19
- package/dist/chunks/{formatter-zma8xknj.js → plugin-xt3tj154.js} +15 -15
- package/dist/chunks/{formatter-yb13j5xb.js → plugin-xty73vjp.js} +5 -5
- package/dist/chunks/{formatter-2br6b2v9.js → plugin-xv9vyde2.js} +13 -13
- package/dist/chunks/{formatter-m0azqb84.js → plugin-xwffaj6p.js} +11 -11
- package/dist/chunks/{formatter-az02dgt5.js → plugin-xys8w9aj.js} +17 -17
- package/dist/chunks/{formatter-znaw7jdf.js → plugin-y4w3wqv8.js} +14 -14
- package/dist/chunks/{formatter-9can0ppv.js → plugin-y6zkfemf.js} +13 -13
- package/dist/chunks/{formatter-tmd438dm.js → plugin-y78g3j1n.js} +3 -3
- package/dist/chunks/{formatter-yb20nhc3.js → plugin-yb20nhc3.js} +1 -1
- package/dist/chunks/{formatter-n8p4chj2.js → plugin-ycn3cwaw.js} +7 -7
- package/dist/chunks/{formatter-g7gshgt7.js → plugin-yexzw78a.js} +4 -4
- package/dist/chunks/{formatter-g3enaqm9.js → plugin-yg3znkte.js} +18 -18
- package/dist/chunks/{formatter-0f8tg23y.js → plugin-ymz7p2c9.js} +3 -3
- package/dist/chunks/{formatter-3ysmapca.js → plugin-yrvrwg16.js} +70 -70
- package/dist/chunks/{formatter-z0bkrqjs.js → plugin-z0bkrqjs.js} +1 -1
- package/dist/chunks/{formatter-k4d71d02.js → plugin-z2cf1fxy.js} +8 -8
- package/dist/chunks/{formatter-z38nccrw.js → plugin-z38nccrw.js} +1 -1
- package/dist/chunks/{formatter-z4rk52fe.js → plugin-z5vsfvmb.js} +20 -20
- package/dist/chunks/{formatter-tmpv8qhk.js → plugin-zd8qpfyv.js} +9 -9
- package/dist/chunks/plugin-zjx96n3w.js +257 -0
- package/dist/chunks/{formatter-0ks8sfjc.js → plugin-zkbcvvjq.js} +33 -33
- package/dist/chunks/{formatter-yhcrwr1f.js → plugin-znft027p.js} +15 -15
- package/dist/chunks/{formatter-re90sanf.js → plugin-znt4182k.js} +11 -11
- package/dist/chunks/{formatter-8qnchk02.js → plugin-zz4wg0fg.js} +54 -54
- package/dist/chunks/{formatter-bjhzkqyk.js → plugin-zzdv5d93.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +103 -103
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +381 -381
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -110
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +115 -115
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +372 -372
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +369 -369
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +164 -164
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -145
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode.js +124 -124
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -175
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +361 -361
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- 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 +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +104 -104
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +158 -158
- package/dist/session/context.js +184 -184
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +154 -154
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -215
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +230 -230
- package/dist/session/usage.js +1 -1
- package/dist/session.js +225 -225
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +146 -146
- package/dist/snapshot.js +101 -101
- 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 +163 -163
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +158 -158
- package/dist/tool/plugin/grep.js +158 -158
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +156 -156
- package/dist/tool/plugin/question.js +138 -138
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +224 -224
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +149 -149
- package/dist/tool/plugin/websearch.js +147 -147
- package/dist/tool/plugin/write.js +156 -156
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +92 -92
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/formatter-6tn508k7.js +0 -257
- package/dist/chunks/formatter-brxvtjfc.js +0 -26
- package/dist/chunks/formatter-vdh3rgac.js +0 -18
- /package/dist/chunks/{formatter-0qkdqm5v.js → plugin-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{formatter-0zkw76rk.js → plugin-0zkw76rk.js} +0 -0
- /package/dist/chunks/{formatter-17cy0kzp.js → plugin-17cy0kzp.js} +0 -0
- /package/dist/chunks/{formatter-1cnp2v09.js → plugin-1cnp2v09.js} +0 -0
- /package/dist/chunks/{formatter-1jakw16s.js → plugin-1jakw16s.js} +0 -0
- /package/dist/chunks/{formatter-24dcb14g.js → plugin-24dcb14g.js} +0 -0
- /package/dist/chunks/{formatter-2710q6r3.js → plugin-2710q6r3.js} +0 -0
- /package/dist/chunks/{formatter-2bv980vf.js → plugin-2bv980vf.js} +0 -0
- /package/dist/chunks/{formatter-2c3vjs8z.js → plugin-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{formatter-359p4xyc.js → plugin-359p4xyc.js} +0 -0
- /package/dist/chunks/{formatter-3asan66x.js → plugin-3asan66x.js} +0 -0
- /package/dist/chunks/{formatter-3v8g72cx.js → plugin-3v8g72cx.js} +0 -0
- /package/dist/chunks/{formatter-3wcehsnq.js → plugin-3wcehsnq.js} +0 -0
- /package/dist/chunks/{formatter-43n2bw4t.js → plugin-43n2bw4t.js} +0 -0
- /package/dist/chunks/{formatter-4knz6hnm.js → plugin-4knz6hnm.js} +0 -0
- /package/dist/chunks/{formatter-4m86bj6y.js → plugin-4m86bj6y.js} +0 -0
- /package/dist/chunks/{formatter-4vcrnpx2.js → plugin-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{formatter-4y7fprxs.js → plugin-4y7fprxs.js} +0 -0
- /package/dist/chunks/{formatter-53557ph1.js → plugin-53557ph1.js} +0 -0
- /package/dist/chunks/{formatter-550bvhaj.js → plugin-550bvhaj.js} +0 -0
- /package/dist/chunks/{formatter-5w3e23ze.js → plugin-5w3e23ze.js} +0 -0
- /package/dist/chunks/{formatter-6prwharc.js → plugin-6prwharc.js} +0 -0
- /package/dist/chunks/{formatter-6q2bdcd1.js → plugin-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{formatter-7akdwqpd.js → plugin-7akdwqpd.js} +0 -0
- /package/dist/chunks/{formatter-7m9af43g.js → plugin-7m9af43g.js} +0 -0
- /package/dist/chunks/{formatter-822emrt2.js → plugin-822emrt2.js} +0 -0
- /package/dist/chunks/{formatter-84wd9syh.js → plugin-84wd9syh.js} +0 -0
- /package/dist/chunks/{formatter-88xbtdfr.js → plugin-88xbtdfr.js} +0 -0
- /package/dist/chunks/{formatter-8n3pysct.js → plugin-8n3pysct.js} +0 -0
- /package/dist/chunks/{formatter-8wj87zfr.js → plugin-8wj87zfr.js} +0 -0
- /package/dist/chunks/{formatter-9a4afbnw.js → plugin-9a4afbnw.js} +0 -0
- /package/dist/chunks/{formatter-9rqn6x4v.js → plugin-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{formatter-a058387c.js → plugin-a058387c.js} +0 -0
- /package/dist/chunks/{formatter-a6k6eb26.js → plugin-a6k6eb26.js} +0 -0
- /package/dist/chunks/{formatter-af5trqkr.js → plugin-af5trqkr.js} +0 -0
- /package/dist/chunks/{formatter-afrmfg78.js → plugin-afrmfg78.js} +0 -0
- /package/dist/chunks/{formatter-aqzs7mqg.js → plugin-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{formatter-atq7p7m5.js → plugin-atq7p7m5.js} +0 -0
- /package/dist/chunks/{formatter-beh6qq61.js → plugin-beh6qq61.js} +0 -0
- /package/dist/chunks/{formatter-bkyjaxrp.js → plugin-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{formatter-bmr6ed5q.js → plugin-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{formatter-cf4snx6d.js → plugin-cf4snx6d.js} +0 -0
- /package/dist/chunks/{formatter-cqv5kn06.js → plugin-cqv5kn06.js} +0 -0
- /package/dist/chunks/{formatter-cvy3z8tj.js → plugin-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{formatter-d9fn303g.js → plugin-d9fn303g.js} +0 -0
- /package/dist/chunks/{formatter-d9jj8t3e.js → plugin-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{formatter-dajrwvna.js → plugin-dajrwvna.js} +0 -0
- /package/dist/chunks/{formatter-dap0rakb.js → plugin-dap0rakb.js} +0 -0
- /package/dist/chunks/{formatter-df08tz66.js → plugin-df08tz66.js} +0 -0
- /package/dist/chunks/{formatter-dy18nga0.js → plugin-dy18nga0.js} +0 -0
- /package/dist/chunks/{formatter-e5kj55wp.js → plugin-e5kj55wp.js} +0 -0
- /package/dist/chunks/{formatter-e73j6tqm.js → plugin-e73j6tqm.js} +0 -0
- /package/dist/chunks/{formatter-ec1grn59.js → plugin-ec1grn59.js} +0 -0
- /package/dist/chunks/{formatter-eh3zwz77.js → plugin-eh3zwz77.js} +0 -0
- /package/dist/chunks/{formatter-emrn6kk6.js → plugin-emrn6kk6.js} +0 -0
- /package/dist/chunks/{formatter-f0mxakyp.js → plugin-f0mxakyp.js} +0 -0
- /package/dist/chunks/{formatter-f6n9ztr4.js → plugin-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{formatter-faypxj3z.js → plugin-faypxj3z.js} +0 -0
- /package/dist/chunks/{formatter-fd410y7t.js → plugin-fd410y7t.js} +0 -0
- /package/dist/chunks/{formatter-fkpq3x5p.js → plugin-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{formatter-g4wezp1m.js → plugin-g4wezp1m.js} +0 -0
- /package/dist/chunks/{formatter-g86h250q.js → plugin-g86h250q.js} +0 -0
- /package/dist/chunks/{formatter-gebd4c9n.js → plugin-gebd4c9n.js} +0 -0
- /package/dist/chunks/{formatter-gftt206x.js → plugin-gftt206x.js} +0 -0
- /package/dist/chunks/{formatter-hcxmzztb.js → plugin-hcxmzztb.js} +0 -0
- /package/dist/chunks/{formatter-hk9envan.js → plugin-hk9envan.js} +0 -0
- /package/dist/chunks/{formatter-j2ntwpah.js → plugin-j2ntwpah.js} +0 -0
- /package/dist/chunks/{formatter-j5zkgpj8.js → plugin-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{formatter-jjkms2e6.js → plugin-jjkms2e6.js} +0 -0
- /package/dist/chunks/{formatter-jr7sbwjy.js → plugin-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{formatter-jwfs4k6c.js → plugin-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{formatter-jwr30sdr.js → plugin-jwr30sdr.js} +0 -0
- /package/dist/chunks/{formatter-jze0r7bz.js → plugin-jze0r7bz.js} +0 -0
- /package/dist/chunks/{formatter-jzg6c2d5.js → plugin-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{formatter-m18g726c.js → plugin-m18g726c.js} +0 -0
- /package/dist/chunks/{formatter-mp448xyj.js → plugin-mp448xyj.js} +0 -0
- /package/dist/chunks/{formatter-msx8hqn2.js → plugin-msx8hqn2.js} +0 -0
- /package/dist/chunks/{formatter-n05xt0ee.js → plugin-n05xt0ee.js} +0 -0
- /package/dist/chunks/{formatter-n3j8tn72.js → plugin-n3j8tn72.js} +0 -0
- /package/dist/chunks/{formatter-ncqqe42p.js → plugin-ncqqe42p.js} +0 -0
- /package/dist/chunks/{formatter-njntx4h6.js → plugin-njntx4h6.js} +0 -0
- /package/dist/chunks/{formatter-p71gwv9c.js → plugin-p71gwv9c.js} +0 -0
- /package/dist/chunks/{formatter-q3sfg36h.js → plugin-q3sfg36h.js} +0 -0
- /package/dist/chunks/{formatter-q74kybfr.js → plugin-q74kybfr.js} +0 -0
- /package/dist/chunks/{formatter-qaymkmh1.js → plugin-qaymkmh1.js} +0 -0
- /package/dist/chunks/{formatter-qb87gjwd.js → plugin-qb87gjwd.js} +0 -0
- /package/dist/chunks/{formatter-qfa1cgps.js → plugin-qfa1cgps.js} +0 -0
- /package/dist/chunks/{formatter-qg3g05ea.js → plugin-qg3g05ea.js} +0 -0
- /package/dist/chunks/{formatter-qrg20bc0.js → plugin-qrg20bc0.js} +0 -0
- /package/dist/chunks/{formatter-rcb2kzg1.js → plugin-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{formatter-sdp7kfr6.js → plugin-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{formatter-ssg3fenm.js → plugin-ssg3fenm.js} +0 -0
- /package/dist/chunks/{formatter-ve7vex1e.js → plugin-ve7vex1e.js} +0 -0
- /package/dist/chunks/{formatter-w803qqfp.js → plugin-w803qqfp.js} +0 -0
- /package/dist/chunks/{formatter-wc3fc9cn.js → plugin-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{formatter-wer8tq1h.js → plugin-wer8tq1h.js} +0 -0
- /package/dist/chunks/{formatter-wtztk69x.js → plugin-wtztk69x.js} +0 -0
- /package/dist/chunks/{formatter-x0ckcb58.js → plugin-x0ckcb58.js} +0 -0
- /package/dist/chunks/{formatter-x61499pn.js → plugin-x61499pn.js} +0 -0
- /package/dist/chunks/{formatter-y44na4kk.js → plugin-y44na4kk.js} +0 -0
- /package/dist/chunks/{formatter-y8f7s663.js → plugin-y8f7s663.js} +0 -0
- /package/dist/chunks/{formatter-ygaqb7jw.js → plugin-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{formatter-ym463w8f.js → plugin-ym463w8f.js} +0 -0
- /package/dist/chunks/{formatter-z5v4ffb3.js → plugin-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{formatter-z9919s4g.js → plugin-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service76
|
|
9
|
+
} from "./plugin-9brshkr5.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service59
|
|
12
|
+
} from "./plugin-dys0nn3x.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service52
|
|
15
|
+
} from "./plugin-0zfb02tz.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./plugin-mkk6jxrn.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service60
|
|
24
|
+
} from "./plugin-0byhdbpk.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service19
|
|
27
|
+
} from "./plugin-ggxt8q7a.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./plugin-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
36
|
+
Input: () => Input5,
|
|
37
37
|
Output: () => Output3,
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
38
|
+
Plugin: () => Plugin6,
|
|
39
|
+
name: () => name5,
|
|
40
|
+
toModelContent: () => toModelContent3
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name5 = "glob";
|
|
46
|
+
var Input5 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -56,26 +56,26 @@ var Input3 = Schema.Struct({
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
var Output3 = Schema.Array(Entry2);
|
|
59
|
-
var
|
|
59
|
+
var toModelContent3 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin6 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service59;
|
|
70
|
+
const ripgrep = yield* Service52;
|
|
71
|
+
const location = yield* Service76;
|
|
72
|
+
const access = yield* Service19;
|
|
73
|
+
const permission = yield* Service60;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name5,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
78
|
+
input: Input5,
|
|
79
79
|
output: Output3,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
@@ -83,7 +83,7 @@ var Plugin37 = {
|
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name5,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin37 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name5, Input5, Output3, toModelContent3, Plugin6, exports_glob };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-q6vpdb57.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./plugin-hgfpvvhf.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service79
|
|
11
|
+
} from "./plugin-93a9jndt.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID16,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service78
|
|
16
|
+
} from "./plugin-2dpmrcw8.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./plugin-yb20nhc3.js";
|
|
21
21
|
import {
|
|
22
22
|
ID13
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./plugin-38hqgsk1.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./plugin-amcehceb.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -31,7 +31,7 @@ import { Form } from "@opencode/schema/form";
|
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
33
33
|
var providerID = ID13.make("snowflake-cortex");
|
|
34
|
-
var integrationID =
|
|
34
|
+
var integrationID = ID16.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,9 +53,9 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
58
|
-
const bus = yield*
|
|
56
|
+
const credentials = yield* Service79;
|
|
57
|
+
const integrations = yield* Service78;
|
|
58
|
+
const bus = yield* Service81;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -186,7 +186,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
yield* bus.subscribe(
|
|
189
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
190
190
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
191
191
|
const token = envToken();
|
|
192
192
|
if (token)
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-q6vpdb57.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./plugin-hgfpvvhf.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID17,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event19
|
|
11
|
+
} from "./plugin-93a9jndt.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./plugin-zzdv5d93.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID16,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./plugin-2dpmrcw8.js";
|
|
20
20
|
import {
|
|
21
21
|
ID13
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./plugin-38hqgsk1.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service63
|
|
25
|
+
} from "./plugin-9dja39nt.js";
|
|
26
26
|
import {
|
|
27
27
|
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make11
|
|
30
|
+
} from "./plugin-k9zkdd2y.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./plugin-2n0r37q4.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./plugin-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
ID4,
|
|
41
|
+
Input15,
|
|
42
42
|
Response2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./plugin-w8waja94.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/provider/opencode.ts
|
|
46
46
|
import { Clock, Duration, Effect, Equal, FiberHandle, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -91,7 +91,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
91
91
|
}
|
|
92
92
|
function oauth(http) {
|
|
93
93
|
return {
|
|
94
|
-
integrationID:
|
|
94
|
+
integrationID: ID16.make("opencode"),
|
|
95
95
|
method: {
|
|
96
96
|
id: methodID,
|
|
97
97
|
type: "oauth",
|
|
@@ -156,10 +156,10 @@ var OpencodePlugin2 = define({
|
|
|
156
156
|
id: "opencode.provider.opencode",
|
|
157
157
|
effect: Effect.fn(function* (ctx) {
|
|
158
158
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
159
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service81;
|
|
160
160
|
const client = yield* HttpClient.HttpClient;
|
|
161
161
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
162
|
-
const config = yield*
|
|
162
|
+
const config = yield* Service63;
|
|
163
163
|
const scope = yield* Scope.Scope;
|
|
164
164
|
const loading = Semaphore.makeUnsafe(1);
|
|
165
165
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -195,13 +195,13 @@ var OpencodePlugin2 = define({
|
|
|
195
195
|
});
|
|
196
196
|
let integrated;
|
|
197
197
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
198
|
-
yield* config.integration?.(
|
|
199
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID ===
|
|
198
|
+
yield* config.integration?.(ID16.make("opencode"), document) ?? Effect.void;
|
|
199
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID16.make("opencode"));
|
|
200
200
|
});
|
|
201
201
|
const publish = Effect.fnUntraced(function* (next) {
|
|
202
|
-
yield* integrate(next.remote && next.connection &&
|
|
203
|
-
integrationID:
|
|
204
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
202
|
+
yield* integrate(next.remote && next.connection && make11({
|
|
203
|
+
integrationID: ID16.make("opencode"),
|
|
204
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID17.make(next.connection.id) } : next.connection,
|
|
205
205
|
organization: next.organization,
|
|
206
206
|
info: next.remote
|
|
207
207
|
}));
|
|
@@ -221,7 +221,7 @@ var OpencodePlugin2 = define({
|
|
|
221
221
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
222
222
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
223
223
|
const server = yield* normalizeServer(server2(credential));
|
|
224
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
224
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
|
|
225
225
|
query: input.query,
|
|
226
226
|
providerID
|
|
227
227
|
}));
|
|
@@ -276,7 +276,7 @@ var OpencodePlugin2 = define({
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
yield* ctx.websearch.transform((editor) => {
|
|
279
|
-
const provider =
|
|
279
|
+
const provider = ID4.make("opencode");
|
|
280
280
|
if (snapshot.remote?.websearch && snapshot.remote.websearch.provider === provider && snapshot.connection)
|
|
281
281
|
editor.add(search(provider, snapshot.connection));
|
|
282
282
|
});
|
|
@@ -328,7 +328,7 @@ var OpencodePlugin2 = define({
|
|
|
328
328
|
onlyIfMissing: true
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
|
-
yield* bus.subscribe(
|
|
331
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
332
332
|
yield* poll();
|
|
333
333
|
})
|
|
334
334
|
});
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
orderSelectedFields2,
|
|
5
5
|
mapUpdateSet2,
|
|
6
6
|
getTableLikeName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./plugin-emrn6kk6.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/update.ts
|
|
10
10
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./plugin-hgfpvvhf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node67
|
|
7
|
+
} from "./plugin-97c5t57a.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service11,
|
|
10
|
+
node13
|
|
11
|
+
} from "./plugin-8n7h5d4s.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service29
|
|
14
|
+
} from "./plugin-f8ma18fn.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
node23,
|
|
17
|
+
ID3
|
|
18
|
+
} from "./plugin-jgr9rt82.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service7,
|
|
21
|
+
node9
|
|
22
|
+
} from "./plugin-ddvn7d3w.js";
|
|
23
23
|
import {
|
|
24
24
|
requirements2,
|
|
25
25
|
guarded2,
|
|
26
26
|
list2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./plugin-pz2hbxnb.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
29
|
+
make4,
|
|
30
30
|
LoadError2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./plugin-vk3nwvaj.js";
|
|
32
32
|
import {
|
|
33
33
|
Updated2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
34
|
+
Service6,
|
|
35
|
+
node8
|
|
36
|
+
} from "./plugin-60k7rxvs.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
38
|
+
Service5,
|
|
39
|
+
node7
|
|
40
|
+
} from "./plugin-hs9b4b47.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./plugin-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/supervisor.ts
|
|
46
46
|
var exports_supervisor = {};
|
|
47
47
|
__export(exports_supervisor, {
|
|
48
48
|
PluginSupervisor: () => exports_supervisor,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
layer: () => layer4,
|
|
50
|
+
node: () => node5
|
|
51
51
|
});
|
|
52
52
|
import { Event } from "@opencode/schema/config";
|
|
53
53
|
import { Cause, Effect, Layer, Queue, Stream } from "effect";
|
|
@@ -124,7 +124,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
124
124
|
failures: [
|
|
125
125
|
...failures.values(),
|
|
126
126
|
...ordered.filter(duplicate).map((plugin) => ({
|
|
127
|
-
id:
|
|
127
|
+
id: ID3.make(plugin.id),
|
|
128
128
|
source: plugin.source ?? { type: "builtin" },
|
|
129
129
|
state: { status: "failed", error: `Duplicate plugin ID: ${plugin.id}` },
|
|
130
130
|
features: plugin.features ?? { server: true }
|
|
@@ -133,14 +133,14 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
133
133
|
pending: [...pending]
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
const registry = yield*
|
|
138
|
-
const sdk = yield*
|
|
139
|
-
const instance = yield*
|
|
140
|
-
const sources = yield*
|
|
141
|
-
const modules = yield*
|
|
142
|
-
const bus = yield*
|
|
143
|
-
const updates = yield*
|
|
136
|
+
var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
137
|
+
const registry = yield* Service29;
|
|
138
|
+
const sdk = yield* Service6;
|
|
139
|
+
const instance = yield* Service7;
|
|
140
|
+
const sources = yield* Service11;
|
|
141
|
+
const modules = yield* make4();
|
|
142
|
+
const bus = yield* Service81;
|
|
143
|
+
const updates = yield* Service5;
|
|
144
144
|
const internal = yield* list2();
|
|
145
145
|
let release = yield* registry.hold();
|
|
146
146
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -215,14 +215,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
215
215
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
216
216
|
}));
|
|
217
217
|
var nodeDeps = [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
node23,
|
|
219
|
+
node8,
|
|
220
|
+
node9,
|
|
221
|
+
node13,
|
|
222
|
+
node7,
|
|
223
|
+
node85,
|
|
224
224
|
Npm.node,
|
|
225
|
-
|
|
225
|
+
node67,
|
|
226
226
|
requirements2
|
|
227
227
|
];
|
|
228
228
|
function pluginSource(target) {
|
|
@@ -230,6 +230,6 @@ function pluginSource(target) {
|
|
|
230
230
|
return { type: "local", path: target };
|
|
231
231
|
return { type: "package", target };
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var node5 = makeLocationNode({ name: "plugin-supervisor", layer: layer4, deps: nodeDeps });
|
|
234
234
|
|
|
235
|
-
export {
|
|
235
|
+
export { layer4, node5, exports_supervisor };
|
|
@@ -2,39 +2,39 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./plugin-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service76,
|
|
8
|
+
node80
|
|
9
|
+
} from "./plugin-9brshkr5.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service51,
|
|
12
|
+
node54
|
|
13
|
+
} from "./plugin-t57f7ggb.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./plugin-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event7,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
32
|
Match: () => Match2,
|
|
33
33
|
NotFoundError: () => NotFoundError5,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service50,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node53
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import path from "path";
|
|
@@ -65,7 +65,7 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
65
65
|
return `Access denied to directory: ${this.directory}`;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Content3 = Schema.Struct({
|
|
69
69
|
uri: Schema.String,
|
|
70
70
|
name: Schema.String.pipe(Schema.optional),
|
|
71
71
|
content: Schema.String,
|
|
@@ -92,14 +92,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
92
92
|
limit: Schema.optionalKey(PositiveInt2)
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var Event7 = FileSystem.Event;
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class Service50 extends Context.Service()("@opencode/FileSystem") {
|
|
98
98
|
}
|
|
99
|
-
var baseLayer = Layer.effect(
|
|
99
|
+
var baseLayer = Layer.effect(Service50, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const search = yield*
|
|
101
|
+
const location = yield* Service76;
|
|
102
|
+
const search = yield* Service51;
|
|
103
103
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.tap((real) => fs.access(real, { readable: true })), Effect.catch((cause) => {
|
|
104
104
|
if (cause.reason._tag === "NotFound")
|
|
105
105
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -118,7 +118,7 @@ var baseLayer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
118
118
|
return yield* Effect.fail(new NotFoundError5({ path: input }));
|
|
119
119
|
return { absolute, real, directory: location.directory };
|
|
120
120
|
});
|
|
121
|
-
return
|
|
121
|
+
return Service50.of({
|
|
122
122
|
find: search.find,
|
|
123
123
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
124
124
|
const target = yield* resolve(input.path);
|
|
@@ -158,10 +158,10 @@ var baseLayer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
}));
|
|
161
|
-
var
|
|
162
|
-
service:
|
|
161
|
+
var node53 = makeLocationNode({
|
|
162
|
+
service: Service50,
|
|
163
163
|
layer: baseLayer,
|
|
164
|
-
deps: [FSUtil.node,
|
|
164
|
+
deps: [FSUtil.node, node80, node54]
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
export { FindInput2, Write2, NotFoundError5, DirectoryNotFoundError2, DirectoryAccessDeniedError2,
|
|
167
|
+
export { FindInput2, Write2, NotFoundError5, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event7, Service50, node53, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-tczq8hjw.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-204s3925.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./plugin-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service41,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node45
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service41 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -121,7 +121,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
121
121
|
yield* fs.writeWithDirs(file, bytes).pipe(Effect.orDie);
|
|
122
122
|
return file;
|
|
123
123
|
});
|
|
124
|
-
return
|
|
124
|
+
return Service41.of({
|
|
125
125
|
transform: state.transform,
|
|
126
126
|
reload: state.reload,
|
|
127
127
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node45 = makeLocationNode({
|
|
143
|
+
service: Service41,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service41, node45, exports_tool_output2 };
|