@opencode/core 0.0.0-dev-21018 → 0.0.0-dev-21022
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 +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{aisdk-native-rhjbct0v.js → generate-02nrjc1r.js} +6 -6
- package/dist/chunks/{aisdk-native-a7sj2r1m.js → generate-03qpgtxm.js} +45 -45
- package/dist/chunks/{aisdk-native-fbkz36wd.js → generate-08xsmh6n.js} +3 -3
- package/dist/chunks/{aisdk-native-kky9qqft.js → generate-0a8ksa24.js} +10 -10
- package/dist/chunks/{aisdk-native-at1y7xr4.js → generate-0crr0gfc.js} +17 -17
- package/dist/chunks/{aisdk-native-fww2ha2b.js → generate-0d5fjz2h.js} +10 -10
- package/dist/chunks/{aisdk-native-9jzp6rtr.js → generate-0jq9fyba.js} +9 -9
- package/dist/chunks/{aisdk-native-127bgjqn.js → generate-0sg4sx3g.js} +45 -45
- package/dist/chunks/{aisdk-native-0vbcp93d.js → generate-0vbcp93d.js} +2 -2
- package/dist/chunks/{aisdk-native-yge776f0.js → generate-0ywb27hw.js} +33 -33
- package/dist/chunks/{aisdk-native-qqfrjn24.js → generate-1eg42xax.js} +24 -24
- package/dist/chunks/{aisdk-native-ywt8jp22.js → generate-1ffvrpkg.js} +6 -6
- package/dist/chunks/{aisdk-native-75w4g8w0.js → generate-1stxgd8c.js} +16 -16
- package/dist/chunks/{aisdk-native-10kwxk2s.js → generate-1w8fdk0d.js} +10 -10
- package/dist/chunks/{aisdk-native-y3yav7hs.js → generate-1wqw6d7n.js} +7 -7
- package/dist/chunks/{aisdk-native-k653fd7t.js → generate-2fkkh717.js} +13 -13
- package/dist/chunks/{aisdk-native-52zh2364.js → generate-2hk2ydh2.js} +3 -3
- package/dist/chunks/{aisdk-native-2k8khapm.js → generate-2k8khapm.js} +1 -1
- package/dist/chunks/{aisdk-native-0d858n6a.js → generate-2mr82eke.js} +4 -4
- package/dist/chunks/{aisdk-native-pbeh6z2f.js → generate-2zq4dj3s.js} +16 -16
- package/dist/chunks/{aisdk-native-10kajd6m.js → generate-319jyy1m.js} +17 -17
- package/dist/chunks/{aisdk-native-zfa7ynd8.js → generate-32gpd1xw.js} +15 -15
- package/dist/chunks/generate-38rcd1wy.js +26 -0
- package/dist/chunks/{aisdk-native-z89erdax.js → generate-3cb4vsbh.js} +32 -32
- package/dist/chunks/{aisdk-native-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{aisdk-native-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-native-3hwn7j4h.js → generate-3hwn7j4h.js} +2 -2
- package/dist/chunks/{aisdk-native-nmekmc6p.js → generate-3pm9ry58.js} +11 -11
- package/dist/chunks/{aisdk-native-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-native-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-native-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
- package/dist/chunks/{aisdk-native-1gb2qamw.js → generate-457s9w80.js} +7 -7
- package/dist/chunks/{aisdk-native-axe3mf62.js → generate-48kw51zw.js} +3 -3
- package/dist/chunks/{aisdk-native-5g9ngfpd.js → generate-4e0p0fpd.js} +50 -50
- package/dist/chunks/{aisdk-native-c41dsvxf.js → generate-4ekscj25.js} +5 -5
- package/dist/chunks/{aisdk-native-0vt4a08m.js → generate-4evbv4gb.js} +9 -9
- package/dist/chunks/{aisdk-native-a6h48s69.js → generate-4fvt83t5.js} +3 -3
- package/dist/chunks/{aisdk-native-n32ags3r.js → generate-4rx0zshk.js} +8 -8
- package/dist/chunks/{aisdk-native-q982vr3h.js → generate-4z39z968.js} +1 -1
- package/dist/chunks/{aisdk-native-f4bf0wdy.js → generate-51qcsxgk.js} +11 -11
- package/dist/chunks/{aisdk-native-54ma36ye.js → generate-54ma36ye.js} +1 -1
- package/dist/chunks/{aisdk-native-ash26774.js → generate-5fhve76z.js} +42 -42
- package/dist/chunks/{aisdk-native-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
- package/dist/chunks/{aisdk-native-62h31jbg.js → generate-5pr12dw0.js} +15 -15
- package/dist/chunks/{aisdk-native-5mbb061c.js → generate-61va9acd.js} +16 -16
- package/dist/chunks/{aisdk-native-d8wgdqmk.js → generate-6424kev6.js} +15 -15
- package/dist/chunks/{aisdk-native-p69t3g5h.js → generate-647metxh.js} +71 -71
- package/dist/chunks/{aisdk-native-xt5bvajs.js → generate-66x3e96s.js} +14 -14
- package/dist/chunks/{aisdk-native-tqy09fa5.js → generate-68yg9n24.js} +14 -14
- package/dist/chunks/{aisdk-native-pgv27ctj.js → generate-6gkwybtq.js} +13 -13
- package/dist/chunks/{aisdk-native-1p07q0wb.js → generate-6pc27hjz.js} +8 -8
- package/dist/chunks/{aisdk-native-6xb47vfp.js → generate-6xb47vfp.js} +1 -1
- package/dist/chunks/{aisdk-native-h4c51ep5.js → generate-6xg49yv5.js} +16 -16
- package/dist/chunks/{aisdk-native-23bs8vxf.js → generate-71c3ma91.js} +5 -5
- package/dist/chunks/{aisdk-native-775gj3j1.js → generate-775gj3j1.js} +2 -2
- package/dist/chunks/{aisdk-native-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-native-z5pcptfa.js → generate-7hhqs9ev.js} +11 -11
- package/dist/chunks/{aisdk-native-ve88pny4.js → generate-7ph0vnsv.js} +5 -5
- package/dist/chunks/{aisdk-native-1e1q5s76.js → generate-7r0r2nec.js} +302 -302
- package/dist/chunks/{aisdk-native-xvzsshar.js → generate-820m75ay.js} +27 -27
- package/dist/chunks/{aisdk-native-cmz5eaxk.js → generate-82jnz8vq.js} +15 -15
- package/dist/chunks/{aisdk-native-y72zmemf.js → generate-8aaqm6qj.js} +8 -8
- package/dist/chunks/{aisdk-native-50wtk2qm.js → generate-8g2t0nrb.js} +11 -11
- package/dist/chunks/{aisdk-native-gmyde0bq.js → generate-8j6692t6.js} +9 -9
- package/dist/chunks/{aisdk-native-vzwfa6xb.js → generate-8k39r2mp.js} +11 -11
- package/dist/chunks/{aisdk-native-8m6m0r52.js → generate-8m6m0r52.js} +1 -1
- package/dist/chunks/{aisdk-native-ret8wn50.js → generate-8npnmh1j.js} +11 -11
- package/dist/chunks/{aisdk-native-b9vzvjzz.js → generate-8qqj46vq.js} +18 -18
- package/dist/chunks/{aisdk-native-3kqw99dt.js → generate-8tm3358f.js} +14 -14
- package/dist/chunks/{aisdk-native-epaqs8f3.js → generate-8xf62mhm.js} +17 -17
- package/dist/chunks/{aisdk-native-74dne46j.js → generate-8yrtv903.js} +14 -14
- package/dist/chunks/{aisdk-native-mx9vqzsb.js → generate-909p1r3q.js} +6 -6
- package/dist/chunks/{aisdk-native-7de6b0yc.js → generate-90nc1nhv.js} +45 -45
- package/dist/chunks/{aisdk-native-j09zfasm.js → generate-91qna3x0.js} +3 -3
- package/dist/chunks/{aisdk-native-a5tr1nkc.js → generate-9at6tv1c.js} +9 -9
- package/dist/chunks/{aisdk-native-hd7f0vrx.js → generate-9cgjtbjp.js} +17 -17
- package/dist/chunks/{aisdk-native-5x20z9dy.js → generate-9d8ha7wk.js} +3 -3
- package/dist/chunks/{aisdk-native-ngch82ge.js → generate-9eb0cyrw.js} +20 -11
- package/dist/chunks/{aisdk-native-2e68m05z.js → generate-9jhc6p5j.js} +11 -11
- package/dist/chunks/{aisdk-native-r1tj9a0q.js → generate-9mp1bzg1.js} +16 -16
- package/dist/chunks/{aisdk-native-7gpzn94y.js → generate-9xxh1q1e.js} +5 -5
- package/dist/chunks/{aisdk-native-9eaj8waa.js → generate-9znwrv1e.js} +22 -22
- package/dist/chunks/{aisdk-native-53haa8j7.js → generate-ad8sbtaf.js} +5 -5
- package/dist/chunks/{aisdk-native-sw5jmy0b.js → generate-agbrrg4r.js} +18 -18
- package/dist/chunks/{aisdk-native-1ra1ayyf.js → generate-ak963xne.js} +29 -29
- package/dist/chunks/{aisdk-native-fe85s8xj.js → generate-amcg9hk8.js} +34 -34
- package/dist/chunks/{aisdk-native-nc5hv8by.js → generate-azdezd4n.js} +35 -35
- package/dist/chunks/{aisdk-native-brxbyjgv.js → generate-b1nmds8p.js} +20 -20
- package/dist/chunks/{aisdk-native-p3csrd5m.js → generate-b3sm7x6w.js} +28 -28
- package/dist/chunks/{aisdk-native-2dpabzxc.js → generate-b65pmv0k.js} +27 -27
- package/dist/chunks/{aisdk-native-5m84d531.js → generate-bg9pb3hs.js} +6 -6
- package/dist/chunks/{aisdk-native-k3m0r1t0.js → generate-bjnagtpr.js} +5 -5
- package/dist/chunks/{aisdk-native-rp7nfezs.js → generate-bmz30bfc.js} +11 -11
- package/dist/chunks/{aisdk-native-40g2jkz4.js → generate-bt618zmv.js} +19 -19
- package/dist/chunks/generate-by5v678g.js +18 -0
- package/dist/chunks/{aisdk-native-c1fqxshp.js → generate-c1fqxshp.js} +3 -3
- package/dist/chunks/{aisdk-native-r4vg476g.js → generate-c3k8fx1y.js} +16 -16
- package/dist/chunks/{aisdk-native-kqx1b4hy.js → generate-c9wbyant.js} +4 -4
- package/dist/chunks/{aisdk-native-fe9ek1dz.js → generate-cfybw0sz.js} +8 -8
- package/dist/chunks/{aisdk-native-8ny7na60.js → generate-ck04n157.js} +28 -28
- package/dist/chunks/{aisdk-native-1pd6j7gw.js → generate-ctzqdfkd.js} +13 -13
- package/dist/chunks/{aisdk-native-92azg307.js → generate-d9wzmzc3.js} +5 -5
- package/dist/chunks/{aisdk-native-3y377wv9.js → generate-db2wf4at.js} +4 -4
- package/dist/chunks/{aisdk-native-4ymk2y0h.js → generate-dc5wd9ye.js} +15 -15
- package/dist/chunks/{aisdk-native-yk34en3j.js → generate-dk51qrek.js} +34 -34
- package/dist/chunks/{aisdk-native-dqxsqydv.js → generate-dqxsqydv.js} +1 -1
- package/dist/chunks/{aisdk-native-2mqazfh7.js → generate-dr348f92.js} +7 -7
- package/dist/chunks/{aisdk-native-57b9ws8p.js → generate-drwq78ky.js} +5 -5
- package/dist/chunks/{aisdk-native-303vz3sg.js → generate-dw8wxjxb.js} +4 -4
- package/dist/chunks/{aisdk-native-8tyd0f4y.js → generate-e4p24ara.js} +18 -18
- package/dist/chunks/{aisdk-native-z66c4ez7.js → generate-e7n3ya83.js} +31 -31
- package/dist/chunks/{aisdk-native-ed1g29hy.js → generate-e80seqcp.js} +3 -3
- package/dist/chunks/{aisdk-native-24bdsyax.js → generate-eabkatpb.js} +4 -4
- package/dist/chunks/{aisdk-native-dgbfg83b.js → generate-ed2aanj4.js} +3 -3
- package/dist/chunks/{aisdk-native-eej6y6fw.js → generate-eej6y6fw.js} +2 -2
- package/dist/chunks/{aisdk-native-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{aisdk-native-t54kaxxg.js → generate-evsxga0j.js} +11 -11
- package/dist/chunks/{aisdk-native-4fh015cx.js → generate-ewprqnzw.js} +23 -23
- package/dist/chunks/{aisdk-native-zsr4wwhv.js → generate-f29mbr7f.js} +4 -4
- package/dist/chunks/{aisdk-native-yp2x3t23.js → generate-f2n192rq.js} +4 -4
- package/dist/chunks/{aisdk-native-g3mmjpeg.js → generate-f5xe0mk2.js} +23 -23
- package/dist/chunks/{aisdk-native-tyzedjqz.js → generate-fa0b3k97.js} +12 -12
- package/dist/chunks/{aisdk-native-2by676ec.js → generate-ff1ymwtx.js} +9 -9
- package/dist/chunks/{aisdk-native-4434d9q2.js → generate-fpecnkgp.js} +9 -9
- package/dist/chunks/{aisdk-native-chmft7q8.js → generate-fs96esax.js} +28 -28
- package/dist/chunks/{aisdk-native-mn8gpzz8.js → generate-fsj12tdk.js} +9 -9
- package/dist/chunks/{aisdk-native-1ajx6rf5.js → generate-g0445xdp.js} +8 -8
- package/dist/chunks/{aisdk-native-g686f6pq.js → generate-g686f6pq.js} +2 -2
- package/dist/chunks/{aisdk-native-2qzyhrdy.js → generate-gcb2m958.js} +32 -32
- package/dist/chunks/{aisdk-native-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-native-69fne0an.js → generate-gm2e0st7.js} +18 -18
- package/dist/chunks/{aisdk-native-t9hk1s7p.js → generate-gr2xtfax.js} +11 -11
- package/dist/chunks/{aisdk-native-dczy54ba.js → generate-gwaq8jy9.js} +22 -22
- package/dist/chunks/{aisdk-native-pjeas8vp.js → generate-h2mwb1rt.js} +8 -8
- package/dist/chunks/{aisdk-native-744vtqj3.js → generate-h3k0sdzw.js} +6 -6
- package/dist/chunks/{aisdk-native-wy827def.js → generate-h61jsw8z.js} +32 -32
- package/dist/chunks/{aisdk-native-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-native-h7s7r6s9.js → generate-h7s7r6s9.js} +2 -2
- package/dist/chunks/{aisdk-native-wb1wr3ea.js → generate-hbqwyh5b.js} +9 -9
- package/dist/chunks/{aisdk-native-hgz4x7wa.js → generate-hgz4x7wa.js} +1 -1
- package/dist/chunks/{aisdk-native-qsnnkmx1.js → generate-hsakzz9a.js} +14 -14
- package/dist/chunks/{aisdk-native-sah309bs.js → generate-hzkveby0.js} +3 -3
- package/dist/chunks/{aisdk-native-dr5kjjc1.js → generate-j3nkb9wj.js} +4 -4
- package/dist/chunks/{aisdk-native-6qc2tezn.js → generate-jerzhz83.js} +13 -13
- package/dist/chunks/{aisdk-native-2mbx2h8m.js → generate-jj2708p2.js} +5 -5
- package/dist/chunks/{aisdk-native-jk540des.js → generate-jk540des.js} +2 -2
- package/dist/chunks/{aisdk-native-bfv9bv9k.js → generate-jm2dqw0s.js} +6 -6
- package/dist/chunks/{aisdk-native-z6nc4jxb.js → generate-jsre8083.js} +33 -33
- package/dist/chunks/{aisdk-native-q99tkny5.js → generate-k01atk97.js} +46 -46
- package/dist/chunks/{aisdk-native-2gqcc6gs.js → generate-k045zbz9.js} +40 -40
- package/dist/chunks/{aisdk-native-qf5jjt8t.js → generate-k1bs2h3f.js} +20 -20
- package/dist/chunks/{aisdk-native-7fyx1g9m.js → generate-k2esz74z.js} +189 -189
- package/dist/chunks/{aisdk-native-b433h5p1.js → generate-k7qgnp9n.js} +19 -19
- package/dist/chunks/{aisdk-native-2qxj1ms9.js → generate-kdn70dry.js} +21 -21
- package/dist/chunks/{aisdk-native-mnn8h054.js → generate-kgs10km5.js} +1 -1
- package/dist/chunks/{aisdk-native-jvf3yq6v.js → generate-kne8f3cn.js} +4 -4
- package/dist/chunks/{aisdk-native-wq6srqkq.js → generate-kxxbqm5f.js} +50 -50
- package/dist/chunks/{aisdk-native-0caajq2k.js → generate-m1efmtwr.js} +44 -44
- package/dist/chunks/{aisdk-native-kpc10kpc.js → generate-m1ywmr27.js} +5 -5
- package/dist/chunks/{aisdk-native-6nk61beh.js → generate-m3emc3g7.js} +47 -47
- package/dist/chunks/{aisdk-native-k4b2ggnx.js → generate-m6twg17p.js} +13 -13
- package/dist/chunks/{aisdk-native-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-native-maspj1v3.js → generate-maspj1v3.js} +1 -1
- package/dist/chunks/{aisdk-native-gtkct163.js → generate-mfxyg6fd.js} +2 -2
- package/dist/chunks/{aisdk-native-rzkz39af.js → generate-mrm6qzaa.js} +25 -25
- package/dist/chunks/{aisdk-native-gj183jwg.js → generate-mtntnqk5.js} +28 -28
- package/dist/chunks/{aisdk-native-pgqkh7vb.js → generate-mv100j38.js} +8 -8
- package/dist/chunks/{aisdk-native-4bm5ja14.js → generate-nb9p6b26.js} +4 -4
- package/dist/chunks/{aisdk-native-cjpatezp.js → generate-nhyepbsc.js} +12 -12
- package/dist/chunks/{aisdk-native-k0atycj0.js → generate-njf7rzjw.js} +15 -15
- package/dist/chunks/{aisdk-native-6khy9a8j.js → generate-nq3r004t.js} +6 -6
- package/dist/chunks/{aisdk-native-1w2wqhfv.js → generate-ny8edt06.js} +4 -4
- package/dist/chunks/{aisdk-native-0s924gpd.js → generate-nyb09g2v.js} +21 -21
- package/dist/chunks/{aisdk-native-t2vmdyme.js → generate-nz00s972.js} +9 -9
- package/dist/chunks/{aisdk-native-50d8zcxy.js → generate-p1thmww4.js} +10 -10
- package/dist/chunks/{aisdk-native-7mm6441v.js → generate-p5p106c5.js} +24 -24
- package/dist/chunks/{aisdk-native-as0n615b.js → generate-p79ar1np.js} +8 -8
- package/dist/chunks/{aisdk-native-4ndkyxx8.js → generate-p9r2c5t1.js} +7 -7
- package/dist/chunks/{aisdk-native-3xdggyzb.js → generate-pab3ay35.js} +20 -20
- package/dist/chunks/{aisdk-native-h3qq71j8.js → generate-pe1ys5ng.js} +18 -18
- package/dist/chunks/{aisdk-native-dseaxfxw.js → generate-pe36awch.js} +14 -14
- package/dist/chunks/{aisdk-native-8thv3x7g.js → generate-ph6a4evn.js} +11 -11
- package/dist/chunks/{aisdk-native-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-native-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-native-mrh7f67z.js → generate-pnq2asy9.js} +25 -25
- package/dist/chunks/generate-pp5qxgcs.js +253 -0
- package/dist/chunks/{aisdk-native-pk1g12xq.js → generate-pvywfm1n.js} +4 -4
- package/dist/chunks/{aisdk-native-bevw28at.js → generate-q0bv3cn2.js} +52 -52
- package/dist/chunks/{aisdk-native-1h7rex55.js → generate-q0wwkmtc.js} +16 -16
- package/dist/chunks/{aisdk-native-q0xm7vwc.js → generate-q0xm7vwc.js} +2 -2
- package/dist/chunks/{aisdk-native-r9q08rks.js → generate-q1x1rvbe.js} +27 -27
- package/dist/chunks/{aisdk-native-vw8avsn0.js → generate-q4q0tmjh.js} +30 -30
- package/dist/chunks/{aisdk-native-he27pt63.js → generate-q5e7cmwt.js} +1 -1
- package/dist/chunks/{aisdk-native-rtq9bjbm.js → generate-q806gczq.js} +13 -13
- package/dist/chunks/{aisdk-native-dxc19tbx.js → generate-q92qcf3t.js} +12 -12
- package/dist/chunks/{aisdk-native-6jgezp7j.js → generate-qaw4ptrj.js} +13 -13
- package/dist/chunks/{aisdk-native-h8a05yk1.js → generate-qbkpptp7.js} +20 -20
- package/dist/chunks/{aisdk-native-zpnd8jeh.js → generate-qfzqcc6n.js} +29 -29
- package/dist/chunks/{aisdk-native-4f4vgejq.js → generate-qjvd7p01.js} +17 -17
- package/dist/chunks/{aisdk-native-sw5ak9bt.js → generate-qmkghy1h.js} +5 -5
- package/dist/chunks/{aisdk-native-cwa6csj7.js → generate-qmqgtz8f.js} +9 -9
- package/dist/chunks/{aisdk-native-qnc92qwc.js → generate-qnc92qwc.js} +1 -1
- package/dist/chunks/{aisdk-native-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-native-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
- package/dist/chunks/{aisdk-native-rert0e01.js → generate-rert0e01.js} +2 -2
- package/dist/chunks/{aisdk-native-kshb2wev.js → generate-rgy34r50.js} +4 -4
- package/dist/chunks/{aisdk-native-9p2t1ndg.js → generate-rhk74dyv.js} +36 -36
- package/dist/chunks/{aisdk-native-rj3eygr5.js → generate-rj3eygr5.js} +2 -2
- package/dist/chunks/{aisdk-native-9y9sk2j9.js → generate-rqa1jxse.js} +2 -2
- package/dist/chunks/{aisdk-native-6hr4n0m0.js → generate-rr2frrzn.js} +29 -29
- package/dist/chunks/{aisdk-native-s385x7yq.js → generate-rr58t4fd.js} +20 -20
- package/dist/chunks/{aisdk-native-qa3qhgw8.js → generate-ryr25ayn.js} +4 -4
- package/dist/chunks/{aisdk-native-3yf2genj.js → generate-s3cm33sf.js} +10 -10
- package/dist/chunks/{aisdk-native-sa8ekw3f.js → generate-sa8ekw3f.js} +2 -2
- package/dist/chunks/{aisdk-native-hdkng2sj.js → generate-scgrse2b.js} +5 -5
- package/dist/chunks/{aisdk-native-egxvcv0h.js → generate-sfhqvnpf.js} +21 -21
- package/dist/chunks/{aisdk-native-jffq07hd.js → generate-sjqh3mj3.js} +5 -5
- package/dist/chunks/{aisdk-native-qxzv4gbd.js → generate-svmrvdvs.js} +14 -14
- package/dist/chunks/{aisdk-native-syv4x271.js → generate-syv4x271.js} +1 -1
- package/dist/chunks/{aisdk-native-sz15zhhw.js → generate-sz15zhhw.js} +1 -1
- package/dist/chunks/{aisdk-native-pw7mq2ym.js → generate-t5wwwxkh.js} +5 -5
- package/dist/chunks/{aisdk-native-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-native-89znhe33.js → generate-tcezcvh9.js} +4 -4
- package/dist/chunks/{aisdk-native-nvnmx4zj.js → generate-tdf8hw5n.js} +85 -85
- package/dist/chunks/{aisdk-native-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-native-nqhk0vpq.js → generate-tgk3qf8f.js} +9 -9
- package/dist/chunks/{aisdk-native-tm0kqsz3.js → generate-tm0kqsz3.js} +1 -1
- package/dist/chunks/{aisdk-native-tyytaxap.js → generate-tyytaxap.js} +1 -1
- package/dist/chunks/{aisdk-native-wv4xjw7a.js → generate-v4mqz3w8.js} +3 -3
- package/dist/chunks/{aisdk-native-q7srvn99.js → generate-v4zj8138.js} +25 -25
- package/dist/chunks/generate-v5p3rnnz.js +513 -0
- package/dist/chunks/{aisdk-native-v7p4zvkq.js → generate-v7p4zvkq.js} +2 -2
- package/dist/chunks/{aisdk-native-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-native-p2tyav1x.js → generate-vhtfstd8.js} +14 -14
- package/dist/chunks/{aisdk-native-5rmkx207.js → generate-vjkbc1z2.js} +10 -10
- package/dist/chunks/{aisdk-native-98ss48gh.js → generate-vnv9wwnh.js} +11 -11
- package/dist/chunks/{aisdk-native-7nrhv340.js → generate-vpxrjyh9.js} +20 -20
- package/dist/chunks/{aisdk-native-dtyzp2zv.js → generate-vw95np9e.js} +36 -36
- package/dist/chunks/{aisdk-native-vzs5sf6e.js → generate-vzs5sf6e.js} +1 -1
- package/dist/chunks/{aisdk-native-84txncab.js → generate-w1eejvng.js} +5 -5
- package/dist/chunks/{aisdk-native-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{aisdk-native-w4axh9wz.js → generate-w5zzhgd0.js} +6 -6
- package/dist/chunks/{aisdk-native-6nw6gw9v.js → generate-wafexnmx.js} +26 -26
- package/dist/chunks/{aisdk-native-gxd5h73n.js → generate-wb0v33rf.js} +15 -15
- package/dist/chunks/{aisdk-native-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-native-wh6zw745.js → generate-wh6zw745.js} +2 -2
- package/dist/chunks/{aisdk-native-39kqn3rt.js → generate-whebsv80.js} +90 -90
- package/dist/chunks/{aisdk-native-nzcba5wc.js → generate-wkcx7fj9.js} +4 -4
- package/dist/chunks/{aisdk-native-53yjt3qn.js → generate-ws8gre0k.js} +4 -4
- package/dist/chunks/{aisdk-native-yh7kjdpc.js → generate-xdx7acry.js} +9 -9
- package/dist/chunks/{aisdk-native-7yb5svr9.js → generate-xhtmvx5q.js} +18 -18
- package/dist/chunks/{aisdk-native-qfam3w5t.js → generate-xkm5zh6x.js} +23 -23
- package/dist/chunks/{aisdk-native-fza96cja.js → generate-xnt6fver.js} +35 -35
- package/dist/chunks/{aisdk-native-re554nt8.js → generate-xtbhb3vb.js} +4 -4
- package/dist/chunks/{aisdk-native-gc7jzj17.js → generate-xy02r08k.js} +4 -4
- package/dist/chunks/{aisdk-native-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-native-rkbk85xn.js → generate-y39tjqdd.js} +25 -25
- package/dist/chunks/{aisdk-native-mw4sk1fd.js → generate-y6agp0rp.js} +18 -18
- package/dist/chunks/{aisdk-native-qmq2r0ns.js → generate-y6nmpnm5.js} +27 -27
- package/dist/chunks/{aisdk-native-qjrerc4t.js → generate-y6t3xqc7.js} +36 -36
- package/dist/chunks/{aisdk-native-y71avatq.js → generate-y71avatq.js} +1 -1
- package/dist/chunks/{aisdk-native-w6grtfqn.js → generate-y932fbb5.js} +23 -23
- package/dist/chunks/{aisdk-native-wzq5w0wm.js → generate-y9pr6q2f.js} +30 -30
- package/dist/chunks/{aisdk-native-7b0b3pdr.js → generate-yc4d889b.js} +17 -17
- package/dist/chunks/{aisdk-native-x69t7eks.js → generate-yeereb2r.js} +20 -20
- package/dist/chunks/{aisdk-native-7tg7x3zs.js → generate-yfxs65tx.js} +21 -21
- package/dist/chunks/{aisdk-native-gj71zhbs.js → generate-ygdna4kr.js} +5 -5
- package/dist/chunks/{aisdk-native-7s451enq.js → generate-ypw91m64.js} +8 -8
- package/dist/chunks/{aisdk-native-xzgsxtjs.js → generate-yz9yqyt1.js} +8 -8
- package/dist/chunks/{aisdk-native-33vdnkwr.js → generate-yzt2x2kg.js} +43 -43
- package/dist/chunks/{aisdk-native-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-native-8bm3f2jm.js → generate-z0bysbaa.js} +35 -35
- package/dist/chunks/{aisdk-native-pjbet6vr.js → generate-z8fpjdp3.js} +43 -43
- package/dist/chunks/{aisdk-native-tx8kxggf.js → generate-z964fg8a.js} +18 -18
- package/dist/chunks/{aisdk-native-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-native-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- package/dist/chunks/{aisdk-native-a2rpfkac.js → generate-zy43x3f1.js} +4 -4
- 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 +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +94 -94
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +222 -222
- package/dist/filesystem/protected.js +3 -3
- 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 +108 -108
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +107 -107
- 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 +93 -93
- 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.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- 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 +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +93 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- 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 +216 -216
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +11 -11
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- 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 +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-60qts6gm.js +0 -513
- package/dist/chunks/aisdk-native-a7zxcn7e.js +0 -253
- package/dist/chunks/aisdk-native-de47v9yh.js +0 -26
- package/dist/chunks/aisdk-native-qc068m1q.js +0 -18
- /package/dist/chunks/{aisdk-native-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-native-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-native-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-native-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-native-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{aisdk-native-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-native-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-native-2bv980vf.js → generate-2bv980vf.js} +0 -0
- /package/dist/chunks/{aisdk-native-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-native-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-native-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-native-3t0ybcrp.js → generate-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-native-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-native-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-native-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-native-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-native-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-native-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-native-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-native-5qd3pb7m.js → generate-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{aisdk-native-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-native-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{aisdk-native-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-native-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-native-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-native-84wd9syh.js → generate-84wd9syh.js} +0 -0
- /package/dist/chunks/{aisdk-native-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-native-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-native-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-native-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-native-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-native-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-native-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-native-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-native-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-native-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-native-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-native-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-native-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-native-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-native-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-native-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-native-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-native-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-native-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-native-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-native-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-native-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-native-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-native-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-native-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-native-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-native-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-native-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
- /package/dist/chunks/{aisdk-native-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-native-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-native-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-native-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{aisdk-native-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-native-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-native-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
- /package/dist/chunks/{aisdk-native-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-native-m18g726c.js → generate-m18g726c.js} +0 -0
- /package/dist/chunks/{aisdk-native-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-native-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-native-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-native-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-native-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-native-pkyv6v7h.js → generate-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{aisdk-native-pyv0edze.js → generate-pyv0edze.js} +0 -0
- /package/dist/chunks/{aisdk-native-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-native-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-native-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-native-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-native-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{aisdk-native-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-native-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-native-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-native-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
- /package/dist/chunks/{aisdk-native-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-native-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{aisdk-native-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-native-wjj7prxr.js → generate-wjj7prxr.js} +0 -0
- /package/dist/chunks/{aisdk-native-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-native-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-native-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-native-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-native-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-native-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{aisdk-native-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Ref4
|
|
3
|
+
} from "./generate-319jyy1m.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service79,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node82,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service79 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service79, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node82 = LayerNode.unbound(Service79, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service79;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -39,10 +39,10 @@ var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
|
39
39
|
yield* Effect.logInfo("location services reloaded", { count: refs.length });
|
|
40
40
|
});
|
|
41
41
|
function canonical3(ref) {
|
|
42
|
-
return
|
|
42
|
+
return Ref4.make({
|
|
43
43
|
directory: AbsolutePath.make(process.platform === "win32" ? path.normalize(ref.directory) : ref.directory),
|
|
44
44
|
workspaceID: ref.workspaceID
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service79, node82, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node83
|
|
4
|
+
} from "./generate-319jyy1m.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
make20,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-02nrjc1r.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service31,
|
|
19
|
+
node: () => node35
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service31 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service80;
|
|
29
|
+
return Service31.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
31
|
make20({
|
|
32
|
-
key:
|
|
32
|
+
key: Key4.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
35
35
|
render: {
|
|
@@ -38,7 +38,7 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
40
|
make20({
|
|
41
|
-
key:
|
|
41
|
+
key: Key4.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
44
44
|
"<env>",
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node35 = makeLocationNode({ service: Service31, layer, deps: [Global.node, node83] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service31, node35, exports_builtins };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./generate-7r0r2nec.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID9.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID9.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-j3nkb9wj.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Service37,
|
|
7
7
|
node40
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-m1efmtwr.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service74,
|
|
11
|
+
node77
|
|
12
|
+
} from "./generate-kxxbqm5f.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service53,
|
|
15
|
+
node55
|
|
16
|
+
} from "./generate-y39tjqdd.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./generate-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service30,
|
|
26
26
|
layer: () => layer14,
|
|
27
27
|
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node34
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
36
|
var name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service30 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var layer14 = Layer.effect(
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer14 = Layer.effect(Service30, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service37;
|
|
42
|
+
const tools = yield* Service53;
|
|
43
43
|
const bus = yield* Service84;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service74;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -118,12 +118,12 @@ var layer14 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service30.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
123
|
+
var node34 = makeLocationNode({
|
|
124
|
+
service: Service30,
|
|
125
125
|
layer: layer14,
|
|
126
|
-
deps: [
|
|
126
|
+
deps: [node55, node40, node88, node77]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name13,
|
|
129
|
+
export { namespace2, name13, Service30, layer14, node34, exports_mcp3 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuth3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-y9pr6q2f.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID10,
|
|
6
6
|
MethodID2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-3cb4vsbh.js";
|
|
8
8
|
import {
|
|
9
9
|
success2,
|
|
10
10
|
error2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./generate-pjvnvgmy.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/provider/poe.ts
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
16
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID10.make("poe");
|
|
18
18
|
var methodID = MethodID2.make("browser");
|
|
19
19
|
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
20
|
var issuer = "https://poe.com";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event9,
|
|
15
15
|
Native: () => Native3,
|
|
16
16
|
Options: () => Options7,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service50,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
20
|
configured: () => configured7,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer22,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node52,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event9 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -57,14 +57,14 @@ var Options7 = Schema.Struct({
|
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service50 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer22 = (options) => Layer.effect(Service50, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service50.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer23 = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service50.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer22().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service50).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service50, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -165,9 +165,9 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
167
|
function configured7(options) {
|
|
168
|
-
return makeGlobalNode({ service:
|
|
168
|
+
return makeGlobalNode({ service: Service50, layer: layer22(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node52 = configured7();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event9, hasNativeBinding2, Native3, Options7, Service50, Test3, layer22, testLayer3, nativeLayer2, nativeNode2, configured7, node52, exports_watcher };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-j3nkb9wj.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service80,
|
|
7
|
+
node83
|
|
8
|
+
} from "./generate-319jyy1m.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
Service57,
|
|
11
11
|
login2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
node60
|
|
13
|
+
} from "./generate-wb0v33rf.js";
|
|
14
14
|
import {
|
|
15
15
|
lazy2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./generate-88xbtdfr.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./generate-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
24
|
CreateInput: () => CreateInput2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event4,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
27
|
+
ID: () => ID4,
|
|
28
|
+
Info: () => Info3,
|
|
29
29
|
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service17,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node20
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event4 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var ID4 = Pty.ID;
|
|
43
|
+
var Info3 = Pty.Info;
|
|
44
44
|
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
47
|
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
-
ptyID:
|
|
48
|
+
ptyID: ID4
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID4
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service17 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service84;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
61
|
+
const location = yield* Service80;
|
|
62
|
+
const shell = yield* Service57;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID4.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service17.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node20 = makeLocationNode({
|
|
273
|
+
service: Service17,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node88,
|
|
275
|
+
deps: [node88, node83, node60]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID4, Info3, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service17, node20, exports_pty, Event4 };
|
|
@@ -2,42 +2,42 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./generate-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node83
|
|
9
|
+
} from "./generate-319jyy1m.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service22,
|
|
12
|
+
node25
|
|
13
|
+
} from "./generate-gcb2m958.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./generate-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content2,
|
|
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: () => Event6,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput2,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError3,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service21,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node24
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError3 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content2 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput2 = Schema.Struct({
|
|
86
86
|
path: Schema.String.pipe(Schema.optional)
|
|
87
87
|
});
|
|
88
88
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event6 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service21 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service21, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
|
-
const location = yield*
|
|
115
|
-
const search = yield*
|
|
114
|
+
const location = yield* Service80;
|
|
115
|
+
const search = yield* Service22;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service21.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError3({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError3({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node24 = makeLocationNode({
|
|
175
|
+
service: Service21,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node,
|
|
177
|
+
deps: [FSUtil.node, node83, node25]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event6, Service21, node24, exports_filesystem, Entry2, Match2, Submatch2 };
|