@opencode/core 0.0.0-dev-19894 → 0.0.0-dev-19896
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 +7 -7
- package/dist/bus.js +72 -72
- package/dist/chunks/{location-lifecycle-sa53s2va.js → file-00af4kh8.js} +8 -8
- package/dist/chunks/{location-lifecycle-600vrq00.js → file-0493g1vy.js} +24 -24
- package/dist/chunks/{location-lifecycle-azbd23ze.js → file-04k65yr5.js} +11 -11
- package/dist/chunks/{location-lifecycle-mtjt07v8.js → file-0e9pe9hx.js} +22 -22
- package/dist/chunks/file-0mesazry.js +4 -0
- package/dist/chunks/{location-lifecycle-0paq2nw3.js → file-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-lifecycle-0q0f95c6.js → file-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-lifecycle-cygrf01w.js → file-0qad3ttb.js} +32 -32
- package/dist/chunks/{location-lifecycle-ch9rpgww.js → file-0wtnvkaq.js} +11 -11
- package/dist/chunks/{location-lifecycle-fde1cms4.js → file-0z78d6d4.js} +9 -9
- package/dist/chunks/{location-lifecycle-1dazxqgg.js → file-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-lifecycle-pr20cmdv.js → file-1hbpk5ma.js} +14 -14
- package/dist/chunks/{location-lifecycle-jz8czyh7.js → file-1v56nqpw.js} +21 -21
- package/dist/chunks/{location-lifecycle-56gdpj1q.js → file-1ygqh575.js} +9 -9
- package/dist/chunks/{location-lifecycle-21r38tys.js → file-21r38tys.js} +1 -1
- package/dist/chunks/{location-lifecycle-z0868ay8.js → file-24ez7j11.js} +13 -13
- package/dist/chunks/{location-lifecycle-zmv6dkz3.js → file-285smrwa.js} +7 -7
- package/dist/chunks/{location-lifecycle-2a5m3afh.js → file-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-lifecycle-em2jr9mj.js → file-2dw84gmp.js} +13 -13
- package/dist/chunks/{location-lifecycle-428ep8fh.js → file-2eegacq4.js} +8 -8
- package/dist/chunks/{location-lifecycle-5feghaxz.js → file-2jwpwh9n.js} +44 -44
- package/dist/chunks/{location-lifecycle-jewzahs7.js → file-2k71kv7p.js} +4 -4
- package/dist/chunks/{location-lifecycle-e4gx0yxa.js → file-2kj4nmmg.js} +27 -27
- package/dist/chunks/{location-lifecycle-9gew6ke4.js → file-2mvmpsyq.js} +3 -3
- package/dist/chunks/{location-lifecycle-66baz8ka.js → file-2nr7b2rh.js} +7 -7
- package/dist/chunks/{location-lifecycle-ftp936sg.js → file-2rk3cq7y.js} +13 -13
- package/dist/chunks/{location-lifecycle-vkxpz7g2.js → file-2tfmgkzg.js} +4 -4
- package/dist/chunks/{location-lifecycle-4vn8gs9z.js → file-2wz5cap4.js} +10 -10
- package/dist/chunks/{location-lifecycle-2axye2ft.js → file-2zqpyx7j.js} +11 -11
- package/dist/chunks/{location-lifecycle-1w0pc04v.js → file-3149hxjv.js} +24 -24
- package/dist/chunks/{location-lifecycle-1zsecf4k.js → file-3a13mzqq.js} +11 -11
- package/dist/chunks/{location-lifecycle-3fc6dm20.js → file-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → file-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-5n6s9hm6.js → file-3hpdt92y.js} +13 -13
- package/dist/chunks/{location-lifecycle-b7b4ctej.js → file-3j9bgvtg.js} +5 -5
- package/dist/chunks/{location-lifecycle-3fn9vj2a.js → file-3ktbe3hf.js} +6 -6
- package/dist/chunks/{location-lifecycle-0ct2ft9s.js → file-3n6mfbkh.js} +28 -28
- package/dist/chunks/{location-lifecycle-3smtnn6g.js → file-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-lifecycle-fbpmdm9b.js → file-3t889vdt.js} +25 -25
- package/dist/chunks/{location-lifecycle-3tvqynh2.js → file-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-lifecycle-h6jr292a.js → file-3ythc6yv.js} +4 -4
- package/dist/chunks/{location-lifecycle-62qat4sn.js → file-4091at3p.js} +16 -16
- package/dist/chunks/{location-lifecycle-zvfsx9q6.js → file-40cw0428.js} +4 -4
- package/dist/chunks/{location-lifecycle-nxw9x78p.js → file-42yzn4t5.js} +11 -11
- package/dist/chunks/{location-lifecycle-5mtzsd3b.js → file-44h5tttr.js} +4 -4
- package/dist/chunks/{location-lifecycle-qbd2ms54.js → file-4brxhqy9.js} +35 -35
- package/dist/chunks/{location-lifecycle-vs79q017.js → file-4ecc57dw.js} +44 -44
- package/dist/chunks/{location-lifecycle-bz85s9hh.js → file-4jc5c4h4.js} +1 -1
- package/dist/chunks/{location-lifecycle-8m81rpck.js → file-4kqngsvt.js} +32 -32
- package/dist/chunks/{location-lifecycle-xdc3mw17.js → file-4mg090da.js} +24 -24
- package/dist/chunks/{location-lifecycle-sc1q6wgr.js → file-4nwvt2ek.js} +4 -4
- package/dist/chunks/{location-lifecycle-dhc7fjat.js → file-4whbgcxk.js} +17 -17
- package/dist/chunks/{location-lifecycle-hb1m031k.js → file-4zn875z0.js} +37 -37
- package/dist/chunks/{location-lifecycle-wbkyxrgf.js → file-510m7gjw.js} +5 -5
- package/dist/chunks/{location-lifecycle-2q3ccgdz.js → file-53bvc5b3.js} +31 -31
- package/dist/chunks/{location-lifecycle-zex37ywk.js → file-56m60q16.js} +8 -8
- package/dist/chunks/{location-lifecycle-atcatw0c.js → file-57ez7d0k.js} +9 -9
- package/dist/chunks/{location-lifecycle-aja1kpp3.js → file-58b9fvpm.js} +18 -18
- package/dist/chunks/{location-lifecycle-qnz5ymak.js → file-5a3rkb7m.js} +31 -31
- package/dist/chunks/{location-lifecycle-a1bz86dw.js → file-5c4hm403.js} +3 -3
- package/dist/chunks/{location-lifecycle-5daktx2q.js → file-5daktx2q.js} +1 -1
- package/dist/chunks/{location-lifecycle-0g5kjbpy.js → file-5eh7kyv5.js} +31 -31
- package/dist/chunks/{location-lifecycle-hh5sdbys.js → file-5n76hmjp.js} +5 -5
- package/dist/chunks/{location-lifecycle-4ns3h2re.js → file-5sdemcz3.js} +8 -8
- package/dist/chunks/{location-lifecycle-5t3nmthw.js → file-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-lifecycle-6g52q5q2.js → file-5y2rckg7.js} +6 -6
- package/dist/chunks/{location-lifecycle-1mer2z42.js → file-5ydw7gt2.js} +17 -17
- package/dist/chunks/{location-lifecycle-1m851fz5.js → file-636j21cx.js} +15 -15
- package/dist/chunks/{location-lifecycle-zjbv19xv.js → file-63nnbv2k.js} +1 -1
- package/dist/chunks/file-64tp9nsp.js +65 -0
- package/dist/chunks/{location-lifecycle-669tq793.js → file-669tq793.js} +1 -1
- package/dist/chunks/{location-lifecycle-fddp59hc.js → file-6dmrh5a8.js} +30 -30
- package/dist/chunks/{location-lifecycle-pbv0yjjw.js → file-6gchxkvz.js} +20 -20
- package/dist/chunks/{location-lifecycle-2402vzrj.js → file-6h73sxmp.js} +5 -5
- package/dist/chunks/{location-lifecycle-rk5jd2b3.js → file-6hkwt5ks.js} +32 -32
- package/dist/chunks/{location-lifecycle-6msgmcgs.js → file-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-lifecycle-7j8v41s3.js → file-6t8a2cxv.js} +41 -41
- package/dist/chunks/{location-lifecycle-bcsq46nn.js → file-6xapaz12.js} +30 -30
- package/dist/chunks/{location-lifecycle-mvfsc1pv.js → file-73tb2d7t.js} +3 -3
- package/dist/chunks/{location-lifecycle-kq8bx7xq.js → file-78ghsz8c.js} +43 -43
- package/dist/chunks/{location-lifecycle-jtexvcen.js → file-7ahgtxs9.js} +27 -27
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → file-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-3qkj39pp.js → file-7bsn99y2.js} +8 -8
- package/dist/chunks/{location-lifecycle-atmhrajx.js → file-7qcewr7x.js} +15 -15
- package/dist/chunks/file-7ygdg4wh.js +492 -0
- package/dist/chunks/{location-lifecycle-etn8yy9q.js → file-7ynk84wd.js} +58 -58
- package/dist/chunks/{location-lifecycle-d24axzz0.js → file-829kak1e.js} +7 -7
- package/dist/chunks/{location-lifecycle-36b1949e.js → file-852d7py8.js} +19 -19
- package/dist/chunks/{location-lifecycle-2r3zh37g.js → file-85czmsy6.js} +9 -9
- package/dist/chunks/{location-lifecycle-8d7r5vzw.js → file-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-lifecycle-ggs1y8br.js → file-8pryv8c2.js} +34 -34
- package/dist/chunks/file-96byh0hv.js +252 -0
- package/dist/chunks/{location-lifecycle-qmxwecnf.js → file-96vdq9fw.js} +15 -15
- package/dist/chunks/{location-lifecycle-92r5vq45.js → file-9cvk2t4j.js} +184 -184
- package/dist/chunks/{location-lifecycle-snq071ae.js → file-9d4g2rgm.js} +3 -3
- package/dist/chunks/{location-lifecycle-fdd9a936.js → file-9m9h8fve.js} +5 -5
- package/dist/chunks/{location-lifecycle-7dseyta3.js → file-9xqd5pe1.js} +28 -28
- package/dist/chunks/{location-lifecycle-jc1e48xp.js → file-a313qmz8.js} +26 -26
- package/dist/chunks/{location-lifecycle-ees997fz.js → file-a7atmr7r.js} +22 -22
- package/dist/chunks/{location-lifecycle-aaet6srn.js → file-aaet6srn.js} +2 -2
- package/dist/chunks/{location-lifecycle-t9zs3egg.js → file-an7cqtb7.js} +4 -4
- package/dist/chunks/{location-lifecycle-qwyffd8f.js → file-as3hmkts.js} +12 -12
- package/dist/chunks/{location-lifecycle-1vmxbjpt.js → file-atwefz46.js} +9 -9
- package/dist/chunks/{location-lifecycle-xse2s150.js → file-ayykrmcz.js} +32 -32
- package/dist/chunks/{location-lifecycle-9xrddee8.js → file-b1ers0rt.js} +17 -17
- package/dist/chunks/{location-lifecycle-b6gygkdw.js → file-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-lifecycle-8n7ya8jg.js → file-bade5gr5.js} +3 -3
- package/dist/chunks/{location-lifecycle-bjc8ma1j.js → file-bcnbwanc.js} +19 -19
- package/dist/chunks/{location-lifecycle-dv1b5hnc.js → file-bem8brcd.js} +4 -4
- package/dist/chunks/{location-lifecycle-hwvyndb6.js → file-bp02r99k.js} +4 -4
- package/dist/chunks/{location-lifecycle-bfwjxbj5.js → file-bv2epnby.js} +32 -32
- package/dist/chunks/{location-lifecycle-7t48jg8f.js → file-bwm9bx21.js} +3 -3
- package/dist/chunks/{location-lifecycle-pgsazkxm.js → file-bypvmvbc.js} +5 -5
- package/dist/chunks/{location-lifecycle-k0gdq8ga.js → file-c1495ybz.js} +5 -5
- package/dist/chunks/{location-lifecycle-9ae44cfy.js → file-ccfa4wxs.js} +6 -6
- package/dist/chunks/{location-lifecycle-g0445xdp.js → file-cmwkp3r5.js} +4 -4
- package/dist/chunks/{location-lifecycle-cpneeje0.js → file-cwa6csj7.js} +9 -9
- package/dist/chunks/{location-lifecycle-3gybahgz.js → file-d0edxsh7.js} +17 -17
- package/dist/chunks/{location-lifecycle-89s9kgby.js → file-d1j0qnxw.js} +18 -18
- package/dist/chunks/{location-lifecycle-9vjfyag7.js → file-d5jzmsg2.js} +19 -19
- package/dist/chunks/{location-lifecycle-eb9hbpar.js → file-d7fqxd0w.js} +23 -23
- package/dist/chunks/{location-lifecycle-ttjk2wdc.js → file-d7w252zj.js} +29 -29
- package/dist/chunks/{location-lifecycle-kd541efj.js → file-d93gxzhm.js} +14 -14
- package/dist/chunks/{location-lifecycle-9a30k7dn.js → file-de9ewzfh.js} +16 -16
- package/dist/chunks/{location-lifecycle-0pq4d6yy.js → file-df6g96g5.js} +10 -10
- package/dist/chunks/{location-lifecycle-8p4f9s12.js → file-dj2t23y0.js} +2 -2
- package/dist/chunks/{location-lifecycle-gs88pkvr.js → file-dj631km8.js} +6 -6
- package/dist/chunks/{location-lifecycle-06pedn7m.js → file-djqf8388.js} +34 -34
- package/dist/chunks/{location-lifecycle-aght5zda.js → file-dkm5q57s.js} +93 -93
- package/dist/chunks/{location-lifecycle-9cy2qm6f.js → file-dkn9b9f5.js} +9 -9
- package/dist/chunks/{location-lifecycle-y71avatq.js → file-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-lifecycle-h040sa7w.js → file-dq8nh84r.js} +19 -19
- package/dist/chunks/{location-lifecycle-1e8jm6ep.js → file-dqezrhz2.js} +25 -25
- package/dist/chunks/file-dxj72tfx.js +18 -0
- package/dist/chunks/{location-lifecycle-frvteen9.js → file-e8mvkq4k.js} +17 -17
- package/dist/chunks/{location-lifecycle-crahewxf.js → file-e8nv9k1e.js} +7 -7
- package/dist/chunks/{location-lifecycle-yt0fqk68.js → file-ead3g9p8.js} +5 -5
- package/dist/chunks/{location-lifecycle-0gdmqesm.js → file-eaj1djv9.js} +8 -8
- package/dist/chunks/{location-lifecycle-ejnxb373.js → file-ee73fed3.js} +47 -47
- package/dist/chunks/{location-lifecycle-ef5x83kb.js → file-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-lifecycle-gg245rpa.js → file-eq0qfh2k.js} +43 -43
- package/dist/chunks/{location-lifecycle-erw5rpbs.js → file-erw5rpbs.js} +2 -2
- package/dist/chunks/{location-lifecycle-2w3b2ebc.js → file-et91bqp9.js} +10 -10
- package/dist/chunks/{location-lifecycle-etq0c3wd.js → file-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-lifecycle-3cfzdc8e.js → file-evbgk2k8.js} +5 -5
- package/dist/chunks/{location-lifecycle-hk6farcs.js → file-evsjhyqp.js} +4 -4
- package/dist/chunks/{location-lifecycle-qj8eh1ht.js → file-f3ngv102.js} +4 -4
- package/dist/chunks/{location-lifecycle-4efcx757.js → file-f8e7pbj3.js} +11 -11
- package/dist/chunks/{location-lifecycle-2k8khapm.js → file-fcrkznn8.js} +5 -5
- package/dist/chunks/{location-lifecycle-gg7mxwnh.js → file-fr6sv4wz.js} +20 -20
- package/dist/chunks/{location-lifecycle-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-lifecycle-tzbte7z6.js → file-g0bdsd7s.js} +12 -12
- package/dist/chunks/{location-lifecycle-gd4qta3r.js → file-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-lifecycle-zm4vrf7k.js → file-gfnjd6a9.js} +5 -5
- package/dist/chunks/{location-lifecycle-vdtc3ka7.js → file-gghxsv2g.js} +37 -37
- package/dist/chunks/{location-lifecycle-yc7a5kvr.js → file-gkbem5z3.js} +33 -33
- package/dist/chunks/{location-lifecycle-gv6a8nnw.js → file-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-lifecycle-08cxtdw8.js → file-gw23creq.js} +36 -36
- package/dist/chunks/{location-lifecycle-1ah0ee7v.js → file-h0qt5e5y.js} +6 -6
- package/dist/chunks/{location-lifecycle-v52rr7b3.js → file-h1a82ttv.js} +32 -32
- package/dist/chunks/{location-lifecycle-agdtkq8n.js → file-h41rq5z1.js} +25 -25
- package/dist/chunks/{location-lifecycle-h6vf3j39.js → file-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-lifecycle-5ygjede2.js → file-h85dz378.js} +8 -8
- package/dist/chunks/{location-lifecycle-3vfjkkqt.js → file-haa19701.js} +4 -4
- package/dist/chunks/{location-lifecycle-f828m53h.js → file-hdnk95c8.js} +2 -2
- package/dist/chunks/{location-lifecycle-bwz7508e.js → file-hg6thggv.js} +23 -23
- package/dist/chunks/{location-lifecycle-x27mk1f7.js → file-hp7eqkgq.js} +2 -2
- package/dist/chunks/{location-lifecycle-c8kta4n6.js → file-hx99ev5f.js} +15 -15
- package/dist/chunks/{location-lifecycle-1tj20jfk.js → file-j33mnh1x.js} +28 -28
- package/dist/chunks/{location-lifecycle-a79avww4.js → file-j381zx68.js} +29 -29
- package/dist/chunks/{location-lifecycle-j56e64zr.js → file-j56e64zr.js} +1 -1
- package/dist/chunks/{location-lifecycle-sgvsg5c7.js → file-j7t2khjb.js} +13 -13
- package/dist/chunks/{location-lifecycle-96rw58h8.js → file-jca4demv.js} +2 -2
- package/dist/chunks/{location-lifecycle-hmpcbkgd.js → file-jcemy7wp.js} +73 -73
- package/dist/chunks/{location-lifecycle-6hh8tjw2.js → file-jfqtm2ew.js} +4 -4
- package/dist/chunks/{location-lifecycle-21r66r60.js → file-jjpeq0x6.js} +32 -32
- package/dist/chunks/{location-lifecycle-begp2na7.js → file-k13v7s70.js} +22 -22
- package/dist/chunks/{location-lifecycle-d6w1d759.js → file-k2ceccft.js} +5 -5
- package/dist/chunks/{location-lifecycle-zz4e6p7j.js → file-k53nzgjr.js} +15 -15
- package/dist/chunks/{location-lifecycle-1krxbagm.js → file-k56qavf2.js} +34 -34
- package/dist/chunks/{location-lifecycle-fkjmw100.js → file-k9kj6xed.js} +2 -2
- package/dist/chunks/{location-lifecycle-ajcqkwnf.js → file-kvxz1nnx.js} +12 -12
- package/dist/chunks/{location-lifecycle-qxhyk1pg.js → file-kztag27a.js} +28 -28
- package/dist/chunks/{location-lifecycle-cfpkc3c9.js → file-m0jqrx5p.js} +2 -2
- package/dist/chunks/{location-lifecycle-m3fdjcah.js → file-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-lifecycle-8cptxgqr.js → file-m6nr1r89.js} +11 -11
- package/dist/chunks/{location-lifecycle-w9kyydez.js → file-m7e4enkd.js} +54 -54
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-3cq1aq8e.js → file-mhstgcjq.js} +14 -14
- package/dist/chunks/{location-lifecycle-4rapdxbm.js → file-mxvdmhxd.js} +11 -11
- package/dist/chunks/{location-lifecycle-gd0h8cq1.js → file-mzgjcq6e.js} +25 -25
- package/dist/chunks/{location-lifecycle-0jq9fyba.js → file-n37c4crj.js} +9 -9
- package/dist/chunks/{location-lifecycle-k9bmr3a1.js → file-n9hnzybb.js} +22 -22
- package/dist/chunks/{location-lifecycle-7hvhjnef.js → file-nbep77rb.js} +23 -23
- package/dist/chunks/{location-lifecycle-q5nw5m1n.js → file-ndqtf2h8.js} +6 -6
- package/dist/chunks/{location-lifecycle-xk747vep.js → file-nscznvay.js} +9 -9
- package/dist/chunks/{location-lifecycle-b3td3swv.js → file-nwswft9z.js} +1 -1
- package/dist/chunks/{location-lifecycle-nzks3jc8.js → file-nzks3jc8.js} +3 -3
- package/dist/chunks/{location-lifecycle-8nfn27r0.js → file-p11pfbbp.js} +12 -12
- package/dist/chunks/{location-lifecycle-tbz0fdvh.js → file-p28j5sbe.js} +5 -5
- package/dist/chunks/{location-lifecycle-fvzswx9a.js → file-p41fbzgp.js} +6 -6
- package/dist/chunks/{location-lifecycle-8kb38tbd.js → file-p8s1tbxz.js} +29 -29
- package/dist/chunks/{location-lifecycle-8t7cv3nq.js → file-p8tq6xht.js} +17 -17
- package/dist/chunks/{location-lifecycle-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-lifecycle-pknna89w.js → file-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-8d6xnbxe.js → file-pq65tk6f.js} +10 -10
- package/dist/chunks/{location-lifecycle-a881zpfh.js → file-px76j0pk.js} +9 -9
- package/dist/chunks/{location-lifecycle-pb07aktf.js → file-q3t37ft6.js} +3 -3
- package/dist/chunks/{location-lifecycle-14a3xf5h.js → file-qkxsz2mg.js} +18 -18
- package/dist/chunks/{location-lifecycle-qsdy395h.js → file-qsdy395h.js} +1 -1
- package/dist/chunks/{location-lifecycle-e5kr9kgh.js → file-r4xn8cgd.js} +8 -8
- package/dist/chunks/{location-lifecycle-2cfefjf7.js → file-r52efjxa.js} +49 -49
- package/dist/chunks/{location-lifecycle-rdw6cm16.js → file-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-lifecycle-yp2x3t23.js → file-rhraev7y.js} +4 -4
- package/dist/chunks/{location-lifecycle-35agz59w.js → file-rph3zd4r.js} +4 -4
- package/dist/chunks/{location-lifecycle-b7skvr2w.js → file-rtkpxbf2.js} +22 -22
- package/dist/chunks/{location-lifecycle-xgw5arqg.js → file-ry1kfgw7.js} +46 -46
- package/dist/chunks/{location-lifecycle-0b2jrrme.js → file-s0bk0r1z.js} +13 -13
- package/dist/chunks/{location-lifecycle-ssdf6eb6.js → file-s6c03qyq.js} +15 -15
- package/dist/chunks/{location-lifecycle-3ykewcag.js → file-s7y6nykf.js} +22 -22
- package/dist/chunks/{location-lifecycle-p0bbwx7d.js → file-safzyg6n.js} +17 -17
- package/dist/chunks/{location-lifecycle-mqdmt1va.js → file-sw35dprj.js} +5 -5
- package/dist/chunks/{location-lifecycle-f3r43bhh.js → file-t1q5pb01.js} +4 -4
- package/dist/chunks/{location-lifecycle-m549exyf.js → file-t4ep399p.js} +12 -12
- package/dist/chunks/{location-lifecycle-m6q5faa9.js → file-t69pkn8h.js} +14 -14
- package/dist/chunks/{location-lifecycle-sntz0pcz.js → file-tac0hfxd.js} +60 -60
- package/dist/chunks/{location-lifecycle-es6ymm0f.js → file-targrq6s.js} +9 -9
- package/dist/chunks/{location-lifecycle-tazgh4e4.js → file-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-lifecycle-89znhe33.js → file-tcezcvh9.js} +4 -4
- package/dist/chunks/{location-lifecycle-tdstcens.js → file-tdstcens.js} +1 -1
- package/dist/chunks/{location-lifecycle-6eyfberv.js → file-tkmzzze4.js} +21 -21
- package/dist/chunks/{location-lifecycle-t2az9yje.js → file-ttqh24zm.js} +4 -4
- package/dist/chunks/{location-lifecycle-2w7gr4k3.js → file-ttzf9e0x.js} +25 -25
- package/dist/chunks/{location-lifecycle-ag38rq08.js → file-tv8tew1t.js} +20 -20
- package/dist/chunks/{location-lifecycle-tvtrv512.js → file-tvtrv512.js} +1 -1
- package/dist/chunks/{location-lifecycle-5vcjqd34.js → file-tzdy52s7.js} +13 -13
- package/dist/chunks/{location-lifecycle-nfyg7my7.js → file-v5gzehfd.js} +3 -3
- package/dist/chunks/{location-lifecycle-6q7a50ek.js → file-vadan2xk.js} +12 -12
- package/dist/chunks/{location-lifecycle-veqvce7d.js → file-veqvce7d.js} +1 -1
- package/dist/chunks/{location-lifecycle-76782hfa.js → file-vsmvdy9p.js} +11 -11
- package/dist/chunks/{location-lifecycle-dx7cz548.js → file-vtm79yg5.js} +11 -11
- package/dist/chunks/{location-lifecycle-zysgr26p.js → file-vx7aa5m2.js} +22 -22
- package/dist/chunks/{location-lifecycle-taw5yzha.js → file-vy9gj3hz.js} +10 -10
- package/dist/chunks/{location-lifecycle-z2qbjhyn.js → file-vykevjvn.js} +5 -5
- package/dist/chunks/{location-lifecycle-vzcthcp8.js → file-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-lifecycle-92ayrrn7.js → file-w1ezb4ke.js} +16 -16
- package/dist/chunks/{location-lifecycle-06dxphr1.js → file-w1k39n5e.js} +4 -4
- package/dist/chunks/{location-lifecycle-z07d95xm.js → file-w2a5z8kt.js} +5 -5
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-0gz940bd.js → file-w8vgje9p.js} +9 -9
- package/dist/chunks/{location-lifecycle-t7ac428t.js → file-w9nahaws.js} +11 -11
- package/dist/chunks/{location-lifecycle-wd87259q.js → file-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-ah45zszs.js → file-wf5bnb3c.js} +35 -35
- package/dist/chunks/{location-lifecycle-d2sxwqa1.js → file-wrxzva30.js} +10 -10
- package/dist/chunks/{location-lifecycle-xnftke6g.js → file-x00jkr1b.js} +42 -42
- package/dist/chunks/{location-lifecycle-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
- package/dist/chunks/file-xb0ahqs4.js +26 -0
- package/dist/chunks/{location-lifecycle-00b8gsc2.js → file-xfhar90w.js} +31 -31
- package/dist/chunks/{location-lifecycle-drwq78ky.js → file-xfkkasph.js} +4 -4
- package/dist/chunks/{location-lifecycle-dqdee38h.js → file-xgj79bh7.js} +26 -26
- package/dist/chunks/{location-lifecycle-xz20991e.js → file-xhd31qk1.js} +5 -5
- package/dist/chunks/{location-lifecycle-5cgvgbkt.js → file-xm7z07hf.js} +22 -22
- package/dist/chunks/{location-lifecycle-h36cdnfm.js → file-xqc9z03y.js} +23 -23
- package/dist/chunks/{location-lifecycle-k2nq7ztr.js → file-xvfb9kxe.js} +11 -11
- package/dist/chunks/{location-lifecycle-aj2gph7f.js → file-xxnqwd1r.js} +47 -47
- package/dist/chunks/{location-lifecycle-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-lifecycle-318dhbth.js → file-y1s26r5f.js} +22 -22
- package/dist/chunks/{location-lifecycle-5s2p338g.js → file-y3qff3a1.js} +5 -5
- package/dist/chunks/{location-lifecycle-mh5cgvr5.js → file-y9heqbmp.js} +32 -32
- package/dist/chunks/{location-lifecycle-2cmdkyhw.js → file-ygwg1shg.js} +6 -6
- package/dist/chunks/{location-lifecycle-58jf2b5n.js → file-ymd9ngfh.js} +24 -24
- package/dist/chunks/{location-lifecycle-yrhqyw5v.js → file-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-lifecycle-bneryqg7.js → file-yrn7vwjt.js} +11 -11
- package/dist/chunks/{location-lifecycle-yrznvahk.js → file-yrznvahk.js} +2 -2
- package/dist/chunks/{location-lifecycle-8n69n882.js → file-yvvvp4gn.js} +4 -4
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → file-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-z63w68vq.js → file-z63w68vq.js} +2 -2
- package/dist/chunks/{location-lifecycle-h2h79dva.js → file-z9k7j840.js} +20 -20
- package/dist/chunks/{location-lifecycle-zeh9ct20.js → file-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-lifecycle-g3xf870q.js → file-zhgmxcrc.js} +91 -91
- package/dist/chunks/{location-lifecycle-2c293f3h.js → file-zpyz6kjf.js} +8 -8
- package/dist/chunks/{location-lifecycle-zr2ceqn5.js → file-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-lifecycle-zxq2ej10.js → file-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 +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 +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- 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 +125 -125
- 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 +84 -84
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- 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 +73 -73
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- 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 +15 -15
- 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 +102 -102
- 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 +359 -359
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +125 -125
- 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 +97 -97
- 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 +112 -112
- 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/compaction.js +132 -132
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +330 -330
- 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 +2 -2
- 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 +91 -91
- 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 +89 -89
- 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 +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- 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 +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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +96 -96
- 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 +91 -91
- package/dist/reference/instructions.js +86 -86
- 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 +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- 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 +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- 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 +230 -230
- 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 +111 -111
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- 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 +74 -74
- package/dist/session/store.js +84 -84
- 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 +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +222 -222
- 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 +15 -15
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- 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 +119 -119
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +105 -105
- 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 +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 +3 -3
- 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 +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- 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 +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- 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/location-lifecycle-4x0xy3ak.js +0 -492
- package/dist/chunks/location-lifecycle-9x5t835t.js +0 -252
- package/dist/chunks/location-lifecycle-ht5y0zrb.js +0 -18
- package/dist/chunks/location-lifecycle-jqaz7hb4.js +0 -26
- package/dist/chunks/location-lifecycle-qapv375x.js +0 -4
- package/dist/chunks/location-lifecycle-yrsab33h.js +0 -65
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → file-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → file-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → file-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → file-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → file-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2axfhc9x.js → file-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → file-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → file-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → file-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3w5fmr99.js → file-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → file-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → file-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → file-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → file-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → file-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → file-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → file-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5qd3pb7m.js → file-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → file-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → file-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → file-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → file-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → file-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → file-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-922hggd3.js → file-922hggd3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → file-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → file-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → file-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → file-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → file-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → file-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → file-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → file-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → file-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → file-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → file-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → file-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → file-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → file-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → file-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → file-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → file-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → file-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → file-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → file-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → file-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → file-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → file-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hjbc5kem.js → file-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → file-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → file-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → file-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → file-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → file-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → file-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → file-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → file-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → file-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → file-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → file-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → file-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → file-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → file-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → file-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → file-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-twg0f83k.js → file-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → file-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → file-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → file-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → file-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → file-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → file-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → file-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8cydn3q.js → file-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → file-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → file-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → file-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service83,
|
|
3
|
-
node87
|
|
4
|
-
} from "./location-lifecycle-2axye2ft.js";
|
|
5
1
|
import {
|
|
6
2
|
Service82,
|
|
7
3
|
node86
|
|
8
|
-
} from "./
|
|
4
|
+
} from "./file-2zqpyx7j.js";
|
|
5
|
+
import {
|
|
6
|
+
Service81,
|
|
7
|
+
node85
|
|
8
|
+
} from "./file-4091at3p.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-0q0f95c6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event17,
|
|
24
|
+
ID: () => ID11,
|
|
25
|
+
Info: () => Info26,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service68,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node72
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID11 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event17 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID11,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service68 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
54
|
-
const db = (yield*
|
|
55
|
-
const bus = yield*
|
|
53
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
54
|
+
const db = (yield* Service82).db;
|
|
55
|
+
const bus = yield* Service81;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info26({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service68.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info26({
|
|
80
|
+
id: ID11.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event17.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event17.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event17.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node72 = makeGlobalNode({ service: Service68, layer, deps: [node86, node85] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID11, OAuth3, Key3, Value2, Event17, Info26, Service68, node72, exports_credential };
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./file-4091at3p.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./file-safzyg6n.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service45,
|
|
11
|
+
node48
|
|
12
|
+
} from "./file-ymd9ngfh.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service44,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
node47
|
|
20
|
+
} from "./file-xm7z07hf.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service77,
|
|
23
|
+
node81
|
|
24
|
+
} from "./file-2eegacq4.js";
|
|
25
25
|
import {
|
|
26
26
|
Service43,
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
node46
|
|
28
|
+
} from "./file-yvvvp4gn.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-q3t37ft6.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
34
|
+
Service61,
|
|
35
|
+
node65
|
|
36
|
+
} from "./file-r52efjxa.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./file-t4ep399p.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./file-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/shell.ts
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError7,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
51
|
Service: () => Service42,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node45
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -62,7 +62,7 @@ import { AppProcess } from "@opencode/util/process";
|
|
|
62
62
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
63
63
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
64
64
|
import { Global } from "@opencode/util/global";
|
|
65
|
-
class
|
|
65
|
+
class NotFoundError7 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
66
66
|
id: Shell.ID
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
@@ -87,14 +87,14 @@ var cleanupNode = makeGlobalNode({
|
|
|
87
87
|
deps: [FSUtil.node, Global.node]
|
|
88
88
|
});
|
|
89
89
|
var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
90
|
-
const bus = yield*
|
|
91
|
-
const location = yield*
|
|
90
|
+
const bus = yield* Service81;
|
|
91
|
+
const location = yield* Service79;
|
|
92
92
|
const global = yield* Global.Service;
|
|
93
|
-
const shell = yield*
|
|
94
|
-
const environment = yield*
|
|
95
|
-
const hooks = yield*
|
|
93
|
+
const shell = yield* Service44;
|
|
94
|
+
const environment = yield* Service45;
|
|
95
|
+
const hooks = yield* Service77;
|
|
96
96
|
const environments = yield* Service43;
|
|
97
|
-
const config = yield*
|
|
97
|
+
const config = yield* Service61;
|
|
98
98
|
const context = yield* Effect.context();
|
|
99
99
|
const runFork = Effect.runForkWith(context);
|
|
100
100
|
const commands = new Map;
|
|
@@ -115,7 +115,7 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
115
115
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
116
116
|
const command = commands.get(id);
|
|
117
117
|
if (!command)
|
|
118
|
-
return yield* new
|
|
118
|
+
return yield* new NotFoundError7({ id });
|
|
119
119
|
return command;
|
|
120
120
|
});
|
|
121
121
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -128,7 +128,7 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
128
128
|
commands.delete(id);
|
|
129
129
|
if (command.timeoutFiber)
|
|
130
130
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
131
|
-
yield* Deferred.fail(command.done, new
|
|
131
|
+
yield* Deferred.fail(command.done, new NotFoundError7({ id }));
|
|
132
132
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
133
133
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
134
134
|
});
|
|
@@ -316,20 +316,20 @@ var layer = () => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
316
316
|
});
|
|
317
317
|
return Service42.of({ create, list, get, wait, result, timeout, output, remove });
|
|
318
318
|
}));
|
|
319
|
-
var
|
|
319
|
+
var node45 = makeLocationNode({
|
|
320
320
|
service: Service42,
|
|
321
321
|
layer: layer(),
|
|
322
322
|
deps: [
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
node85,
|
|
324
|
+
node83,
|
|
325
325
|
Global.node,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
node47,
|
|
327
|
+
node48,
|
|
328
|
+
node81,
|
|
329
|
+
node46,
|
|
330
|
+
node65,
|
|
331
331
|
cleanupNode
|
|
332
332
|
]
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
export {
|
|
335
|
+
export { NotFoundError7, RETENTION2, DIRECTORY2, Service42, cleanup2, node45, exports_shell4 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-44h5tttr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./file-4091at3p.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./file-4brxhqy9.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-8pryv8c2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID9,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service65
|
|
20
|
+
} from "./file-h1a82ttv.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID8
|
|
23
|
+
} from "./file-j381zx68.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./file-0e9pe9hx.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-wrxzva30.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: ID10.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -157,8 +157,8 @@ var oauth = (app) => ({
|
|
|
157
157
|
var GithubCopilotPlugin2 = define({
|
|
158
158
|
id: "opencode.provider.github.copilot",
|
|
159
159
|
effect: Effect.fn(function* (ctx) {
|
|
160
|
-
const providers = yield*
|
|
161
|
-
const bus = yield*
|
|
160
|
+
const providers = yield* Service65;
|
|
161
|
+
const bus = yield* Service81;
|
|
162
162
|
const loading = Semaphore.makeUnsafe(1);
|
|
163
163
|
const loaded = {};
|
|
164
164
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -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(ID9.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(ID9.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(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"))) {
|
|
218
|
+
models.update(ID9.githubCopilot, ID8.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(
|
|
224
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.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 !== ID9.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 !== ID9.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: ID9.githubCopilot });
|
|
247
247
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
-
if (evt.model.providerID !==
|
|
248
|
+
if (evt.model.providerID !== ID9.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: ID9.githubCopilot });
|
|
257
257
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
258
|
-
if (evt.model.providerID !==
|
|
258
|
+
if (evt.model.providerID !== ID9.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
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service79
|
|
6
|
+
} from "./file-safzyg6n.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service73
|
|
9
|
+
} from "./file-4whbgcxk.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service6
|
|
12
|
+
} from "./file-rtkpxbf2.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service8
|
|
27
|
+
} from "./file-b1ers0rt.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input5,
|
|
36
|
+
Plugin: () => Plugin21,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
38
|
+
name: () => name5,
|
|
39
39
|
toModelContent: () => toModelContent3
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name5 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input5 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin21 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service8;
|
|
62
|
+
const access = yield* Service73;
|
|
63
|
+
const sessionInstructions = yield* Service6;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service79;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name5,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input5,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -180,4 +180,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
180
180
|
`);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { name5, Input5, Plugin21, toModelContent3, exports_read };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiFailedResponseHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-550bvhaj.js";
|
|
4
4
|
import {
|
|
5
5
|
convertToOpenAIResponsesInput2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-j5zkgpj8.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAIResponseFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-3asan66x.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareResponsesTools2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-vykevjvn.js";
|
|
13
13
|
|
|
14
14
|
// src/github-copilot/responses/openai-responses-language-model.ts
|
|
15
15
|
import {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-ry1kfgw7.js";
|
|
7
|
+
import {
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./file-safzyg6n.js";
|
|
7
11
|
import {
|
|
8
12
|
Service74,
|
|
9
13
|
node78
|
|
10
|
-
} from "./
|
|
11
|
-
import {
|
|
12
|
-
Service59,
|
|
13
|
-
node61
|
|
14
|
-
} from "./location-lifecycle-etn8yy9q.js";
|
|
14
|
+
} from "./file-7ynk84wd.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-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: () => Service73,
|
|
26
26
|
externalDirectoryPermission: () => externalDirectoryPermission2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node77,
|
|
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 Service73 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(Service73, Effect.gen(function* () {
|
|
59
59
|
const fs = yield* FSUtil.Service;
|
|
60
|
-
const location = yield*
|
|
61
|
-
const permission = yield*
|
|
60
|
+
const location = yield* Service79;
|
|
61
|
+
const permission = yield* Service74;
|
|
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(Service48, Effect.gen(function* () {
|
|
|
107
107
|
});
|
|
108
108
|
return target;
|
|
109
109
|
});
|
|
110
|
-
return
|
|
110
|
+
return Service73.of({ resolve, authorizeExternal, authorizeRead });
|
|
111
111
|
}));
|
|
112
|
-
var
|
|
112
|
+
var node77 = makeLocationNode({ service: Service73, layer, deps: [FSUtil.node, node83, node78] });
|
|
113
113
|
|
|
114
|
-
export { Kind2, ResolveInput2, externalDirectoryPermission2,
|
|
114
|
+
export { Kind2, ResolveInput2, externalDirectoryPermission2, Service73, resolvePath2, node77, exports_file_access };
|