@opencode/core 0.0.0-beta-19288 → 0.0.0-beta-19296
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/{location-p72z5xx6.js → websearch-021awceq.js} +2 -2
- package/dist/chunks/{location-pg1rtztb.js → websearch-04zx74aq.js} +53 -53
- package/dist/chunks/{location-5kw0n2ma.js → websearch-05xfxpq7.js} +8 -8
- package/dist/chunks/{location-k7d0894y.js → websearch-067w384p.js} +9 -9
- package/dist/chunks/{location-gxq3v17r.js → websearch-0755jzb2.js} +15 -15
- package/dist/chunks/{location-9tk4atd8.js → websearch-0erg3m1e.js} +17 -17
- package/dist/chunks/{location-xwwz9aqf.js → websearch-0gr7cw0d.js} +4 -4
- package/dist/chunks/{location-apys6pqf.js → websearch-0n9gyfew.js} +4 -4
- package/dist/chunks/{location-0paq2nw3.js → websearch-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-0q0f95c6.js → websearch-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-bw60cda1.js → websearch-0vc4g4y4.js} +35 -35
- package/dist/chunks/{location-t6dzybgg.js → websearch-11crq5fk.js} +18 -18
- package/dist/chunks/{location-g8d3gcyj.js → websearch-19vf66h0.js} +7 -7
- package/dist/chunks/{location-ac0cyhm9.js → websearch-1bj5saeq.js} +43 -43
- package/dist/chunks/{location-0bzsvv4f.js → websearch-1cc28rc9.js} +8 -8
- package/dist/chunks/{location-37hegrs4.js → websearch-1d8a1kez.js} +13 -13
- package/dist/chunks/{location-1dazxqgg.js → websearch-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-1dfhrqqs.js → websearch-1dfhrqqs.js} +2 -2
- package/dist/chunks/{location-6cd6tdvt.js → websearch-1fz7hf79.js} +6 -6
- package/dist/chunks/{location-6zyexpsp.js → websearch-1nx7yvga.js} +15 -15
- package/dist/chunks/{location-3xt2dn0n.js → websearch-1q463h1w.js} +13 -13
- package/dist/chunks/{location-k1e9d5er.js → websearch-1sfa2a0d.js} +13 -13
- package/dist/chunks/{location-d36y1n73.js → websearch-1wc53y1e.js} +12 -12
- package/dist/chunks/{location-wyam1r5m.js → websearch-1wxb385z.js} +1 -1
- package/dist/chunks/{location-1x11rq2a.js → websearch-1x11rq2a.js} +1 -1
- package/dist/chunks/{location-33w4ejhs.js → websearch-1ygqh575.js} +6 -6
- package/dist/chunks/{location-21r38tys.js → websearch-21r38tys.js} +1 -1
- package/dist/chunks/{location-2402vzrj.js → websearch-2402vzrj.js} +1 -1
- package/dist/chunks/{location-q3m96704.js → websearch-26xtjh69.js} +30 -30
- package/dist/chunks/{location-z63w68vq.js → websearch-29x78va6.js} +6 -6
- package/dist/chunks/{location-2a5m3afh.js → websearch-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-gsx0ryk4.js → websearch-2bt6bea8.js} +9 -9
- package/dist/chunks/{location-qgn6gcr1.js → websearch-2k8khapm.js} +5 -5
- package/dist/chunks/{location-ph9kp892.js → websearch-2my2jec7.js} +5 -5
- package/dist/chunks/{location-5892jdtn.js → websearch-2n295dmf.js} +8 -8
- package/dist/chunks/{location-zkt8qzze.js → websearch-2nkb2xdd.js} +38 -38
- package/dist/chunks/{location-3280sxnm.js → websearch-2pfmtds4.js} +3 -3
- package/dist/chunks/{location-g190xswt.js → websearch-2pnhn36q.js} +21 -21
- package/dist/chunks/{location-gj6r9tb3.js → websearch-2qda5vxm.js} +8 -8
- package/dist/chunks/{location-dc76j9wz.js → websearch-2s50d4an.js} +8 -8
- package/dist/chunks/{location-v3xga481.js → websearch-2swp24h4.js} +9 -9
- package/dist/chunks/{location-07cpqq5c.js → websearch-2xd0aq0j.js} +30 -30
- package/dist/chunks/{location-9g2mmtg8.js → websearch-31y9be5w.js} +24 -24
- package/dist/chunks/{location-k74qewf5.js → websearch-33jfmvf3.js} +15 -15
- package/dist/chunks/{location-24xcqkxa.js → websearch-3are32kr.js} +10 -10
- package/dist/chunks/{location-s7pvzq3g.js → websearch-3cftakhg.js} +23 -23
- package/dist/chunks/{location-fzhxzx5q.js → websearch-3d2zznj1.js} +28 -28
- package/dist/chunks/websearch-3d6cm71h.js +22 -0
- package/dist/chunks/{location-3fc6dm20.js → websearch-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → websearch-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-grrcjh3r.js → websearch-3q76zk4e.js} +6 -6
- package/dist/chunks/{location-3smtnn6g.js → websearch-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → websearch-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-nty3ym86.js → websearch-3vhd93cw.js} +5 -5
- package/dist/chunks/{location-th0feps4.js → websearch-45emdgqj.js} +11 -11
- package/dist/chunks/{location-v4p0vwen.js → websearch-478vk9r5.js} +14 -14
- package/dist/chunks/{location-e46r4s3c.js → websearch-493f7437.js} +11 -11
- package/dist/chunks/{location-nmxf6tf3.js → websearch-49v45h60.js} +21 -21
- package/dist/chunks/{location-fmxbrafm.js → websearch-4mkcvr19.js} +5 -5
- package/dist/chunks/{location-7ny1t5fr.js → websearch-4x3w2b9w.js} +27 -27
- package/dist/chunks/{location-xhg80140.js → websearch-50crwb10.js} +23 -23
- package/dist/chunks/{location-r6yj4sg3.js → websearch-5cmjskm6.js} +11 -11
- package/dist/chunks/{location-mmx9f08p.js → websearch-5d35sq1p.js} +44 -44
- package/dist/chunks/{location-5daktx2q.js → websearch-5daktx2q.js} +1 -1
- package/dist/chunks/{location-a1z1dycg.js → websearch-5dxe2w0c.js} +24 -24
- package/dist/chunks/websearch-5fhb7dgn.js +462 -0
- package/dist/chunks/{location-t0x5rdq8.js → websearch-5kptn8c0.js} +9 -9
- package/dist/chunks/{location-m43qeqsy.js → websearch-5nsrms9d.js} +1 -1
- package/dist/chunks/{location-q221t5h0.js → websearch-5r8gm5p4.js} +9 -9
- package/dist/chunks/{location-5t3nmthw.js → websearch-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-2erkhkk3.js → websearch-61j69c1n.js} +35 -35
- package/dist/chunks/{location-w1k39n5e.js → websearch-64kphnzf.js} +4 -4
- package/dist/chunks/{location-669tq793.js → websearch-669tq793.js} +1 -1
- package/dist/chunks/{location-6qr3rp4k.js → websearch-6ea2fwcg.js} +6 -6
- package/dist/chunks/{location-w54brc8f.js → websearch-6j3xmf2b.js} +12 -12
- package/dist/chunks/{location-dsd22mfz.js → websearch-6mmbv679.js} +3 -3
- package/dist/chunks/{location-6msgmcgs.js → websearch-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-vxp3kcg3.js → websearch-6xw3seg4.js} +5 -5
- package/dist/chunks/{location-71q4at8m.js → websearch-71q4at8m.js} +1 -1
- package/dist/chunks/{location-vqkn863g.js → websearch-72gev72r.js} +26 -26
- package/dist/chunks/{location-7bmhse3q.js → websearch-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-bbwyhmbr.js → websearch-7ftp1p3n.js} +14 -14
- package/dist/chunks/{location-p44d8wdy.js → websearch-7gvwkz6m.js} +5 -5
- package/dist/chunks/{location-kqrx6mz9.js → websearch-7jpweqvj.js} +32 -32
- package/dist/chunks/{location-vt07bx5r.js → websearch-7ktgg3cs.js} +8 -8
- package/dist/chunks/{location-xywxz97c.js → websearch-7zjjknfr.js} +6 -6
- package/dist/chunks/{location-x7728wc6.js → websearch-8301y4zq.js} +27 -27
- package/dist/chunks/{location-nc3fjawf.js → websearch-83x6p9kd.js} +1 -1
- package/dist/chunks/{location-59m3ejf3.js → websearch-89sr0xjz.js} +13 -13
- package/dist/chunks/{location-nc09bz1g.js → websearch-8a3zjqsd.js} +32 -32
- package/dist/chunks/{location-8d7r5vzw.js → websearch-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-8p4f9s12.js → websearch-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-v74jsawt.js → websearch-8t6t38nc.js} +32 -32
- package/dist/chunks/{location-nxts4mre.js → websearch-8xch1t93.js} +24 -24
- package/dist/chunks/{location-p8vbaxe4.js → websearch-8yxyf177.js} +27 -27
- package/dist/chunks/{location-kkedg04s.js → websearch-94sf61n7.js} +11 -11
- package/dist/chunks/{location-dtyxkw1z.js → websearch-98raenma.js} +26 -26
- package/dist/chunks/{location-ztj8pse5.js → websearch-9c1zk87q.js} +15 -15
- package/dist/chunks/{location-7x5129vx.js → websearch-9g8bh1ef.js} +12 -12
- package/dist/chunks/{location-gxbbas38.js → websearch-9j5rkn4p.js} +15 -15
- package/dist/chunks/{location-mgcrt4av.js → websearch-9jvy7ydv.js} +43 -43
- package/dist/chunks/{location-qgzeej5c.js → websearch-9np0bycx.js} +5 -5
- package/dist/chunks/{location-a1bz86dw.js → websearch-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-aaet6srn.js → websearch-aaet6srn.js} +2 -2
- package/dist/chunks/{location-sx1n432n.js → websearch-an7cqtb7.js} +4 -4
- package/dist/chunks/{location-qa467n4w.js → websearch-awadhvm4.js} +3 -3
- package/dist/chunks/{location-0zzhyfap.js → websearch-b2zg7s1d.js} +11 -11
- package/dist/chunks/{location-b6gygkdw.js → websearch-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-6wfj5a9a.js → websearch-b7ns8anh.js} +6 -6
- package/dist/chunks/{location-0yq2vxwx.js → websearch-c29cwycq.js} +23 -23
- package/dist/chunks/{location-gwzbkwjt.js → websearch-c5ykpkef.js} +17 -17
- package/dist/chunks/{location-27xkhkzw.js → websearch-c6vv51zx.js} +24 -24
- package/dist/chunks/{location-r8a1vay2.js → websearch-c76p7jxk.js} +9 -9
- package/dist/chunks/{location-7ny3kv6n.js → websearch-c7ecgrk6.js} +8 -8
- package/dist/chunks/{location-cfpkc3c9.js → websearch-cfpkc3c9.js} +2 -2
- package/dist/chunks/{location-q26tgv94.js → websearch-cmwkp3r5.js} +8 -8
- package/dist/chunks/{location-bha4atvq.js → websearch-cq37gk0t.js} +4 -4
- package/dist/chunks/{location-jp8bt662.js → websearch-czx16w8t.js} +23 -23
- package/dist/chunks/{location-0dh601sh.js → websearch-d4egmwvg.js} +9 -9
- package/dist/chunks/{location-at3ax2rg.js → websearch-d6nr5nr7.js} +30 -30
- package/dist/chunks/{location-g72gjvtz.js → websearch-d95h25nb.js} +8 -8
- package/dist/chunks/{location-6y8723ne.js → websearch-dbehg565.js} +29 -29
- package/dist/chunks/{location-jzx475sk.js → websearch-dbyn5c67.js} +60 -60
- package/dist/chunks/{location-depwzj9d.js → websearch-depwzj9d.js} +2 -2
- package/dist/chunks/{location-zb0kem16.js → websearch-dfvdhkr9.js} +20 -20
- package/dist/chunks/{location-nvpsz6mb.js → websearch-dhrxvkq0.js} +1 -1
- package/dist/chunks/{location-t0fxg8b9.js → websearch-dqmwfghx.js} +5 -5
- package/dist/chunks/{location-barpv3dv.js → websearch-dr2w76rp.js} +31 -31
- package/dist/chunks/{location-9jbrb7s7.js → websearch-dyn65gx1.js} +17 -17
- package/dist/chunks/{location-akj0j9h5.js → websearch-e5q5a43z.js} +2 -2
- package/dist/chunks/{location-8dr2m966.js → websearch-e90e9h05.js} +9 -9
- package/dist/chunks/{location-dj7v5w9k.js → websearch-ed6htbmz.js} +4 -4
- package/dist/chunks/{location-xvs1sa11.js → websearch-en74w496.js} +5 -5
- package/dist/chunks/{location-mhkvc446.js → websearch-eq1pz5kg.js} +3 -3
- package/dist/chunks/{location-etq0c3wd.js → websearch-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-5dgmpcyt.js → websearch-f0a6vjf3.js} +19 -19
- package/dist/chunks/{location-34njjamc.js → websearch-f1qy17ef.js} +10 -10
- package/dist/chunks/{location-7wpt1821.js → websearch-f6j0t076.js} +19 -19
- package/dist/chunks/{location-f828m53h.js → websearch-f828m53h.js} +2 -2
- package/dist/chunks/{location-02hgpx06.js → websearch-fgtgmky3.js} +7 -7
- package/dist/chunks/{location-41jkd1br.js → websearch-fm348ene.js} +24 -24
- package/dist/chunks/{location-fxbjtjnd.js → websearch-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-t45krj2e.js → websearch-g0xxe7ep.js} +6 -6
- package/dist/chunks/{location-vjv4gnc9.js → websearch-g196mbqx.js} +26 -26
- package/dist/chunks/{location-t21qt4wp.js → websearch-g1pypaes.js} +8 -8
- package/dist/chunks/{location-x8pfpgt4.js → websearch-gbr9kgm4.js} +9 -9
- package/dist/chunks/{location-gd4qta3r.js → websearch-gd4qta3r.js} +1 -1
- package/dist/chunks/websearch-gnzk2c3p.js +228 -0
- package/dist/chunks/{location-9k1y1b4w.js → websearch-gpamd96a.js} +6 -6
- package/dist/chunks/{location-nrg6p0d7.js → websearch-gqbb51sz.js} +20 -20
- package/dist/chunks/{location-astwgj0c.js → websearch-gqvas9p6.js} +11 -11
- package/dist/chunks/{location-9h3amn4q.js → websearch-gt0cxfk7.js} +1 -1
- package/dist/chunks/{location-gv6a8nnw.js → websearch-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-rfnzy394.js → websearch-gx1zhcta.js} +1 -1
- package/dist/chunks/{location-h03wrkyp.js → websearch-h03wrkyp.js} +2 -2
- package/dist/chunks/{location-tz2p0jnc.js → websearch-h212frhe.js} +62 -62
- package/dist/chunks/{location-8t891vs4.js → websearch-h6tzq0g1.js} +11 -11
- package/dist/chunks/{location-h6vf3j39.js → websearch-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-x1aqk77e.js → websearch-h7nqhz63.js} +10 -10
- package/dist/chunks/{location-bbd53drz.js → websearch-ha64d30f.js} +177 -177
- package/dist/chunks/{location-atdh1fr1.js → websearch-hgsze466.js} +33 -33
- package/dist/chunks/{location-cy6spc12.js → websearch-hj64bk9y.js} +7 -7
- package/dist/chunks/{location-81c9b8hz.js → websearch-hjcw82wr.js} +4 -4
- package/dist/chunks/{location-afdssyjb.js → websearch-hn57h045.js} +4 -4
- package/dist/chunks/{location-22zgx542.js → websearch-hpm7wbtc.js} +4 -4
- package/dist/chunks/{location-xgcvvaqd.js → websearch-htmh7j47.js} +12 -12
- package/dist/chunks/{location-t97t2t7r.js → websearch-htw1ycyk.js} +11 -11
- package/dist/chunks/{location-3cxp5vcp.js → websearch-hyj2vz80.js} +4 -4
- package/dist/chunks/{location-e328z05c.js → websearch-j22b20c9.js} +14 -14
- package/dist/chunks/{location-dwvzh0g2.js → websearch-j5208yae.js} +6 -6
- package/dist/chunks/{location-j56e64zr.js → websearch-j56e64zr.js} +1 -1
- package/dist/chunks/{location-paphc93g.js → websearch-j935v87r.js} +2 -2
- package/dist/chunks/{location-9k0trt10.js → websearch-jgjn4qh1.js} +11 -11
- package/dist/chunks/{location-3rx2nwvc.js → websearch-jhetwysa.js} +3 -3
- package/dist/chunks/{location-bgeh6wn9.js → websearch-jskxt0f7.js} +17 -17
- package/dist/chunks/{location-jwye7syw.js → websearch-jx8g4evx.js} +9 -9
- package/dist/chunks/{location-7w1wksne.js → websearch-k2w7c5ek.js} +4 -4
- package/dist/chunks/{location-y6498y89.js → websearch-k5jec5xd.js} +20 -20
- package/dist/chunks/{location-2f04pwep.js → websearch-k6yq57aq.js} +3 -3
- package/dist/chunks/{location-eb6ejpsy.js → websearch-k8exn2cw.js} +23 -23
- package/dist/chunks/{location-kg06axw8.js → websearch-kg06axw8.js} +1 -1
- package/dist/chunks/{location-xpbp2ggf.js → websearch-kkyjec0m.js} +22 -22
- package/dist/chunks/{location-d2412gps.js → websearch-kq8jn941.js} +17 -17
- package/dist/chunks/{location-7zmb2mwr.js → websearch-kxwbgyam.js} +3 -3
- package/dist/chunks/{location-essgt512.js → websearch-m2f4f69a.js} +84 -84
- package/dist/chunks/{location-yg5x8fk4.js → websearch-m5q1xh1y.js} +16 -16
- package/dist/chunks/{location-p2fyd12k.js → websearch-m68hgq7s.js} +20 -20
- package/dist/chunks/{location-qfrw2mns.js → websearch-m71ma2ar.js} +19 -19
- package/dist/chunks/{location-m9w0rfyh.js → websearch-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-jjmq01nn.js → websearch-mgj6a2ns.js} +36 -36
- package/dist/chunks/{location-h9kgsp7e.js → websearch-mjqsc3m4.js} +30 -30
- package/dist/chunks/{location-mkcjrzeh.js → websearch-mkcjrzeh.js} +1 -1
- package/dist/chunks/{location-qy2vc8de.js → websearch-mma61h02.js} +11 -11
- package/dist/chunks/{location-r5paa9gw.js → websearch-mrgdqvct.js} +13 -13
- package/dist/chunks/{location-95c54xjs.js → websearch-mss67jyv.js} +41 -41
- package/dist/chunks/{location-3v0ddjaj.js → websearch-n08x0d0z.js} +11 -11
- package/dist/chunks/{location-vma08mpn.js → websearch-n57936qs.js} +18 -18
- package/dist/chunks/{location-nhy5jxhy.js → websearch-nhy5jxhy.js} +1 -1
- package/dist/chunks/{location-66sq9ze3.js → websearch-nxjw51y5.js} +26 -26
- package/dist/chunks/{location-td52w80p.js → websearch-p08t8n2g.js} +20 -20
- package/dist/chunks/{location-5h99c1kf.js → websearch-p0vcawym.js} +6 -6
- package/dist/chunks/{location-0njzyrny.js → websearch-p4q4hee3.js} +28 -28
- package/dist/chunks/{location-yzcb4rs3.js → websearch-pcpkg30b.js} +12 -12
- package/dist/chunks/{location-pjvnvgmy.js → websearch-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → websearch-pknna89w.js} +1 -1
- package/dist/chunks/{location-6h508dp1.js → websearch-pn3svwfm.js} +17 -17
- package/dist/chunks/{location-a1qbdnb3.js → websearch-q1hatp1z.js} +84 -84
- package/dist/chunks/{location-q636n16a.js → websearch-q7h5d3m6.js} +44 -44
- package/dist/chunks/{location-4m2pmvxz.js → websearch-qfzde7bh.js} +6 -6
- package/dist/chunks/{location-4n03wa3j.js → websearch-qs9hxpkb.js} +35 -35
- package/dist/chunks/{location-qsdy395h.js → websearch-qsdy395h.js} +1 -1
- package/dist/chunks/{location-77vyn52g.js → websearch-qttzxqf3.js} +32 -32
- package/dist/chunks/{location-xtbntpkm.js → websearch-qvnm1bpb.js} +7 -7
- package/dist/chunks/{location-fw0f0qsw.js → websearch-qy32snha.js} +46 -46
- package/dist/chunks/{location-v75cpdd6.js → websearch-r3zq2d2f.js} +15 -15
- package/dist/chunks/{location-1hfsjvjf.js → websearch-r4tjn19r.js} +27 -27
- package/dist/chunks/{location-2ydbzgba.js → websearch-r76bmaj0.js} +4 -4
- package/dist/chunks/{location-ydpmm19b.js → websearch-rf53tn46.js} +17 -17
- package/dist/chunks/{location-eaj1djv9.js → websearch-rhjbct0v.js} +8 -8
- package/dist/chunks/{location-d6x20h48.js → websearch-rhpv4pef.js} +40 -40
- package/dist/chunks/{location-81swgkk7.js → websearch-rk0rec3h.js} +9 -9
- package/dist/chunks/{location-jefma2gq.js → websearch-rme5v0wm.js} +10 -10
- package/dist/chunks/{location-sm589ezq.js → websearch-rmvjz9y5.js} +39 -39
- package/dist/chunks/{location-yrznvahk.js → websearch-s4enseaf.js} +2 -2
- package/dist/chunks/{location-m3g1yjqx.js → websearch-sdet2h3j.js} +22 -22
- package/dist/chunks/{location-kkcepbrv.js → websearch-sgfkh1bp.js} +4 -4
- package/dist/chunks/{location-2dqf8fez.js → websearch-snxt8tdc.js} +4 -4
- package/dist/chunks/{location-w4arg62q.js → websearch-ss0awb04.js} +6 -6
- package/dist/chunks/{location-9zb490gy.js → websearch-svekdxsq.js} +10 -10
- package/dist/chunks/{location-61f9xf4r.js → websearch-sx0p1kt4.js} +5 -5
- package/dist/chunks/websearch-szyg4q7j.js +247 -0
- package/dist/chunks/{location-fvz0rdtn.js → websearch-t41sh3fy.js} +12 -12
- package/dist/chunks/{location-cek2cznd.js → websearch-t8mcaem5.js} +1 -1
- package/dist/chunks/{location-tazgh4e4.js → websearch-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → websearch-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-1kqd8z3g.js → websearch-tct0adjb.js} +4 -4
- package/dist/chunks/{location-tdstcens.js → websearch-tdstcens.js} +1 -1
- package/dist/chunks/{location-2n69zwpj.js → websearch-thph018j.js} +23 -23
- package/dist/chunks/{location-dt587sme.js → websearch-tpq6rqx4.js} +33 -33
- package/dist/chunks/{location-tvtrv512.js → websearch-tvtrv512.js} +1 -1
- package/dist/chunks/{location-veqvce7d.js → websearch-veqvce7d.js} +1 -1
- package/dist/chunks/{location-rqay9ghw.js → websearch-vfwqcd3q.js} +24 -24
- package/dist/chunks/{location-f3wm46p4.js → websearch-vn6k26c2.js} +10 -10
- package/dist/chunks/{location-p7tj0pd3.js → websearch-vqdnz30e.js} +15 -15
- package/dist/chunks/{location-vzcthcp8.js → websearch-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-w3wsvvr9.js → websearch-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-hapt17z5.js → websearch-w8cshh8g.js} +24 -24
- package/dist/chunks/{location-yjptyezs.js → websearch-wbkyxrgf.js} +5 -5
- package/dist/chunks/{location-wd87259q.js → websearch-wd87259q.js} +1 -1
- package/dist/chunks/{location-51e3a5p7.js → websearch-wg42tg3h.js} +6 -6
- package/dist/chunks/{location-t4a9fvmm.js → websearch-wshz9cdg.js} +26 -26
- package/dist/chunks/{location-6xkqp8dp.js → websearch-wxbxhdt4.js} +10 -10
- package/dist/chunks/{location-x1ezjp6w.js → websearch-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-ap0kd4ae.js → websearch-x3y69024.js} +15 -15
- package/dist/chunks/{location-x43y2vfs.js → websearch-x43y2vfs.js} +2 -2
- package/dist/chunks/{location-av62z334.js → websearch-xgz9es2x.js} +35 -35
- package/dist/chunks/{location-n2qrf0kt.js → websearch-xh5pks4n.js} +51 -51
- package/dist/chunks/{location-2699pam8.js → websearch-xrn84mgy.js} +28 -28
- package/dist/chunks/{location-8pa9qqqg.js → websearch-xsg863kr.js} +19 -19
- package/dist/chunks/{location-hnbxh1ec.js → websearch-xycjtdwc.js} +2 -2
- package/dist/chunks/{location-4ctep4ed.js → websearch-y19x3nk6.js} +16 -16
- package/dist/chunks/{location-y1fvbwt7.js → websearch-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-y71avatq.js → websearch-y71avatq.js} +1 -1
- package/dist/chunks/{location-7zfdt07m.js → websearch-yet3n8wb.js} +7 -7
- package/dist/chunks/{location-r8xr0va3.js → websearch-yp2x3t23.js} +4 -4
- package/dist/chunks/{location-1xnwpsdb.js → websearch-ypmm91wz.js} +28 -28
- package/dist/chunks/{location-t2y4ag3j.js → websearch-yr3g59gf.js} +18 -18
- package/dist/chunks/{location-yrhqyw5v.js → websearch-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-djxjwwc9.js → websearch-yvmq8qxx.js} +12 -12
- package/dist/chunks/{location-4ycpd48q.js → websearch-yzjzatkn.js} +11 -11
- package/dist/chunks/{location-z0bkrqjs.js → websearch-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-9enfn6ca.js → websearch-z19yvwwa.js} +65 -65
- package/dist/chunks/{location-zeh9ct20.js → websearch-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-ejcg2d9c.js → websearch-zgt86zhe.js} +27 -27
- package/dist/chunks/{location-bjyyddbn.js → websearch-zqcqevqh.js} +11 -11
- package/dist/chunks/{location-zr2ceqn5.js → websearch-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-39gsfx95.js → websearch-zvx2hyhz.js} +24 -24
- package/dist/chunks/{location-zxq2ej10.js → websearch-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-3rran09x.js → websearch-zxwpk2nb.js} +1 -1
- package/dist/chunks/{location-gxr1dr9e.js → websearch-zyr433b0.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- 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 +112 -112
- 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 +113 -113
- 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 +117 -117
- 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 +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.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 +361 -361
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +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 +89 -89
- 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 +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +96 -96
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -91
- 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 +352 -352
- package/dist/instruction-discovery.js +79 -79
- 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 +349 -349
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +122 -122
- 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 +8 -8
- 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 +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +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 +323 -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 +4 -4
- 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 +117 -117
- 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 +115 -115
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- 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 +118 -5
- 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 +156 -156
- package/dist/plugin/sdk.js +72 -72
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +340 -340
- package/dist/plugin/update.js +2 -2
- 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 +6 -6
- 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 +218 -218
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +7 -7
- 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 +86 -86
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- 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 -7
- 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 +148 -148
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- 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 +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- 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 +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- 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 +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +149 -149
- 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 -211
- 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 +13 -13
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +103 -103
- package/dist/snapshot.js +86 -86
- 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 +119 -119
- 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 +98 -98
- package/dist/tool/plugin/read.js +119 -119
- 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/snowflake-cortex.d.ts +5 -4
- 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 +5 -5
- 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 +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +341 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -8
- package/dist/chunks/location-cbzcwh25.js +0 -22
- package/dist/chunks/location-d5hy5d1s.js +0 -71
- package/dist/chunks/location-nzwad44m.js +0 -462
- package/dist/chunks/location-w6mxp700.js +0 -247
- /package/dist/chunks/{location-0mesazry.js → websearch-0mesazry.js} +0 -0
- /package/dist/chunks/{location-0qkdqm5v.js → websearch-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → websearch-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → websearch-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → websearch-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → websearch-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → websearch-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → websearch-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → websearch-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → websearch-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → websearch-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → websearch-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → websearch-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → websearch-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → websearch-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → websearch-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → websearch-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → websearch-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → websearch-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → websearch-6prwharc.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → websearch-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → websearch-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → websearch-822emrt2.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → websearch-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → websearch-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-922hggd3.js → websearch-922hggd3.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → websearch-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → websearch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a1tpkmh4.js → websearch-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → websearch-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → websearch-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → websearch-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → websearch-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → websearch-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → websearch-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → websearch-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → websearch-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → websearch-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → websearch-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → websearch-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → websearch-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → websearch-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → websearch-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → websearch-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → websearch-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → websearch-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → websearch-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → websearch-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → websearch-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → websearch-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → websearch-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → websearch-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → websearch-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → websearch-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → websearch-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → websearch-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → websearch-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → websearch-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hjbc5kem.js → websearch-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → websearch-hk9envan.js} +0 -0
- /package/dist/chunks/{location-hrnqkpcd.js → websearch-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → websearch-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → websearch-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → websearch-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → websearch-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → websearch-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → websearch-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → websearch-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → websearch-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → websearch-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → websearch-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → websearch-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → websearch-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → websearch-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → websearch-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → websearch-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → websearch-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → websearch-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → websearch-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-sk3qaz4a.js → websearch-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → websearch-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-twg0f83k.js → websearch-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → websearch-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → websearch-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → websearch-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → websearch-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → websearch-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → websearch-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → websearch-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → websearch-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → websearch-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → websearch-z9919s4g.js} +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useragent2
|
|
3
|
+
} from "./websearch-jgjn4qh1.js";
|
|
4
|
+
import {
|
|
5
|
+
Service78
|
|
6
|
+
} from "./websearch-htmh7j47.js";
|
|
7
|
+
import {
|
|
8
|
+
OAuth3,
|
|
9
|
+
Event20,
|
|
10
|
+
Service77
|
|
11
|
+
} from "./websearch-hgsze466.js";
|
|
12
|
+
import {
|
|
13
|
+
ID14,
|
|
14
|
+
MethodID2,
|
|
15
|
+
Service75
|
|
16
|
+
} from "./websearch-dr2w76rp.js";
|
|
17
|
+
import {
|
|
18
|
+
success2,
|
|
19
|
+
error2
|
|
20
|
+
} from "./websearch-pjvnvgmy.js";
|
|
21
|
+
import {
|
|
22
|
+
ID17
|
|
23
|
+
} from "./websearch-c7ecgrk6.js";
|
|
24
|
+
import {
|
|
25
|
+
configuredSettings2
|
|
26
|
+
} from "./websearch-qvnm1bpb.js";
|
|
27
|
+
|
|
28
|
+
// src/plugin/provider/snowflake-cortex.ts
|
|
29
|
+
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
|
+
import { Form } from "@opencode/schema/form";
|
|
31
|
+
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
33
|
+
var providerID = ID17.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID14.make(providerID);
|
|
35
|
+
var methodID = MethodID2.make("browser");
|
|
36
|
+
var clientID = "LOCAL_APPLICATION";
|
|
37
|
+
var accountForm = Form.Fields.make([
|
|
38
|
+
{
|
|
39
|
+
type: "string",
|
|
40
|
+
key: "account",
|
|
41
|
+
title: "Snowflake account",
|
|
42
|
+
placeholder: "myorg-myaccount",
|
|
43
|
+
required: true
|
|
44
|
+
}
|
|
45
|
+
]);
|
|
46
|
+
var Token = Schema.Struct({
|
|
47
|
+
access_token: Schema.NonEmptyString,
|
|
48
|
+
refresh_token: Schema.optional(Schema.String),
|
|
49
|
+
expires_in: Schema.optional(Schema.Number)
|
|
50
|
+
});
|
|
51
|
+
var decodeError = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ message: Schema.optional(Schema.Unknown), error: Schema.optional(Schema.Unknown) })));
|
|
52
|
+
var SnowflakeCortexPlugin2 = define({
|
|
53
|
+
id: "opencode.provider.snowflake.cortex",
|
|
54
|
+
effect: Effect.fn(function* (ctx) {
|
|
55
|
+
const http = yield* HttpClient.HttpClient;
|
|
56
|
+
const credentials = yield* Service77;
|
|
57
|
+
const integrations = yield* Service75;
|
|
58
|
+
const bus = yield* Service78;
|
|
59
|
+
const configured = yield* configuredSettings2(providerID);
|
|
60
|
+
const account = { value: "" };
|
|
61
|
+
const saved = Effect.gen(function* () {
|
|
62
|
+
const connection = yield* integrations.connection.active(integrationID);
|
|
63
|
+
return connection?.type === "credential" ? yield* credentials.get(connection.id) : undefined;
|
|
64
|
+
});
|
|
65
|
+
const token = Effect.fn(function* (account, form) {
|
|
66
|
+
if (!account)
|
|
67
|
+
return yield* Effect.fail(new Error("Snowflake account is required"));
|
|
68
|
+
const response = yield* http.execute(HttpClientRequest.post(`${issuer(account)}/oauth/token-request`).pipe(HttpClientRequest.setHeaders({
|
|
69
|
+
Accept: "application/json",
|
|
70
|
+
"User-Agent": useragent2(ctx.app),
|
|
71
|
+
Authorization: `Basic ${Buffer.from(`${clientID}:${clientID}`).toString("base64")}`
|
|
72
|
+
}), HttpClientRequest.bodyUrlParams({ ...form, client_id: clientID })));
|
|
73
|
+
if (response.status < 200 || response.status >= 300)
|
|
74
|
+
return yield* Effect.fail(new Error(`Snowflake token request failed (${response.status}): ${yield* response.text}`));
|
|
75
|
+
const tokens = yield* HttpClientResponse.schemaBodyJson(Token)(response);
|
|
76
|
+
const refresh = tokens.refresh_token || form.refresh_token;
|
|
77
|
+
if (!refresh)
|
|
78
|
+
return yield* Effect.fail(new Error("Snowflake token response did not include refresh_token"));
|
|
79
|
+
return OAuth3.make({
|
|
80
|
+
type: "oauth",
|
|
81
|
+
methodID,
|
|
82
|
+
access: tokens.access_token,
|
|
83
|
+
refresh,
|
|
84
|
+
expires: (yield* Clock.currentTimeMillis) + (tokens.expires_in ?? 600) * 1000,
|
|
85
|
+
metadata: { account }
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
const refresh = (value) => token(normalizeAccount(value.metadata?.account), { grant_type: "refresh_token", refresh_token: value.refresh });
|
|
89
|
+
yield* ctx.integration.transform((editor) => {
|
|
90
|
+
editor.method.update({
|
|
91
|
+
integrationID,
|
|
92
|
+
method: { type: "key", label: "Paste PAT or bearer token", form: accountForm }
|
|
93
|
+
});
|
|
94
|
+
editor.method.update({
|
|
95
|
+
integrationID,
|
|
96
|
+
method: { type: "env", names: ["SNOWFLAKE_CORTEX_TOKEN", "SNOWFLAKE_CORTEX_PAT"] }
|
|
97
|
+
});
|
|
98
|
+
editor.method.update({
|
|
99
|
+
integrationID,
|
|
100
|
+
method: {
|
|
101
|
+
id: methodID,
|
|
102
|
+
type: "oauth",
|
|
103
|
+
label: "Login with Snowflake (External Browser)",
|
|
104
|
+
form: [...accountForm, { type: "string", key: "role", title: "Snowflake role (optional)" }]
|
|
105
|
+
},
|
|
106
|
+
refresh: (value) => envToken() ? Effect.succeed(value) : refresh(value),
|
|
107
|
+
label: (value) => normalizeAccount(value.metadata?.account),
|
|
108
|
+
authorize: (answer) => Effect.gen(function* () {
|
|
109
|
+
const account = normalizeAccount(answer.account);
|
|
110
|
+
if (!account)
|
|
111
|
+
return yield* Effect.fail(new Error("Snowflake account is required"));
|
|
112
|
+
const role = typeof answer.role === "string" ? answer.role.trim() : "";
|
|
113
|
+
const verifier = Buffer.from(crypto.getRandomValues(new Uint8Array(48))).toString("base64url");
|
|
114
|
+
const challenge = Buffer.from(yield* Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))).toString("base64url");
|
|
115
|
+
const state = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
|
|
116
|
+
const code = yield* Deferred.make();
|
|
117
|
+
const { createServer } = yield* Effect.promise(() => import("node:http"));
|
|
118
|
+
const { EventEmitter } = yield* Effect.promise(() => import("node:events"));
|
|
119
|
+
const server = createServer((request, response) => {
|
|
120
|
+
const url = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
121
|
+
if (url.pathname !== "/") {
|
|
122
|
+
response.writeHead(404).end();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const value = url.searchParams.get("code");
|
|
126
|
+
const error = url.searchParams.get("state") !== state ? "Invalid OAuth state" : url.searchParams.get("error_description") || url.searchParams.get("error") || (!value ? "Missing authorization code" : undefined);
|
|
127
|
+
Effect.runFork(error ? Deferred.fail(code, new Error(error)) : Deferred.succeed(code, value ?? ""));
|
|
128
|
+
response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "Snowflake" }) : success2({ provider: "Snowflake" }));
|
|
129
|
+
});
|
|
130
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => server.close()));
|
|
131
|
+
yield* Effect.tryPromise(() => EventEmitter.once(server.listen(0, "127.0.0.1"), "listening"));
|
|
132
|
+
const address = server.address();
|
|
133
|
+
if (!address || typeof address === "string")
|
|
134
|
+
return yield* Effect.fail(new Error("Missing OAuth callback port"));
|
|
135
|
+
const redirect = `http://127.0.0.1:${address.port}/`;
|
|
136
|
+
return {
|
|
137
|
+
mode: "auto",
|
|
138
|
+
url: `${issuer(account)}/oauth/authorize?${new URLSearchParams({
|
|
139
|
+
client_id: clientID,
|
|
140
|
+
response_type: "code",
|
|
141
|
+
redirect_uri: redirect,
|
|
142
|
+
state,
|
|
143
|
+
scope: !role ? "refresh_token" : /^[-_A-Za-z0-9]+$/.test(role) ? `refresh_token session:role:${role}` : `refresh_token session:role-encoded:${encodeURIComponent(role)}`,
|
|
144
|
+
code_challenge: challenge,
|
|
145
|
+
code_challenge_method: "S256"
|
|
146
|
+
}).toString()}`,
|
|
147
|
+
instructions: "Complete Snowflake sign-in in your browser.",
|
|
148
|
+
callback: Effect.gen(function* () {
|
|
149
|
+
return yield* token(account, {
|
|
150
|
+
grant_type: "authorization_code",
|
|
151
|
+
code: yield* Deferred.await(code),
|
|
152
|
+
redirect_uri: redirect,
|
|
153
|
+
code_verifier: verifier
|
|
154
|
+
});
|
|
155
|
+
})
|
|
156
|
+
};
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
const load = Effect.gen(function* () {
|
|
161
|
+
const value = (yield* saved)?.value;
|
|
162
|
+
account.value = normalizeAccount(process.env.SNOWFLAKE_ACCOUNT ?? (value?.type === "key" ? value.configuration?.account ?? value.metadata?.account : value?.metadata?.account) ?? configured?.account);
|
|
163
|
+
});
|
|
164
|
+
yield* load;
|
|
165
|
+
yield* ctx.catalog.transform((catalog) => {
|
|
166
|
+
const item = catalog.provider.get(providerID);
|
|
167
|
+
if (!item)
|
|
168
|
+
return;
|
|
169
|
+
const settings = { ...item.provider.settings, ...configured };
|
|
170
|
+
item.provider.settings = {
|
|
171
|
+
...settings,
|
|
172
|
+
baseURL: endpoint(settings.baseURL, account.value),
|
|
173
|
+
...typeof settings.token === "string" ? { apiKey: settings.token } : {}
|
|
174
|
+
};
|
|
175
|
+
for (const model of item.models.values()) {
|
|
176
|
+
model.compatibility = { maxTokensField: "max_completion_tokens", ...model.compatibility };
|
|
177
|
+
if (model.settings?.baseURL !== undefined)
|
|
178
|
+
model.settings.baseURL = endpoint(model.settings.baseURL, account.value);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
182
|
+
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
183
|
+
const token = envToken();
|
|
184
|
+
if (token)
|
|
185
|
+
event.request.headers.set("authorization", `Bearer ${token}`);
|
|
186
|
+
event.request.headers.set("user-agent", useragent2(ctx.app));
|
|
187
|
+
}), { providerID });
|
|
188
|
+
yield* ctx.session.hook("http.response", Effect.fn(function* (event) {
|
|
189
|
+
if (event.response.status !== 400)
|
|
190
|
+
return;
|
|
191
|
+
const error = Option.getOrUndefined(decodeError(yield* Effect.promise(() => event.response.clone().text())));
|
|
192
|
+
const message = String(error?.message || error?.error || "");
|
|
193
|
+
if (!message.toLowerCase().includes("conversation complete"))
|
|
194
|
+
return;
|
|
195
|
+
event.response = new Response(`data: {"choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
|
|
196
|
+
|
|
197
|
+
data: [DONE]
|
|
198
|
+
|
|
199
|
+
`, { headers: { "content-type": "text/event-stream" } });
|
|
200
|
+
}), { providerID });
|
|
201
|
+
yield* ctx.session.hook("retry", Effect.fn(function* (event) {
|
|
202
|
+
if (event.error.status !== 401 || event.attempt !== 2 || envToken())
|
|
203
|
+
return;
|
|
204
|
+
const current = yield* saved;
|
|
205
|
+
if (current?.value.type !== "oauth" || current.value.methodID !== methodID)
|
|
206
|
+
return;
|
|
207
|
+
yield* credentials.update(current.id, { value: yield* refresh(current.value).pipe(Effect.orDie) });
|
|
208
|
+
event.decision = { retry: true, delay: 0 };
|
|
209
|
+
}), { providerID });
|
|
210
|
+
})
|
|
211
|
+
});
|
|
212
|
+
function normalizeAccount(value) {
|
|
213
|
+
if (typeof value !== "string")
|
|
214
|
+
return "";
|
|
215
|
+
return value.trim().replace(/^https?:\/\//i, "").replace(/\/+$/, "").replace(/\.snowflakecomputing\.com$/i, "");
|
|
216
|
+
}
|
|
217
|
+
function issuer(account) {
|
|
218
|
+
return `https://${account}.snowflakecomputing.com`;
|
|
219
|
+
}
|
|
220
|
+
function endpoint(value, account) {
|
|
221
|
+
const baseURL = typeof value === "string" ? value : `${issuer("${SNOWFLAKE_ACCOUNT}")}/api/v2/cortex/v1`;
|
|
222
|
+
return account ? baseURL.replaceAll("${SNOWFLAKE_ACCOUNT}", account) : baseURL;
|
|
223
|
+
}
|
|
224
|
+
function envToken() {
|
|
225
|
+
return process.env.SNOWFLAKE_CORTEX_TOKEN ?? process.env.SNOWFLAKE_CORTEX_PAT;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export { SnowflakeCortexPlugin2 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-jgjn4qh1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID17,
|
|
6
6
|
isAISDK2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./websearch-c7ecgrk6.js";
|
|
8
8
|
import {
|
|
9
9
|
iife2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./websearch-1kg9ymc8.js";
|
|
11
11
|
import {
|
|
12
12
|
configuredSettings2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./websearch-qvnm1bpb.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
16
16
|
import os from "os";
|
|
17
17
|
import { Effect } from "effect";
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Form } from "@opencode/schema/form";
|
|
20
|
-
var providerID =
|
|
20
|
+
var providerID = ID17.make("cloudflare-workers-ai");
|
|
21
21
|
var CloudflareWorkersAIPlugin2 = define({
|
|
22
22
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
23
23
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service78,
|
|
3
|
+
node83
|
|
4
|
+
} from "./websearch-htmh7j47.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./websearch-kg06axw8.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./websearch-h212frhe.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./websearch-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/skill.ts
|
|
16
16
|
var exports_skill5 = {};
|
|
@@ -19,14 +19,14 @@ __export(exports_skill5, {
|
|
|
19
19
|
EmbeddedSource: () => EmbeddedSource2,
|
|
20
20
|
Event: () => Event7,
|
|
21
21
|
ID: () => ID5,
|
|
22
|
-
Info: () =>
|
|
22
|
+
Info: () => Info7,
|
|
23
23
|
Name: () => Name2,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service46,
|
|
25
25
|
Skill: () => exports_skill5,
|
|
26
|
-
Source: () =>
|
|
26
|
+
Source: () => Source4,
|
|
27
27
|
UrlSource: () => UrlSource2,
|
|
28
28
|
available: () => available2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node49,
|
|
30
30
|
prepare: () => prepare3,
|
|
31
31
|
toModelOutput: () => toModelOutput3
|
|
32
32
|
});
|
|
@@ -38,8 +38,8 @@ import { Event as Event7 } from "@opencode/schema/skill";
|
|
|
38
38
|
var DirectorySource2 = Skill.DirectorySource;
|
|
39
39
|
var UrlSource2 = Skill.UrlSource;
|
|
40
40
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var Source4 = Skill.Source;
|
|
42
|
+
var Info7 = Skill.Info;
|
|
43
43
|
var ID5 = Skill.ID;
|
|
44
44
|
var Name2 = Skill.Name;
|
|
45
45
|
var available2 = (skills, agent) => skills.filter((skill) => evaluate2("skill", skill.id, agent.permissions).effect !== "deny");
|
|
@@ -71,10 +71,10 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service46 extends Context.Service()("@opencode/Skill") {
|
|
75
75
|
}
|
|
76
|
-
var layer = Layer.effect(
|
|
77
|
-
const bus = yield*
|
|
76
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
77
|
+
const bus = yield* Service78;
|
|
78
78
|
const state = create3({
|
|
79
79
|
name: "skill",
|
|
80
80
|
initial: () => ({ skills: new Map }),
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
97
97
|
}),
|
|
98
98
|
notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return Service46.of({
|
|
101
101
|
transform: state.transform,
|
|
102
102
|
reload: state.reload,
|
|
103
103
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
}));
|
|
111
|
-
var
|
|
112
|
-
service:
|
|
111
|
+
var node49 = makeLocationNode({
|
|
112
|
+
service: Service46,
|
|
113
113
|
layer,
|
|
114
|
-
deps: [
|
|
114
|
+
deps: [node83]
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
117
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info7, ID5, Name2, available2, toModelOutput3, prepare3, Service46, node49, exports_skill5, Event7 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service60
|
|
4
|
+
} from "./websearch-5d35sq1p.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service63
|
|
7
|
+
} from "./websearch-m71ma2ar.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./websearch-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./websearch-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
16
|
var exports_shell2 = {};
|
|
17
17
|
__export(exports_shell2, {
|
|
18
18
|
ConfigShellPlugin: () => exports_shell2,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin41
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin41 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service60;
|
|
27
|
+
const shell = yield* Service63;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin32 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin41, exports_shell2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./websearch-tdstcens.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/publish-llm-event.ts
|
|
9
9
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service78,
|
|
3
|
+
node83
|
|
4
|
+
} from "./websearch-htmh7j47.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service71,
|
|
7
|
+
node76
|
|
8
|
+
} from "./websearch-pn3svwfm.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID8,
|
|
11
|
+
Service57,
|
|
12
|
+
node60
|
|
13
|
+
} from "./websearch-4x3w2b9w.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError7
|
|
16
|
+
} from "./websearch-067w384p.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service56,
|
|
19
|
+
node59
|
|
20
|
+
} from "./websearch-7ftp1p3n.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./websearch-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service55,
|
|
26
|
+
node58
|
|
27
|
+
} from "./websearch-9c1zk87q.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service64,
|
|
30
|
+
node67
|
|
31
|
+
} from "./websearch-2s50d4an.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./websearch-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission = {};
|
|
38
|
+
__export(exports_permission, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
49
|
-
Reply: () =>
|
|
45
|
+
Event: () => Event10,
|
|
46
|
+
ID: () => ID6,
|
|
47
|
+
NotFoundError: () => NotFoundError6,
|
|
48
|
+
Permission: () => exports_permission,
|
|
49
|
+
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
|
-
Request: () =>
|
|
52
|
-
Rule: () =>
|
|
51
|
+
Request: () => Request2,
|
|
52
|
+
Rule: () => Rule2,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service54,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node57
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule2, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event10 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID6 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -74,20 +74,20 @@ var RequestFields = {
|
|
|
74
74
|
metadata: Permission.Request.fields.metadata,
|
|
75
75
|
source: Permission.Request.fields.source
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
var
|
|
77
|
+
var Request2 = Permission.Request;
|
|
78
|
+
var Reply2 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID6.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID8.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
86
|
-
reply:
|
|
85
|
+
requestID: ID6,
|
|
86
|
+
reply: Reply2,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID6,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError6 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID6
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service54 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
131
|
-
const bus = yield*
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
130
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
131
|
+
const bus = yield* Service78;
|
|
132
|
+
const location = yield* Service71;
|
|
133
|
+
const agents = yield* Service57;
|
|
134
|
+
const sessions = yield* Service56;
|
|
135
|
+
const saved = yield* Service55;
|
|
136
|
+
const hooks = yield* Service64;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
yield* Effect.addFinalizer(() => Effect.forEach(pending.values(), (item) => Deferred.fail(item.deferred, new DeclinedError2), {
|
|
139
139
|
discard: true
|
|
@@ -150,7 +150,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
150
150
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
151
151
|
const session = yield* sessions.get(sessionID);
|
|
152
152
|
if (!session)
|
|
153
|
-
return yield* new
|
|
153
|
+
return yield* new NotFoundError7({ sessionID });
|
|
154
154
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
155
155
|
return agent?.permissions ?? missingAgentPermissions;
|
|
156
156
|
});
|
|
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
180
180
|
});
|
|
181
181
|
function request(input, message) {
|
|
182
182
|
return {
|
|
183
|
-
id: input.id ??
|
|
183
|
+
id: input.id ?? ID6.create(),
|
|
184
184
|
sessionID: input.sessionID,
|
|
185
185
|
action: input.action,
|
|
186
186
|
resources: input.resources,
|
|
@@ -228,7 +228,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
228
228
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
229
229
|
const existing = pending.get(input.requestID);
|
|
230
230
|
if (!existing)
|
|
231
|
-
return yield* new
|
|
231
|
+
return yield* new NotFoundError6({ requestID: input.requestID });
|
|
232
232
|
yield* bus.publish(Permission.Event.Replied, {
|
|
233
233
|
sessionID: existing.request.sessionID,
|
|
234
234
|
requestID: existing.request.id,
|
|
@@ -283,12 +283,12 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
283
283
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
284
284
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
285
285
|
});
|
|
286
|
-
return
|
|
286
|
+
return Service54.of({ ask, assert, reply, get, forSession, list });
|
|
287
287
|
}));
|
|
288
|
-
var
|
|
289
|
-
service:
|
|
288
|
+
var node57 = makeLocationNode({
|
|
289
|
+
service: Service54,
|
|
290
290
|
layer,
|
|
291
|
-
deps: [
|
|
291
|
+
deps: [node83, node76, node60, node59, node58, node67]
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
export { PermissionEffect,
|
|
294
|
+
export { PermissionEffect, ID6, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError6, evaluate2, merge2, Service54, node57, exports_permission, Rule2, Ruleset2, Event10 };
|