@opencode/core 0.0.0-dev-19636 → 0.0.0-dev-19638
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{filesystem-4ne2b2yw.js → file-access-01bhhyb7.js} +3 -3
- package/dist/chunks/{filesystem-eaj1djv9.js → file-access-02nrjc1r.js} +4 -4
- package/dist/chunks/{filesystem-v1e70071.js → file-access-0hnxfn8s.js} +18 -18
- package/dist/chunks/{filesystem-3r886gma.js → file-access-0j8y3tn5.js} +17 -17
- package/dist/chunks/file-access-0mesazry.js +4 -0
- package/dist/chunks/{filesystem-0paq2nw3.js → file-access-0paq2nw3.js} +1 -1
- package/dist/chunks/{filesystem-0q0f95c6.js → file-access-0q0f95c6.js} +1 -1
- package/dist/chunks/{filesystem-d79nh3qx.js → file-access-0tg58rzn.js} +11 -11
- package/dist/chunks/{filesystem-tjfjg9xy.js → file-access-1bz55dqa.js} +84 -84
- package/dist/chunks/{filesystem-1dazxqgg.js → file-access-1dazxqgg.js} +2 -2
- package/dist/chunks/{filesystem-pgeqw9gz.js → file-access-1h5aw7tx.js} +32 -32
- package/dist/chunks/{filesystem-s70r0d8a.js → file-access-1r6cykv1.js} +4 -4
- package/dist/chunks/{filesystem-21r38tys.js → file-access-21r38tys.js} +1 -1
- package/dist/chunks/{filesystem-rttadtrv.js → file-access-22xdy94t.js} +21 -21
- package/dist/chunks/{filesystem-6h73sxmp.js → file-access-2402vzrj.js} +5 -5
- package/dist/chunks/{filesystem-3dgjdry5.js → file-access-25fjjxm2.js} +29 -29
- package/dist/chunks/{filesystem-2a5m3afh.js → file-access-2a5m3afh.js} +1 -1
- package/dist/chunks/{filesystem-ghnetwzt.js → file-access-2j0dgarf.js} +20 -20
- package/dist/chunks/{filesystem-6f67xk9m.js → file-access-2js99wz0.js} +14 -14
- package/dist/chunks/{filesystem-6hcnmam1.js → file-access-2wts5qzq.js} +6 -6
- package/dist/chunks/{filesystem-cbc0wxnt.js → file-access-32x43b5h.js} +4 -4
- package/dist/chunks/{filesystem-2b0awdga.js → file-access-33c2t3mm.js} +18 -18
- package/dist/chunks/{filesystem-3fc6dm20.js → file-access-3fc6dm20.js} +1 -1
- package/dist/chunks/{filesystem-3hepkmqq.js → file-access-3hepkmqq.js} +1 -1
- package/dist/chunks/{filesystem-4br0erxd.js → file-access-3knnkrdf.js} +20 -20
- package/dist/chunks/{filesystem-gmjjhz4f.js → file-access-3ktbe3hf.js} +6 -6
- package/dist/chunks/{filesystem-6ehbgqat.js → file-access-3ppptnan.js} +6 -6
- package/dist/chunks/{filesystem-3smtnn6g.js → file-access-3smtnn6g.js} +1 -1
- package/dist/chunks/{filesystem-5sb5x7cf.js → file-access-3stbjpb0.js} +20 -20
- package/dist/chunks/{filesystem-3tvqynh2.js → file-access-3tvqynh2.js} +1 -1
- package/dist/chunks/{filesystem-mpkxj448.js → file-access-3zdwcfwy.js} +9 -9
- package/dist/chunks/{filesystem-a32yec29.js → file-access-3zrjs6f3.js} +9 -9
- package/dist/chunks/{filesystem-texzw661.js → file-access-46hd3f0f.js} +5 -5
- package/dist/chunks/{filesystem-nhy5jxhy.js → file-access-47gsdddb.js} +5 -5
- package/dist/chunks/{filesystem-we45q118.js → file-access-4cmr76fd.js} +3 -3
- package/dist/chunks/{filesystem-4xzs0z00.js → file-access-4hxfx086.js} +9 -9
- package/dist/chunks/{filesystem-tcg29b4q.js → file-access-4jc5c4h4.js} +1 -1
- package/dist/chunks/{filesystem-rjq70d1v.js → file-access-4nfbas15.js} +11 -11
- package/dist/chunks/{filesystem-pcefftg5.js → file-access-4vb1y0qz.js} +9 -9
- package/dist/chunks/{filesystem-dg2gp1rn.js → file-access-4wrt768g.js} +4 -4
- package/dist/chunks/{filesystem-1h3h6ne9.js → file-access-50hk1gym.js} +17 -17
- package/dist/chunks/{filesystem-tw0jddzq.js → file-access-56rycjvn.js} +31 -31
- package/dist/chunks/{filesystem-2fjrq4z2.js → file-access-5apets8e.js} +8 -8
- package/dist/chunks/{filesystem-5c4hm403.js → file-access-5c4hm403.js} +3 -3
- package/dist/chunks/{filesystem-5daktx2q.js → file-access-5daktx2q.js} +1 -1
- package/dist/chunks/{filesystem-hdthj1pw.js → file-access-5n7sh86d.js} +6 -6
- package/dist/chunks/{filesystem-5w5asw02.js → file-access-5srkf7nd.js} +12 -12
- package/dist/chunks/{filesystem-5t3nmthw.js → file-access-5t3nmthw.js} +2 -2
- package/dist/chunks/{filesystem-294fw6fk.js → file-access-62agcz7g.js} +20 -20
- package/dist/chunks/{filesystem-669tq793.js → file-access-669tq793.js} +1 -1
- package/dist/chunks/{filesystem-g7k1gdmz.js → file-access-6jft8mvs.js} +20 -20
- package/dist/chunks/{filesystem-hb4ygmza.js → file-access-6m499kzd.js} +36 -32
- package/dist/chunks/{filesystem-6msgmcgs.js → file-access-6msgmcgs.js} +1 -1
- package/dist/chunks/{filesystem-cg3fyqky.js → file-access-6snq9ewv.js} +45 -45
- package/dist/chunks/{filesystem-084qjam6.js → file-access-6ycvbcht.js} +16 -16
- package/dist/chunks/{filesystem-3g6gd80t.js → file-access-6ykthspn.js} +6 -6
- package/dist/chunks/{filesystem-3brweq1y.js → file-access-6ywjc070.js} +24 -24
- package/dist/chunks/{filesystem-ng7a4pcr.js → file-access-76jmq1mn.js} +167 -167
- package/dist/chunks/{filesystem-yvpfa4rd.js → file-access-76xmbs1m.js} +15 -15
- package/dist/chunks/{filesystem-7bmhse3q.js → file-access-7bmhse3q.js} +1 -1
- package/dist/chunks/{filesystem-e5epjp6e.js → file-access-7dcaf0ce.js} +21 -21
- package/dist/chunks/{filesystem-s194k709.js → file-access-7h1ryc6p.js} +18 -15
- package/dist/chunks/{filesystem-jzw9fxht.js → file-access-7heb594d.js} +28 -28
- package/dist/chunks/{filesystem-4ttgz70x.js → file-access-7n0p62ew.js} +11 -11
- package/dist/chunks/{filesystem-w7ar50ta.js → file-access-7tcrqq4t.js} +7 -7
- package/dist/chunks/{filesystem-6xdccknh.js → file-access-7tdtfp7b.js} +20 -20
- package/dist/chunks/{filesystem-1bbkgx8g.js → file-access-7yh4e7ss.js} +3 -3
- package/dist/chunks/{filesystem-9wvh8z56.js → file-access-812zr1rk.js} +10 -10
- package/dist/chunks/{filesystem-ytg5f91j.js → file-access-8526r7vx.js} +39 -39
- package/dist/chunks/{filesystem-e52vsy5d.js → file-access-8602h8p3.js} +8 -8
- package/dist/chunks/{filesystem-3fqm51rm.js → file-access-86jfkp86.js} +28 -28
- package/dist/chunks/{filesystem-fqtvmpfq.js → file-access-8ank75fn.js} +8 -8
- package/dist/chunks/{filesystem-b6zq1b9v.js → file-access-8b68vhre.js} +17 -17
- package/dist/chunks/{filesystem-8d7r5vzw.js → file-access-8d7r5vzw.js} +1 -1
- package/dist/chunks/{filesystem-hngmebnz.js → file-access-8kckztxt.js} +23 -23
- package/dist/chunks/file-access-8r5sxhkv.js +38 -0
- package/dist/chunks/{filesystem-v54d4zy3.js → file-access-8snetkfr.js} +5 -5
- package/dist/chunks/{filesystem-fq9618wy.js → file-access-8y62cfgq.js} +6 -6
- package/dist/chunks/{filesystem-reyjqdga.js → file-access-8yph952s.js} +4 -4
- package/dist/chunks/{filesystem-xb46sqya.js → file-access-8yppv9j5.js} +22 -22
- package/dist/chunks/{filesystem-bxf23pqh.js → file-access-917gka4z.js} +14 -14
- package/dist/chunks/{filesystem-11eespba.js → file-access-92f8rgp2.js} +24 -24
- package/dist/chunks/{filesystem-361qychh.js → file-access-99xay3p1.js} +8 -8
- package/dist/chunks/{filesystem-2begppk9.js → file-access-9ancjmj9.js} +34 -30
- package/dist/chunks/{filesystem-2tfmgkzg.js → file-access-9b36z5yg.js} +4 -4
- package/dist/chunks/{filesystem-kcnfxn04.js → file-access-9bkgmrac.js} +3 -3
- package/dist/chunks/{filesystem-g0avntpg.js → file-access-9ev53f4q.js} +16 -16
- package/dist/chunks/{filesystem-8r7v4pv1.js → file-access-9rrc34ns.js} +26 -26
- package/dist/chunks/{filesystem-r397h8mg.js → file-access-9s92gzw6.js} +24 -24
- package/dist/chunks/{filesystem-w60r9xev.js → file-access-a3dkvnxb.js} +35 -35
- package/dist/chunks/{filesystem-6hjx5zpb.js → file-access-a3ftg8j6.js} +9 -9
- package/dist/chunks/{filesystem-jfsctkpn.js → file-access-a46e93d3.js} +6 -6
- package/dist/chunks/{filesystem-cnrkenzz.js → file-access-a6kbnp9r.js} +6 -6
- package/dist/chunks/{filesystem-s3v9fbv9.js → file-access-a97f1kxr.js} +32 -32
- package/dist/chunks/{filesystem-aaet6srn.js → file-access-aaet6srn.js} +2 -2
- package/dist/chunks/{filesystem-9xnb7hyj.js → file-access-ajk9kppy.js} +20 -20
- package/dist/chunks/{filesystem-pqgd01zc.js → file-access-andt55zn.js} +46 -46
- package/dist/chunks/{filesystem-xdww2rec.js → file-access-ashkezcm.js} +27 -27
- package/dist/chunks/{filesystem-gw2kccs8.js → file-access-avs77xrm.js} +5 -5
- package/dist/chunks/{filesystem-712r6eb2.js → file-access-azvx9vjt.js} +15 -15
- package/dist/chunks/{filesystem-6hh8tjw2.js → file-access-b27vhd2z.js} +4 -4
- package/dist/chunks/{filesystem-1nr6pf8e.js → file-access-b2gch9fn.js} +25 -25
- package/dist/chunks/{filesystem-pzcfktq3.js → file-access-b2jj88ef.js} +18 -18
- package/dist/chunks/{filesystem-628568aw.js → file-access-b5j16w9d.js} +12 -12
- package/dist/chunks/{filesystem-c5b9ks87.js → file-access-b5jkzqy2.js} +37 -37
- package/dist/chunks/{filesystem-b6gygkdw.js → file-access-b6gygkdw.js} +2 -2
- package/dist/chunks/{filesystem-rba8598g.js → file-access-bbfsgge0.js} +22 -22
- package/dist/chunks/{filesystem-rsj9y6gb.js → file-access-be47w3k3.js} +15 -15
- package/dist/chunks/{filesystem-9ngxpv4m.js → file-access-bhqn7aj9.js} +11 -11
- package/dist/chunks/{filesystem-48egeg7n.js → file-access-bj5hbc59.js} +4 -4
- package/dist/chunks/file-access-by5v678g.js +18 -0
- package/dist/chunks/{filesystem-474v7c4x.js → file-access-by9rpdtw.js} +14 -14
- package/dist/chunks/{filesystem-5qcj4ksz.js → file-access-c1661jpf.js} +1 -1
- package/dist/chunks/{filesystem-5yzzbxa7.js → file-access-cmwkp3r5.js} +8 -8
- package/dist/chunks/{filesystem-cpj0znwe.js → file-access-cpj0znwe.js} +1 -1
- package/dist/chunks/{filesystem-h9h4rw0b.js → file-access-cy2r3qg1.js} +36 -36
- package/dist/chunks/{filesystem-2fgn2we9.js → file-access-d9s573fh.js} +9 -9
- package/dist/chunks/{filesystem-kqg5mzr3.js → file-access-dbtyj0an.js} +4 -4
- package/dist/chunks/{filesystem-dj2t23y0.js → file-access-dj2t23y0.js} +2 -2
- package/dist/chunks/{filesystem-yx9n7fpe.js → file-access-dpcqhtkn.js} +17 -17
- package/dist/chunks/{filesystem-jre2exce.js → file-access-dsyvch4e.js} +18 -18
- package/dist/chunks/{filesystem-b6pmepta.js → file-access-dthhqzns.js} +12 -12
- package/dist/chunks/{filesystem-s97q8wmc.js → file-access-dy562txv.js} +14 -14
- package/dist/chunks/{filesystem-dc8590hs.js → file-access-e2e34s5q.js} +26 -26
- package/dist/chunks/{filesystem-tk8b1eqd.js → file-access-e2qab2dq.js} +5 -5
- package/dist/chunks/{filesystem-t7w8wthg.js → file-access-e3adyxrg.js} +26 -26
- package/dist/chunks/{filesystem-e5nv3ght.js → file-access-e5nv3ght.js} +2 -2
- package/dist/chunks/{filesystem-9f7wwfw1.js → file-access-e64xqjet.js} +6 -6
- package/dist/chunks/{filesystem-nq29vp8n.js → file-access-ea3fxjgj.js} +21 -21
- package/dist/chunks/{filesystem-z9dqtg9m.js → file-access-eahf1j6r.js} +24 -24
- package/dist/chunks/{filesystem-ef5x83kb.js → file-access-ef5x83kb.js} +1 -1
- package/dist/chunks/{filesystem-6r95854g.js → file-access-enbnvbva.js} +37 -37
- package/dist/chunks/{filesystem-9rf1zay2.js → file-access-et8mzwyf.js} +11 -11
- package/dist/chunks/{filesystem-etq0c3wd.js → file-access-etq0c3wd.js} +1 -1
- package/dist/chunks/{filesystem-fhrwyyh1.js → file-access-ewwzb6sv.js} +5 -5
- package/dist/chunks/{filesystem-yfe53vnj.js → file-access-f3k401ar.js} +22 -22
- package/dist/chunks/{filesystem-f3ngv102.js → file-access-f3ngv102.js} +1 -1
- package/dist/chunks/{filesystem-81k51azh.js → file-access-f60890a8.js} +7 -7
- package/dist/chunks/{filesystem-xvcyhft3.js → file-access-f6fgfmmn.js} +33 -33
- package/dist/chunks/{filesystem-g0kf9mz8.js → file-access-fak7xqqt.js} +16 -16
- package/dist/chunks/{filesystem-z0065k1n.js → file-access-fc4nsy51.js} +38 -38
- package/dist/chunks/{filesystem-fxbjtjnd.js → file-access-fxbjtjnd.js} +1 -1
- package/dist/chunks/{filesystem-ex0pka66.js → file-access-fyjp43ss.js} +5 -5
- package/dist/chunks/{filesystem-df21te9f.js → file-access-g00jty2v.js} +16 -16
- package/dist/chunks/{filesystem-8bcx3nez.js → file-access-g0r62mbx.js} +4 -4
- package/dist/chunks/{filesystem-gd4qta3r.js → file-access-gd4qta3r.js} +1 -1
- package/dist/chunks/{filesystem-3w0fmcng.js → file-access-gqchpbtd.js} +5 -5
- package/dist/chunks/{filesystem-mn8cph46.js → file-access-gsj5sv52.js} +11 -11
- package/dist/chunks/{filesystem-h03wrkyp.js → file-access-h03wrkyp.js} +2 -2
- package/dist/chunks/file-access-h2q74avv.js +26 -0
- package/dist/chunks/{filesystem-h6vf3j39.js → file-access-h6vf3j39.js} +1 -1
- package/dist/chunks/{filesystem-hdnk95c8.js → file-access-hdnk95c8.js} +2 -2
- package/dist/chunks/{filesystem-mxxp51f6.js → file-access-he2x7e7z.js} +3 -3
- package/dist/chunks/{filesystem-6r8wc0ff.js → file-access-hftty0sn.js} +42 -25
- package/dist/chunks/{filesystem-wgwsgwdw.js → file-access-hg4hxzv1.js} +25 -25
- package/dist/chunks/{filesystem-0e31t5vv.js → file-access-hm7xtcxq.js} +13 -13
- package/dist/chunks/{filesystem-ag4rn41e.js → file-access-hn57h045.js} +4 -4
- package/dist/chunks/{filesystem-46qxp0cq.js → file-access-hpe0ccrg.js} +37 -37
- package/dist/chunks/{filesystem-d7124rbf.js → file-access-hwr433ds.js} +10 -10
- package/dist/chunks/{filesystem-zs77z4r0.js → file-access-j03d6hs6.js} +20 -20
- package/dist/chunks/{filesystem-c3st1rh6.js → file-access-j0vfj7ky.js} +13 -13
- package/dist/chunks/{filesystem-rp8jz6x1.js → file-access-j15mfg1p.js} +6 -6
- package/dist/chunks/{filesystem-j56e64zr.js → file-access-j56e64zr.js} +1 -1
- package/dist/chunks/{filesystem-jca4demv.js → file-access-jca4demv.js} +2 -2
- package/dist/chunks/{filesystem-x1xcpfha.js → file-access-jgv4nkbw.js} +15 -15
- package/dist/chunks/{filesystem-r2pbn9ew.js → file-access-jjefk1kz.js} +46 -46
- package/dist/chunks/{filesystem-24aj2vr8.js → file-access-js4k7t4e.js} +19 -19
- package/dist/chunks/{filesystem-spgtr7wt.js → file-access-k31cg7qp.js} +20 -20
- package/dist/chunks/{filesystem-p0r075tw.js → file-access-k33y0e94.js} +41 -41
- package/dist/chunks/{filesystem-nrck5rh0.js → file-access-ke9sk9ax.js} +16 -16
- package/dist/chunks/{filesystem-k5xj2xmh.js → file-access-km5njsm9.js} +11 -11
- package/dist/chunks/{filesystem-tqzhfmjj.js → file-access-kr9cqyf0.js} +8 -8
- package/dist/chunks/{filesystem-zvwz45r0.js → file-access-kw9xdzv2.js} +9 -9
- package/dist/chunks/{filesystem-m0jqrx5p.js → file-access-m0jqrx5p.js} +2 -2
- package/dist/chunks/{filesystem-36sxhdsk.js → file-access-m3kws1jr.js} +47 -47
- package/dist/chunks/{filesystem-g61ycw3s.js → file-access-m6gy85y0.js} +23 -23
- package/dist/chunks/{filesystem-m9w0rfyh.js → file-access-m9w0rfyh.js} +1 -1
- package/dist/chunks/{filesystem-drh00dzc.js → file-access-mby8mxat.js} +10 -10
- package/dist/chunks/{filesystem-33w4ejhs.js → file-access-mfqp6xfm.js} +9 -9
- package/dist/chunks/{filesystem-swvck4sd.js → file-access-mmy2zf88.js} +15 -15
- package/dist/chunks/{filesystem-2zyp5ek9.js → file-access-mrxfpjcs.js} +5 -5
- package/dist/chunks/{filesystem-24dd53tp.js → file-access-mvn2r3z4.js} +9 -9
- package/dist/chunks/{filesystem-cwfnw5hm.js → file-access-mxyhxd0t.js} +10 -10
- package/dist/chunks/{filesystem-jbpnby0z.js → file-access-mzrp1fyr.js} +13 -13
- package/dist/chunks/{filesystem-hzyv0aq5.js → file-access-n9y08rq6.js} +15 -15
- package/dist/chunks/{filesystem-e8340df8.js → file-access-ngdt5g2x.js} +8 -8
- package/dist/chunks/{filesystem-eshk1mrn.js → file-access-njqgj7qg.js} +11 -11
- package/dist/chunks/{filesystem-zgy1cjmt.js → file-access-nzha355v.js} +13 -13
- package/dist/chunks/{filesystem-crka0j56.js → file-access-p2f255ct.js} +4 -4
- package/dist/chunks/{filesystem-ze5y8rs0.js → file-access-p5599t8k.js} +8 -8
- package/dist/chunks/{filesystem-w2pmhvrv.js → file-access-pdd0bbjk.js} +14 -14
- package/dist/chunks/{filesystem-sd0hh66t.js → file-access-pfz3dw98.js} +26 -26
- package/dist/chunks/file-access-phnkt68t.js +474 -0
- package/dist/chunks/{filesystem-8we8r4vx.js → file-access-pj43p8qp.js} +10 -10
- package/dist/chunks/{filesystem-pjvnvgmy.js → file-access-pjvnvgmy.js} +1 -1
- package/dist/chunks/{filesystem-pknna89w.js → file-access-pknna89w.js} +1 -1
- package/dist/chunks/{filesystem-ahzc4xqv.js → file-access-pr444p5c.js} +15 -15
- package/dist/chunks/{filesystem-nc3pr63t.js → file-access-q12jtckr.js} +10 -10
- package/dist/chunks/{filesystem-sjbhawkw.js → file-access-qfjwnv02.js} +1 -1
- package/dist/chunks/{filesystem-0jwsre1p.js → file-access-qgn6gcr1.js} +5 -5
- package/dist/chunks/{filesystem-gjwgx2c5.js → file-access-qmqgtz8f.js} +5 -5
- package/dist/chunks/{filesystem-qsdy395h.js → file-access-qsdy395h.js} +1 -1
- package/dist/chunks/{filesystem-wfjzk575.js → file-access-qv9gx9bg.js} +41 -41
- package/dist/chunks/{filesystem-5dgzn4tn.js → file-access-qx87dfmj.js} +16 -16
- package/dist/chunks/{filesystem-bwza20cw.js → file-access-r4ck6ye8.js} +13 -13
- package/dist/chunks/{filesystem-r9mregkx.js → file-access-r9mregkx.js} +2 -2
- package/dist/chunks/{filesystem-1rxs6y3d.js → file-access-rds37zvx.js} +19 -19
- package/dist/chunks/{filesystem-rdw6cm16.js → file-access-rdw6cm16.js} +1 -1
- package/dist/chunks/{filesystem-k191nb18.js → file-access-rgp511zr.js} +2 -2
- package/dist/chunks/{filesystem-z6tazwav.js → file-access-rj5xkaak.js} +15 -15
- package/dist/chunks/{filesystem-zeh9ct20.js → file-access-rq775frq.js} +2 -2
- package/dist/chunks/{filesystem-5h05hjvz.js → file-access-rsk3jvy7.js} +11 -11
- package/dist/chunks/{filesystem-gma20p0b.js → file-access-rtxak1ft.js} +13 -13
- package/dist/chunks/{filesystem-egza69qx.js → file-access-rw8kjknk.js} +5 -5
- package/dist/chunks/{filesystem-yt0fqk68.js → file-access-s587y4ee.js} +5 -5
- package/dist/chunks/{filesystem-p1cpmwyf.js → file-access-s6jatava.js} +19 -19
- package/dist/chunks/{filesystem-qe4fvz1x.js → file-access-s7769g1c.js} +22 -22
- package/dist/chunks/{filesystem-ysstqnzc.js → file-access-s8j3dq9b.js} +3 -3
- package/dist/chunks/{filesystem-jr7kwrkh.js → file-access-snmjhvm7.js} +15 -15
- package/dist/chunks/{filesystem-68cg48z6.js → file-access-spqgdpza.js} +20 -20
- package/dist/chunks/{filesystem-j4450fcx.js → file-access-sstmea9h.js} +20 -20
- package/dist/chunks/{filesystem-msqsbnvg.js → file-access-sve5t580.js} +54 -54
- package/dist/chunks/{filesystem-yjx4qmbw.js → file-access-sxd752g3.js} +8 -8
- package/dist/chunks/{filesystem-yjptyezs.js → file-access-t3swkhbg.js} +5 -5
- package/dist/chunks/{filesystem-cackw8yz.js → file-access-t7e0y256.js} +9 -9
- package/dist/chunks/{filesystem-zp6zzbwt.js → file-access-t9kha2ca.js} +16 -16
- package/dist/chunks/{filesystem-tazgh4e4.js → file-access-tazgh4e4.js} +1 -1
- package/dist/chunks/{filesystem-89znhe33.js → file-access-tcezcvh9.js} +4 -4
- package/dist/chunks/{filesystem-m1548a0r.js → file-access-tdbakys2.js} +25 -25
- package/dist/chunks/{filesystem-tdstcens.js → file-access-tdstcens.js} +1 -1
- package/dist/chunks/{filesystem-tvtrv512.js → file-access-tvtrv512.js} +1 -1
- package/dist/chunks/{filesystem-jsvb6vsn.js → file-access-v24739yc.js} +12 -12
- package/dist/chunks/{filesystem-13b2ng85.js → file-access-v65pmyz7.js} +3 -3
- package/dist/chunks/{filesystem-vmd137xr.js → file-access-vbmkf8sa.js} +65 -65
- package/dist/chunks/{filesystem-veqvce7d.js → file-access-veqvce7d.js} +1 -1
- package/dist/chunks/{filesystem-82qkcyg7.js → file-access-vfp4enkz.js} +11 -11
- package/dist/chunks/{filesystem-jdyy8xf0.js → file-access-vhfq0sg5.js} +9 -9
- package/dist/chunks/{filesystem-msngqtw6.js → file-access-vmgcxazz.js} +3 -3
- package/dist/chunks/{filesystem-bct739vz.js → file-access-vncycja5.js} +4 -4
- package/dist/chunks/{filesystem-che44dvv.js → file-access-vpgyrhve.js} +44 -44
- package/dist/chunks/{filesystem-4541pte3.js → file-access-vyqn3nqs.js} +6 -6
- package/dist/chunks/{filesystem-vzcthcp8.js → file-access-vzcthcp8.js} +1 -1
- package/dist/chunks/{filesystem-paegk39x.js → file-access-w1k39n5e.js} +4 -4
- package/dist/chunks/{filesystem-w3wsvvr9.js → file-access-w3wsvvr9.js} +1 -1
- package/dist/chunks/{filesystem-1fmrbde1.js → file-access-w4axh9wz.js} +6 -6
- package/dist/chunks/{filesystem-caj0q3k9.js → file-access-wc8ptzv7.js} +29 -29
- package/dist/chunks/{filesystem-wd87259q.js → file-access-wd87259q.js} +1 -1
- package/dist/chunks/{filesystem-c86vv8em.js → file-access-wvxf6pmh.js} +10 -10
- package/dist/chunks/{filesystem-x1ezjp6w.js → file-access-x1ezjp6w.js} +1 -1
- package/dist/chunks/{filesystem-d4xtzqw3.js → file-access-xsyev9bv.js} +17 -17
- package/dist/chunks/file-access-xv4gw76e.js +247 -0
- package/dist/chunks/{filesystem-y1fvbwt7.js → file-access-y1fvbwt7.js} +1 -1
- package/dist/chunks/{filesystem-1bdj34ne.js → file-access-y3d0z3tn.js} +27 -27
- package/dist/chunks/{filesystem-122hfxms.js → file-access-y3ye89br.js} +41 -41
- package/dist/chunks/{filesystem-y71avatq.js → file-access-y71avatq.js} +1 -1
- package/dist/chunks/{filesystem-2a7p2dsd.js → file-access-yb8fj77w.js} +32 -32
- package/dist/chunks/{filesystem-cmzp0t9y.js → file-access-ycrw32xq.js} +14 -14
- package/dist/chunks/{filesystem-f2n192rq.js → file-access-yp2x3t23.js} +4 -4
- package/dist/chunks/{filesystem-0dfh98b5.js → file-access-ypyq2zsn.js} +10 -10
- package/dist/chunks/{filesystem-yrhqyw5v.js → file-access-yrhqyw5v.js} +1 -1
- package/dist/chunks/{filesystem-yrznvahk.js → file-access-yrznvahk.js} +2 -2
- package/dist/chunks/{filesystem-ha93k7pw.js → file-access-ys2m57fz.js} +37 -37
- package/dist/chunks/{filesystem-gv6a8nnw.js → file-access-yyb7tjpc.js} +2 -2
- package/dist/chunks/{filesystem-z0bkrqjs.js → file-access-z0bkrqjs.js} +1 -1
- package/dist/chunks/{filesystem-bd2g5bk9.js → file-access-z12cg9p1.js} +9 -9
- package/dist/chunks/{filesystem-nwh98khw.js → file-access-z25b1m8j.js} +37 -37
- package/dist/chunks/{filesystem-z63w68vq.js → file-access-z63w68vq.js} +2 -2
- package/dist/chunks/{filesystem-aar5tqjz.js → file-access-z6q28316.js} +34 -34
- package/dist/chunks/{filesystem-8393f43m.js → file-access-z6t9vx1b.js} +11 -11
- package/dist/chunks/{filesystem-m4m2egqz.js → file-access-zetsppkw.js} +21 -21
- package/dist/chunks/{filesystem-e9vx22h1.js → file-access-zf9pbwsw.js} +88 -88
- package/dist/chunks/{filesystem-h6z8d5tn.js → file-access-zj09a0ew.js} +4 -4
- package/dist/chunks/{filesystem-xkhxx58a.js → file-access-zmk6j7b1.js} +13 -13
- package/dist/chunks/{filesystem-zr2ceqn5.js → file-access-zr2ceqn5.js} +1 -1
- package/dist/chunks/{filesystem-f3w2w69r.js → file-access-zsn07k7j.js} +11 -11
- package/dist/chunks/{filesystem-sdkze8v1.js → file-access-zw6dtez5.js} +4 -4
- package/dist/chunks/{filesystem-zxq2ej10.js → file-access-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +82 -82
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +158 -158
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +123 -123
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +78 -78
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -362
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +4 -4
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +104 -104
- 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 +98 -98
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -353
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +79 -79
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +351 -350
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +124 -124
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +95 -95
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +216 -216
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -325
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +94 -0
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -157
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -344
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +92 -92
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +130 -130
- package/dist/session/context.js +150 -150
- package/dist/session/diff.js +87 -87
- 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 +219 -219
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +154 -154
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +88 -88
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- package/dist/tool/plugin/edit.js +117 -117
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +118 -118
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/model.d.ts +3 -0
- package/dist/types/plugin/provider/prompt-cache-key.d.ts +1 -0
- package/dist/types/session/model-transport.d.ts +6 -1
- package/dist/types/v1/config/migrate.d.ts +1 -0
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- 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 +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/filesystem-70jsskm8.js +0 -18
- package/dist/chunks/filesystem-99bpcqdd.js +0 -26
- package/dist/chunks/filesystem-ga2889bp.js +0 -474
- package/dist/chunks/filesystem-hr9dp009.js +0 -4
- package/dist/chunks/filesystem-js7vje5a.js +0 -247
- /package/dist/chunks/{filesystem-0qkdqm5v.js → file-access-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{filesystem-0zkw76rk.js → file-access-0zkw76rk.js} +0 -0
- /package/dist/chunks/{filesystem-17cy0kzp.js → file-access-17cy0kzp.js} +0 -0
- /package/dist/chunks/{filesystem-1cnp2v09.js → file-access-1cnp2v09.js} +0 -0
- /package/dist/chunks/{filesystem-1kg9ymc8.js → file-access-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{filesystem-24dcb14g.js → file-access-24dcb14g.js} +0 -0
- /package/dist/chunks/{filesystem-2710q6r3.js → file-access-2710q6r3.js} +0 -0
- /package/dist/chunks/{filesystem-2axfhc9x.js → file-access-2axfhc9x.js} +0 -0
- /package/dist/chunks/{filesystem-2c3vjs8z.js → file-access-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{filesystem-359p4xyc.js → file-access-359p4xyc.js} +0 -0
- /package/dist/chunks/{filesystem-3asan66x.js → file-access-3asan66x.js} +0 -0
- /package/dist/chunks/{filesystem-3v8g72cx.js → file-access-3v8g72cx.js} +0 -0
- /package/dist/chunks/{filesystem-3w5fmr99.js → file-access-3w5fmr99.js} +0 -0
- /package/dist/chunks/{filesystem-3wcehsnq.js → file-access-3wcehsnq.js} +0 -0
- /package/dist/chunks/{filesystem-43n2bw4t.js → file-access-43n2bw4t.js} +0 -0
- /package/dist/chunks/{filesystem-4knz6hnm.js → file-access-4knz6hnm.js} +0 -0
- /package/dist/chunks/{filesystem-4vcrnpx2.js → file-access-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{filesystem-4y7fprxs.js → file-access-4y7fprxs.js} +0 -0
- /package/dist/chunks/{filesystem-53557ph1.js → file-access-53557ph1.js} +0 -0
- /package/dist/chunks/{filesystem-550bvhaj.js → file-access-550bvhaj.js} +0 -0
- /package/dist/chunks/{filesystem-5qd3pb7m.js → file-access-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{filesystem-6prwharc.js → file-access-6prwharc.js} +0 -0
- /package/dist/chunks/{filesystem-7akdwqpd.js → file-access-7akdwqpd.js} +0 -0
- /package/dist/chunks/{filesystem-7m9af43g.js → file-access-7m9af43g.js} +0 -0
- /package/dist/chunks/{filesystem-822emrt2.js → file-access-822emrt2.js} +0 -0
- /package/dist/chunks/{filesystem-88xbtdfr.js → file-access-88xbtdfr.js} +0 -0
- /package/dist/chunks/{filesystem-8n3pysct.js → file-access-8n3pysct.js} +0 -0
- /package/dist/chunks/{filesystem-922hggd3.js → file-access-922hggd3.js} +0 -0
- /package/dist/chunks/{filesystem-9a4afbnw.js → file-access-9a4afbnw.js} +0 -0
- /package/dist/chunks/{filesystem-9rqn6x4v.js → file-access-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{filesystem-a6k6eb26.js → file-access-a6k6eb26.js} +0 -0
- /package/dist/chunks/{filesystem-af5trqkr.js → file-access-af5trqkr.js} +0 -0
- /package/dist/chunks/{filesystem-afrmfg78.js → file-access-afrmfg78.js} +0 -0
- /package/dist/chunks/{filesystem-aqzs7mqg.js → file-access-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{filesystem-atq7p7m5.js → file-access-atq7p7m5.js} +0 -0
- /package/dist/chunks/{filesystem-bkyjaxrp.js → file-access-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{filesystem-bmr6ed5q.js → file-access-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{filesystem-cf4snx6d.js → file-access-cf4snx6d.js} +0 -0
- /package/dist/chunks/{filesystem-cvy3z8tj.js → file-access-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{filesystem-d9fn303g.js → file-access-d9fn303g.js} +0 -0
- /package/dist/chunks/{filesystem-d9jj8t3e.js → file-access-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{filesystem-dajrwvna.js → file-access-dajrwvna.js} +0 -0
- /package/dist/chunks/{filesystem-dap0rakb.js → file-access-dap0rakb.js} +0 -0
- /package/dist/chunks/{filesystem-df08tz66.js → file-access-df08tz66.js} +0 -0
- /package/dist/chunks/{filesystem-dy18nga0.js → file-access-dy18nga0.js} +0 -0
- /package/dist/chunks/{filesystem-e5kj55wp.js → file-access-e5kj55wp.js} +0 -0
- /package/dist/chunks/{filesystem-e73j6tqm.js → file-access-e73j6tqm.js} +0 -0
- /package/dist/chunks/{filesystem-ec1grn59.js → file-access-ec1grn59.js} +0 -0
- /package/dist/chunks/{filesystem-eh3zwz77.js → file-access-eh3zwz77.js} +0 -0
- /package/dist/chunks/{filesystem-emrn6kk6.js → file-access-emrn6kk6.js} +0 -0
- /package/dist/chunks/{filesystem-f0mxakyp.js → file-access-f0mxakyp.js} +0 -0
- /package/dist/chunks/{filesystem-f6n9ztr4.js → file-access-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{filesystem-faypxj3z.js → file-access-faypxj3z.js} +0 -0
- /package/dist/chunks/{filesystem-fd410y7t.js → file-access-fd410y7t.js} +0 -0
- /package/dist/chunks/{filesystem-fxgpk5d8.js → file-access-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{filesystem-g4wezp1m.js → file-access-g4wezp1m.js} +0 -0
- /package/dist/chunks/{filesystem-g86h250q.js → file-access-g86h250q.js} +0 -0
- /package/dist/chunks/{filesystem-gebd4c9n.js → file-access-gebd4c9n.js} +0 -0
- /package/dist/chunks/{filesystem-gftt206x.js → file-access-gftt206x.js} +0 -0
- /package/dist/chunks/{filesystem-hjbc5kem.js → file-access-hjbc5kem.js} +0 -0
- /package/dist/chunks/{filesystem-hk9envan.js → file-access-hk9envan.js} +0 -0
- /package/dist/chunks/{filesystem-j2ntwpah.js → file-access-j2ntwpah.js} +0 -0
- /package/dist/chunks/{filesystem-j5zkgpj8.js → file-access-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{filesystem-jjkms2e6.js → file-access-jjkms2e6.js} +0 -0
- /package/dist/chunks/{filesystem-jr7sbwjy.js → file-access-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{filesystem-jwfs4k6c.js → file-access-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{filesystem-jzg6c2d5.js → file-access-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{filesystem-mp448xyj.js → file-access-mp448xyj.js} +0 -0
- /package/dist/chunks/{filesystem-msx8hqn2.js → file-access-msx8hqn2.js} +0 -0
- /package/dist/chunks/{filesystem-n05xt0ee.js → file-access-n05xt0ee.js} +0 -0
- /package/dist/chunks/{filesystem-n3j8tn72.js → file-access-n3j8tn72.js} +0 -0
- /package/dist/chunks/{filesystem-njntx4h6.js → file-access-njntx4h6.js} +0 -0
- /package/dist/chunks/{filesystem-q3sfg36h.js → file-access-q3sfg36h.js} +0 -0
- /package/dist/chunks/{filesystem-q3t37ft6.js → file-access-q3t37ft6.js} +0 -0
- /package/dist/chunks/{filesystem-q74kybfr.js → file-access-q74kybfr.js} +0 -0
- /package/dist/chunks/{filesystem-qaymkmh1.js → file-access-qaymkmh1.js} +0 -0
- /package/dist/chunks/{filesystem-qb87gjwd.js → file-access-qb87gjwd.js} +0 -0
- /package/dist/chunks/{filesystem-qfa1cgps.js → file-access-qfa1cgps.js} +0 -0
- /package/dist/chunks/{filesystem-qg3g05ea.js → file-access-qg3g05ea.js} +0 -0
- /package/dist/chunks/{filesystem-qrg20bc0.js → file-access-qrg20bc0.js} +0 -0
- /package/dist/chunks/{filesystem-rcb2kzg1.js → file-access-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{filesystem-sdp7kfr6.js → file-access-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{filesystem-sk3qaz4a.js → file-access-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{filesystem-ssg3fenm.js → file-access-ssg3fenm.js} +0 -0
- /package/dist/chunks/{filesystem-twg0f83k.js → file-access-twg0f83k.js} +0 -0
- /package/dist/chunks/{filesystem-w803qqfp.js → file-access-w803qqfp.js} +0 -0
- /package/dist/chunks/{filesystem-wc3fc9cn.js → file-access-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{filesystem-wer8tq1h.js → file-access-wer8tq1h.js} +0 -0
- /package/dist/chunks/{filesystem-wtztk69x.js → file-access-wtztk69x.js} +0 -0
- /package/dist/chunks/{filesystem-x0ckcb58.js → file-access-x0ckcb58.js} +0 -0
- /package/dist/chunks/{filesystem-x61499pn.js → file-access-x61499pn.js} +0 -0
- /package/dist/chunks/{filesystem-y44na4kk.js → file-access-y44na4kk.js} +0 -0
- /package/dist/chunks/{filesystem-y8cydn3q.js → file-access-y8cydn3q.js} +0 -0
- /package/dist/chunks/{filesystem-y8f7s663.js → file-access-y8f7s663.js} +0 -0
- /package/dist/chunks/{filesystem-ygaqb7jw.js → file-access-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{filesystem-ym463w8f.js → file-access-ym463w8f.js} +0 -0
- /package/dist/chunks/{filesystem-z9919s4g.js → file-access-z9919s4g.js} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-access-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81,
|
|
6
6
|
node85
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-access-zw6dtez5.js";
|
|
8
8
|
import {
|
|
9
9
|
Event15,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service62,
|
|
11
|
+
node65
|
|
12
|
+
} from "./file-access-fak7xqqt.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service78,
|
|
15
|
+
node82
|
|
16
|
+
} from "./file-access-t9kha2ca.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service76,
|
|
19
|
+
node79
|
|
20
|
+
} from "./file-access-eahf1j6r.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID8,
|
|
23
|
+
Service61,
|
|
24
|
+
node64
|
|
25
|
+
} from "./file-access-hg4hxzv1.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-access-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID7,
|
|
32
32
|
MethodID2,
|
|
33
33
|
Service60,
|
|
34
34
|
node63
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./file-access-mmy2zf88.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./file-access-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError5,
|
|
45
|
+
Options: () => Options5,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service36,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
|
-
configured: () =>
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
56
|
+
configured: () => configured5,
|
|
57
|
+
layer: () => layer16,
|
|
58
|
+
node: () => node39
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -74,7 +74,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
74
74
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
75
75
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
78
78
|
server: ServerName2
|
|
79
79
|
}) {
|
|
80
80
|
get message() {
|
|
@@ -92,21 +92,21 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
92
92
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
93
93
|
var cloneConfig = (config) => structuredClone(config);
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service36 extends Context.Service()("@opencode/MCP") {
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Options5 = Schema.Struct({
|
|
98
98
|
clientInfo: Schema.optional(Schema.Struct({
|
|
99
99
|
name: Schema.String,
|
|
100
100
|
version: Schema.String
|
|
101
101
|
}))
|
|
102
102
|
});
|
|
103
|
-
var
|
|
104
|
-
const location = yield*
|
|
105
|
-
const environment = yield*
|
|
103
|
+
var layer16 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
104
|
+
const location = yield* Service78;
|
|
105
|
+
const environment = yield* Service76;
|
|
106
106
|
const bus = yield* Service81;
|
|
107
|
-
const forms = yield*
|
|
107
|
+
const forms = yield* Service61;
|
|
108
108
|
const integration = yield* Service60;
|
|
109
|
-
const credentials = yield*
|
|
109
|
+
const credentials = yield* Service62;
|
|
110
110
|
const root = yield* Effect.scope;
|
|
111
111
|
const fork = yield* FiberSet.makeRuntime();
|
|
112
112
|
const entries = new Map;
|
|
@@ -118,7 +118,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
118
118
|
return;
|
|
119
119
|
const remote = entry.config;
|
|
120
120
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
121
|
-
const integrationID =
|
|
121
|
+
const integrationID = ID7.make(suffix);
|
|
122
122
|
entry.integrationID = integrationID;
|
|
123
123
|
owned.add(integrationID);
|
|
124
124
|
const methodID = MethodID2.make(suffix);
|
|
@@ -134,7 +134,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
134
134
|
method: { id: methodID, type: "oauth", label: name },
|
|
135
135
|
authorize: () => Effect.gen(function* () {
|
|
136
136
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
137
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
137
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service62, credentials));
|
|
138
138
|
})
|
|
139
139
|
});
|
|
140
140
|
}).pipe(Scope.provide(scope));
|
|
@@ -143,19 +143,19 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
143
143
|
const name = ServerName2.make(server);
|
|
144
144
|
const entry = entries.get(name);
|
|
145
145
|
if (!entry)
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new NotFoundError5({ server: name });
|
|
147
147
|
return { name, entry };
|
|
148
148
|
});
|
|
149
149
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
150
150
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
151
151
|
return;
|
|
152
152
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
153
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
153
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service62, credentials));
|
|
154
154
|
});
|
|
155
155
|
const elicitation = {
|
|
156
156
|
create: (input) => Effect.gen(function* () {
|
|
157
157
|
if (input.params.mode === "url") {
|
|
158
|
-
const formID =
|
|
158
|
+
const formID = ID8.create();
|
|
159
159
|
const elicitationID = input.params.elicitationId;
|
|
160
160
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
161
161
|
if (key)
|
|
@@ -239,7 +239,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
239
239
|
entry.scope = scope;
|
|
240
240
|
const authProvider = yield* connectProvider(entry);
|
|
241
241
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
242
|
-
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
242
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service76, environment), Scope.provide(scope), Effect.exit);
|
|
243
243
|
if (Exit.isSuccess(result)) {
|
|
244
244
|
entry.client = result.value.connection;
|
|
245
245
|
entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
|
|
@@ -389,7 +389,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
389
389
|
}),
|
|
390
390
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
391
391
|
});
|
|
392
|
-
return
|
|
392
|
+
return Service36.of({
|
|
393
393
|
transform: state.transform,
|
|
394
394
|
reload: state.reload,
|
|
395
395
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -508,14 +508,14 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
508
508
|
})
|
|
509
509
|
});
|
|
510
510
|
}));
|
|
511
|
-
function
|
|
511
|
+
function configured5(options) {
|
|
512
512
|
return makeLocationNode({
|
|
513
|
-
service:
|
|
514
|
-
layer:
|
|
515
|
-
deps: [
|
|
513
|
+
service: Service36,
|
|
514
|
+
layer: layer16(options),
|
|
515
|
+
deps: [node82, node79, node85, node64, node63, node65]
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var node39 = configured5();
|
|
519
519
|
function toElicitationField(key, property, required) {
|
|
520
520
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
521
521
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -566,4 +566,4 @@ function toElicitationField(key, property, required) {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
569
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2, Service36, Options5, layer16, configured5, node39, exports_mcp4 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-access-cpj0znwe.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-access-zw6dtez5.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event15
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-access-fak7xqqt.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID7,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-access-mmy2zf88.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID6,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
19
|
Service59
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-access-rds37zvx.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID5
|
|
23
|
+
} from "./file-access-ea3fxjgj.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./file-access-sstmea9h.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-access-7n0p62ew.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/github-copilot.ts
|
|
33
33
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
59
59
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
60
60
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
61
61
|
var oauth = (app) => ({
|
|
62
|
-
integrationID:
|
|
62
|
+
integrationID: ID7.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -173,9 +173,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
176
|
-
const provider = yield* providers.get(
|
|
176
|
+
const provider = yield* providers.get(ID6.githubCopilot);
|
|
177
177
|
const remote = yield* Effect.tryPromise({
|
|
178
|
-
try: () =>
|
|
178
|
+
try: () => load2(url, {
|
|
179
179
|
...provider?.headers,
|
|
180
180
|
Authorization: `Bearer ${credential.refresh}`,
|
|
181
181
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -194,13 +194,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
194
194
|
editor.method.update(oauth(ctx.app));
|
|
195
195
|
});
|
|
196
196
|
yield* ctx.provider.transform((evt) => {
|
|
197
|
-
const item = evt.get(
|
|
197
|
+
const item = evt.get(ID6.githubCopilot);
|
|
198
198
|
if (!item)
|
|
199
199
|
return;
|
|
200
200
|
if (loaded.models) {
|
|
201
201
|
evt.add({
|
|
202
202
|
info: item.provider,
|
|
203
|
-
models: Array.from(
|
|
203
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
204
204
|
sourceConnection: loaded.connection
|
|
205
205
|
});
|
|
206
206
|
return;
|
|
@@ -214,17 +214,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
yield* ctx.model.transform((models) => {
|
|
217
|
-
if (models.get(
|
|
218
|
-
models.update(
|
|
217
|
+
if (models.get(ID6.githubCopilot, ID5.make("gpt-5-chat-latest"))) {
|
|
218
|
+
models.update(ID6.githubCopilot, ID5.make("gpt-5-chat-latest"), (model) => {
|
|
219
219
|
model.enabled = false;
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
224
|
-
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
224
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID7.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
225
225
|
yield* refresh().pipe(Effect.forkScoped);
|
|
226
226
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
227
|
-
if (evt.model.providerID !==
|
|
227
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
228
228
|
return;
|
|
229
229
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
230
230
|
return;
|
|
@@ -233,7 +233,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
233
233
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
234
234
|
}));
|
|
235
235
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
236
|
-
if (evt.model.providerID !==
|
|
236
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
237
237
|
return;
|
|
238
238
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
239
239
|
return;
|
|
@@ -243,9 +243,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
243
243
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
244
244
|
if (interaction !== "conversation-agent")
|
|
245
245
|
evt.headers["x-initiator"] = "agent";
|
|
246
|
-
}), { providerID:
|
|
246
|
+
}), { providerID: ID6.githubCopilot });
|
|
247
247
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
-
if (evt.model.providerID !==
|
|
248
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
249
249
|
return;
|
|
250
250
|
const token = evt.request.headers.get("x-api-key");
|
|
251
251
|
if (!token)
|
|
@@ -253,9 +253,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
253
253
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
254
254
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
255
255
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
256
|
-
}), { providerID:
|
|
256
|
+
}), { providerID: ID6.githubCopilot });
|
|
257
257
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
258
|
-
if (evt.model.providerID !==
|
|
258
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
259
259
|
return;
|
|
260
260
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
261
261
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID6
|
|
3
|
+
} from "./file-access-rds37zvx.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-access-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-access-dbtyj0an.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID6.make("cloudflare-ai-gateway");
|
|
16
16
|
var CloudflareAIGatewayPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.ai.gateway",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID14,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-access-7dcaf0ce.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-access-6snq9ewv.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-access-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
|
-
var
|
|
15
|
-
__export(
|
|
16
|
-
AgentPlugin: () =>
|
|
17
|
-
Plugin: () =>
|
|
14
|
+
var exports_agent2 = {};
|
|
15
|
+
__export(exports_agent2, {
|
|
16
|
+
AgentPlugin: () => exports_agent2,
|
|
17
|
+
Plugin: () => Plugin30
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin30 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin20 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID14.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID14.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin20 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID14.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID14.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID14.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin20 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin30, exports_agent2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-access-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/command.ts
|
|
6
6
|
var exports_command5 = {};
|
|
7
7
|
__export(exports_command5, {
|
|
8
8
|
ConfigCommandV1: () => exports_command5,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info16
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info16 = Schema.Struct({
|
|
13
13
|
template: Schema.String,
|
|
14
14
|
description: Schema.optional(Schema.String),
|
|
15
15
|
agent: Schema.optional(Schema.String),
|
|
@@ -18,4 +18,4 @@ var Info13 = Schema.Struct({
|
|
|
18
18
|
subtask: Schema.optional(Schema.Boolean)
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info16, exports_command5 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service52,
|
|
3
|
+
node55
|
|
4
|
+
} from "./file-access-3stbjpb0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service78,
|
|
7
|
+
node82
|
|
8
|
+
} from "./file-access-t9kha2ca.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service51,
|
|
11
|
+
node54
|
|
12
|
+
} from "./file-access-vpgyrhve.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-access-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-access-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service4,
|
|
26
26
|
empty: () => empty2,
|
|
27
27
|
layer: () => layer5,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node6
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service4 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var layer5 = Layer.effect(
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service51;
|
|
40
|
+
const watcher = yield* Service52;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service78;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer5 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service4.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer5 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
73
|
+
var node6 = makeLocationNode({
|
|
74
|
+
service: Service4,
|
|
75
75
|
layer: layer5,
|
|
76
|
-
deps: [
|
|
76
|
+
deps: [node54, FSUtil.node, node55, node82]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service4,
|
|
80
|
+
layer: Layer.succeed(Service4, Service4.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service4, layer5, node6, empty2, exports_source };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-access-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-access-qv9gx9bg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service78,
|
|
9
|
+
node82
|
|
10
|
+
} from "./file-access-t9kha2ca.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service70,
|
|
13
|
+
node73
|
|
14
|
+
} from "./file-access-6snq9ewv.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-access-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/file-access.ts
|
|
20
20
|
var exports_file_access = {};
|
|
@@ -22,9 +22,9 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service65,
|
|
26
26
|
externalDirectoryPermission: () => externalDirectoryPermission2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node68,
|
|
28
28
|
resolvePath: () => resolvePath2
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
|
|
|
43
43
|
save: [input.save]
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service65 extends Context.Service()("@opencode/FileAccess") {
|
|
47
47
|
}
|
|
48
48
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
49
49
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -55,10 +55,10 @@ var invocation = (context) => ({
|
|
|
55
55
|
agent: context.agent,
|
|
56
56
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
57
57
|
});
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
59
59
|
const fs = yield* FSUtil.Service;
|
|
60
|
-
const location = yield*
|
|
61
|
-
const permission = yield*
|
|
60
|
+
const location = yield* Service78;
|
|
61
|
+
const permission = yield* Service70;
|
|
62
62
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
63
63
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
64
64
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
107
107
|
});
|
|
108
108
|
return target;
|
|
109
109
|
});
|
|
110
|
-
return
|
|
110
|
+
return Service65.of({ resolve, authorizeExternal, authorizeRead });
|
|
111
111
|
}));
|
|
112
|
-
var
|
|
112
|
+
var node68 = makeLocationNode({ service: Service65, layer, deps: [FSUtil.node, node82, node73] });
|
|
113
113
|
|
|
114
|
-
export { Kind2, ResolveInput2, externalDirectoryPermission2,
|
|
114
|
+
export { Kind2, ResolveInput2, externalDirectoryPermission2, Service65, resolvePath2, node68, exports_file_access };
|