@opencode/core 0.0.0-dev-21167 → 0.0.0-dev-21173
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{location-rhjbct0v.js → permission-02nrjc1r.js} +6 -6
- package/dist/chunks/{location-v5kskatz.js → permission-07v8h7rd.js} +19 -19
- package/dist/chunks/{location-chy52nxf.js → permission-09m9v7wa.js} +16 -16
- package/dist/chunks/{location-v210v162.js → permission-0javqkgf.js} +9 -9
- package/dist/chunks/{location-fcrkznn8.js → permission-0jwsre1p.js} +5 -5
- package/dist/chunks/{location-ej844vx3.js → permission-0stshzec.js} +1 -1
- package/dist/chunks/{location-0vbcp93d.js → permission-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-85xxa1xb.js → permission-127b9nq3.js} +2 -2
- package/dist/chunks/{location-xfkdt1e3.js → permission-12tgygga.js} +50 -50
- package/dist/chunks/{location-9n3bc4fq.js → permission-14086wcg.js} +24 -24
- package/dist/chunks/{location-yp2x3t23.js → permission-1acjjqhc.js} +4 -4
- package/dist/chunks/{location-bzeyqsqd.js → permission-1ep4rre3.js} +4 -4
- package/dist/chunks/{location-bjx1sjef.js → permission-1ffvrpkg.js} +6 -6
- package/dist/chunks/{location-2r1q1mzk.js → permission-1ve0sr6a.js} +14 -14
- package/dist/chunks/{location-3s9mjem9.js → permission-1x3few19.js} +8 -8
- package/dist/chunks/{location-q17z9dx8.js → permission-1x75wf9g.js} +5 -5
- package/dist/chunks/{location-980kq1k5.js → permission-217f33nw.js} +5 -5
- package/dist/chunks/{location-vp03p32s.js → permission-2284a349.js} +13 -13
- package/dist/chunks/{location-74e7m4fh.js → permission-2h6rptny.js} +42 -42
- package/dist/chunks/permission-2jd6s88s.js +257 -0
- package/dist/chunks/{location-967benbv.js → permission-2r1j4600.js} +11 -11
- package/dist/chunks/{location-sf3h3gbp.js → permission-2zrb9pfn.js} +24 -24
- package/dist/chunks/{location-y4fre6jr.js → permission-34c6xbdq.js} +29 -29
- package/dist/chunks/{location-3fc6dm20.js → permission-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → permission-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-3hwn7j4h.js → permission-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-3gn0rhd5.js → permission-3rb3ap3k.js} +68 -68
- package/dist/chunks/{location-3smtnn6g.js → permission-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-syyme4qc.js → permission-3tsz0k1y.js} +16 -16
- package/dist/chunks/{location-3tvqynh2.js → permission-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-3zsf4n22.js → permission-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-946prdfx.js → permission-44ez1h4z.js} +36 -36
- package/dist/chunks/{location-2k9fjx65.js → permission-47jkzegy.js} +5 -5
- package/dist/chunks/{location-tystnwaz.js → permission-482br3es.js} +11 -11
- package/dist/chunks/{location-5dkn69vz.js → permission-4j4tgtq5.js} +4 -4
- package/dist/chunks/{location-77q3x2ey.js → permission-4t2fw5rj.js} +15 -15
- package/dist/chunks/{location-6yz0wx8n.js → permission-4xpgt2w9.js} +5 -5
- package/dist/chunks/{location-5ppqnkm2.js → permission-52nvs3jd.js} +8 -8
- package/dist/chunks/{location-54ma36ye.js → permission-54ma36ye.js} +1 -1
- package/dist/chunks/{location-5gcpkkgh.js → permission-5e16jgyb.js} +4 -4
- package/dist/chunks/{location-5m9w47nd.js → permission-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-e3qxr5gk.js → permission-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-9hn6k4tm.js → permission-5xtgfte3.js} +8 -8
- package/dist/chunks/{location-q0kdvkfz.js → permission-62weq7xx.js} +17 -17
- package/dist/chunks/{location-gqqemsvr.js → permission-679rbtpy.js} +11 -11
- package/dist/chunks/{location-6827pfxn.js → permission-6827pfxn.js} +1 -1
- package/dist/chunks/{location-ws642w3m.js → permission-6dtzrycv.js} +30 -30
- package/dist/chunks/{location-p141jy73.js → permission-6frk1szt.js} +4 -4
- package/dist/chunks/{location-a8y8kc78.js → permission-6mdckws8.js} +26 -26
- package/dist/chunks/{location-6pc27hjz.js → permission-6pc27hjz.js} +2 -2
- package/dist/chunks/{location-jfw8sxf1.js → permission-6qm11y7v.js} +4 -4
- package/dist/chunks/{location-rnb0fp5b.js → permission-6rvxw5sn.js} +11 -11
- package/dist/chunks/{location-a7ysfpsw.js → permission-6t7m39cn.js} +25 -25
- package/dist/chunks/{location-fexx2wnt.js → permission-6wb9g5se.js} +4 -4
- package/dist/chunks/{location-6xb47vfp.js → permission-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-hw962j61.js → permission-71cbbrtp.js} +24 -24
- package/dist/chunks/{location-2pecxe0h.js → permission-740dsj1m.js} +334 -334
- package/dist/chunks/{location-775gj3j1.js → permission-775gj3j1.js} +2 -2
- package/dist/chunks/{location-7bmhse3q.js → permission-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-d9x1gjen.js → permission-7erdcn4e.js} +89 -89
- package/dist/chunks/{location-t74mf4k5.js → permission-7vnwjbg5.js} +14 -14
- package/dist/chunks/{location-ek28ef31.js → permission-82d2ktkz.js} +35 -35
- package/dist/chunks/{location-6764vk3q.js → permission-86n1mj31.js} +45 -45
- package/dist/chunks/{location-65mft1we.js → permission-86vk3z46.js} +4 -4
- package/dist/chunks/{location-gbgj9g7h.js → permission-894fjdzg.js} +25 -25
- package/dist/chunks/{location-tcezcvh9.js → permission-89znhe33.js} +4 -4
- package/dist/chunks/{location-ngts6ef0.js → permission-8ank75fn.js} +8 -8
- package/dist/chunks/{location-gws9cbsr.js → permission-8c1f8xcx.js} +14 -14
- package/dist/chunks/{location-8rw554nj.js → permission-8ewgqdn5.js} +3 -3
- package/dist/chunks/{location-gq1wrjh7.js → permission-8jjg13rq.js} +8 -8
- package/dist/chunks/{location-8m6m0r52.js → permission-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-86bv6903.js → permission-8xncanqv.js} +6 -6
- package/dist/chunks/{location-8rbs03yj.js → permission-8zc1cckh.js} +7 -7
- package/dist/chunks/{location-p6xhd61c.js → permission-9013ynpr.js} +15 -15
- package/dist/chunks/{location-80rg9w16.js → permission-90e9d9f0.js} +3 -3
- package/dist/chunks/{location-n7jd5fce.js → permission-91kj5k6h.js} +23 -23
- package/dist/chunks/{location-91qna3x0.js → permission-91qna3x0.js} +3 -3
- package/dist/chunks/{location-sxzvkvgj.js → permission-93ygb5af.js} +6 -6
- package/dist/chunks/{location-4mb9pp0y.js → permission-9c9gt24k.js} +36 -36
- package/dist/chunks/{location-k0rwae6a.js → permission-9d88y16z.js} +10 -10
- package/dist/chunks/{location-3kyydbkc.js → permission-9j1099w1.js} +18 -18
- package/dist/chunks/{location-4r8naqcn.js → permission-9pvks7pb.js} +9 -9
- package/dist/chunks/{location-f5rny02c.js → permission-9vmy51qk.js} +25 -25
- package/dist/chunks/{location-kecqjjhm.js → permission-a01j9zgm.js} +5 -5
- package/dist/chunks/{location-76wwsgby.js → permission-a1d774nw.js} +11 -11
- package/dist/chunks/{location-x6k905z3.js → permission-a7q9m0hx.js} +10 -10
- package/dist/chunks/{location-3357mp80.js → permission-aef7rqc7.js} +18 -18
- package/dist/chunks/{location-06x8he3q.js → permission-afdssyjb.js} +4 -4
- package/dist/chunks/{location-br8m9pad.js → permission-am1g5jcw.js} +83 -83
- package/dist/chunks/{location-0ayascqm.js → permission-ar1n46mt.js} +5 -5
- package/dist/chunks/{location-8wmyvevz.js → permission-azvvqzwa.js} +18 -18
- package/dist/chunks/{location-f7d2f8sr.js → permission-ba7z67q3.js} +37 -37
- package/dist/chunks/{location-4cyjj1kj.js → permission-bhfq43n9.js} +1 -1
- package/dist/chunks/{location-r9q2q9h8.js → permission-bhvq7qsz.js} +9 -9
- package/dist/chunks/{location-88q2kk7w.js → permission-bkn1ecx9.js} +14 -14
- package/dist/chunks/{location-x4t79far.js → permission-bq6kd7ym.js} +5 -5
- package/dist/chunks/{location-79mg13ta.js → permission-bsvpxg9q.js} +32 -32
- package/dist/chunks/{location-0br3sbwn.js → permission-btbmdjwj.js} +4 -4
- package/dist/chunks/{location-508w5ebs.js → permission-byj9yqak.js} +21 -21
- package/dist/chunks/{location-s3hasvfa.js → permission-c1w56vrw.js} +10 -10
- package/dist/chunks/{location-r06fjp3p.js → permission-c23mvb43.js} +13 -13
- package/dist/chunks/{location-c41wscbt.js → permission-c41wscbt.js} +2 -2
- package/dist/chunks/{location-c8ax2afj.js → permission-c8ax2afj.js} +2 -2
- package/dist/chunks/{location-gq9rs75s.js → permission-cgbfxkfx.js} +19 -19
- package/dist/chunks/{location-j5zx779k.js → permission-cnjn3bnt.js} +186 -186
- package/dist/chunks/{location-d4xra4yg.js → permission-cqqwjfhv.js} +8 -8
- package/dist/chunks/{location-sx6g28q1.js → permission-d9yvnbgr.js} +15 -15
- package/dist/chunks/{location-279651ef.js → permission-dp9dz0jq.js} +20 -20
- package/dist/chunks/{location-dpkg50ah.js → permission-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-ma9xypmg.js → permission-drsr8dxn.js} +7 -7
- package/dist/chunks/{location-drwq78ky.js → permission-drwq78ky.js} +1 -1
- package/dist/chunks/{location-dsc0h7gk.js → permission-dvd777c1.js} +23 -23
- package/dist/chunks/{location-qz3gmm2p.js → permission-e24zdz5m.js} +10 -10
- package/dist/chunks/{location-1g4xzv17.js → permission-e322r7pm.js} +14 -14
- package/dist/chunks/{location-z9yvgd5a.js → permission-e4q6xfnd.js} +32 -32
- package/dist/chunks/{location-e80seqcp.js → permission-e80seqcp.js} +1 -1
- package/dist/chunks/{location-2ym858dx.js → permission-e854n5p3.js} +9 -9
- package/dist/chunks/{location-d2326s1m.js → permission-e8xftk41.js} +33 -33
- package/dist/chunks/{location-dmspabrr.js → permission-ed1k8py6.js} +9 -9
- package/dist/chunks/{location-eej6y6fw.js → permission-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-ef5x83kb.js → permission-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-yvf15whc.js → permission-eq0rhscs.js} +11 -11
- package/dist/chunks/{location-xkva1xr6.js → permission-erv48bnj.js} +25 -25
- package/dist/chunks/{location-es1vcfrp.js → permission-es1vcfrp.js} +3 -3
- package/dist/chunks/{location-x5mh70ph.js → permission-ewftvr95.js} +18 -18
- package/dist/chunks/permission-ewqg9zyh.js +26 -0
- package/dist/chunks/{location-96pkh5sd.js → permission-ex63grbc.js} +18 -18
- package/dist/chunks/{location-tj4h5t6p.js → permission-f9veggc8.js} +3 -3
- package/dist/chunks/{location-fcy631f0.js → permission-fcy631f0.js} +1 -1
- package/dist/chunks/{location-t6g1a1tj.js → permission-fdv2f9s8.js} +4 -4
- package/dist/chunks/{location-q229fd3c.js → permission-fdy4yjdv.js} +26 -26
- package/dist/chunks/{location-1swd5j6x.js → permission-fef0arss.js} +23 -23
- package/dist/chunks/{location-y54hr7f3.js → permission-fhff0x2d.js} +9 -9
- package/dist/chunks/{location-0tpm4bjb.js → permission-fmf6086p.js} +35 -35
- package/dist/chunks/{location-fn9t717r.js → permission-fn9t717r.js} +3 -3
- package/dist/chunks/{location-7mawf7qb.js → permission-fpvv6138.js} +6 -6
- package/dist/chunks/{location-c765mh8b.js → permission-ft3hqk2c.js} +9 -9
- package/dist/chunks/{location-11dqjexa.js → permission-fwwk8vbp.js} +9 -9
- package/dist/chunks/{location-khmqacep.js → permission-fxaymqdw.js} +4 -4
- package/dist/chunks/{location-gd4qta3r.js → permission-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-e304bmef.js → permission-gehf44jm.js} +11 -11
- package/dist/chunks/{location-addxnjmp.js → permission-gqtdsdt7.js} +4 -4
- package/dist/chunks/{location-ms93yq6r.js → permission-grxcxy9j.js} +8 -8
- package/dist/chunks/{location-4jdk9bya.js → permission-h3wqeaw2.js} +35 -35
- package/dist/chunks/{location-h6vf3j39.js → permission-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-31xfzrxg.js → permission-h7s7r6s9.js} +5 -5
- package/dist/chunks/{location-07770t2t.js → permission-had4kgfk.js} +4 -4
- package/dist/chunks/{location-gbpyn874.js → permission-hafq2as1.js} +33 -33
- package/dist/chunks/{location-hgz4x7wa.js → permission-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-djcsq056.js → permission-hpcv5792.js} +23 -23
- package/dist/chunks/{location-br3dfngf.js → permission-hpvpcn7a.js} +4 -4
- package/dist/chunks/{location-mas8jxpn.js → permission-hq7ypz19.js} +11 -11
- package/dist/chunks/{location-nj7hqrdc.js → permission-hqxt2sjs.js} +12 -12
- package/dist/chunks/permission-ht5y0zrb.js +18 -0
- package/dist/chunks/{location-4dr1jy63.js → permission-j01kmr5k.js} +24 -24
- package/dist/chunks/{location-yrjdz1vx.js → permission-j3b4mjbm.js} +24 -24
- package/dist/chunks/{location-95046942.js → permission-j4c8x1sc.js} +3 -3
- package/dist/chunks/{location-bh8v5ww5.js → permission-j4gjcjtj.js} +20 -20
- package/dist/chunks/{location-pt7wvqpt.js → permission-j5c0rtpf.js} +16 -16
- package/dist/chunks/{location-gvtxftkn.js → permission-jc443jqb.js} +28 -28
- package/dist/chunks/{location-xgsyd334.js → permission-jcm4bbxk.js} +27 -27
- package/dist/chunks/{location-n487pwzc.js → permission-jhze0r06.js} +15 -15
- package/dist/chunks/{location-4bq5bgy2.js → permission-jm1y66nn.js} +32 -32
- package/dist/chunks/{location-t3crqbkt.js → permission-jwn3wsmf.js} +6 -6
- package/dist/chunks/{location-h8j75c1p.js → permission-k0419ymk.js} +17 -17
- package/dist/chunks/{location-nrp9mwhy.js → permission-k2a504bc.js} +12 -12
- package/dist/chunks/{location-vd93shqe.js → permission-k3ytq7h8.js} +25 -25
- package/dist/chunks/{location-8twfw7wm.js → permission-k72kjj42.js} +17 -17
- package/dist/chunks/{location-596mpw5j.js → permission-k9b3hqck.js} +32 -32
- package/dist/chunks/{location-w319agzg.js → permission-kcbr4h58.js} +11 -11
- package/dist/chunks/{location-0fhz1623.js → permission-kefz2fe2.js} +21 -21
- package/dist/chunks/{location-ez5ayfgk.js → permission-kgfr93wy.js} +11 -11
- package/dist/chunks/{location-sff9pyzt.js → permission-kgn3ypzw.js} +15 -15
- package/dist/chunks/{location-f85jeg19.js → permission-kq8zwz2w.js} +22 -22
- package/dist/chunks/{location-evnsakp9.js → permission-kqjv193p.js} +30 -30
- package/dist/chunks/{location-kwb1v3vj.js → permission-kwb1v3vj.js} +1 -1
- package/dist/chunks/{location-m9w0rfyh.js → permission-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-maspj1v3.js → permission-maspj1v3.js} +1 -1
- package/dist/chunks/{location-r26zpbq3.js → permission-mavth47d.js} +24 -24
- package/dist/chunks/{location-n6pkkeec.js → permission-mcyszzrv.js} +47 -47
- package/dist/chunks/{location-hw91664y.js → permission-mg40r85c.js} +3 -3
- package/dist/chunks/{location-d8exgxg3.js → permission-mssvzdjt.js} +18 -18
- package/dist/chunks/{location-ba07h9gm.js → permission-mtpeagzc.js} +3 -3
- package/dist/chunks/{location-pesmq38c.js → permission-n33x0n62.js} +4 -4
- package/dist/chunks/{location-r6kb5pcb.js → permission-n3cnth5e.js} +11 -11
- package/dist/chunks/{location-6xadtkfd.js → permission-njesq0nn.js} +24 -24
- package/dist/chunks/{location-9y8p4kwc.js → permission-nkttc7hj.js} +16 -16
- package/dist/chunks/{location-kjbqd4k5.js → permission-p0sm3d7e.js} +3 -3
- package/dist/chunks/{location-xpakvqd9.js → permission-p2tdy616.js} +17 -17
- package/dist/chunks/{location-dxq1tm2j.js → permission-p345wmns.js} +7 -7
- package/dist/chunks/{location-3gf5j6sb.js → permission-phj4qgcq.js} +13 -13
- package/dist/chunks/{location-pjvnvgmy.js → permission-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → permission-pknna89w.js} +1 -1
- package/dist/chunks/{location-zv1es41t.js → permission-pr8tz6aa.js} +11 -11
- package/dist/chunks/{location-9tg3nv82.js → permission-ptcfasrv.js} +29 -29
- package/dist/chunks/{location-49kmjwym.js → permission-pyw7ptjn.js} +18 -18
- package/dist/chunks/{location-t2m0r48e.js → permission-q8rx9e2s.js} +8 -8
- package/dist/chunks/{location-tm4g9m88.js → permission-qaxwxvv2.js} +5 -5
- package/dist/chunks/{location-yrq96tw7.js → permission-qcz0wrwd.js} +56 -56
- package/dist/chunks/{location-2dqxsat8.js → permission-qf384av7.js} +46 -46
- package/dist/chunks/{location-azwc7e5n.js → permission-qgv7edb0.js} +22 -22
- package/dist/chunks/{location-aznyfhv6.js → permission-qkk6pvw8.js} +11 -11
- package/dist/chunks/{location-wgkxnvdd.js → permission-qksshjc5.js} +49 -49
- package/dist/chunks/{location-qnc92qwc.js → permission-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-72nqjsff.js → permission-qptxjfpk.js} +14 -14
- package/dist/chunks/{location-qsdy395h.js → permission-qsdy395h.js} +1 -1
- package/dist/chunks/{location-7a08grbq.js → permission-qvw17ysa.js} +10 -10
- package/dist/chunks/{location-qd7chy0n.js → permission-r4srm0at.js} +11 -11
- package/dist/chunks/{location-2170x3g5.js → permission-r64pe9ar.js} +11 -11
- package/dist/chunks/{location-kdjm1ewm.js → permission-rd8qctj1.js} +6 -6
- package/dist/chunks/{location-rdw6cm16.js → permission-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-g9z16n36.js → permission-recxsxx3.js} +9 -9
- package/dist/chunks/{location-8r1bk9m8.js → permission-rjsr3vcn.js} +34 -34
- package/dist/chunks/{location-04p168fs.js → permission-rya1tkyh.js} +48 -48
- package/dist/chunks/{location-ratrq7cm.js → permission-ryr25ayn.js} +4 -4
- package/dist/chunks/{location-agxtpttf.js → permission-s0ekgt81.js} +17 -17
- package/dist/chunks/{location-7h1ysmxt.js → permission-s6pmxk2t.js} +22 -22
- package/dist/chunks/{location-vtevn8b1.js → permission-sdqebhr8.js} +53 -53
- package/dist/chunks/{location-mgcym914.js → permission-sfhytqpz.js} +34 -34
- package/dist/chunks/{location-8xd334rx.js → permission-sg7hg3kh.js} +30 -30
- package/dist/chunks/{location-35gpyver.js → permission-sjj1ezhr.js} +10 -10
- package/dist/chunks/{location-3zkbaef1.js → permission-sracg0sp.js} +45 -45
- package/dist/chunks/{location-d5wrgfzq.js → permission-swfsrv1g.js} +3 -3
- package/dist/chunks/{location-5hzva5en.js → permission-sxyek8tm.js} +21 -21
- package/dist/chunks/{location-syv4x271.js → permission-syv4x271.js} +1 -1
- package/dist/chunks/{location-9ykzgad9.js → permission-t2jeqs59.js} +10 -10
- package/dist/chunks/{location-y729g6m6.js → permission-t50d1m6t.js} +6 -6
- package/dist/chunks/{location-yqt3nf50.js → permission-tac8m9nk.js} +17 -17
- package/dist/chunks/{location-tazgh4e4.js → permission-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-r1j6ejcm.js → permission-tbfew0k9.js} +5 -5
- package/dist/chunks/{location-tdstcens.js → permission-tdstcens.js} +1 -1
- package/dist/chunks/{location-tkb22qbm.js → permission-tkb22qbm.js} +2 -2
- package/dist/chunks/{location-tm0kqsz3.js → permission-tm0kqsz3.js} +1 -1
- package/dist/chunks/{location-8jer7cp2.js → permission-tsv76eat.js} +29 -29
- package/dist/chunks/{location-y9wpg32p.js → permission-twrxp6fg.js} +7 -7
- package/dist/chunks/{location-kqv3x6rj.js → permission-txm3e8qz.js} +9 -9
- package/dist/chunks/{location-tyytaxap.js → permission-tyytaxap.js} +1 -1
- package/dist/chunks/{location-v7p4zvkq.js → permission-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-5srbszfv.js → permission-vem2bndm.js} +13 -13
- package/dist/chunks/{location-veqvce7d.js → permission-veqvce7d.js} +1 -1
- package/dist/chunks/{location-t1v93gsh.js → permission-vhs5kszj.js} +24 -24
- package/dist/chunks/{location-q2yp5mm4.js → permission-vjq3qjw7.js} +10 -10
- package/dist/chunks/{location-xn39yem9.js → permission-vn7rx3mx.js} +14 -14
- package/dist/chunks/{location-77s5kvpz.js → permission-vwfnp5qh.js} +23 -23
- package/dist/chunks/{location-ecd3m7kj.js → permission-vy0dehag.js} +11 -11
- package/dist/chunks/{location-vzs5sf6e.js → permission-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-84txncab.js → permission-w1eejvng.js} +5 -5
- package/dist/chunks/{location-7bbe0ka3.js → permission-w35dv4fm.js} +43 -43
- package/dist/chunks/{location-w3wsvvr9.js → permission-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-p76n1axe.js → permission-w8hz4tvn.js} +51 -51
- package/dist/chunks/{location-wd87259q.js → permission-wd87259q.js} +1 -1
- package/dist/chunks/{location-ha3n25mh.js → permission-wfxrttv2.js} +18 -18
- package/dist/chunks/{location-hsjvmpjh.js → permission-wms60x7z.js} +8 -8
- package/dist/chunks/{location-nynfj6vr.js → permission-wnq6p54b.js} +2 -2
- package/dist/chunks/{location-xsykp6z4.js → permission-wsx3hvt7.js} +15 -15
- package/dist/chunks/{location-2ryng5r3.js → permission-wte75qjz.js} +4 -4
- package/dist/chunks/{location-e6tgbxcd.js → permission-x57v9ssy.js} +30 -30
- package/dist/chunks/{location-f7fbxzn5.js → permission-xf9p42ms.js} +5 -5
- package/dist/chunks/{location-jhdf29st.js → permission-xt4njr3s.js} +1 -1
- package/dist/chunks/{location-f6w3bzx6.js → permission-xvxcje8t.js} +5 -5
- package/dist/chunks/{location-0ghrdfc7.js → permission-xydg9nj3.js} +16 -16
- package/dist/chunks/{location-81rc8gm8.js → permission-y14210vx.js} +18 -18
- package/dist/chunks/{location-y1fvbwt7.js → permission-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-qdy98gs8.js → permission-y6gk02k8.js} +13 -13
- package/dist/chunks/{location-y7nndgyc.js → permission-y7nndgyc.js} +2 -2
- package/dist/chunks/{location-hewkcgwf.js → permission-ybx72fxx.js} +13 -13
- package/dist/chunks/{location-7hnrkwye.js → permission-ybz1v3hc.js} +21 -21
- package/dist/chunks/{location-yy653qm8.js → permission-ycjyx8h4.js} +13 -13
- package/dist/chunks/{location-mf02evs1.js → permission-ykt43d86.js} +25 -25
- package/dist/chunks/{location-f3m5b7dq.js → permission-ykx2tj4g.js} +25 -25
- package/dist/chunks/{location-8erdrt3b.js → permission-ypbhf5bf.js} +20 -20
- package/dist/chunks/{location-2656ff51.js → permission-yq6drjdh.js} +24 -24
- package/dist/chunks/{location-d858xzj7.js → permission-z0aj456m.js} +4 -4
- package/dist/chunks/{location-z0bkrqjs.js → permission-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-wvgy3s2v.js → permission-z0sxxenh.js} +44 -44
- package/dist/chunks/{location-c9phwppx.js → permission-z12mz8nn.js} +15 -15
- package/dist/chunks/{location-k550d0f8.js → permission-zp0dxnma.js} +29 -29
- package/dist/chunks/{location-zr2ceqn5.js → permission-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-af6x59c3.js → permission-zv85pfc2.js} +19 -19
- package/dist/chunks/{location-zxq2ej10.js → permission-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 +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +114 -114
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +219 -219
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +104 -104
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- 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 +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/location-4v7qdvcn.js +0 -18
- package/dist/chunks/location-b84aqzgf.js +0 -257
- package/dist/chunks/location-xzhrxm47.js +0 -26
- /package/dist/chunks/{location-0qkdqm5v.js → permission-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → permission-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → permission-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → permission-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → permission-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → permission-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → permission-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → permission-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → permission-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → permission-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → permission-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → permission-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3t0ybcrp.js → permission-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → permission-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → permission-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → permission-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → permission-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → permission-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → permission-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → permission-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → permission-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → permission-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → permission-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → permission-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → permission-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → permission-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → permission-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → permission-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → permission-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → permission-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → permission-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → permission-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → permission-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → permission-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → permission-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → permission-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → permission-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → permission-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → permission-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → permission-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → permission-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → permission-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → permission-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → permission-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → permission-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → permission-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → permission-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → permission-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → permission-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → permission-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → permission-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → permission-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → permission-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → permission-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → permission-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → permission-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → permission-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → permission-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → permission-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → permission-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → permission-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → permission-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → permission-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → permission-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → permission-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → permission-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → permission-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → permission-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → permission-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → permission-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → permission-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → permission-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → permission-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → permission-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → permission-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-pkyv6v7h.js → permission-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{location-pyv0edze.js → permission-pyv0edze.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → permission-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → permission-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → permission-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → permission-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → permission-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → permission-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → permission-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → permission-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → permission-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → permission-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → permission-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → permission-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → permission-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → permission-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wjj7prxr.js → permission-wjj7prxr.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → permission-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → permission-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → permission-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → permission-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → permission-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → permission-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → permission-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → permission-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → permission-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./permission-f9veggc8.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./permission-86vk3z46.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service83,
|
|
14
|
+
node87
|
|
15
|
+
} from "./permission-hqxt2sjs.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID17,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info28,
|
|
20
20
|
UpdateInput5,
|
|
21
|
-
|
|
21
|
+
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./permission-0javqkgf.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./permission-c41wscbt.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./permission-c8ax2afj.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./permission-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID16,
|
|
40
|
+
Info: () => Info27,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service82,
|
|
44
44
|
UpdateInput: () => UpdateInput4,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node86,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID16 = ID17;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info27 = Info28;
|
|
63
63
|
var UpdateInput4 = UpdateInput5;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID16
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service82 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service83;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event20.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID16.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event20.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID16.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID16.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID16.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID16.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* persist({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID16.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID16.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID16.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service82.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node86 = makeGlobalNode({
|
|
310
|
+
service: Service82,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node89, node90, FSUtil.node,
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node87, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service82;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node86]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID16, Vcs2, Current2, Info27, UpdateInput4, NotFoundError11, root2, Service82, node86, sweepNode2, exports_project };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Key4,
|
|
3
3
|
removed2,
|
|
4
4
|
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-02nrjc1r.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID5,
|
|
9
9
|
Name2,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
available2,
|
|
11
|
+
Service32,
|
|
12
|
+
node35
|
|
13
|
+
} from "./permission-14086wcg.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./permission-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/skill/instructions.ts
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
Service: () =>
|
|
22
|
-
SkillInstructions: () =>
|
|
23
|
-
node: () =>
|
|
19
|
+
var exports_instructions3 = {};
|
|
20
|
+
__export(exports_instructions3, {
|
|
21
|
+
Service: () => Service25,
|
|
22
|
+
SkillInstructions: () => exports_instructions3,
|
|
23
|
+
node: () => node29
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
27
|
var Summary = Schema.Struct({
|
|
28
|
-
id:
|
|
28
|
+
id: ID5,
|
|
29
29
|
name: Name2,
|
|
30
30
|
description: Schema.String
|
|
31
31
|
});
|
|
@@ -60,15 +60,15 @@ var update = (previous, current) => {
|
|
|
60
60
|
`);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
class
|
|
63
|
+
class Service25 extends Context.Service()("@opencode/SkillInstructions") {
|
|
64
64
|
}
|
|
65
|
-
var layer = Layer.effect(
|
|
66
|
-
const skills = yield*
|
|
67
|
-
return
|
|
65
|
+
var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
66
|
+
const skills = yield* Service32;
|
|
67
|
+
return Service25.of({
|
|
68
68
|
load: Effect.fn("SkillInstructions.load")(function* (permissions) {
|
|
69
|
-
const available =
|
|
69
|
+
const available = available2(yield* skills.list(), permissions).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
70
70
|
return make20({
|
|
71
|
-
key:
|
|
71
|
+
key: Key4.make("core/skill-guidance"),
|
|
72
72
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
73
73
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
74
74
|
render: {
|
|
@@ -80,6 +80,6 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
80
80
|
})
|
|
81
81
|
});
|
|
82
82
|
}));
|
|
83
|
-
var
|
|
83
|
+
var node29 = makeLocationNode({ service: Service25, layer, deps: [node35] });
|
|
84
84
|
|
|
85
|
-
export {
|
|
85
|
+
export { Service25, node29, exports_instructions3 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID6,
|
|
6
|
+
Service38
|
|
7
|
+
} from "./permission-k3ytq7h8.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-mtpeagzc.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./permission-8xncanqv.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./permission-es1vcfrp.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./permission-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* Service38;
|
|
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,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./permission-86vk3z46.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event17,
|
|
7
|
+
Service69,
|
|
8
|
+
node72
|
|
9
|
+
} from "./permission-x57v9ssy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service48,
|
|
12
|
+
node52
|
|
13
|
+
} from "./permission-vhs5kszj.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./permission-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service81,
|
|
19
|
+
node85
|
|
20
|
+
} from "./permission-3tsz0k1y.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./permission-kwb1v3vj.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./permission-ewftvr95.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names3,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./permission-e24zdz5m.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./permission-6827pfxn.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
36
|
+
Service52,
|
|
37
|
+
Event12,
|
|
38
|
+
node56
|
|
39
|
+
} from "./permission-dp9dz0jq.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./permission-9rqn6x4v.js";
|
|
43
43
|
|
|
44
44
|
// src/config.ts
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
|
-
Options: () =>
|
|
49
|
-
Service: () =>
|
|
48
|
+
Options: () => Options4,
|
|
49
|
+
Service: () => Service47,
|
|
50
50
|
Test: () => Test2,
|
|
51
|
-
configured: () =>
|
|
51
|
+
configured: () => configured5,
|
|
52
52
|
latest: () => latest2,
|
|
53
|
-
layer: () =>
|
|
54
|
-
node: () =>
|
|
53
|
+
layer: () => layer20,
|
|
54
|
+
node: () => node51,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -67,7 +67,7 @@ import { ChildProcess } from "effect/process";
|
|
|
67
67
|
function latest2(entries, key) {
|
|
68
68
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var Options4 = Schema.Struct({
|
|
71
71
|
project: Schema.optional(Schema.Boolean),
|
|
72
72
|
global: Schema.optional(Schema.Boolean),
|
|
73
73
|
system: Schema.optional(Schema.Union([Schema.Boolean, Schema.String])),
|
|
@@ -76,7 +76,7 @@ var Options8 = Schema.Struct({
|
|
|
76
76
|
content: Schema.optional(Schema.String)
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service47 extends Context.Service()("@opencode/Config") {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -94,16 +94,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
94
94
|
setEntries: (next) => Ref.set(entries, next),
|
|
95
95
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
96
96
|
});
|
|
97
|
-
return Context.empty().pipe(Context.add(
|
|
97
|
+
return Context.empty().pipe(Context.add(Service47, service), Context.add(Test2, service));
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var layer20 = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const watcher = yield*
|
|
101
|
+
const location = yield* Service81;
|
|
102
|
+
const watcher = yield* Service48;
|
|
103
103
|
const bus = yield* Service85;
|
|
104
|
-
const credentials = yield*
|
|
104
|
+
const credentials = yield* Service69;
|
|
105
105
|
const globalService = yield* Global.Service;
|
|
106
|
-
const wellknown = yield*
|
|
106
|
+
const wellknown = yield* Service52;
|
|
107
107
|
const processes = yield* AppProcess.Service;
|
|
108
108
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
109
109
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -186,7 +186,7 @@ var layer24 = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
188
188
|
return [
|
|
189
|
-
...yield* Effect.forEach(
|
|
189
|
+
...yield* Effect.forEach(names3, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
190
190
|
new Directory({ type: "directory", path: directory })
|
|
191
191
|
];
|
|
192
192
|
});
|
|
@@ -254,8 +254,8 @@ var layer24 = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
254
254
|
}, (effect) => reloadLock.withPermit(effect));
|
|
255
255
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
256
256
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
258
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
259
259
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
260
260
|
if (!wellknown.snapshot().length)
|
|
261
261
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var layer24 = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
268
268
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
269
269
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
270
270
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
271
|
-
const candidates =
|
|
271
|
+
const candidates = names3.map((name) => path.join(directory, name));
|
|
272
272
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
273
273
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
274
274
|
`;
|
|
@@ -283,7 +283,7 @@ var layer24 = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
283
283
|
`);
|
|
284
284
|
yield* requestReload;
|
|
285
285
|
}, (effect) => updateLock.withPermit(effect));
|
|
286
|
-
return
|
|
286
|
+
return Service47.of({
|
|
287
287
|
entries: Effect.fnUntraced(function* () {
|
|
288
288
|
return configs;
|
|
289
289
|
}),
|
|
@@ -295,22 +295,22 @@ var layer24 = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
295
295
|
update
|
|
296
296
|
});
|
|
297
297
|
}));
|
|
298
|
-
function
|
|
298
|
+
function configured5(options) {
|
|
299
299
|
return makeLocationNode({
|
|
300
|
-
service:
|
|
301
|
-
layer:
|
|
300
|
+
service: Service47,
|
|
301
|
+
layer: layer20(options),
|
|
302
302
|
deps: [
|
|
303
|
-
|
|
303
|
+
node52,
|
|
304
304
|
node89,
|
|
305
305
|
FSUtil.node,
|
|
306
306
|
Global.node,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
node85,
|
|
308
|
+
node72,
|
|
309
|
+
node56,
|
|
310
310
|
AppProcess.node
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var node51 = configured5();
|
|
315
315
|
|
|
316
|
-
export { latest2,
|
|
316
|
+
export { latest2, Options4, Service47, Test2, testLayer2, layer20, configured5, node51, exports_config };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-pr8tz6aa.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
MAX_RESPONSE_BYTES3,
|
|
9
9
|
call2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-1ffvrpkg.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./permission-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin17,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
|
-
endpoint: () =>
|
|
20
|
+
endpoint: () => endpoint2
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Duration, Effect, Option, Schema } from "effect";
|
|
24
24
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
25
|
-
var
|
|
25
|
+
var endpoint2 = "https://agent.tinyfish.ai/mcp";
|
|
26
26
|
var McpInput = Schema.Struct({
|
|
27
27
|
query: Schema.String
|
|
28
28
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin17 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -78,7 +78,7 @@ var Plugin6 = define({
|
|
|
78
78
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
79
79
|
};
|
|
80
80
|
const session = credential?.type === "key" ? yield* initialize(http, headers) : undefined;
|
|
81
|
-
const result = yield* call2(http,
|
|
81
|
+
const result = yield* call2(http, endpoint2, "search", { input: McpInput, output: McpOutput }, { query: input.query }, { ...headers, ...session === undefined ? {} : { "Mcp-Session-Id": session } });
|
|
82
82
|
const content = result?.content.find((item) => item.text);
|
|
83
83
|
const response = content ? Option.getOrUndefined(decodeSearchResponse(content.text)) : undefined;
|
|
84
84
|
return response?.results.map((item) => ({
|
|
@@ -94,7 +94,7 @@ var Plugin6 = define({
|
|
|
94
94
|
});
|
|
95
95
|
var initialize = (http, headers) => Effect.gen(function* () {
|
|
96
96
|
const client = HttpClient.withScope(HttpClient.filterStatusOk(http));
|
|
97
|
-
const request = yield* HttpClientRequest.post(
|
|
97
|
+
const request = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders(headers), HttpClientRequest.schemaBodyJson(InitializeRequest)({
|
|
98
98
|
jsonrpc: "2.0",
|
|
99
99
|
id: 1,
|
|
100
100
|
method: "initialize",
|
|
@@ -105,11 +105,11 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
105
105
|
}
|
|
106
106
|
}));
|
|
107
107
|
const response = yield* client.execute(request);
|
|
108
|
-
yield* collectBoundedResponseBody2(response,
|
|
108
|
+
yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`initialize response exceeded ${MAX_RESPONSE_BYTES3} bytes`));
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
112
|
-
const notification = yield* HttpClientRequest.post(
|
|
112
|
+
const notification = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders({ ...headers, "Mcp-Session-Id": session }), HttpClientRequest.schemaBodyJson(InitializedNotification)({
|
|
113
113
|
jsonrpc: "2.0",
|
|
114
114
|
method: "notifications/initialized"
|
|
115
115
|
}));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { endpoint2, Plugin17, exports_tinyfish };
|