@opencode/core 0.0.0-dev-20097 → 0.0.0-dev-20103
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{agent-tw7pwy41.js → location-service-map-06ejv7nx.js} +23 -23
- package/dist/chunks/{agent-9y90ydfh.js → location-service-map-0bfzm7aa.js} +17 -17
- package/dist/chunks/{agent-dq0v80fr.js → location-service-map-0c2xmx3r.js} +12 -12
- package/dist/chunks/{agent-95sbn98w.js → location-service-map-0cjbgter.js} +11 -11
- package/dist/chunks/{agent-h420pbdz.js → location-service-map-0e3tt2mf.js} +4 -4
- package/dist/chunks/{agent-e6hd9jay.js → location-service-map-0ft9cg2j.js} +4 -4
- package/dist/chunks/location-service-map-0mesazry.js +4 -0
- package/dist/chunks/{agent-khsmmeas.js → location-service-map-0mttjrfr.js} +10 -10
- package/dist/chunks/{agent-0paq2nw3.js → location-service-map-0paq2nw3.js} +1 -1
- package/dist/chunks/{agent-bct739vz.js → location-service-map-0v53mg2y.js} +4 -4
- package/dist/chunks/{agent-r5x6zcsm.js → location-service-map-1bbkgx8g.js} +3 -3
- package/dist/chunks/{agent-jz6frww0.js → location-service-map-1d5e7fjz.js} +24 -24
- package/dist/chunks/{agent-1dazxqgg.js → location-service-map-1dazxqgg.js} +2 -2
- package/dist/chunks/{agent-g8d3gcyj.js → location-service-map-1g7epwpd.js} +4 -4
- package/dist/chunks/{agent-8j3kf1eb.js → location-service-map-1kw05xve.js} +22 -22
- package/dist/chunks/{agent-fq21n8kg.js → location-service-map-1kyxasan.js} +5 -5
- package/dist/chunks/{agent-w0m74e8e.js → location-service-map-1v08eb6w.js} +19 -19
- package/dist/chunks/{agent-j76x6msn.js → location-service-map-1yqzakes.js} +11 -11
- package/dist/chunks/{agent-21r38tys.js → location-service-map-21r38tys.js} +1 -1
- package/dist/chunks/{agent-2402vzrj.js → location-service-map-2402vzrj.js} +1 -1
- package/dist/chunks/{agent-fhs97t90.js → location-service-map-24dd53tp.js} +9 -9
- package/dist/chunks/{agent-2a5m3afh.js → location-service-map-2a5m3afh.js} +1 -1
- package/dist/chunks/{agent-p1jhb79r.js → location-service-map-2c0dm15m.js} +6 -6
- package/dist/chunks/{agent-am1638rj.js → location-service-map-2gnwkpvd.js} +5 -5
- package/dist/chunks/{agent-8vkkgngr.js → location-service-map-2h8zcfyj.js} +6 -6
- package/dist/chunks/{agent-0jwsre1p.js → location-service-map-2k8khapm.js} +5 -5
- package/dist/chunks/{agent-3zjyq5kp.js → location-service-map-2v9qn293.js} +11 -11
- package/dist/chunks/{agent-et0rkxxj.js → location-service-map-2w5dyyz8.js} +8 -8
- package/dist/chunks/{agent-c651xxjb.js → location-service-map-30krspkn.js} +4 -4
- package/dist/chunks/{agent-jvv6rca9.js → location-service-map-36cphf8b.js} +9 -9
- package/dist/chunks/{agent-3fc6dm20.js → location-service-map-3fc6dm20.js} +1 -1
- package/dist/chunks/{agent-bzfhs60c.js → location-service-map-3hbctp76.js} +30 -30
- package/dist/chunks/{agent-3hepkmqq.js → location-service-map-3hepkmqq.js} +1 -1
- package/dist/chunks/{agent-fpcmhq1w.js → location-service-map-3kh5ghz4.js} +18 -18
- package/dist/chunks/{agent-nbzsj80d.js → location-service-map-3pbjq009.js} +8 -8
- package/dist/chunks/{agent-3smtnn6g.js → location-service-map-3smtnn6g.js} +1 -1
- package/dist/chunks/{agent-3tvqynh2.js → location-service-map-3tvqynh2.js} +1 -1
- package/dist/chunks/{agent-3zsf4n22.js → location-service-map-3zsf4n22.js} +1 -1
- package/dist/chunks/{agent-9jddndyh.js → location-service-map-45r8z7s5.js} +42 -42
- package/dist/chunks/{agent-w5bpb8j7.js → location-service-map-495chtjc.js} +24 -24
- package/dist/chunks/{agent-k1z6zz7b.js → location-service-map-4acwr5gm.js} +24 -24
- package/dist/chunks/{agent-9pw8sy2q.js → location-service-map-4bvexzs9.js} +7 -7
- package/dist/chunks/{agent-d6gar2mb.js → location-service-map-4bx5mh4w.js} +20 -20
- package/dist/chunks/{agent-crwh5vwx.js → location-service-map-4bxhq5dc.js} +12 -12
- package/dist/chunks/{agent-rqqqmm2x.js → location-service-map-4c8bw516.js} +8 -8
- package/dist/chunks/{agent-jc2w93fw.js → location-service-map-4t7rsg8e.js} +51 -51
- package/dist/chunks/{agent-e4t91rn4.js → location-service-map-4tgay3js.js} +15 -15
- package/dist/chunks/{agent-wtzh7vad.js → location-service-map-4z91h2q2.js} +21 -21
- package/dist/chunks/{agent-b6n0f07q.js → location-service-map-5153gk4s.js} +28 -28
- package/dist/chunks/{agent-7k9dqqsg.js → location-service-map-55krd67x.js} +25 -25
- package/dist/chunks/{agent-5daktx2q.js → location-service-map-5daktx2q.js} +1 -1
- package/dist/chunks/{agent-5ekn9679.js → location-service-map-5ekn9679.js} +1 -1
- package/dist/chunks/{agent-5t3nmthw.js → location-service-map-5t3nmthw.js} +2 -2
- package/dist/chunks/{agent-1t756eex.js → location-service-map-60djdr4t.js} +10 -10
- package/dist/chunks/{agent-kzsyc47h.js → location-service-map-61a3zr4c.js} +18 -18
- package/dist/chunks/{agent-4tb9kxn6.js → location-service-map-63kngrnd.js} +8 -8
- package/dist/chunks/{agent-669tq793.js → location-service-map-669tq793.js} +1 -1
- package/dist/chunks/{agent-9gnd804a.js → location-service-map-68dy1mx9.js} +37 -37
- package/dist/chunks/{agent-95n9ta3s.js → location-service-map-6a44wwkp.js} +6 -6
- package/dist/chunks/location-service-map-6enptsyn.js +507 -0
- package/dist/chunks/{agent-3dwfd5y2.js → location-service-map-6k4ynzw8.js} +10 -10
- package/dist/chunks/{agent-6msgmcgs.js → location-service-map-6msgmcgs.js} +1 -1
- package/dist/chunks/{agent-cwa6csj7.js → location-service-map-79qaa2kf.js} +9 -9
- package/dist/chunks/{agent-9pswe2t8.js → location-service-map-7bgeh318.js} +23 -23
- package/dist/chunks/{agent-7bmhse3q.js → location-service-map-7bmhse3q.js} +1 -1
- package/dist/chunks/{agent-10xd58z0.js → location-service-map-7evypc3h.js} +3 -3
- package/dist/chunks/{agent-6fkaw2xz.js → location-service-map-7shq9dj0.js} +8 -8
- package/dist/chunks/{agent-vt4rwap3.js → location-service-map-833tk66z.js} +9 -9
- package/dist/chunks/{agent-8hhx35dq.js → location-service-map-853pnbmg.js} +4 -4
- package/dist/chunks/{agent-ef05nmcp.js → location-service-map-88ncvmwj.js} +4 -4
- package/dist/chunks/{agent-8d7r5vzw.js → location-service-map-8d7r5vzw.js} +1 -1
- package/dist/chunks/{agent-0x0enb5q.js → location-service-map-8e9852ac.js} +11 -11
- package/dist/chunks/location-service-map-8gz0hh7m.js +252 -0
- package/dist/chunks/{agent-970zzb99.js → location-service-map-8hcfckj3.js} +11 -11
- package/dist/chunks/{agent-bt5x84hs.js → location-service-map-8r011ra3.js} +22 -22
- package/dist/chunks/{agent-fj6am7we.js → location-service-map-8ssbnkm6.js} +30 -30
- package/dist/chunks/{agent-5kdwdsfr.js → location-service-map-8yktps7k.js} +11 -11
- package/dist/chunks/{agent-439r14a2.js → location-service-map-939j0jr0.js} +14 -14
- package/dist/chunks/{agent-94ek1h2f.js → location-service-map-94ek1h2f.js} +2 -2
- package/dist/chunks/{agent-8zmehegn.js → location-service-map-9n2ezk31.js} +27 -27
- package/dist/chunks/{agent-180z65gf.js → location-service-map-9qkckev2.js} +33 -33
- package/dist/chunks/{agent-r4r17rq4.js → location-service-map-9ss103sy.js} +7 -7
- package/dist/chunks/{agent-retswvcy.js → location-service-map-9x3kmp58.js} +6 -6
- package/dist/chunks/{agent-j325xqev.js → location-service-map-a3r4dcrj.js} +2 -2
- package/dist/chunks/{agent-a12t2k2w.js → location-service-map-a79ds6nc.js} +16 -16
- package/dist/chunks/{agent-4bm5ja14.js → location-service-map-a89e0tac.js} +4 -4
- package/dist/chunks/{agent-aaet6srn.js → location-service-map-aaet6srn.js} +2 -2
- package/dist/chunks/{agent-57ez7d0k.js → location-service-map-aamtrqep.js} +9 -9
- package/dist/chunks/{agent-w1tfbzx8.js → location-service-map-apeh0v2n.js} +10 -10
- package/dist/chunks/{agent-s53zfdxe.js → location-service-map-aq0amx4n.js} +23 -23
- package/dist/chunks/{agent-dzmmerrf.js → location-service-map-aq106s15.js} +9 -9
- package/dist/chunks/{agent-187249xp.js → location-service-map-aq9v1yk8.js} +6 -6
- package/dist/chunks/{agent-6eezz40m.js → location-service-map-ardd2bsn.js} +5 -5
- package/dist/chunks/{agent-x5wbyy1f.js → location-service-map-as62jwn8.js} +22 -22
- package/dist/chunks/{agent-j75c8f36.js → location-service-map-asq856p3.js} +15 -15
- package/dist/chunks/{agent-gs3s1a1g.js → location-service-map-at1kfnmk.js} +8 -8
- package/dist/chunks/{agent-r40cdba5.js → location-service-map-avae2qkj.js} +11 -11
- package/dist/chunks/{agent-qsxf26yz.js → location-service-map-awaee7qt.js} +6 -6
- package/dist/chunks/{agent-pwa9tev3.js → location-service-map-awhka9ay.js} +21 -21
- package/dist/chunks/{agent-5q306sn2.js → location-service-map-axjpx4kj.js} +4 -4
- package/dist/chunks/{agent-b3xz1q2n.js → location-service-map-b24v4ebx.js} +26 -26
- package/dist/chunks/{agent-njyz79cc.js → location-service-map-b3s7ae97.js} +37 -37
- package/dist/chunks/{agent-b6gygkdw.js → location-service-map-b6gygkdw.js} +2 -2
- package/dist/chunks/{agent-emyyb3h7.js → location-service-map-b87s103s.js} +24 -24
- package/dist/chunks/{agent-6qckwf5w.js → location-service-map-bdphn620.js} +50 -50
- package/dist/chunks/{agent-7hgr463c.js → location-service-map-bf0cd63e.js} +5 -5
- package/dist/chunks/{agent-ffqrm4dy.js → location-service-map-bk0crrr6.js} +25 -25
- package/dist/chunks/{agent-m30kdexy.js → location-service-map-bq1hpwve.js} +3 -3
- package/dist/chunks/{agent-gmf134c1.js → location-service-map-bthk55h6.js} +32 -32
- package/dist/chunks/{agent-wrmaeg5p.js → location-service-map-bwdmmacb.js} +11 -11
- package/dist/chunks/{agent-974apvmy.js → location-service-map-c16s4pd0.js} +44 -44
- package/dist/chunks/{agent-96r286zg.js → location-service-map-c1np9tvh.js} +7 -7
- package/dist/chunks/{agent-wr7ps67x.js → location-service-map-ce5fknq2.js} +5 -5
- package/dist/chunks/{agent-fgfb0b2k.js → location-service-map-cfmv9c3d.js} +15 -15
- package/dist/chunks/{agent-br6g232s.js → location-service-map-cgm666vp.js} +15 -15
- package/dist/chunks/{agent-g4nf9hqv.js → location-service-map-cgza1zmh.js} +14 -14
- package/dist/chunks/{agent-ckecvw8r.js → location-service-map-ckecvw8r.js} +2 -2
- package/dist/chunks/{agent-qcfjhy73.js → location-service-map-ckh625m3.js} +31 -31
- package/dist/chunks/{agent-wkzkw8tr.js → location-service-map-cmefedvg.js} +3 -3
- package/dist/chunks/{agent-4snp72qp.js → location-service-map-cn44awdn.js} +31 -31
- package/dist/chunks/{agent-rabh22kx.js → location-service-map-cnzxmjcj.js} +29 -29
- package/dist/chunks/{agent-a8mfdbqj.js → location-service-map-cphrfjpg.js} +3 -3
- package/dist/chunks/{agent-cda3cvpx.js → location-service-map-cw6vaqhy.js} +14 -14
- package/dist/chunks/{agent-mr4nn3b0.js → location-service-map-czvzv6fj.js} +6 -6
- package/dist/chunks/{agent-xt2arqya.js → location-service-map-d40gq58t.js} +22 -22
- package/dist/chunks/{agent-cc4mce2f.js → location-service-map-d4vrvgq4.js} +11 -11
- package/dist/chunks/{agent-8vggh432.js → location-service-map-d4w6k1nt.js} +17 -17
- package/dist/chunks/{agent-m26c3xec.js → location-service-map-d5g0vem9.js} +32 -32
- package/dist/chunks/{agent-71wjg4kw.js → location-service-map-ddvvm6a9.js} +17 -17
- package/dist/chunks/{agent-mks6kp02.js → location-service-map-dfq5ekm3.js} +5 -5
- package/dist/chunks/{agent-j3na2f7t.js → location-service-map-dkgjef6k.js} +15 -15
- package/dist/chunks/{agent-dmqcgk4z.js → location-service-map-dmqcgk4z.js} +2 -2
- package/dist/chunks/{agent-3tnqn7ww.js → location-service-map-dmx755zn.js} +11 -11
- package/dist/chunks/{agent-3f7398v7.js → location-service-map-dp4kwseh.js} +20 -20
- package/dist/chunks/{agent-y71avatq.js → location-service-map-dpkg50ah.js} +4 -4
- package/dist/chunks/{agent-5v30z6ja.js → location-service-map-e2k0bps6.js} +26 -26
- package/dist/chunks/{agent-aemzcrym.js → location-service-map-e5wg673t.js} +25 -25
- package/dist/chunks/{agent-ef5x83kb.js → location-service-map-ef5x83kb.js} +1 -1
- package/dist/chunks/{agent-195jkryp.js → location-service-map-efg2p63t.js} +35 -35
- package/dist/chunks/{agent-xf20h1cj.js → location-service-map-egx0h0k6.js} +21 -21
- package/dist/chunks/{agent-8qtvggd8.js → location-service-map-eqqc0c45.js} +17 -17
- package/dist/chunks/{agent-erw5rpbs.js → location-service-map-erw5rpbs.js} +2 -2
- package/dist/chunks/{agent-8yfag9w4.js → location-service-map-esxc65j0.js} +20 -20
- package/dist/chunks/{agent-etq0c3wd.js → location-service-map-etq0c3wd.js} +1 -1
- package/dist/chunks/{agent-37s12vcn.js → location-service-map-evbgk2k8.js} +5 -5
- package/dist/chunks/{agent-8v6pyhej.js → location-service-map-eys57y9b.js} +8 -8
- package/dist/chunks/{agent-xy1gf4rw.js → location-service-map-f13k8as2.js} +4 -4
- package/dist/chunks/{agent-50mzsvk4.js → location-service-map-f3ngv102.js} +4 -4
- package/dist/chunks/{agent-ca7w653e.js → location-service-map-f73rjn58.js} +4 -4
- package/dist/chunks/{agent-ym7x7v54.js → location-service-map-fanjy7dq.js} +25 -25
- package/dist/chunks/{agent-grg0hm6f.js → location-service-map-fh5hhkj6.js} +32 -32
- package/dist/chunks/{agent-5z7c0ntw.js → location-service-map-fp4gar62.js} +18 -18
- package/dist/chunks/{agent-gd4qta3r.js → location-service-map-gd4qta3r.js} +1 -1
- package/dist/chunks/{agent-zvtzzjx8.js → location-service-map-gg0c0qt7.js} +26 -26
- package/dist/chunks/{agent-qzq3tp80.js → location-service-map-gk0e7dgm.js} +5 -5
- package/dist/chunks/{agent-wgtcm0m7.js → location-service-map-gp9g74ej.js} +4 -4
- package/dist/chunks/{agent-gv6a8nnw.js → location-service-map-gv6a8nnw.js} +2 -2
- package/dist/chunks/{agent-8s95nyqa.js → location-service-map-h4m0f94k.js} +5 -5
- package/dist/chunks/{agent-z0pa14ta.js → location-service-map-h5f6ggqy.js} +10 -10
- package/dist/chunks/{agent-4378a0hc.js → location-service-map-h66kq4ja.js} +10 -10
- package/dist/chunks/{agent-nzyhnfxz.js → location-service-map-h6r3nrb9.js} +4 -4
- package/dist/chunks/{agent-h6vf3j39.js → location-service-map-h6vf3j39.js} +1 -1
- package/dist/chunks/{agent-a1a50ys5.js → location-service-map-hkfg6fzm.js} +5 -5
- package/dist/chunks/{agent-27eedk78.js → location-service-map-j237fm2y.js} +29 -29
- package/dist/chunks/{agent-j56e64zr.js → location-service-map-j56e64zr.js} +1 -1
- package/dist/chunks/{agent-vtpkq4qf.js → location-service-map-j9ty9cws.js} +1 -1
- package/dist/chunks/{agent-f5syc60y.js → location-service-map-jexxy024.js} +3 -3
- package/dist/chunks/{agent-4yxx405s.js → location-service-map-jqw5f6af.js} +26 -26
- package/dist/chunks/{agent-k3c624dm.js → location-service-map-k3c624dm.js} +3 -3
- package/dist/chunks/{agent-w21repx7.js → location-service-map-k5h5c7q1.js} +38 -38
- package/dist/chunks/{agent-q10v52aa.js → location-service-map-k8f6en75.js} +11 -11
- package/dist/chunks/{agent-ba5zwyng.js → location-service-map-ket9r42f.js} +16 -16
- package/dist/chunks/location-service-map-m18qmtz2.js +18 -0
- package/dist/chunks/{agent-rcgt23b9.js → location-service-map-m1shccce.js} +32 -32
- package/dist/chunks/{agent-gf8f2rcw.js → location-service-map-m24y9wwb.js} +17 -17
- package/dist/chunks/{agent-m3fdjcah.js → location-service-map-m3fdjcah.js} +1 -1
- package/dist/chunks/{agent-wvvmmxvm.js → location-service-map-m3z1x1h0.js} +11 -11
- package/dist/chunks/{agent-kwrf6mrp.js → location-service-map-m6nec9qq.js} +4 -4
- package/dist/chunks/{agent-m9w0rfyh.js → location-service-map-m9w0rfyh.js} +1 -1
- package/dist/chunks/{agent-207sxyyq.js → location-service-map-mfpnwtem.js} +7 -7
- package/dist/chunks/{agent-56gdpj1q.js → location-service-map-mfqp6xfm.js} +6 -6
- package/dist/chunks/{agent-wxjq8k3m.js → location-service-map-mswzr7xn.js} +25 -25
- package/dist/chunks/{agent-pk5jep21.js → location-service-map-mvav9bkw.js} +18 -18
- package/dist/chunks/{agent-epd79qdj.js → location-service-map-mvc34etw.js} +9 -9
- package/dist/chunks/{agent-6xscy18h.js → location-service-map-myypamct.js} +33 -33
- package/dist/chunks/{agent-k65r9af3.js → location-service-map-n2fjwnd6.js} +11 -11
- package/dist/chunks/{agent-s75w71bb.js → location-service-map-n51zs5vf.js} +8 -8
- package/dist/chunks/{agent-3jy1139n.js → location-service-map-npsqtpy7.js} +30 -30
- package/dist/chunks/{agent-jvvge85p.js → location-service-map-nt81b04e.js} +20 -20
- package/dist/chunks/{agent-3mmdgdjj.js → location-service-map-ntx68rw5.js} +6 -6
- package/dist/chunks/{agent-h4xnkbg8.js → location-service-map-nwheqxjr.js} +36 -36
- package/dist/chunks/{agent-prt5basj.js → location-service-map-ny2517wm.js} +21 -21
- package/dist/chunks/{agent-3vsgk2p7.js → location-service-map-ny2gagq3.js} +11 -11
- package/dist/chunks/location-service-map-p2zqjdg1.js +26 -0
- package/dist/chunks/{agent-k1qjx27w.js → location-service-map-p8vkj1y5.js} +5 -5
- package/dist/chunks/{agent-pjvnvgmy.js → location-service-map-pjvnvgmy.js} +1 -1
- package/dist/chunks/{agent-pknna89w.js → location-service-map-pknna89w.js} +1 -1
- package/dist/chunks/{agent-zzvjeq0g.js → location-service-map-pkvp83aw.js} +16 -16
- package/dist/chunks/{agent-pjah6pe2.js → location-service-map-pnd08bfh.js} +15 -15
- package/dist/chunks/{agent-75ftyfa0.js → location-service-map-prgnye3a.js} +19 -19
- package/dist/chunks/{agent-5w978569.js → location-service-map-psnz0b2m.js} +87 -87
- package/dist/chunks/{agent-e8tny9qf.js → location-service-map-pwqjnrnh.js} +3 -3
- package/dist/chunks/{agent-rkprpv83.js → location-service-map-py3kkmfq.js} +2 -2
- package/dist/chunks/{agent-nvefxcm9.js → location-service-map-q0ez028y.js} +12 -12
- package/dist/chunks/{agent-97mkmtmd.js → location-service-map-q9v0w4bd.js} +32 -32
- package/dist/chunks/{agent-qsdy395h.js → location-service-map-qsdy395h.js} +1 -1
- package/dist/chunks/{agent-x2d9qy7d.js → location-service-map-qvreyy9g.js} +5 -5
- package/dist/chunks/{agent-hg3pgq27.js → location-service-map-r4k9ar4d.js} +6 -6
- package/dist/chunks/{agent-yp2x3t23.js → location-service-map-r8xr0va3.js} +4 -4
- package/dist/chunks/{agent-0996nyz8.js → location-service-map-r9w3djhf.js} +5 -5
- package/dist/chunks/{agent-rdw6cm16.js → location-service-map-rdw6cm16.js} +1 -1
- package/dist/chunks/{agent-mkwsrdpy.js → location-service-map-rgm7mqtj.js} +20 -20
- package/dist/chunks/{agent-nyvvhy0p.js → location-service-map-rh6g2sa8.js} +11 -11
- package/dist/chunks/{agent-y4y8g8ts.js → location-service-map-rhrfrnty.js} +47 -47
- package/dist/chunks/{agent-kb3wdknj.js → location-service-map-s6m6nc9p.js} +6 -6
- package/dist/chunks/{agent-40c61p32.js → location-service-map-s78dyy7j.js} +26 -26
- package/dist/chunks/{agent-02nrjc1r.js → location-service-map-s8d7rejh.js} +8 -8
- package/dist/chunks/{agent-98mydvev.js → location-service-map-szeyyw6m.js} +31 -31
- package/dist/chunks/{agent-nyv1j4r3.js → location-service-map-t2kq1zb2.js} +66 -66
- package/dist/chunks/{agent-aat21nqc.js → location-service-map-t30mswsp.js} +17 -17
- package/dist/chunks/{agent-tazgh4e4.js → location-service-map-tazgh4e4.js} +1 -1
- package/dist/chunks/{agent-89znhe33.js → location-service-map-tcezcvh9.js} +4 -4
- package/dist/chunks/{agent-tdstcens.js → location-service-map-tdstcens.js} +1 -1
- package/dist/chunks/{agent-61xdzkjd.js → location-service-map-te3fz92z.js} +9 -9
- package/dist/chunks/{agent-wmmy56cc.js → location-service-map-te77dbbn.js} +8 -8
- package/dist/chunks/{agent-cdm0dq9n.js → location-service-map-tegs1ycp.js} +6 -6
- package/dist/chunks/{agent-tvtrv512.js → location-service-map-tvtrv512.js} +1 -1
- package/dist/chunks/{agent-9p3rp546.js → location-service-map-v7tjtnqr.js} +42 -42
- package/dist/chunks/{agent-rw9fhyhq.js → location-service-map-vc0vj5dz.js} +20 -20
- package/dist/chunks/{agent-0yxqwdtr.js → location-service-map-vcdwqy0t.js} +46 -46
- package/dist/chunks/{agent-veqvce7d.js → location-service-map-veqvce7d.js} +1 -1
- package/dist/chunks/{agent-rk7s9xkn.js → location-service-map-vfjhn2wd.js} +4 -4
- package/dist/chunks/{agent-s7am3t11.js → location-service-map-vg14phsn.js} +34 -34
- package/dist/chunks/{agent-433eb07g.js → location-service-map-vgkexb79.js} +8 -8
- package/dist/chunks/{agent-vjxaqdq6.js → location-service-map-vhycsadx.js} +43 -43
- package/dist/chunks/{agent-hp9thjyh.js → location-service-map-vp8cnahr.js} +20 -20
- package/dist/chunks/{agent-5j37ws3e.js → location-service-map-vrp7sfj8.js} +17 -17
- package/dist/chunks/{agent-vzcthcp8.js → location-service-map-vzcthcp8.js} +1 -1
- package/dist/chunks/{agent-hvdqw0fa.js → location-service-map-w1rn1h1h.js} +7 -7
- package/dist/chunks/{agent-x6mxy5rc.js → location-service-map-w2qrtdv7.js} +20 -20
- package/dist/chunks/{agent-q9k0gsh2.js → location-service-map-w3m67914.js} +44 -44
- package/dist/chunks/{agent-w3wsvvr9.js → location-service-map-w3wsvvr9.js} +1 -1
- package/dist/chunks/{agent-rghjtt8s.js → location-service-map-w8djw5a7.js} +9 -9
- package/dist/chunks/{agent-hy7mmz7x.js → location-service-map-wb86x3ay.js} +1 -1
- package/dist/chunks/{agent-wd3x2cqz.js → location-service-map-wd3x2cqz.js} +2 -2
- package/dist/chunks/{agent-wd87259q.js → location-service-map-wd87259q.js} +1 -1
- package/dist/chunks/{agent-1jdf3fxk.js → location-service-map-wk1rrwe6.js} +13 -13
- package/dist/chunks/{agent-5gs1xt34.js → location-service-map-wn3c38y7.js} +11 -11
- package/dist/chunks/{agent-4vtve4mp.js → location-service-map-wnxpvc6c.js} +2 -2
- package/dist/chunks/{agent-2h5wpswp.js → location-service-map-wt3nx885.js} +13 -13
- package/dist/chunks/{agent-2q5q7rph.js → location-service-map-wxp0jyf7.js} +20 -20
- package/dist/chunks/{agent-fwpx9avw.js → location-service-map-wzrg2q53.js} +48 -48
- package/dist/chunks/{agent-x1ezjp6w.js → location-service-map-x1ezjp6w.js} +1 -1
- package/dist/chunks/{agent-qyvvmpr4.js → location-service-map-x1vt8hry.js} +10 -10
- package/dist/chunks/{agent-c3q7hj01.js → location-service-map-x3v6tvna.js} +17 -17
- package/dist/chunks/{agent-p28vygmv.js → location-service-map-x5spkhqe.js} +27 -27
- package/dist/chunks/{agent-q3zwv4bp.js → location-service-map-x7xg137b.js} +4 -4
- package/dist/chunks/{agent-cktb56xb.js → location-service-map-xdhfzwgn.js} +6 -6
- package/dist/chunks/{agent-drwq78ky.js → location-service-map-xfkkasph.js} +4 -4
- package/dist/chunks/{agent-rv27b6j4.js → location-service-map-xgjvnsnz.js} +10 -10
- package/dist/chunks/{agent-e57neqwz.js → location-service-map-xmznkxks.js} +1 -1
- package/dist/chunks/{agent-9wwn998v.js → location-service-map-xqngxfdt.js} +186 -186
- package/dist/chunks/{agent-y1fvbwt7.js → location-service-map-y1fvbwt7.js} +1 -1
- package/dist/chunks/{agent-tbj51q56.js → location-service-map-y6bc7ytb.js} +20 -20
- package/dist/chunks/{agent-8ek8aczr.js → location-service-map-y6n8wcsw.js} +13 -13
- package/dist/chunks/{agent-n68d0cf5.js → location-service-map-y7d70cjs.js} +16 -16
- package/dist/chunks/{agent-f5gy8qwh.js → location-service-map-yf10kn3d.js} +8 -8
- package/dist/chunks/{agent-hm613f1m.js → location-service-map-yffarvam.js} +19 -19
- package/dist/chunks/{agent-qn4ba14w.js → location-service-map-yjptyezs.js} +5 -5
- package/dist/chunks/{agent-2v3kphkq.js → location-service-map-ykwb97px.js} +7 -7
- package/dist/chunks/{agent-yrhqyw5v.js → location-service-map-yrhqyw5v.js} +1 -1
- package/dist/chunks/{agent-yrznvahk.js → location-service-map-yrznvahk.js} +2 -2
- package/dist/chunks/{agent-wz2yh3bc.js → location-service-map-yvybj0e9.js} +89 -89
- package/dist/chunks/{agent-2pn7pm4n.js → location-service-map-yx96bawg.js} +53 -53
- package/dist/chunks/{agent-z07pqspn.js → location-service-map-z07pqspn.js} +3 -3
- package/dist/chunks/{agent-z0bkrqjs.js → location-service-map-z0bkrqjs.js} +1 -1
- package/dist/chunks/{agent-yv6fwtq8.js → location-service-map-z4vn3wja.js} +12 -12
- package/dist/chunks/{agent-z63w68vq.js → location-service-map-z63w68vq.js} +2 -2
- package/dist/chunks/{agent-m6hb8kht.js → location-service-map-z6k93gbd.js} +26 -26
- package/dist/chunks/{agent-h0yxpfzn.js → location-service-map-z8tmpf1c.js} +3 -3
- package/dist/chunks/{agent-7ksjx2k2.js → location-service-map-z8tr7vps.js} +46 -46
- package/dist/chunks/{agent-5cr33wy9.js → location-service-map-z9m63e6h.js} +22 -22
- package/dist/chunks/{agent-zeh9ct20.js → location-service-map-zeh9ct20.js} +2 -2
- package/dist/chunks/{agent-zr2ceqn5.js → location-service-map-zr2ceqn5.js} +1 -1
- package/dist/chunks/{agent-zxq2ej10.js → location-service-map-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- 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/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- 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 +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +88 -88
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +103 -103
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +126 -126
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +93 -93
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- 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 +98 -98
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +132 -132
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +112 -112
- 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 +125 -125
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/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 +92 -92
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/agent-1qmbbwgh.js +0 -507
- package/dist/chunks/agent-6kdq0pjd.js +0 -4
- package/dist/chunks/agent-9zdhvgqs.js +0 -18
- package/dist/chunks/agent-jq4mhrem.js +0 -26
- package/dist/chunks/agent-qxc1ymac.js +0 -252
- /package/dist/chunks/{agent-0qkdqm5v.js → location-service-map-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{agent-0zkw76rk.js → location-service-map-0zkw76rk.js} +0 -0
- /package/dist/chunks/{agent-17cy0kzp.js → location-service-map-17cy0kzp.js} +0 -0
- /package/dist/chunks/{agent-1cnp2v09.js → location-service-map-1cnp2v09.js} +0 -0
- /package/dist/chunks/{agent-1kg9ymc8.js → location-service-map-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{agent-24dcb14g.js → location-service-map-24dcb14g.js} +0 -0
- /package/dist/chunks/{agent-2710q6r3.js → location-service-map-2710q6r3.js} +0 -0
- /package/dist/chunks/{agent-2axfhc9x.js → location-service-map-2axfhc9x.js} +0 -0
- /package/dist/chunks/{agent-2c3vjs8z.js → location-service-map-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{agent-34c7v6d4.js → location-service-map-34c7v6d4.js} +0 -0
- /package/dist/chunks/{agent-359p4xyc.js → location-service-map-359p4xyc.js} +0 -0
- /package/dist/chunks/{agent-3asan66x.js → location-service-map-3asan66x.js} +0 -0
- /package/dist/chunks/{agent-3v8g72cx.js → location-service-map-3v8g72cx.js} +0 -0
- /package/dist/chunks/{agent-3w5fmr99.js → location-service-map-3w5fmr99.js} +0 -0
- /package/dist/chunks/{agent-3wcehsnq.js → location-service-map-3wcehsnq.js} +0 -0
- /package/dist/chunks/{agent-43n2bw4t.js → location-service-map-43n2bw4t.js} +0 -0
- /package/dist/chunks/{agent-4knz6hnm.js → location-service-map-4knz6hnm.js} +0 -0
- /package/dist/chunks/{agent-4vcrnpx2.js → location-service-map-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{agent-4y7fprxs.js → location-service-map-4y7fprxs.js} +0 -0
- /package/dist/chunks/{agent-53557ph1.js → location-service-map-53557ph1.js} +0 -0
- /package/dist/chunks/{agent-550bvhaj.js → location-service-map-550bvhaj.js} +0 -0
- /package/dist/chunks/{agent-5qd3pb7m.js → location-service-map-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{agent-6prwharc.js → location-service-map-6prwharc.js} +0 -0
- /package/dist/chunks/{agent-7akdwqpd.js → location-service-map-7akdwqpd.js} +0 -0
- /package/dist/chunks/{agent-7m9af43g.js → location-service-map-7m9af43g.js} +0 -0
- /package/dist/chunks/{agent-822emrt2.js → location-service-map-822emrt2.js} +0 -0
- /package/dist/chunks/{agent-88xbtdfr.js → location-service-map-88xbtdfr.js} +0 -0
- /package/dist/chunks/{agent-8n3pysct.js → location-service-map-8n3pysct.js} +0 -0
- /package/dist/chunks/{agent-8wj87zfr.js → location-service-map-8wj87zfr.js} +0 -0
- /package/dist/chunks/{agent-922hggd3.js → location-service-map-922hggd3.js} +0 -0
- /package/dist/chunks/{agent-9a4afbnw.js → location-service-map-9a4afbnw.js} +0 -0
- /package/dist/chunks/{agent-9rqn6x4v.js → location-service-map-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{agent-a6k6eb26.js → location-service-map-a6k6eb26.js} +0 -0
- /package/dist/chunks/{agent-af5trqkr.js → location-service-map-af5trqkr.js} +0 -0
- /package/dist/chunks/{agent-afrmfg78.js → location-service-map-afrmfg78.js} +0 -0
- /package/dist/chunks/{agent-aqzs7mqg.js → location-service-map-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{agent-atq7p7m5.js → location-service-map-atq7p7m5.js} +0 -0
- /package/dist/chunks/{agent-bkyjaxrp.js → location-service-map-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{agent-bmr6ed5q.js → location-service-map-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{agent-cf4snx6d.js → location-service-map-cf4snx6d.js} +0 -0
- /package/dist/chunks/{agent-cvy3z8tj.js → location-service-map-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{agent-d9fn303g.js → location-service-map-d9fn303g.js} +0 -0
- /package/dist/chunks/{agent-d9jj8t3e.js → location-service-map-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{agent-dajrwvna.js → location-service-map-dajrwvna.js} +0 -0
- /package/dist/chunks/{agent-dap0rakb.js → location-service-map-dap0rakb.js} +0 -0
- /package/dist/chunks/{agent-df08tz66.js → location-service-map-df08tz66.js} +0 -0
- /package/dist/chunks/{agent-dy18nga0.js → location-service-map-dy18nga0.js} +0 -0
- /package/dist/chunks/{agent-e5kj55wp.js → location-service-map-e5kj55wp.js} +0 -0
- /package/dist/chunks/{agent-e73j6tqm.js → location-service-map-e73j6tqm.js} +0 -0
- /package/dist/chunks/{agent-ec1grn59.js → location-service-map-ec1grn59.js} +0 -0
- /package/dist/chunks/{agent-eh3zwz77.js → location-service-map-eh3zwz77.js} +0 -0
- /package/dist/chunks/{agent-emrn6kk6.js → location-service-map-emrn6kk6.js} +0 -0
- /package/dist/chunks/{agent-f0mxakyp.js → location-service-map-f0mxakyp.js} +0 -0
- /package/dist/chunks/{agent-f6n9ztr4.js → location-service-map-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{agent-faypxj3z.js → location-service-map-faypxj3z.js} +0 -0
- /package/dist/chunks/{agent-fd410y7t.js → location-service-map-fd410y7t.js} +0 -0
- /package/dist/chunks/{agent-fxgpk5d8.js → location-service-map-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{agent-g4wezp1m.js → location-service-map-g4wezp1m.js} +0 -0
- /package/dist/chunks/{agent-g86h250q.js → location-service-map-g86h250q.js} +0 -0
- /package/dist/chunks/{agent-gebd4c9n.js → location-service-map-gebd4c9n.js} +0 -0
- /package/dist/chunks/{agent-gftt206x.js → location-service-map-gftt206x.js} +0 -0
- /package/dist/chunks/{agent-hjbc5kem.js → location-service-map-hjbc5kem.js} +0 -0
- /package/dist/chunks/{agent-hk9envan.js → location-service-map-hk9envan.js} +0 -0
- /package/dist/chunks/{agent-j2ntwpah.js → location-service-map-j2ntwpah.js} +0 -0
- /package/dist/chunks/{agent-j5zkgpj8.js → location-service-map-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{agent-jjkms2e6.js → location-service-map-jjkms2e6.js} +0 -0
- /package/dist/chunks/{agent-jr7sbwjy.js → location-service-map-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{agent-jwfs4k6c.js → location-service-map-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{agent-jzg6c2d5.js → location-service-map-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{agent-mp448xyj.js → location-service-map-mp448xyj.js} +0 -0
- /package/dist/chunks/{agent-msx8hqn2.js → location-service-map-msx8hqn2.js} +0 -0
- /package/dist/chunks/{agent-n05xt0ee.js → location-service-map-n05xt0ee.js} +0 -0
- /package/dist/chunks/{agent-n3j8tn72.js → location-service-map-n3j8tn72.js} +0 -0
- /package/dist/chunks/{agent-njntx4h6.js → location-service-map-njntx4h6.js} +0 -0
- /package/dist/chunks/{agent-q3sfg36h.js → location-service-map-q3sfg36h.js} +0 -0
- /package/dist/chunks/{agent-q74kybfr.js → location-service-map-q74kybfr.js} +0 -0
- /package/dist/chunks/{agent-qaymkmh1.js → location-service-map-qaymkmh1.js} +0 -0
- /package/dist/chunks/{agent-qb87gjwd.js → location-service-map-qb87gjwd.js} +0 -0
- /package/dist/chunks/{agent-qfa1cgps.js → location-service-map-qfa1cgps.js} +0 -0
- /package/dist/chunks/{agent-qg3g05ea.js → location-service-map-qg3g05ea.js} +0 -0
- /package/dist/chunks/{agent-qrg20bc0.js → location-service-map-qrg20bc0.js} +0 -0
- /package/dist/chunks/{agent-rcb2kzg1.js → location-service-map-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{agent-sdp7kfr6.js → location-service-map-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{agent-sk3qaz4a.js → location-service-map-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{agent-ssg3fenm.js → location-service-map-ssg3fenm.js} +0 -0
- /package/dist/chunks/{agent-w803qqfp.js → location-service-map-w803qqfp.js} +0 -0
- /package/dist/chunks/{agent-wc3fc9cn.js → location-service-map-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{agent-wer8tq1h.js → location-service-map-wer8tq1h.js} +0 -0
- /package/dist/chunks/{agent-wtztk69x.js → location-service-map-wtztk69x.js} +0 -0
- /package/dist/chunks/{agent-x0ckcb58.js → location-service-map-x0ckcb58.js} +0 -0
- /package/dist/chunks/{agent-x61499pn.js → location-service-map-x61499pn.js} +0 -0
- /package/dist/chunks/{agent-y44na4kk.js → location-service-map-y44na4kk.js} +0 -0
- /package/dist/chunks/{agent-y8cydn3q.js → location-service-map-y8cydn3q.js} +0 -0
- /package/dist/chunks/{agent-y8f7s663.js → location-service-map-y8f7s663.js} +0 -0
- /package/dist/chunks/{agent-ygaqb7jw.js → location-service-map-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{agent-ym463w8f.js → location-service-map-ym463w8f.js} +0 -0
- /package/dist/chunks/{agent-z9919s4g.js → location-service-map-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service73
|
|
3
|
+
} from "./location-service-map-w8djw5a7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service60
|
|
6
|
+
} from "./location-service-map-tegs1ycp.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-service-map-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-service-map-m18qmtz2.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service74
|
|
15
|
+
} from "./location-service-map-at1kfnmk.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-service-map-cmefedvg.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service67
|
|
23
|
+
} from "./location-service-map-4acwr5gm.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service60;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service74;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service67;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service73;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin28,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin28 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin45 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin28, exports_identity };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-service-map-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/memory.ts
|
|
11
11
|
var exports_memory = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/project/schema.ts
|
|
9
9
|
var exports_schema = {};
|
|
10
10
|
__export(exports_schema, {
|
|
11
11
|
Current: () => Current3,
|
|
12
|
-
Event: () =>
|
|
13
|
-
ID: () =>
|
|
14
|
-
Info: () =>
|
|
12
|
+
Event: () => Event18,
|
|
13
|
+
ID: () => ID15,
|
|
14
|
+
Info: () => Info31,
|
|
15
15
|
ProjectSchema: () => exports_schema,
|
|
16
16
|
UpdateInput: () => UpdateInput4,
|
|
17
17
|
Vcs: () => Vcs3
|
|
18
18
|
});
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { Project } from "@opencode/schema/project";
|
|
21
|
-
var
|
|
21
|
+
var ID15 = Project.ID;
|
|
22
22
|
var Current3 = Project.Current;
|
|
23
|
-
var
|
|
23
|
+
var Info31 = Project.Info;
|
|
24
24
|
var UpdateInput4 = Project.UpdateInput;
|
|
25
|
-
var
|
|
25
|
+
var Event18 = Project.Event;
|
|
26
26
|
var Vcs3 = Schema.Struct({
|
|
27
27
|
type: Project.Vcs,
|
|
28
28
|
store: AbsolutePath2
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { ID15, Current3, Info31, UpdateInput4, Event18, Vcs3, exports_schema };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-service-map-pwqjnrnh.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-service-map-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service63,
|
|
17
|
+
node: () => node67
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service63 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service84).db;
|
|
26
|
-
return
|
|
26
|
+
return Service63.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node67 = makeGlobalNode({ service: Service63, layer, deps: [node88] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service63, node67, exports_kv };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-d4vrvgq4.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-x7xg137b.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event21
|
|
10
|
+
} from "./location-service-map-8ssbnkm6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID16,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-service-map-cn44awdn.js";
|
|
15
15
|
import {
|
|
16
16
|
which2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-service-map-qaymkmh1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
ID13
|
|
20
|
+
} from "./location-service-map-m1shccce.js";
|
|
21
21
|
import {
|
|
22
22
|
iife2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-service-map-1kg9ymc8.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-service-map-2h8zcfyj.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/azure.ts
|
|
29
29
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
|
43
43
|
var AzurePlugin2 = define({
|
|
44
44
|
id: "opencode.provider.azure",
|
|
45
45
|
effect: Effect.fn(function* (ctx) {
|
|
46
|
-
const configured = yield* configuredSettings2(
|
|
46
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
47
47
|
const processes = yield* AppProcess.Service;
|
|
48
48
|
const bus = yield* Service83;
|
|
49
49
|
const tokens = new Map;
|
|
@@ -79,13 +79,13 @@ var AzurePlugin2 = define({
|
|
|
79
79
|
});
|
|
80
80
|
yield* ctx.integration.transform((editor) => {
|
|
81
81
|
editor.method.update({
|
|
82
|
-
integrationID:
|
|
82
|
+
integrationID: ID13.azure,
|
|
83
83
|
method: { type: "key", label: "API key", form: form() }
|
|
84
84
|
});
|
|
85
85
|
if (!available)
|
|
86
86
|
return;
|
|
87
87
|
editor.method.update({
|
|
88
|
-
integrationID:
|
|
88
|
+
integrationID: ID13.azure,
|
|
89
89
|
method: {
|
|
90
90
|
id: methodID,
|
|
91
91
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ var AzurePlugin2 = define({
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
120
|
-
const connection = yield* ctx.integration.connection.active(
|
|
120
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
121
121
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
122
122
|
return;
|
|
123
123
|
})) : undefined;
|
|
@@ -131,7 +131,7 @@ var AzurePlugin2 = define({
|
|
|
131
131
|
yield* load();
|
|
132
132
|
yield* ctx.provider.transform((evt) => {
|
|
133
133
|
for (const item of evt.list()) {
|
|
134
|
-
if (item.provider.id !==
|
|
134
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
135
135
|
continue;
|
|
136
136
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
137
137
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -149,7 +149,7 @@ var AzurePlugin2 = define({
|
|
|
149
149
|
});
|
|
150
150
|
yield* ctx.model.transform((models) => {
|
|
151
151
|
for (const item of models.provider.list()) {
|
|
152
|
-
if (item.provider.id !==
|
|
152
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
153
153
|
continue;
|
|
154
154
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
155
155
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -161,9 +161,9 @@ var AzurePlugin2 = define({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
164
|
-
yield* bus.subscribe(
|
|
164
|
+
yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
165
165
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
166
|
-
const connection = yield* ctx.integration.connection.active(
|
|
166
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
167
167
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
168
168
|
return;
|
|
169
169
|
})) : undefined;
|
|
@@ -175,7 +175,7 @@ var AzurePlugin2 = define({
|
|
|
175
175
|
return `Bearer ${current.access}`;
|
|
176
176
|
});
|
|
177
177
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
178
|
-
if (evt.model.providerID !==
|
|
178
|
+
if (evt.model.providerID !== ID13.azure)
|
|
179
179
|
return;
|
|
180
180
|
const authorization = yield* bearer(evt.request.url);
|
|
181
181
|
if (!authorization)
|
|
@@ -184,9 +184,9 @@ var AzurePlugin2 = define({
|
|
|
184
184
|
evt.request.headers.delete("x-api-key");
|
|
185
185
|
evt.request.headers.set("authorization", authorization);
|
|
186
186
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
187
|
-
}), { providerID:
|
|
187
|
+
}), { providerID: ID13.azure });
|
|
188
188
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
189
|
-
if (evt.model.providerID !==
|
|
189
|
+
if (evt.model.providerID !== ID13.azure)
|
|
190
190
|
return;
|
|
191
191
|
const authorization = yield* bearer(evt.url);
|
|
192
192
|
if (!authorization)
|
|
@@ -195,7 +195,7 @@ var AzurePlugin2 = define({
|
|
|
195
195
|
delete evt.headers["x-api-key"];
|
|
196
196
|
evt.headers.authorization = authorization;
|
|
197
197
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
198
|
-
}), { providerID:
|
|
198
|
+
}), { providerID: ID13.azure });
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
function resolveResourceName(settings, fallback) {
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
deletePatch2,
|
|
8
8
|
countPatch2,
|
|
9
9
|
chunksByFile2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service77
|
|
13
|
+
} from "./location-service-map-ddvvm6a9.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-service-map-rgm7mqtj.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin21,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,10 +30,10 @@ import { ChildProcess } from "effect/unstable/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin21 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
|
-
const location = yield*
|
|
36
|
+
const location = yield* Service77;
|
|
37
37
|
if (location.vcs?.type !== "hg")
|
|
38
38
|
return;
|
|
39
39
|
const processes = yield* AppProcess.Service;
|
|
@@ -188,4 +188,4 @@ function makeHg(proc, worktree) {
|
|
|
188
188
|
return { status, diff, branch, ancestor, cat };
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
export {
|
|
191
|
+
export { Plugin21, exports_hg };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make16,
|
|
14
|
+
node: () => node54,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make16 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node54 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error4, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error4, ProviderNotFound2, make16, RegistryService2, registry2, registryNode2, node54, exports_driver };
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-service-map-xmznkxks.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
|
-
|
|
9
|
+
make22,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-service-map-ntx68rw5.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/database/drizzle/index.ts
|
|
17
17
|
var exports_drizzle = {};
|
|
@@ -22,7 +22,7 @@ __export(exports_drizzle, {
|
|
|
22
22
|
EffectSQLiteDatabase: () => EffectSQLiteDatabase2,
|
|
23
23
|
EffectSQLiteSession: () => EffectSQLiteSession2,
|
|
24
24
|
EffectSQLiteTransaction: () => EffectSQLiteTransaction2,
|
|
25
|
-
make: () =>
|
|
25
|
+
make: () => make22,
|
|
26
26
|
makeWithDefaults: () => makeWithDefaults2,
|
|
27
27
|
managesTransactionsNatively: () => managesTransactionsNatively2
|
|
28
28
|
});
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event9,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options9,
|
|
17
|
+
Service: () => Service53,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured10,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer19,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node58,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event9 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options9 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service53 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer19 = (options) => Layer.effect(Service53, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service53.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer18 = (options) => Layer.effect(Service48, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service53.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer19().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service53).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service53, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured10(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service53, layer: layer19(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node58 = configured10();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event9, hasNativeBinding2, Native3, Options9, Service53, Test3, layer19, testLayer3, nativeLayer2, nativeNode2, configured10, node58, exports_watcher };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-service-map-pwqjnrnh.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-service-map-ckecvw8r.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
16
|
+
ID: () => ID10,
|
|
17
|
+
Info: () => Info23,
|
|
18
18
|
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service69,
|
|
21
|
+
node: () => node73
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID10 = PermissionSaved.ID;
|
|
29
|
+
var Info23 = PermissionSaved.Info;
|
|
30
30
|
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -36,9 +36,9 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service69 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
42
42
|
const db = (yield* Service84).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID10.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service69.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node73 = makeGlobalNode({ service: Service69, layer, deps: [node88] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID10, Info23, ListInput4, AddInput2, Service69, node73, exports_saved };
|