@opencode/core 0.0.0-dev-20448 → 0.0.0-dev-20450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{event-logger-4qwh2j69.js → location-services-04zc97jq.js} +11 -11
- package/dist/chunks/{event-logger-yyq5wwvp.js → location-services-07nzww9r.js} +37 -37
- package/dist/chunks/{event-logger-jk1cfv3m.js → location-services-0ajh95vz.js} +6 -6
- package/dist/chunks/location-services-0df77v9g.js +507 -0
- package/dist/chunks/{event-logger-h9phamz0.js → location-services-0h4fw62m.js} +2 -2
- package/dist/chunks/{event-logger-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
- package/dist/chunks/{event-logger-y1qqcj8h.js → location-services-0t9wd588.js} +8 -8
- package/dist/chunks/{event-logger-0vbcp93d.js → location-services-0vbcp93d.js} +2 -2
- package/dist/chunks/{event-logger-fngg5dts.js → location-services-0x4gzyfe.js} +32 -32
- package/dist/chunks/{event-logger-spw1z2q7.js → location-services-0y8qv4v3.js} +29 -29
- package/dist/chunks/{event-logger-hamg8kx8.js → location-services-137fq5y8.js} +27 -27
- package/dist/chunks/{event-logger-5znq9j58.js → location-services-14363efp.js} +11 -11
- package/dist/chunks/{event-logger-xa4xh9eb.js → location-services-159dq0vr.js} +11 -11
- package/dist/chunks/{event-logger-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
- package/dist/chunks/{event-logger-h0y6gyg6.js → location-services-1ftb5ecd.js} +5 -5
- package/dist/chunks/{event-logger-9we07c3h.js → location-services-1k85hbs2.js} +30 -30
- package/dist/chunks/{event-logger-904bg09a.js → location-services-1qwgzmm5.js} +11 -11
- package/dist/chunks/{event-logger-21r38tys.js → location-services-21r38tys.js} +1 -1
- package/dist/chunks/{event-logger-k8gwj0p0.js → location-services-23hntbrw.js} +13 -13
- package/dist/chunks/{event-logger-7yqjxrmz.js → location-services-23pqda6t.js} +6 -6
- package/dist/chunks/{event-logger-q9p7zpd5.js → location-services-29zgt1j1.js} +33 -33
- package/dist/chunks/{event-logger-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
- package/dist/chunks/{event-logger-qrn3harz.js → location-services-2nqey637.js} +10 -10
- package/dist/chunks/{event-logger-zcayt5jj.js → location-services-2xmq3vpz.js} +33 -33
- package/dist/chunks/{event-logger-anwj03q3.js → location-services-32ht5shb.js} +15 -15
- package/dist/chunks/{event-logger-bxcmn2wa.js → location-services-32p4hgsf.js} +47 -47
- package/dist/chunks/{event-logger-mfqp6xfm.js → location-services-33w4ejhs.js} +9 -9
- package/dist/chunks/{event-logger-tv2mrqm9.js → location-services-36mwe6xe.js} +16 -16
- package/dist/chunks/{event-logger-7v7knrkr.js → location-services-390gkeb4.js} +13 -13
- package/dist/chunks/{event-logger-h2b79v29.js → location-services-3cegwx68.js} +2 -2
- package/dist/chunks/{event-logger-84p84h2c.js → location-services-3fb919v3.js} +3 -3
- package/dist/chunks/{event-logger-3fc6dm20.js → location-services-3fc6dm20.js} +1 -1
- package/dist/chunks/{event-logger-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{event-logger-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
- package/dist/chunks/{event-logger-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
- package/dist/chunks/{event-logger-tzehptey.js → location-services-3v5tjer0.js} +9 -9
- package/dist/chunks/{event-logger-3zsf4n22.js → location-services-3zsf4n22.js} +1 -1
- package/dist/chunks/{event-logger-kk2qnnr0.js → location-services-3zt9s3jj.js} +18 -18
- package/dist/chunks/{event-logger-ps97516x.js → location-services-41rzyp0m.js} +19 -19
- package/dist/chunks/{event-logger-pchm5dd6.js → location-services-41sxqzm2.js} +22 -22
- package/dist/chunks/{event-logger-bx4acmk7.js → location-services-46jba6n7.js} +17 -17
- package/dist/chunks/{event-logger-rd108yne.js → location-services-47ttr96j.js} +18 -18
- package/dist/chunks/{event-logger-rtx9gtyv.js → location-services-4cgedjbr.js} +3 -3
- package/dist/chunks/{event-logger-pnaxc6j9.js → location-services-4e8vs6eh.js} +8 -8
- package/dist/chunks/{event-logger-4mwpykj0.js → location-services-4mwpykj0.js} +1 -1
- package/dist/chunks/{event-logger-kp8q1t60.js → location-services-4nj4bn9q.js} +9 -9
- package/dist/chunks/{event-logger-gepsrshe.js → location-services-4t9dhaga.js} +15 -15
- package/dist/chunks/{event-logger-2ccvkpx1.js → location-services-4ts7tf6z.js} +2 -2
- package/dist/chunks/{event-logger-4qrezbc4.js → location-services-51hvf86a.js} +33 -33
- package/dist/chunks/{event-logger-rpchwtds.js → location-services-52ewndf0.js} +25 -25
- package/dist/chunks/{event-logger-g14hjekp.js → location-services-52n7b4yz.js} +182 -182
- package/dist/chunks/{event-logger-54ma36ye.js → location-services-54ma36ye.js} +1 -1
- package/dist/chunks/{event-logger-025r9p6c.js → location-services-573974vw.js} +24 -24
- package/dist/chunks/{event-logger-432svpan.js → location-services-57wdwfaz.js} +43 -43
- package/dist/chunks/{event-logger-5daktx2q.js → location-services-5daktx2q.js} +1 -1
- package/dist/chunks/{event-logger-9vqrjshk.js → location-services-5dwaewr7.js} +25 -25
- package/dist/chunks/{event-logger-29eg91y8.js → location-services-5k3kwaah.js} +18 -18
- package/dist/chunks/{event-logger-2wts5qzq.js → location-services-5kw0n2ma.js} +8 -8
- package/dist/chunks/{event-logger-e3qxr5gk.js → location-services-5qd3pb7m.js} +2 -2
- package/dist/chunks/{event-logger-27a4zz2s.js → location-services-5sp908nt.js} +17 -17
- package/dist/chunks/{event-logger-mg9eprjx.js → location-services-5t1kfqwj.js} +11 -11
- package/dist/chunks/{event-logger-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
- package/dist/chunks/{event-logger-k70p9jzb.js → location-services-5tcm9639.js} +9 -9
- package/dist/chunks/{event-logger-3h8j5ahx.js → location-services-5ypfgryp.js} +13 -13
- package/dist/chunks/{event-logger-2k8khapm.js → location-services-607tc6va.js} +5 -5
- package/dist/chunks/{event-logger-669tq793.js → location-services-669tq793.js} +1 -1
- package/dist/chunks/{event-logger-fcc8k9h4.js → location-services-67jv4443.js} +21 -21
- package/dist/chunks/{event-logger-283mwr8r.js → location-services-6dr0wsep.js} +18 -18
- package/dist/chunks/{event-logger-zfv7fwfa.js → location-services-6k1exbnf.js} +32 -32
- package/dist/chunks/{event-logger-712676yn.js → location-services-6t5a38x7.js} +23 -23
- package/dist/chunks/{event-logger-xfwsg613.js → location-services-6wc3ddhe.js} +20 -20
- package/dist/chunks/{event-logger-594gxkg3.js → location-services-6xg7r5mv.js} +1 -1
- package/dist/chunks/{event-logger-gg6v90bt.js → location-services-70h9fc4n.js} +3 -3
- package/dist/chunks/{event-logger-h0nrh5g5.js → location-services-72yd8x0q.js} +16 -16
- package/dist/chunks/{event-logger-wwfsgjp3.js → location-services-73esx66y.js} +9 -9
- package/dist/chunks/{event-logger-pdzqywty.js → location-services-73qcdwhn.js} +49 -49
- package/dist/chunks/{event-logger-s3atc1v9.js → location-services-7446rjjn.js} +1 -1
- package/dist/chunks/{event-logger-kbf65jmx.js → location-services-74zfjb84.js} +28 -28
- package/dist/chunks/{event-logger-bt8wzsf1.js → location-services-775wrvb1.js} +25 -25
- package/dist/chunks/{event-logger-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{event-logger-5fe36zdw.js → location-services-7bn9z2m5.js} +3 -3
- package/dist/chunks/{event-logger-xr2kbdek.js → location-services-7cgmbdtc.js} +7 -7
- package/dist/chunks/{event-logger-4608f3zx.js → location-services-7fnnxkfn.js} +37 -37
- package/dist/chunks/{event-logger-2zfnf44s.js → location-services-7wsn8jkm.js} +4 -4
- package/dist/chunks/{event-logger-1dvck2a7.js → location-services-84h8c373.js} +2 -2
- package/dist/chunks/{event-logger-84txncab.js → location-services-84txncab.js} +1 -1
- package/dist/chunks/{event-logger-tcezcvh9.js → location-services-89znhe33.js} +4 -4
- package/dist/chunks/{event-logger-9bxjh02c.js → location-services-8bh61ygk.js} +51 -51
- package/dist/chunks/{event-logger-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
- package/dist/chunks/{event-logger-1jt7ykkj.js → location-services-8q3z2749.js} +25 -25
- package/dist/chunks/{event-logger-r01t9b5y.js → location-services-8q61w4ba.js} +8 -8
- package/dist/chunks/{event-logger-gm0fw0ea.js → location-services-8r8xekqf.js} +20 -20
- package/dist/chunks/{event-logger-g54wh2k8.js → location-services-8ssz5kmw.js} +67 -67
- package/dist/chunks/{event-logger-b4twkq7r.js → location-services-8sze2n9a.js} +2 -2
- package/dist/chunks/{event-logger-e8cja42p.js → location-services-954vm9zf.js} +6 -6
- package/dist/chunks/{event-logger-3xbeb0ys.js → location-services-98wga3pz.js} +5 -5
- package/dist/chunks/{event-logger-e6cfs5fy.js → location-services-9a1bht1a.js} +4 -4
- package/dist/chunks/{event-logger-10ke8wy4.js → location-services-9jgm88yh.js} +4 -4
- package/dist/chunks/{event-logger-tng282jn.js → location-services-9rbsrj1n.js} +6 -6
- package/dist/chunks/{event-logger-ax23vn7r.js → location-services-9rzpcnh1.js} +11 -11
- package/dist/chunks/{event-logger-t550f9t1.js → location-services-9t7a50xb.js} +4 -4
- package/dist/chunks/{event-logger-dyhejfhh.js → location-services-a0805j8t.js} +3 -3
- package/dist/chunks/{event-logger-kbkddehn.js → location-services-a0mgmfsd.js} +32 -32
- package/dist/chunks/{event-logger-k9jsxftv.js → location-services-a4fdsy1e.js} +32 -32
- package/dist/chunks/{event-logger-4pwd558p.js → location-services-aa0cewsz.js} +10 -10
- package/dist/chunks/{event-logger-aaet6srn.js → location-services-aaet6srn.js} +2 -2
- package/dist/chunks/{event-logger-by5tvt2z.js → location-services-amfvtdma.js} +10 -10
- package/dist/chunks/{event-logger-5dkh983c.js → location-services-anjjwhm7.js} +17 -17
- package/dist/chunks/{event-logger-y40kyw7n.js → location-services-az6fhp2f.js} +36 -36
- package/dist/chunks/{event-logger-b3f8fkhc.js → location-services-b3f8fkhc.js} +2 -2
- package/dist/chunks/{event-logger-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
- package/dist/chunks/{event-logger-55xfy5s4.js → location-services-bepr5r9g.js} +15 -15
- package/dist/chunks/{event-logger-hk5c0ytp.js → location-services-bg7m88fe.js} +22 -22
- package/dist/chunks/{event-logger-xtqeprzx.js → location-services-bmztvrbp.js} +14 -14
- package/dist/chunks/{event-logger-wa9g86nq.js → location-services-btbmdjwj.js} +4 -4
- package/dist/chunks/{event-logger-1fqq8vqc.js → location-services-bvrvs8m0.js} +26 -26
- package/dist/chunks/{event-logger-pm4gwtf6.js → location-services-c7nc5arv.js} +12 -12
- package/dist/chunks/location-services-c9d4en3z.js +252 -0
- package/dist/chunks/{event-logger-9x3j7hff.js → location-services-cf9x4s5a.js} +82 -82
- package/dist/chunks/{event-logger-pd72zq69.js → location-services-cjwpz2jw.js} +48 -48
- package/dist/chunks/{event-logger-8s6x3d41.js → location-services-czsbxpcf.js} +36 -36
- package/dist/chunks/{event-logger-hd0dv02w.js → location-services-d3cqp89z.js} +21 -21
- package/dist/chunks/{event-logger-4wskyzd5.js → location-services-dahv1f9d.js} +5 -5
- package/dist/chunks/{event-logger-qh22g8nh.js → location-services-dcr84v06.js} +13 -13
- package/dist/chunks/{event-logger-dr12q9z6.js → location-services-dm1xdvy1.js} +22 -22
- package/dist/chunks/{event-logger-mpk0rfs5.js → location-services-dnxkq42g.js} +4 -4
- package/dist/chunks/{event-logger-vp0z89e3.js → location-services-dp2bb01k.js} +20 -20
- package/dist/chunks/{event-logger-y71avatq.js → location-services-dpkg50ah.js} +4 -4
- package/dist/chunks/{event-logger-rtkh151k.js → location-services-dppkjzwm.js} +3 -3
- package/dist/chunks/{event-logger-bkxyw0dr.js → location-services-dzw83ac5.js} +9 -9
- package/dist/chunks/{event-logger-7x3ym2x5.js → location-services-e9fq58ym.js} +5 -5
- package/dist/chunks/{event-logger-ef5x83kb.js → location-services-ef5x83kb.js} +1 -1
- package/dist/chunks/{event-logger-z82rkb9m.js → location-services-egwe353v.js} +3 -3
- package/dist/chunks/{event-logger-cv3we14p.js → location-services-ejctqn46.js} +7 -7
- package/dist/chunks/{event-logger-sdx9bhzb.js → location-services-ejfvs62f.js} +20 -20
- package/dist/chunks/{event-logger-wpwd7k51.js → location-services-epx8jvpp.js} +9 -9
- package/dist/chunks/{event-logger-mvfsc1pv.js → location-services-eq1pz5kg.js} +3 -3
- package/dist/chunks/{event-logger-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
- package/dist/chunks/{event-logger-dvdrsg1q.js → location-services-expg6636.js} +83 -83
- package/dist/chunks/{event-logger-h9wp8z5w.js → location-services-f29mbr7f.js} +4 -4
- package/dist/chunks/{event-logger-71az546q.js → location-services-f75zav2x.js} +2 -2
- package/dist/chunks/{event-logger-ebsr21av.js → location-services-f79znmm7.js} +22 -22
- package/dist/chunks/{event-logger-qsjw007r.js → location-services-f7mex5kc.js} +10 -10
- package/dist/chunks/{event-logger-m6fea7hh.js → location-services-fer3tpfm.js} +11 -11
- package/dist/chunks/{event-logger-ex7a17jg.js → location-services-ffxkc1dx.js} +6 -6
- package/dist/chunks/{event-logger-0pa8htj5.js → location-services-fkj2796b.js} +18 -18
- package/dist/chunks/{event-logger-rs3qhzzg.js → location-services-fy1jztjm.js} +37 -37
- package/dist/chunks/{event-logger-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
- package/dist/chunks/{event-logger-17zj526k.js → location-services-geb4a7yy.js} +8 -8
- package/dist/chunks/{event-logger-5d607bsg.js → location-services-gjwgx2c5.js} +9 -9
- package/dist/chunks/{event-logger-c89vh89k.js → location-services-gy63srrv.js} +30 -30
- package/dist/chunks/{event-logger-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
- package/dist/chunks/{event-logger-tw51v10a.js → location-services-h6xkfdk1.js} +16 -16
- package/dist/chunks/{event-logger-vzmgbyx1.js → location-services-hae1aec3.js} +11 -11
- package/dist/chunks/{event-logger-30krspkn.js → location-services-hnr8f6ws.js} +4 -4
- package/dist/chunks/{event-logger-zypmz1pm.js → location-services-hqj0fwng.js} +8 -8
- package/dist/chunks/{event-logger-4f7vnw9z.js → location-services-hrkp49d3.js} +15 -15
- package/dist/chunks/{event-logger-qv6rw298.js → location-services-hybaecqw.js} +29 -29
- package/dist/chunks/{event-logger-e0rzh98p.js → location-services-j34cs6sj.js} +24 -24
- package/dist/chunks/{event-logger-bcz24cr5.js → location-services-j46s9538.js} +23 -23
- package/dist/chunks/{event-logger-j56e64zr.js → location-services-j56e64zr.js} +1 -1
- package/dist/chunks/{event-logger-256nx13v.js → location-services-jexxy024.js} +3 -3
- package/dist/chunks/{event-logger-agkzm0be.js → location-services-jey8fzdt.js} +9 -9
- package/dist/chunks/{event-logger-hpxe7m2y.js → location-services-jr693m90.js} +6 -6
- package/dist/chunks/{event-logger-wm2754ph.js → location-services-jv2zxr46.js} +24 -24
- package/dist/chunks/{event-logger-3ny7sck4.js → location-services-jv56kan4.js} +11 -11
- package/dist/chunks/{event-logger-2vs2nh1n.js → location-services-jvf3yq6v.js} +4 -4
- package/dist/chunks/{event-logger-xdk9p2qn.js → location-services-jw80jp6b.js} +21 -21
- package/dist/chunks/{event-logger-4veqx6w1.js → location-services-jxzvcdat.js} +10 -10
- package/dist/chunks/{event-logger-xyw3p85n.js → location-services-jybhndc8.js} +26 -26
- package/dist/chunks/{event-logger-zwq83wym.js → location-services-k2wwdrk0.js} +19 -19
- package/dist/chunks/{event-logger-k3c624dm.js → location-services-k3c624dm.js} +3 -3
- package/dist/chunks/{event-logger-fzaeg2ds.js → location-services-k5qgma61.js} +12 -12
- package/dist/chunks/{event-logger-yb0nnf5a.js → location-services-k69ha7yf.js} +3 -3
- package/dist/chunks/{event-logger-bfnsmjbw.js → location-services-k8f3jam7.js} +5 -5
- package/dist/chunks/{event-logger-9e5bzkjp.js → location-services-kb9j3d72.js} +3 -3
- package/dist/chunks/{event-logger-d2c9eem0.js → location-services-kbntd7j9.js} +8 -8
- package/dist/chunks/{event-logger-xh9ky465.js → location-services-kc54qyfz.js} +13 -13
- package/dist/chunks/{event-logger-sy89kq56.js → location-services-kkehhrdv.js} +8 -8
- package/dist/chunks/{event-logger-xe40c49s.js → location-services-kn4gmbet.js} +41 -41
- package/dist/chunks/{event-logger-fepsx33q.js → location-services-kq8f09n9.js} +24 -24
- package/dist/chunks/{event-logger-m1q4m0kb.js → location-services-ks2k44qg.js} +12 -12
- package/dist/chunks/{event-logger-h90v2x9d.js → location-services-kzc3h1h3.js} +4 -4
- package/dist/chunks/{event-logger-m3fdjcah.js → location-services-m3fdjcah.js} +1 -1
- package/dist/chunks/{event-logger-68419g8m.js → location-services-m5wbs23r.js} +33 -33
- package/dist/chunks/{event-logger-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{event-logger-mazbtkaa.js → location-services-mazbtkaa.js} +2 -2
- package/dist/chunks/{event-logger-k2vtjz35.js → location-services-mcsbd5qr.js} +34 -34
- package/dist/chunks/{event-logger-2jm1kbky.js → location-services-me3s3vv4.js} +14 -14
- package/dist/chunks/{event-logger-sz0w735c.js → location-services-me9c30nh.js} +4 -4
- package/dist/chunks/{event-logger-b29htdbz.js → location-services-mevczv93.js} +23 -23
- package/dist/chunks/{event-logger-hh2y2jgt.js → location-services-mjqndqed.js} +12 -12
- package/dist/chunks/{event-logger-7cjh5p1y.js → location-services-mkmsq5z4.js} +8 -8
- package/dist/chunks/{event-logger-gwkgtfjp.js → location-services-mmfgc0ta.js} +9 -9
- package/dist/chunks/{event-logger-yt79nyat.js → location-services-n2hn6ctt.js} +9 -9
- package/dist/chunks/{event-logger-3ma5fxv3.js → location-services-n2y4thpt.js} +11 -11
- package/dist/chunks/{event-logger-p1ykeed4.js → location-services-n674yaej.js} +11 -11
- package/dist/chunks/{event-logger-n8vdnqrc.js → location-services-n8vdnqrc.js} +2 -2
- package/dist/chunks/{event-logger-376x46en.js → location-services-nvpwytbf.js} +32 -32
- package/dist/chunks/{event-logger-prdz64n1.js → location-services-p08aktn5.js} +2 -2
- package/dist/chunks/{event-logger-p37cw4rj.js → location-services-p37cw4rj.js} +1 -1
- package/dist/chunks/{event-logger-ezjrjzyq.js → location-services-p4n2n4ge.js} +10 -10
- package/dist/chunks/{event-logger-w8srcnpp.js → location-services-p6e7n9ts.js} +11 -11
- package/dist/chunks/{event-logger-w7xxgrkj.js → location-services-p8f82s16.js} +20 -20
- package/dist/chunks/{event-logger-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
- package/dist/chunks/{event-logger-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{event-logger-1pek3jt7.js → location-services-pmqjbaym.js} +5 -5
- package/dist/chunks/{event-logger-887y1z54.js → location-services-ppkrdbkc.js} +5 -5
- package/dist/chunks/{event-logger-3ma1skk1.js → location-services-pvvy0xx7.js} +11 -11
- package/dist/chunks/{event-logger-13fywz9t.js → location-services-px41mg2v.js} +26 -26
- package/dist/chunks/{event-logger-0j77ygfz.js → location-services-q0xm7vwc.js} +6 -6
- package/dist/chunks/{event-logger-fepbnb8j.js → location-services-qa7075pb.js} +5 -5
- package/dist/chunks/location-services-qdyb70sk.js +18 -0
- package/dist/chunks/{event-logger-ht5v7459.js → location-services-qh51x0bq.js} +24 -24
- package/dist/chunks/{event-logger-cbf5jjb3.js → location-services-qjb5tr49.js} +12 -12
- package/dist/chunks/{event-logger-qnc92qwc.js → location-services-qnc92qwc.js} +1 -1
- package/dist/chunks/{event-logger-qsdy395h.js → location-services-qsdy395h.js} +1 -1
- package/dist/chunks/{event-logger-gzbkpp9m.js → location-services-qsxf26yz.js} +6 -6
- package/dist/chunks/{event-logger-m2n93apa.js → location-services-qv34apq4.js} +7 -7
- package/dist/chunks/{event-logger-sqxnm49h.js → location-services-qv6w546m.js} +11 -11
- package/dist/chunks/{event-logger-3qaj82j9.js → location-services-qvreyy9g.js} +5 -5
- package/dist/chunks/{event-logger-b77ncnqv.js → location-services-qvzqmbkj.js} +17 -17
- package/dist/chunks/{event-logger-2m8jawch.js → location-services-r2dnqh6n.js} +4 -4
- package/dist/chunks/{event-logger-rdw6cm16.js → location-services-rdw6cm16.js} +1 -1
- package/dist/chunks/{event-logger-cfdmmks0.js → location-services-rj7xh4qx.js} +33 -33
- package/dist/chunks/{event-logger-znsx74x0.js → location-services-rk1r2hx8.js} +1 -1
- package/dist/chunks/{event-logger-d9vtgrjt.js → location-services-rr0pykap.js} +7 -7
- package/dist/chunks/{event-logger-xbxcg6gj.js → location-services-rtdzv965.js} +22 -22
- package/dist/chunks/{event-logger-rjdsec5h.js → location-services-rtg35nam.js} +5 -5
- package/dist/chunks/{event-logger-6q0c4mka.js → location-services-rv7smp43.js} +36 -36
- package/dist/chunks/{event-logger-340fk759.js → location-services-rwb9syv2.js} +11 -11
- package/dist/chunks/{event-logger-xb02k0wq.js → location-services-ryr25ayn.js} +4 -4
- package/dist/chunks/{event-logger-49vre7sk.js → location-services-sf9kj30k.js} +42 -42
- package/dist/chunks/{event-logger-6wc4pc56.js → location-services-sh8k95kz.js} +19 -19
- package/dist/chunks/{event-logger-s4mtyj9y.js → location-services-sj40p6t1.js} +15 -15
- package/dist/chunks/{event-logger-qvq09nk1.js → location-services-sjv5qmhe.js} +3 -3
- package/dist/chunks/{event-logger-scnp1dpp.js → location-services-sqsz59mf.js} +10 -10
- package/dist/chunks/{event-logger-z8rfaqzv.js → location-services-stp9s0k1.js} +31 -31
- package/dist/chunks/{event-logger-byv6g4ee.js → location-services-sw8y5djv.js} +30 -30
- package/dist/chunks/{event-logger-dfe8djrf.js → location-services-sx1n432n.js} +4 -4
- package/dist/chunks/{event-logger-5n25gzb5.js → location-services-syyy2hrt.js} +4 -4
- package/dist/chunks/{event-logger-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
- package/dist/chunks/{event-logger-tdstcens.js → location-services-tdstcens.js} +1 -1
- package/dist/chunks/{event-logger-v3t7ccjd.js → location-services-tex88hhx.js} +46 -46
- package/dist/chunks/location-services-tqewcpxk.js +26 -0
- package/dist/chunks/{event-logger-tvtrv512.js → location-services-tvtrv512.js} +1 -1
- package/dist/chunks/{event-logger-2d99pj65.js → location-services-tvwbq7qm.js} +11 -11
- package/dist/chunks/{event-logger-xcec66r5.js → location-services-tw8eapz5.js} +47 -47
- package/dist/chunks/{event-logger-mkgkpagd.js → location-services-v04b82c1.js} +20 -20
- package/dist/chunks/{event-logger-r0cb0ck6.js → location-services-v20z2ba4.js} +10 -10
- package/dist/chunks/{event-logger-gdresbk1.js → location-services-va9vvq6w.js} +58 -58
- package/dist/chunks/{event-logger-bmwt6c32.js → location-services-vcn47bng.js} +34 -34
- package/dist/chunks/{event-logger-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{event-logger-b720ka4c.js → location-services-vjjxy6yb.js} +9 -9
- package/dist/chunks/{event-logger-bfv0d40t.js → location-services-vp1kxwwv.js} +27 -27
- package/dist/chunks/{event-logger-aakwft81.js → location-services-vr9n9w3y.js} +26 -26
- package/dist/chunks/{event-logger-vq5c9x4q.js → location-services-vz7e0fzz.js} +17 -17
- package/dist/chunks/{event-logger-vzcthcp8.js → location-services-vzcthcp8.js} +1 -1
- package/dist/chunks/{event-logger-vzs5sf6e.js → location-services-vzs5sf6e.js} +1 -1
- package/dist/chunks/{event-logger-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{event-logger-9e4en3sz.js → location-services-w4gvx3xt.js} +8 -8
- package/dist/chunks/{event-logger-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{event-logger-vazhwx36.js → location-services-wh6zw745.js} +5 -5
- package/dist/chunks/{event-logger-ps49tzpg.js → location-services-wnxjsq8q.js} +14 -14
- package/dist/chunks/{event-logger-j6q81gkc.js → location-services-wvnyy24z.js} +13 -13
- package/dist/chunks/{event-logger-cr2e17pp.js → location-services-x0amqr8p.js} +24 -24
- package/dist/chunks/{event-logger-x1ezjp6w.js → location-services-x1ezjp6w.js} +1 -1
- package/dist/chunks/{event-logger-shqntgwy.js → location-services-xchyqy34.js} +32 -32
- package/dist/chunks/{event-logger-g5w8qwbj.js → location-services-xfkkasph.js} +4 -4
- package/dist/chunks/{event-logger-e6j7p34d.js → location-services-xgpppxj9.js} +29 -29
- package/dist/chunks/{event-logger-cz658kn3.js → location-services-xjy4ntws.js} +17 -17
- package/dist/chunks/{event-logger-dmqcgk4z.js → location-services-xkntkrq7.js} +5 -5
- package/dist/chunks/{event-logger-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
- package/dist/chunks/{event-logger-470chn1p.js → location-services-y7s822h0.js} +5 -5
- package/dist/chunks/{event-logger-m69d1h5c.js → location-services-ym7fjfg8.js} +11 -11
- package/dist/chunks/{event-logger-1f1banxt.js → location-services-ynd1z268.js} +25 -25
- package/dist/chunks/{event-logger-r8xr0va3.js → location-services-yp2x3t23.js} +4 -4
- package/dist/chunks/{event-logger-yrhqyw5v.js → location-services-yrhqyw5v.js} +1 -1
- package/dist/chunks/{event-logger-p7tapf4a.js → location-services-ywqkw4ef.js} +54 -54
- package/dist/chunks/{event-logger-gksp05c7.js → location-services-yy9j72hh.js} +44 -44
- package/dist/chunks/{event-logger-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{event-logger-h6sem7h5.js → location-services-zdw92gas.js} +12 -12
- package/dist/chunks/{event-logger-cdevnsy5.js → location-services-zk6h76qn.js} +16 -16
- package/dist/chunks/{event-logger-b5beq1ps.js → location-services-zkmsq240.js} +15 -15
- package/dist/chunks/{event-logger-8hezddv1.js → location-services-znt0jm4s.js} +27 -27
- package/dist/chunks/{event-logger-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
- package/dist/chunks/{event-logger-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- 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 +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- 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 +91 -91
- 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 +1 -1
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +105 -105
- 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 +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +124 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- 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 +88 -88
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +225 -225
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- 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 +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- 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 +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/event-logger-1vsw5z46.js +0 -26
- package/dist/chunks/event-logger-5f4ycdnm.js +0 -507
- package/dist/chunks/event-logger-v1faaxn9.js +0 -18
- package/dist/chunks/event-logger-z2cwt4s7.js +0 -252
- /package/dist/chunks/{event-logger-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{event-logger-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{event-logger-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{event-logger-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{event-logger-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{event-logger-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{event-logger-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{event-logger-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
- /package/dist/chunks/{event-logger-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{event-logger-34c7v6d4.js → location-services-34c7v6d4.js} +0 -0
- /package/dist/chunks/{event-logger-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{event-logger-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{event-logger-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{event-logger-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
- /package/dist/chunks/{event-logger-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{event-logger-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{event-logger-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{event-logger-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{event-logger-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{event-logger-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{event-logger-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{event-logger-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{event-logger-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{event-logger-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{event-logger-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{event-logger-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{event-logger-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{event-logger-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{event-logger-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{event-logger-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-logger-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{event-logger-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{event-logger-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{event-logger-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{event-logger-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{event-logger-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{event-logger-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{event-logger-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{event-logger-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{event-logger-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{event-logger-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{event-logger-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{event-logger-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{event-logger-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{event-logger-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{event-logger-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{event-logger-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{event-logger-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{event-logger-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{event-logger-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{event-logger-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{event-logger-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{event-logger-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{event-logger-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{event-logger-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{event-logger-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{event-logger-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{event-logger-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{event-logger-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{event-logger-hjbc5kem.js → location-services-hjbc5kem.js} +0 -0
- /package/dist/chunks/{event-logger-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{event-logger-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{event-logger-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{event-logger-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{event-logger-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{event-logger-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{event-logger-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{event-logger-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{event-logger-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{event-logger-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{event-logger-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{event-logger-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{event-logger-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{event-logger-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{event-logger-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{event-logger-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{event-logger-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{event-logger-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{event-logger-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{event-logger-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{event-logger-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{event-logger-sk3qaz4a.js → location-services-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{event-logger-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{event-logger-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{event-logger-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{event-logger-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{event-logger-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{event-logger-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{event-logger-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{event-logger-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{event-logger-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
- /package/dist/chunks/{event-logger-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{event-logger-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{event-logger-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{event-logger-z5v4ffb3.js → location-services-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{event-logger-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service82,
|
|
9
|
+
node86
|
|
10
|
+
} from "./location-services-mjqndqed.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service80,
|
|
13
|
+
node84
|
|
14
|
+
} from "./location-services-h6xkfdk1.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID6,
|
|
27
|
+
Service: () => Service59,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node63,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID6 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service59 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service80;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID6.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service59.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node63 = makeLocationNode({
|
|
144
|
+
service: Service59,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer3 = Layer.succeed(
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service59, Service59.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service53, Service53.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error5({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID6, Error5, Service59, node63, noopLayer3, exports_snapshot2 };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service79
|
|
3
|
+
} from "./location-services-j46s9538.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service70
|
|
6
|
+
} from "./location-services-va9vvq6w.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service50
|
|
14
|
+
} from "./location-services-775wrvb1.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch = {};
|
|
21
|
+
__export(exports_websearch, {
|
|
22
|
+
Input: () => Input9,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin11,
|
|
25
|
+
WebSearchTool: () => exports_websearch,
|
|
26
|
+
description: () => description4,
|
|
27
|
+
name: () => name9
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name9 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description4 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input9 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin11 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service70;
|
|
53
|
+
const forms = yield* Service79;
|
|
54
|
+
const websearch = yield* Service50;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name9,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description4,
|
|
59
|
+
input: Input9,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name9,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name9];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name9, NO_RESULTS2, description4, Input9, Plugin11, exports_websearch };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service38,
|
|
3
|
+
node41
|
|
4
|
+
} from "./location-services-573974vw.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./location-services-h6xkfdk1.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service37,
|
|
11
|
+
node40
|
|
12
|
+
} from "./location-services-73qcdwhn.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-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: () => Service8,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node9
|
|
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 Service8 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service8, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service37;
|
|
40
|
+
const watcher = yield* Service38;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service80;
|
|
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 layer4 = Layer.effect(Service3, 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 Service8.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 layer4 = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node9 = makeLocationNode({
|
|
74
|
+
service: Service8,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node40, FSUtil.node, node41, node84]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service8,
|
|
80
|
+
layer: Layer.succeed(Service8, Service8.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 { Service8, layer5, node9, empty2, exports_source };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID6,
|
|
6
|
+
Service59
|
|
7
|
+
} from "./location-services-0x4gzyfe.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-services-jexxy024.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-services-vjjxy6yb.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-kb9j3d72.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/session/diff.ts
|
|
22
22
|
var exports_diff = {};
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service59;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID6.make(from),
|
|
91
|
+
to: ID6.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service37
|
|
3
|
+
} from "./location-services-73qcdwhn.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service9
|
|
6
|
+
} from "./location-services-gjwgx2c5.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-qsdy395h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-services-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/location-watcher.ts
|
|
15
15
|
var exports_location_watcher2 = {};
|
|
16
16
|
__export(exports_location_watcher2, {
|
|
17
17
|
ConfigLocationWatcherPlugin: () => exports_location_watcher2,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin43
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin43 = define({
|
|
23
23
|
id: "opencode.config.location-watcher",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const policy = yield*
|
|
25
|
+
const config = yield* Service37;
|
|
26
|
+
const policy = yield* Service9;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, policy.reload());
|
|
28
28
|
yield* policy.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -35,4 +35,4 @@ var Plugin6 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin43, exports_location_watcher2 };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-va9vvq6w.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin26
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin26 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin26, exports_plan };
|
|
@@ -2,49 +2,49 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./location-services-h6xkfdk1.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service55,
|
|
12
|
+
node58
|
|
13
|
+
} from "./location-services-xchyqy34.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
|
-
Entry: () =>
|
|
27
|
-
Event: () =>
|
|
26
|
+
Entry: () => Entry4,
|
|
27
|
+
Event: () => Event10,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
32
|
ListInput: () => ListInput3,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError5,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service54,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node57
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
44
44
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
45
45
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
46
46
|
import { Entry, FileSystem, FindInput as FindInput2, Write as Write2 } from "@opencode/schema/filesystem";
|
|
47
|
-
import { Entry as
|
|
47
|
+
import { Entry as Entry4, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
|
|
48
48
|
var ReadInput2 = Schema.Struct({
|
|
49
49
|
path: RelativePath2
|
|
50
50
|
});
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError5 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,7 +75,7 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content3 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
@@ -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 Event10 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service54 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service54, 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* Service55;
|
|
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 }));
|
|
@@ -129,15 +129,15 @@ var baseLayer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
129
129
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
130
130
|
return { absolute, real, directory: location.directory };
|
|
131
131
|
});
|
|
132
|
-
return
|
|
132
|
+
return Service54.of({
|
|
133
133
|
find: search.find,
|
|
134
134
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
135
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
136
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
135
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError5({ path: input.path })), (_, error) => Effect.die(error)));
|
|
136
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError5({ path: input.path })), (_, error) => Effect.die(error)));
|
|
137
137
|
if (info.type !== "File")
|
|
138
138
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
139
139
|
return {
|
|
140
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
140
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError5({ path: input.path })), (_, error) => Effect.die(error))),
|
|
141
141
|
mime: FSUtil.mimeType(target.real)
|
|
142
142
|
};
|
|
143
143
|
}),
|
|
@@ -166,10 +166,10 @@ var baseLayer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
166
166
|
})
|
|
167
167
|
});
|
|
168
168
|
}));
|
|
169
|
-
var
|
|
170
|
-
service:
|
|
169
|
+
var node57 = makeLocationNode({
|
|
170
|
+
service: Service54,
|
|
171
171
|
layer: baseLayer,
|
|
172
|
-
deps: [FSUtil.node,
|
|
172
|
+
deps: [FSUtil.node, node84, node58]
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
175
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError5, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, ListInput3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event10, Service54, node57, exports_filesystem, Entry4, Match2, Submatch2 };
|