@opencode/core 0.0.0-beta-19296 → 0.0.0-beta-19365
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 +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{websearch-26xtjh69.js → location-services-01dqx1kz.js} +24 -24
- package/dist/chunks/{websearch-p0vcawym.js → location-services-03v3txqr.js} +6 -6
- package/dist/chunks/{websearch-2k8khapm.js → location-services-0jwsre1p.js} +5 -5
- package/dist/chunks/{websearch-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
- package/dist/chunks/{websearch-0q0f95c6.js → location-services-0q0f95c6.js} +1 -1
- package/dist/chunks/{websearch-3are32kr.js → location-services-0q0kb4ad.js} +10 -10
- package/dist/chunks/{websearch-2n295dmf.js → location-services-0r684n0p.js} +8 -8
- package/dist/chunks/{websearch-sdet2h3j.js → location-services-13v8yyep.js} +20 -20
- package/dist/chunks/{websearch-p08t8n2g.js → location-services-14qjdv8x.js} +17 -17
- package/dist/chunks/{websearch-49v45h60.js → location-services-17vcgm03.js} +19 -19
- package/dist/chunks/{websearch-yp2x3t23.js → location-services-1acjjqhc.js} +4 -4
- package/dist/chunks/{websearch-eq1pz5kg.js → location-services-1bbkgx8g.js} +3 -3
- package/dist/chunks/{websearch-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
- package/dist/chunks/{websearch-1dfhrqqs.js → location-services-1dfhrqqs.js} +2 -2
- package/dist/chunks/{websearch-d95h25nb.js → location-services-1emffesh.js} +8 -8
- package/dist/chunks/{websearch-m68hgq7s.js → location-services-1j4f8vqa.js} +15 -15
- package/dist/chunks/{websearch-t41sh3fy.js → location-services-1jht073e.js} +12 -12
- package/dist/chunks/{websearch-h7nqhz63.js → location-services-1kxjkr9e.js} +10 -10
- package/dist/chunks/{websearch-mjqsc3m4.js → location-services-1w78zr67.js} +30 -30
- package/dist/chunks/{websearch-yzjzatkn.js → location-services-1x1zf2vh.js} +11 -11
- package/dist/chunks/{websearch-21r38tys.js → location-services-21r38tys.js} +1 -1
- package/dist/chunks/location-services-21w3pn94.js +462 -0
- package/dist/chunks/{websearch-ypmm91wz.js → location-services-25mgdrrq.js} +29 -29
- package/dist/chunks/{websearch-0erg3m1e.js → location-services-26h9dnh4.js} +17 -17
- package/dist/chunks/{websearch-hpm7wbtc.js → location-services-27zz9e36.js} +4 -4
- package/dist/chunks/{websearch-vqdnz30e.js → location-services-28ansd8c.js} +15 -15
- package/dist/chunks/{websearch-x3y69024.js → location-services-28mykjjc.js} +7 -7
- package/dist/chunks/{websearch-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
- package/dist/chunks/location-services-2mhm0ygy.js +247 -0
- package/dist/chunks/{websearch-cq37gk0t.js → location-services-2tfmgkzg.js} +4 -4
- package/dist/chunks/{websearch-c29cwycq.js → location-services-2w3rb6m7.js} +25 -25
- package/dist/chunks/{websearch-45emdgqj.js → location-services-2wgr2zhm.js} +11 -11
- package/dist/chunks/{websearch-1ygqh575.js → location-services-33w4ejhs.js} +6 -6
- package/dist/chunks/{websearch-sx0p1kt4.js → location-services-35cqnyv0.js} +5 -5
- package/dist/chunks/{websearch-xgz9es2x.js → location-services-38h8a3yf.js} +35 -35
- package/dist/chunks/{websearch-xh5pks4n.js → location-services-3aa8y6y8.js} +50 -50
- package/dist/chunks/{websearch-kq8jn941.js → location-services-3cdbrfwe.js} +18 -18
- package/dist/chunks/{websearch-gbr9kgm4.js → location-services-3dh3hjhe.js} +9 -9
- package/dist/chunks/{websearch-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-tpq6rqx4.js → location-services-3n9z35hx.js} +33 -33
- package/dist/chunks/{websearch-mma61h02.js → location-services-3rdnfe1a.js} +11 -11
- package/dist/chunks/{websearch-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
- package/dist/chunks/{websearch-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
- package/dist/chunks/{websearch-nxjw51y5.js → location-services-48btbcp5.js} +24 -24
- package/dist/chunks/{websearch-xrn84mgy.js → location-services-4k80sd60.js} +26 -26
- package/dist/chunks/{websearch-sgfkh1bp.js → location-services-4p58venj.js} +4 -4
- package/dist/chunks/{websearch-snxt8tdc.js → location-services-4te6grs0.js} +4 -4
- package/dist/chunks/{websearch-y19x3nk6.js → location-services-4twgxvm9.js} +16 -16
- package/dist/chunks/{websearch-wbkyxrgf.js → location-services-510m7gjw.js} +5 -5
- package/dist/chunks/{websearch-qs9hxpkb.js → location-services-5bgb8413.js} +35 -35
- package/dist/chunks/{websearch-a1bz86dw.js → location-services-5c4hm403.js} +3 -3
- package/dist/chunks/{websearch-5daktx2q.js → location-services-5daktx2q.js} +1 -1
- package/dist/chunks/{websearch-9g8bh1ef.js → location-services-5p05h9hk.js} +12 -12
- package/dist/chunks/{websearch-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
- package/dist/chunks/{websearch-b2zg7s1d.js → location-services-65py24zx.js} +11 -11
- package/dist/chunks/{websearch-669tq793.js → location-services-669tq793.js} +1 -1
- package/dist/chunks/{websearch-d4egmwvg.js → location-services-6fwabw78.js} +9 -9
- package/dist/chunks/{websearch-2402vzrj.js → location-services-6h73sxmp.js} +5 -5
- package/dist/chunks/{websearch-6msgmcgs.js → location-services-6msgmcgs.js} +1 -1
- package/dist/chunks/{websearch-yr3g59gf.js → location-services-6zb9h53h.js} +19 -19
- package/dist/chunks/{websearch-b7ns8anh.js → location-services-7194xbzc.js} +6 -6
- package/dist/chunks/{websearch-71q4at8m.js → location-services-71q4at8m.js} +1 -1
- package/dist/chunks/{websearch-1wc53y1e.js → location-services-76h67nm5.js} +12 -12
- package/dist/chunks/location-services-77h4sy2b.js +123 -0
- package/dist/chunks/{websearch-gnzk2c3p.js → location-services-77tk9we0.js} +19 -19
- package/dist/chunks/{websearch-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-hgsze466.js → location-services-7btp50nq.js} +33 -33
- package/dist/chunks/{websearch-f0a6vjf3.js → location-services-7h61b3js.js} +22 -22
- package/dist/chunks/{websearch-zqcqevqh.js → location-services-7scnp8fh.js} +11 -11
- package/dist/chunks/{websearch-yvmq8qxx.js → location-services-7tw5v7xe.js} +14 -14
- package/dist/chunks/{websearch-p4q4hee3.js → location-services-7vrm16hs.js} +28 -28
- package/dist/chunks/{websearch-5dxe2w0c.js → location-services-7vvv1tr8.js} +16 -16
- package/dist/chunks/{websearch-zyr433b0.js → location-services-818pfwc9.js} +11 -11
- package/dist/chunks/{websearch-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
- package/dist/chunks/{websearch-gqbb51sz.js → location-services-8hy619a9.js} +26 -26
- package/dist/chunks/{websearch-vn6k26c2.js → location-services-8vzn018h.js} +7 -7
- package/dist/chunks/{websearch-mgj6a2ns.js → location-services-90016ntc.js} +32 -32
- package/dist/chunks/{websearch-c5ykpkef.js → location-services-926w9v4r.js} +17 -17
- package/dist/chunks/{websearch-rf53tn46.js → location-services-938tgqqs.js} +20 -20
- package/dist/chunks/{websearch-83x6p9kd.js → location-services-96yt6zt0.js} +1 -1
- package/dist/chunks/{websearch-zvx2hyhz.js → location-services-9fg9wkmf.js} +24 -24
- package/dist/chunks/{websearch-0gr7cw0d.js → location-services-9h41vc4j.js} +4 -4
- package/dist/chunks/{websearch-kxwbgyam.js → location-services-9q7w8qe9.js} +5 -5
- package/dist/chunks/{websearch-r3zq2d2f.js → location-services-9qx34ve8.js} +16 -16
- package/dist/chunks/{websearch-aaet6srn.js → location-services-aaet6srn.js} +2 -2
- package/dist/chunks/{websearch-f6j0t076.js → location-services-aewz22a9.js} +19 -19
- package/dist/chunks/{websearch-zgt86zhe.js → location-services-afn8c1vq.js} +25 -25
- package/dist/chunks/{websearch-depwzj9d.js → location-services-akybccbs.js} +9 -9
- package/dist/chunks/{websearch-7ftp1p3n.js → location-services-az0y13ra.js} +14 -14
- package/dist/chunks/{websearch-jgjn4qh1.js → location-services-b3frasm9.js} +11 -11
- package/dist/chunks/{websearch-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
- package/dist/chunks/{websearch-2my2jec7.js → location-services-b6khz9cq.js} +5 -5
- package/dist/chunks/{websearch-e90e9h05.js → location-services-b84tpdk1.js} +9 -9
- package/dist/chunks/{websearch-xycjtdwc.js → location-services-bcnz578n.js} +3 -3
- package/dist/chunks/{websearch-478vk9r5.js → location-services-bjtft5hn.js} +14 -14
- package/dist/chunks/{websearch-jx8g4evx.js → location-services-bna2jm49.js} +9 -9
- package/dist/chunks/{websearch-wg42tg3h.js → location-services-bv56xrks.js} +2 -6
- package/dist/chunks/{websearch-9c1zk87q.js → location-services-bvfebvap.js} +15 -15
- package/dist/chunks/{websearch-dqmwfghx.js → location-services-c78bbtc9.js} +5 -5
- package/dist/chunks/{websearch-1bj5saeq.js → location-services-cag037j2.js} +43 -43
- package/dist/chunks/{websearch-tct0adjb.js → location-services-cf55n9f0.js} +6 -6
- package/dist/chunks/{websearch-7zjjknfr.js → location-services-cqm39syx.js} +6 -6
- package/dist/chunks/{websearch-dr2w76rp.js → location-services-cxp4ejjw.js} +31 -31
- package/dist/chunks/{websearch-7gvwkz6m.js → location-services-d2aac7k2.js} +5 -5
- package/dist/chunks/{websearch-8t6t38nc.js → location-services-d3fc49e9.js} +28 -28
- package/dist/chunks/{websearch-dfvdhkr9.js → location-services-d3vw0k0a.js} +20 -20
- package/dist/chunks/{websearch-h212frhe.js → location-services-d5kwtv32.js} +60 -60
- package/dist/chunks/{websearch-021awceq.js → location-services-d9sn21bc.js} +2 -2
- package/dist/chunks/{websearch-q7h5d3m6.js → location-services-dbvb3fc3.js} +44 -44
- package/dist/chunks/{websearch-05xfxpq7.js → location-services-dgmwn8ez.js} +8 -8
- package/dist/chunks/{websearch-9j5rkn4p.js → location-services-dgskfwz0.js} +15 -15
- package/dist/chunks/{websearch-8p4f9s12.js → location-services-dj2t23y0.js} +2 -2
- package/dist/chunks/{websearch-jskxt0f7.js → location-services-dpjp4nqx.js} +17 -17
- package/dist/chunks/{websearch-y71avatq.js → location-services-dpkg50ah.js} +4 -4
- package/dist/chunks/{websearch-04zx74aq.js → location-services-dpqseq3m.js} +47 -47
- package/dist/chunks/{websearch-89sr0xjz.js → location-services-dsgqmc9d.js} +81 -30
- package/dist/chunks/{websearch-cmwkp3r5.js → location-services-dv1qgsyq.js} +8 -8
- package/dist/chunks/{websearch-33jfmvf3.js → location-services-dw47z06m.js} +18 -18
- package/dist/chunks/{websearch-ss0awb04.js → location-services-e6hd9jay.js} +6 -6
- package/dist/chunks/{websearch-4x3w2b9w.js → location-services-ead5n236.js} +27 -27
- package/dist/chunks/{websearch-rhjbct0v.js → location-services-eaj1djv9.js} +8 -8
- package/dist/chunks/{websearch-0755jzb2.js → location-services-eay15qda.js} +15 -15
- package/dist/chunks/{websearch-e5q5a43z.js → location-services-endx0wqw.js} +2 -2
- package/dist/chunks/{websearch-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
- package/dist/chunks/{websearch-6mmbv679.js → location-services-ew99gprq.js} +3 -3
- package/dist/chunks/{websearch-50crwb10.js → location-services-f2mbwh22.js} +22 -22
- package/dist/chunks/{websearch-t8mcaem5.js → location-services-f8q7mv7a.js} +1 -1
- package/dist/chunks/{websearch-gt0cxfk7.js → location-services-fgh0kbhd.js} +1 -1
- package/dist/chunks/{websearch-fxbjtjnd.js → location-services-fxbjtjnd.js} +1 -1
- package/dist/chunks/{websearch-jhetwysa.js → location-services-fygdb7h7.js} +3 -3
- package/dist/chunks/{websearch-2pnhn36q.js → location-services-g190xswt.js} +21 -21
- package/dist/chunks/{websearch-htmh7j47.js → location-services-g4k0nsm5.js} +12 -12
- package/dist/chunks/{websearch-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
- package/dist/chunks/{websearch-3fc6dm20.js → location-services-gdvy8fx6.js} +4 -4
- package/dist/chunks/{websearch-gv6a8nnw.js → location-services-gv6a8nnw.js} +2 -2
- package/dist/chunks/{websearch-1sfa2a0d.js → location-services-gyr4z3nc.js} +13 -13
- package/dist/chunks/{websearch-h03wrkyp.js → location-services-h03wrkyp.js} +2 -2
- package/dist/chunks/{websearch-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
- package/dist/chunks/{websearch-1cc28rc9.js → location-services-hapx9efs.js} +11 -11
- package/dist/chunks/{websearch-f828m53h.js → location-services-hdnk95c8.js} +2 -2
- package/dist/chunks/{websearch-31y9be5w.js → location-services-hg3kf1wh.js} +24 -24
- package/dist/chunks/{websearch-nhy5jxhy.js → location-services-hjt4xg1x.js} +4 -4
- package/dist/chunks/{websearch-g0xxe7ep.js → location-services-hzzdchkt.js} +9 -9
- package/dist/chunks/{websearch-rme5v0wm.js → location-services-j26kwb45.js} +10 -10
- package/dist/chunks/{websearch-j22b20c9.js → location-services-j2er9mpe.js} +14 -14
- package/dist/chunks/{websearch-m2f4f69a.js → location-services-j3e7j141.js} +82 -82
- package/dist/chunks/{websearch-j56e64zr.js → location-services-j56e64zr.js} +1 -1
- package/dist/chunks/{websearch-thph018j.js → location-services-j5pcr10t.js} +23 -23
- package/dist/chunks/{websearch-k6yq57aq.js → location-services-j7wq2tw5.js} +3 -3
- package/dist/chunks/{websearch-61j69c1n.js → location-services-jg1v5s7w.js} +37 -33
- package/dist/chunks/{websearch-2s50d4an.js → location-services-jj63jgrn.js} +8 -8
- package/dist/chunks/{websearch-8yxyf177.js → location-services-jx9yc53e.js} +29 -29
- package/dist/chunks/{websearch-5nsrms9d.js → location-services-k16ay38w.js} +1 -1
- package/dist/chunks/{websearch-h6tzq0g1.js → location-services-k41knq1q.js} +7 -7
- package/dist/chunks/{websearch-k2w7c5ek.js → location-services-k57m1jzp.js} +4 -4
- package/dist/chunks/{websearch-f1qy17ef.js → location-services-kdqxszpx.js} +10 -10
- package/dist/chunks/{websearch-1nx7yvga.js → location-services-kefkpy3s.js} +15 -15
- package/dist/chunks/{websearch-kg06axw8.js → location-services-kg06axw8.js} +1 -1
- package/dist/chunks/{websearch-hyj2vz80.js → location-services-kqd2wwpf.js} +4 -4
- package/dist/chunks/{websearch-zxwpk2nb.js → location-services-ksz0h0wp.js} +1 -1
- package/dist/chunks/{websearch-cfpkc3c9.js → location-services-m0jqrx5p.js} +2 -2
- package/dist/chunks/{websearch-c7ecgrk6.js → location-services-m27pyyd3.js} +6 -6
- package/dist/chunks/{websearch-2bt6bea8.js → location-services-m2d0j7c0.js} +9 -9
- package/dist/chunks/{websearch-6ea2fwcg.js → location-services-m91gvp7t.js} +6 -6
- package/dist/chunks/{websearch-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-svekdxsq.js → location-services-ma4jf699.js} +10 -10
- package/dist/chunks/{websearch-mkcjrzeh.js → location-services-mkcjrzeh.js} +1 -1
- package/dist/chunks/location-services-mvrygv8d.js +22 -0
- package/dist/chunks/{websearch-g196mbqx.js → location-services-n0yhhsrm.js} +28 -28
- package/dist/chunks/{websearch-98raenma.js → location-services-n5deg3hq.js} +26 -26
- package/dist/chunks/{websearch-k8exn2cw.js → location-services-n71swj86.js} +23 -23
- package/dist/chunks/{websearch-4mkcvr19.js → location-services-n76fdqym.js} +5 -5
- package/dist/chunks/{websearch-dyn65gx1.js → location-services-na9jc3zz.js} +15 -15
- package/dist/chunks/{websearch-0vc4g4y4.js → location-services-nt7gfj6r.js} +35 -35
- package/dist/chunks/{websearch-qfzde7bh.js → location-services-p0a23dx6.js} +6 -6
- package/dist/chunks/{websearch-r4tjn19r.js → location-services-p7jc52kh.js} +23 -23
- package/dist/chunks/{websearch-n08x0d0z.js → location-services-p8pncxt6.js} +11 -11
- package/dist/chunks/{websearch-8301y4zq.js → location-services-p9npvqvf.js} +27 -27
- package/dist/chunks/{websearch-64kphnzf.js → location-services-paegk39x.js} +4 -4
- package/dist/chunks/{websearch-j935v87r.js → location-services-paphc93g.js} +2 -2
- package/dist/chunks/{websearch-3q76zk4e.js → location-services-pbmqy3fk.js} +9 -9
- package/dist/chunks/{websearch-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
- package/dist/chunks/{websearch-fgtgmky3.js → location-services-pkgn47pe.js} +7 -7
- package/dist/chunks/{websearch-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-72gev72r.js → location-services-pm3pscn2.js} +28 -28
- package/dist/chunks/{websearch-an7cqtb7.js → location-services-pmr4s4kc.js} +4 -4
- package/dist/chunks/{websearch-k5jec5xd.js → location-services-pn1pd4vv.js} +23 -23
- package/dist/chunks/{websearch-kkyjec0m.js → location-services-prn1pyrq.js} +22 -22
- package/dist/chunks/{websearch-1d8a1kez.js → location-services-pvg1h8v8.js} +13 -13
- package/dist/chunks/{websearch-qy32snha.js → location-services-py6h8ymf.js} +46 -46
- package/dist/chunks/{websearch-dbehg565.js → location-services-pzr03x85.js} +29 -29
- package/dist/chunks/{websearch-9np0bycx.js → location-services-q6fregp6.js} +5 -5
- package/dist/chunks/{websearch-czx16w8t.js → location-services-q7rews6h.js} +19 -19
- package/dist/chunks/{websearch-pcpkg30b.js → location-services-qdprg751.js} +6 -6
- package/dist/chunks/{websearch-493f7437.js → location-services-qh692y7z.js} +11 -11
- package/dist/chunks/{websearch-d6nr5nr7.js → location-services-qq2qyb22.js} +52 -45
- package/dist/chunks/{websearch-mss67jyv.js → location-services-qq79xw43.js} +41 -41
- package/dist/chunks/{websearch-j5208yae.js → location-services-qq8x5mwt.js} +6 -6
- package/dist/chunks/{websearch-qsdy395h.js → location-services-qsdy395h.js} +1 -1
- package/dist/chunks/{websearch-yet3n8wb.js → location-services-qtcbh1xh.js} +10 -10
- package/dist/chunks/{websearch-rmvjz9y5.js → location-services-qvk4e0h1.js} +41 -41
- package/dist/chunks/{websearch-5d35sq1p.js → location-services-qwnhvfyv.js} +42 -42
- package/dist/chunks/{websearch-m71ma2ar.js → location-services-qx0n0hnh.js} +15 -15
- package/dist/chunks/{websearch-0n9gyfew.js → location-services-r3qsfapx.js} +4 -4
- package/dist/chunks/{websearch-5cmjskm6.js → location-services-r4yvx32h.js} +11 -11
- package/dist/chunks/{websearch-1wxb385z.js → location-services-r9babyk8.js} +1 -1
- package/dist/chunks/{websearch-11crq5fk.js → location-services-rcqzqd81.js} +16 -16
- package/dist/chunks/{websearch-8xch1t93.js → location-services-rkkpgdp7.js} +18 -18
- package/dist/chunks/{websearch-hjcw82wr.js → location-services-rmmsmjb4.js} +4 -4
- package/dist/chunks/{websearch-rk0rec3h.js → location-services-rsym84ch.js} +9 -9
- package/dist/chunks/{websearch-9jvy7ydv.js → location-services-rwvbz859.js} +41 -41
- package/dist/chunks/{websearch-6j3xmf2b.js → location-services-rxc2end9.js} +12 -12
- package/dist/chunks/{websearch-3vhd93cw.js → location-services-rzvnvf72.js} +5 -5
- package/dist/chunks/{websearch-dhrxvkq0.js → location-services-sas8pg5s.js} +1 -1
- package/dist/chunks/{websearch-1q463h1w.js → location-services-sbpg0tan.js} +13 -13
- package/dist/chunks/{websearch-rhpv4pef.js → location-services-sdb4t7xa.js} +40 -40
- package/dist/chunks/{websearch-3cftakhg.js → location-services-sk12407m.js} +23 -23
- package/dist/chunks/{websearch-q1hatp1z.js → location-services-sm54wpq2.js} +84 -91
- package/dist/chunks/{websearch-dbyn5c67.js → location-services-sqtkc2m2.js} +55 -55
- package/dist/chunks/{websearch-2swp24h4.js → location-services-sy3r942d.js} +9 -9
- package/dist/chunks/{websearch-5kptn8c0.js → location-services-t0x5rdq8.js} +9 -9
- package/dist/chunks/{websearch-2pfmtds4.js → location-services-t6wppts7.js} +6 -6
- package/dist/chunks/{websearch-mrgdqvct.js → location-services-t7t4ctms.js} +7 -7
- package/dist/chunks/{websearch-w8cshh8g.js → location-services-t8zm0rfy.js} +27 -27
- package/dist/chunks/{websearch-hj64bk9y.js → location-services-t9wdc6hm.js} +7 -7
- package/dist/chunks/{websearch-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
- package/dist/chunks/{websearch-htw1ycyk.js → location-services-tbvegfey.js} +13 -13
- package/dist/chunks/{websearch-tcezcvh9.js → location-services-tcezcvh9.js} +1 -1
- package/dist/chunks/{websearch-tdstcens.js → location-services-tdstcens.js} +1 -1
- package/dist/chunks/{websearch-tvtrv512.js → location-services-tvtrv512.js} +1 -1
- package/dist/chunks/{websearch-1fz7hf79.js → location-services-twbrtgyh.js} +6 -6
- package/dist/chunks/{websearch-8a3zjqsd.js → location-services-tyedwpwk.js} +28 -28
- package/dist/chunks/{websearch-94sf61n7.js → location-services-typb56dn.js} +9 -9
- package/dist/chunks/location-services-v1faaxn9.js +18 -0
- package/dist/chunks/{websearch-19vf66h0.js → location-services-v5dkyp31.js} +4 -4
- package/dist/chunks/{websearch-z19yvwwa.js → location-services-v6x176th.js} +67 -67
- package/dist/chunks/{websearch-awadhvm4.js → location-services-v8nbvaxc.js} +3 -3
- package/dist/chunks/{websearch-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{websearch-xsg863kr.js → location-services-vqfxkn1p.js} +19 -19
- package/dist/chunks/{websearch-vzcthcp8.js → location-services-vzcthcp8.js} +1 -1
- package/dist/chunks/{websearch-2xd0aq0j.js → location-services-vzdxznzr.js} +30 -30
- package/dist/chunks/{websearch-2nkb2xdd.js → location-services-w0vkrcvg.js} +38 -40
- package/dist/chunks/{websearch-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-gx1zhcta.js → location-services-w79zsp0s.js} +1 -1
- package/dist/chunks/{websearch-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-wshz9cdg.js → location-services-weghmnna.js} +26 -26
- package/dist/chunks/{websearch-r76bmaj0.js → location-services-wh6nx8gk.js} +4 -4
- package/dist/chunks/{websearch-qvnm1bpb.js → location-services-wzgdh32c.js} +7 -7
- package/dist/chunks/{websearch-gpamd96a.js → location-services-x0ws3ag5.js} +6 -6
- package/dist/chunks/{websearch-m5q1xh1y.js → location-services-x1091fq2.js} +12 -12
- package/dist/chunks/{websearch-x1ezjp6w.js → location-services-x1ezjp6w.js} +1 -1
- package/dist/chunks/{websearch-ha64d30f.js → location-services-x2hsxp9g.js} +175 -175
- package/dist/chunks/{websearch-x43y2vfs.js → location-services-x43y2vfs.js} +2 -2
- package/dist/chunks/{websearch-gqvas9p6.js → location-services-xwxrb2wb.js} +11 -11
- package/dist/chunks/{websearch-wxbxhdt4.js → location-services-xy39xcbf.js} +10 -10
- package/dist/chunks/{websearch-c6vv51zx.js → location-services-xzx8bjh9.js} +24 -24
- package/dist/chunks/{websearch-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
- package/dist/chunks/{websearch-ed6htbmz.js → location-services-y3c1traj.js} +4 -4
- package/dist/chunks/{websearch-fm348ene.js → location-services-y3fm6296.js} +19 -19
- package/dist/chunks/{websearch-2qda5vxm.js → location-services-y5r1chhz.js} +8 -8
- package/dist/chunks/{websearch-067w384p.js → location-services-y8n92kwn.js} +9 -30
- package/dist/chunks/{websearch-7jpweqvj.js → location-services-yh913qbr.js} +36 -69
- package/dist/chunks/{websearch-3d2zznj1.js → location-services-ypf42t62.js} +22 -22
- package/dist/chunks/{websearch-yrhqyw5v.js → location-services-yrhqyw5v.js} +1 -1
- package/dist/chunks/{websearch-s4enseaf.js → location-services-yrznvahk.js} +2 -2
- package/dist/chunks/{websearch-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{websearch-c76p7jxk.js → location-services-z4cnv83b.js} +9 -9
- package/dist/chunks/{websearch-29x78va6.js → location-services-z63w68vq.js} +6 -6
- package/dist/chunks/{websearch-en74w496.js → location-services-z69s9t6b.js} +5 -5
- package/dist/chunks/{websearch-7ktgg3cs.js → location-services-za8kymys.js} +5 -5
- package/dist/chunks/{websearch-pn3svwfm.js → location-services-zc4z9477.js} +17 -17
- package/dist/chunks/{websearch-zeh9ct20.js → location-services-zeh9ct20.js} +2 -2
- package/dist/chunks/{websearch-6xw3seg4.js → location-services-zk8c4w5t.js} +5 -5
- package/dist/chunks/{websearch-qttzxqf3.js → location-services-zmcbp07n.js} +29 -29
- package/dist/chunks/{websearch-n57936qs.js → location-services-zpdf8d1q.js} +18 -18
- package/dist/chunks/{websearch-vfwqcd3q.js → location-services-zqgbsb8r.js} +24 -24
- package/dist/chunks/{websearch-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
- package/dist/chunks/{websearch-hn57h045.js → location-services-zvt5dnpc.js} +4 -4
- package/dist/chunks/{websearch-5r8gm5p4.js → location-services-zxpvnfs4.js} +9 -9
- package/dist/chunks/{websearch-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
- package/dist/chunks/{websearch-g1pypaes.js → location-services-zz7n74gb.js} +8 -8
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +79 -79
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +115 -115
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +134 -134
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +111 -111
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +115 -115
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -361
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +85 -85
- 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 +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +93 -93
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +94 -94
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +78 -78
- package/dist/generate.js +87 -87
- package/dist/git.js +7 -7
- 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 +3 -3
- 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 +353 -352
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -84
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +131 -131
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +350 -349
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +97 -97
- package/dist/mcp/instructions.js +120 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +10 -10
- package/dist/models-dev.js +74 -74
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +97 -97
- package/dist/plugin/command.js +94 -94
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- 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 +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -0
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -156
- package/dist/plugin/sdk.js +68 -68
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -340
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- 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.js +216 -216
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +82 -82
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -13
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +111 -111
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +124 -124
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- 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 +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +121 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +83 -83
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -217
- 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 +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +98 -98
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +84 -84
- 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 +117 -117
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +96 -96
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/plugin/provider/poe.d.ts +2 -0
- package/dist/types/session/compaction.d.ts +1 -1
- package/dist/types/session/error.d.ts +0 -36
- package/dist/types/session/session.d.ts +1 -5
- package/dist/types/session.d.ts +2 -5
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +342 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -8
- package/dist/chunks/websearch-1x11rq2a.js +0 -18
- package/dist/chunks/websearch-3d6cm71h.js +0 -22
- package/dist/chunks/websearch-5fhb7dgn.js +0 -462
- package/dist/chunks/websearch-szyg4q7j.js +0 -247
- /package/dist/chunks/{websearch-0mesazry.js → location-services-0mesazry.js} +0 -0
- /package/dist/chunks/{websearch-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-922hggd3.js → location-services-922hggd3.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a1tpkmh4.js → location-services-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hjbc5kem.js → location-services-hjbc5kem.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-hrnqkpcd.js → location-services-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-sk3qaz4a.js → location-services-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-twg0f83k.js → location-services-twg0f83k.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service45
|
|
3
|
+
} from "./location-services-p0a23dx6.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-v1faaxn9.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service53
|
|
9
|
+
} from "./location-services-3aa8y6y8.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-services-fxbjtjnd.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-services-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/shell.ts
|
|
18
18
|
var exports_shell3 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service45;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service53), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/repository.ts
|
|
6
6
|
var exports_repository = {};
|
|
@@ -13,7 +13,7 @@ __export(exports_repository, {
|
|
|
13
13
|
cachePath: () => cachePath2,
|
|
14
14
|
isFile: () => isFile2,
|
|
15
15
|
isRemote: () => isRemote2,
|
|
16
|
-
parse: () =>
|
|
16
|
+
parse: () => parse5,
|
|
17
17
|
parseRemote: () => parseRemote2,
|
|
18
18
|
same: () => same2,
|
|
19
19
|
validateBranch: () => validateBranch3
|
|
@@ -39,7 +39,7 @@ class InvalidBranchError3 extends Schema.TaggedError()("RepositoryInvalidBranchE
|
|
|
39
39
|
message: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function parse5(input) {
|
|
43
43
|
const cleaned = normalizeInput(input);
|
|
44
44
|
if (!cleaned)
|
|
45
45
|
return;
|
|
@@ -72,7 +72,7 @@ function parse4(input) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
function parseRemote2(input) {
|
|
75
|
-
const reference =
|
|
75
|
+
const reference = parse5(input);
|
|
76
76
|
if (!reference) {
|
|
77
77
|
throw new InvalidReferenceError2({
|
|
78
78
|
repository: input,
|
|
@@ -172,4 +172,4 @@ function buildFile(input) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3,
|
|
175
|
+
export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse5, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service74,
|
|
3
|
+
node79
|
|
4
|
+
} from "./location-services-zc4z9477.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service24
|
|
7
|
+
} from "./location-services-v1faaxn9.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service22,
|
|
10
|
+
node26
|
|
11
|
+
} from "./location-services-w0vkrcvg.js";
|
|
12
12
|
import {
|
|
13
13
|
node24
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-services-dgskfwz0.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
node3
|
|
17
|
+
} from "./location-services-3n9z35hx.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/worktree/refresh.ts
|
|
23
23
|
var exports_refresh = {};
|
|
24
24
|
__export(exports_refresh, {
|
|
25
25
|
WorktreeRefresh: () => exports_refresh,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node2
|
|
27
27
|
});
|
|
28
28
|
import { Effect, Layer } from "effect";
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
30
30
|
var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
31
|
-
const location = yield*
|
|
32
|
-
const plugins = yield*
|
|
33
|
-
const worktrees = yield*
|
|
31
|
+
const location = yield* Service74;
|
|
32
|
+
const plugins = yield* Service24;
|
|
33
|
+
const worktrees = yield* Service22;
|
|
34
34
|
if (location.workspaceID)
|
|
35
35
|
return;
|
|
36
36
|
yield* plugins.awaitActivation.pipe(Effect.andThen(worktrees.refresh()), Effect.catchCause((cause) => Effect.logWarning("worktree refresh failed", { cause })), Effect.forkScoped);
|
|
37
37
|
}));
|
|
38
|
-
var
|
|
38
|
+
var node2 = makeLocationNode({
|
|
39
39
|
name: "worktree-refresh",
|
|
40
40
|
layer,
|
|
41
|
-
deps: [
|
|
41
|
+
deps: [node26, node79, node24, node3]
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { node2, exports_refresh };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID8,
|
|
3
|
+
Service65
|
|
4
|
+
} from "./location-services-cxp4ejjw.js";
|
|
5
5
|
import {
|
|
6
6
|
isAISDK2,
|
|
7
7
|
packageName2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-m27pyyd3.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/provider/llmgateway.ts
|
|
11
11
|
import { Effect } from "effect";
|
|
@@ -13,7 +13,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
13
13
|
var LLMGatewayPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.llmgateway",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
16
|
-
const integrations = yield*
|
|
16
|
+
const integrations = yield* Service65;
|
|
17
17
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
18
18
|
yield* ctx.catalog.transform((evt) => {
|
|
19
19
|
for (const item of evt.provider.list()) {
|
|
@@ -25,7 +25,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
25
25
|
continue;
|
|
26
26
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
27
27
|
continue;
|
|
28
|
-
if (!configured.has(
|
|
28
|
+
if (!configured.has(ID8.make(item.provider.id)))
|
|
29
29
|
continue;
|
|
30
30
|
evt.provider.update(item.provider.id, (provider) => {
|
|
31
31
|
provider.headers = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
ascending2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-tvtrv512.js";
|
|
7
7
|
import {
|
|
8
8
|
create3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-kg06axw8.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-services-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service57,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node61
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service57 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service57.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node61 = makeLocationNode({
|
|
143
|
+
service: Service57,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service57, node61, exports_tool_output2 };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OAuth3
|
|
3
|
+
} from "./location-services-7btp50nq.js";
|
|
4
|
+
import {
|
|
5
|
+
ID8,
|
|
6
|
+
MethodID2
|
|
7
|
+
} from "./location-services-cxp4ejjw.js";
|
|
8
|
+
import {
|
|
9
|
+
success2,
|
|
10
|
+
error2
|
|
11
|
+
} from "./location-services-pjvnvgmy.js";
|
|
12
|
+
|
|
13
|
+
// src/plugin/provider/poe.ts
|
|
14
|
+
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
|
+
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
17
|
+
var integrationID = ID8.make("poe");
|
|
18
|
+
var methodID = MethodID2.make("browser");
|
|
19
|
+
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
|
+
var issuer = "https://poe.com";
|
|
21
|
+
var maxExpiry = 8640000000000000;
|
|
22
|
+
var Token = Schema.Struct({
|
|
23
|
+
api_key: Schema.Trim.check(Schema.isNonEmpty(), Schema.isPattern(/^\S+$/)),
|
|
24
|
+
api_key_expires_in: Schema.optional(Schema.NullOr(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))))
|
|
25
|
+
});
|
|
26
|
+
var decodeError = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ error: Schema.optional(Schema.String), error_description: Schema.optional(Schema.String) })));
|
|
27
|
+
var PoePlugin2 = define({
|
|
28
|
+
id: "opencode.provider.poe",
|
|
29
|
+
effect: Effect.fn(function* (ctx) {
|
|
30
|
+
const http = yield* HttpClient.HttpClient;
|
|
31
|
+
yield* ctx.integration.transform((editor) => {
|
|
32
|
+
editor.method.update({
|
|
33
|
+
integrationID,
|
|
34
|
+
method: { id: methodID, type: "oauth", label: "Login with Poe (browser)" },
|
|
35
|
+
refresh: (value) => Clock.currentTimeMillis.pipe(Effect.flatMap((now) => value.expires > now ? Effect.succeed(value) : Effect.fail(new Error("Poe API key expired. Log in with Poe again.")))),
|
|
36
|
+
authorize: () => Effect.gen(function* () {
|
|
37
|
+
const verifier = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
|
|
38
|
+
const challenge = Buffer.from(yield* Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))).toString("base64url");
|
|
39
|
+
const state = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
|
|
40
|
+
const callback = yield* Deferred.make();
|
|
41
|
+
const { createServer } = yield* Effect.promise(() => import("node:http"));
|
|
42
|
+
const { EventEmitter } = yield* Effect.promise(() => import("node:events"));
|
|
43
|
+
const server = createServer((request, response) => {
|
|
44
|
+
const url = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
45
|
+
if (request.method !== "GET" || url.pathname !== "/callback") {
|
|
46
|
+
response.writeHead(404).end();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const error = callbackError(url.searchParams, state);
|
|
50
|
+
if (error) {
|
|
51
|
+
response.writeHead(400, { "Content-Type": "text/html" }).end(error2(error, { provider: "Poe" }));
|
|
52
|
+
Effect.runSync(Deferred.fail(callback, new Error(error)));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (!Effect.runSync(Deferred.succeed(callback, { code: url.searchParams.get("code") ?? "", response })))
|
|
56
|
+
response.writeHead(409).end("OAuth callback already received");
|
|
57
|
+
});
|
|
58
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
59
|
+
server.close();
|
|
60
|
+
server.closeAllConnections();
|
|
61
|
+
}));
|
|
62
|
+
yield* Effect.tryPromise(() => EventEmitter.once(server.listen(0, "127.0.0.1"), "listening"));
|
|
63
|
+
const address = server.address();
|
|
64
|
+
if (!address || typeof address === "string")
|
|
65
|
+
return yield* Effect.fail(new Error("Missing OAuth callback port"));
|
|
66
|
+
const redirect = `http://127.0.0.1:${address.port}/callback`;
|
|
67
|
+
return {
|
|
68
|
+
mode: "auto",
|
|
69
|
+
url: `${issuer}/oauth/authorize?${new URLSearchParams({
|
|
70
|
+
response_type: "code",
|
|
71
|
+
client_id: clientID,
|
|
72
|
+
redirect_uri: redirect,
|
|
73
|
+
scope: "apikey:create",
|
|
74
|
+
code_challenge: challenge,
|
|
75
|
+
code_challenge_method: "S256",
|
|
76
|
+
state
|
|
77
|
+
}).toString()}`,
|
|
78
|
+
instructions: "Complete authorization in your browser. This window will close automatically.",
|
|
79
|
+
callback: Effect.gen(function* () {
|
|
80
|
+
const request = yield* Deferred.await(callback);
|
|
81
|
+
const respond = (error) => Effect.sync(() => request.response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "Poe" }) : success2({ provider: "Poe" })));
|
|
82
|
+
return yield* exchangeCode(http, { code: request.code, redirect, verifier }).pipe(Effect.tap(() => respond()), Effect.tapError((error) => respond(error.message)), Effect.onInterrupt(() => Effect.sync(() => request.response.destroy())));
|
|
83
|
+
})
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
function callbackError(params, state) {
|
|
91
|
+
if (params.get("state") !== state)
|
|
92
|
+
return "Invalid OAuth state";
|
|
93
|
+
if (params.has("iss") && params.get("iss") !== issuer)
|
|
94
|
+
return "Invalid OAuth issuer";
|
|
95
|
+
if (params.has("error")) {
|
|
96
|
+
const detail = params.get("error_description") || params.get("error") || "Authorization denied";
|
|
97
|
+
return detail.includes(state) ? "Poe authorization failed" : detail;
|
|
98
|
+
}
|
|
99
|
+
return params.get("code")?.trim() ? undefined : "Missing authorization code";
|
|
100
|
+
}
|
|
101
|
+
function exchangeCode(http, input) {
|
|
102
|
+
return Effect.gen(function* () {
|
|
103
|
+
const response = yield* http.execute(HttpClientRequest.post("https://api.poe.com/token").pipe(HttpClientRequest.bodyUrlParams({
|
|
104
|
+
grant_type: "authorization_code",
|
|
105
|
+
client_id: clientID,
|
|
106
|
+
code: input.code,
|
|
107
|
+
redirect_uri: input.redirect,
|
|
108
|
+
code_verifier: input.verifier
|
|
109
|
+
}))).pipe(Effect.mapError(() => new Error("Poe token exchange request failed")));
|
|
110
|
+
if (response.status < 200 || response.status >= 300) {
|
|
111
|
+
const error = Option.getOrUndefined(decodeError(yield* response.text.pipe(Effect.orElseSucceed(() => ""))));
|
|
112
|
+
const detail = error?.error_description || error?.error;
|
|
113
|
+
return yield* Effect.fail(new Error(detail && ![input.code, input.verifier].some((secret) => detail.includes(secret)) ? `Poe token exchange failed: ${detail}` : `Poe token exchange failed (${response.status})`));
|
|
114
|
+
}
|
|
115
|
+
const token = yield* HttpClientResponse.schemaBodyJson(Token)(response).pipe(Effect.mapError(() => new Error("Invalid Poe token response")));
|
|
116
|
+
const expires = token.api_key_expires_in == null ? maxExpiry : (yield* Clock.currentTimeMillis) + token.api_key_expires_in * 1000;
|
|
117
|
+
if (!Number.isSafeInteger(expires) || expires > maxExpiry)
|
|
118
|
+
return yield* Effect.fail(new Error("Invalid Poe API key expiry"));
|
|
119
|
+
return OAuth3.make({ type: "oauth", methodID, access: token.api_key, refresh: "", expires });
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { PoePlugin2 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-b3frasm9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service79
|
|
6
|
+
} from "./location-services-g4k0nsm5.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event15,
|
|
10
|
+
Service66
|
|
11
|
+
} from "./location-services-7btp50nq.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID8,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service65
|
|
16
|
+
} from "./location-services-cxp4ejjw.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-services-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID18
|
|
23
|
+
} from "./location-services-m27pyyd3.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-services-wzgdh32c.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID18.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID8.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,9 +53,9 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
58
|
-
const bus = yield*
|
|
56
|
+
const credentials = yield* Service66;
|
|
57
|
+
const integrations = yield* Service65;
|
|
58
|
+
const bus = yield* Service79;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -178,7 +178,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
178
178
|
model.settings.baseURL = endpoint(model.settings.baseURL, account.value);
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
|
-
yield* bus.subscribe(
|
|
181
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
182
182
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
183
183
|
const token = envToken();
|
|
184
184
|
if (token)
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2,
|
|
4
4
|
mapUpdateSet2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-emrn6kk6.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/sqlite-core/effect/insert.ts
|
|
8
8
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-v8nbvaxc.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node84
|
|
8
|
+
} from "./location-services-g4k0nsm5.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-services-0q0f95c6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event15,
|
|
24
|
+
ID: () => ID9,
|
|
25
|
+
Info: () => Info23,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service66,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node71
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID9 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event15 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info23 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID9,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service66 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service80).db;
|
|
55
|
-
const bus = yield*
|
|
55
|
+
const bus = yield* Service79;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info23({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service66.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info23({
|
|
80
|
+
id: ID9.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event15.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event15.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event15.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node71 = makeGlobalNode({ service: Service66, layer, deps: [node85, node84] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID9, OAuth3, Key3, Value2, Event15, Info23, Service66, node71, exports_credential };
|