feat: add web search block functionality and integrate with existing plugins

- Introduced a new web search block plugin to handle web search queries and results.
- Updated copilot, doc block, and pro block plugins to include web search context in AI completions.
- Implemented utility functions for parsing and building web search markdown.
- Enhanced API to support web search requests and responses.
- Added configuration for web search URL and timeout settings.
- Updated size limit checks to account for web search content.
This commit is contained in:
“ydy0615”
2026-06-09 19:18:14 +08:00
parent 5a26dfde2a
commit 17d211bf93
38 changed files with 56764 additions and 10 deletions
@@ -0,0 +1,42 @@
rank,engine,score,avg_elapsed_ms,avg_results,queries_with_results,query_count,error_count,unresponsive_count,result_engines
1,bing,162.5,454.4,8.5,2,2,0,0,"[""bing""]"
2,yep,149.4,6559.8,20,2,2,0,0,"[""yep""]"
3,360search,140.0,612.9,4,2,2,0,0,"[""360search""]"
4,searchmysite,130.71,6429.3,10,2,2,0,0,"[""searchmysite""]"
5,startpage,129.21,6128.9,10,2,2,0,0,"[""startpage""]"
6,crowdview,122.0,1811.5,20,1,2,0,0,"[""crowdview""]"
7,duckduckgo news,120.37,2963.2,15,1,2,0,0,"[""duckduckgo news""]"
8,mwmbl,109.85,3615.0,17,1,2,0,0,"[""mwmbl""]"
9,openalex,92.51,7499.3,10,2,2,0,0,"[""openalex""]"
10,brave,92.0,1757.4,8.5,1,2,0,1,"[""brave""]"
11,stackoverflow,91.21,6779.4,5.5,2,2,0,0,"[""stackoverflow""]"
12,crossref,86.86,9674.9,19,2,2,0,0,"[""crossref""]"
13,reuters,83.71,5279.0,10,1,2,0,0,"[""reuters""]"
14,naver news,82.92,5257.9,5,1,2,0,0,"[""naver news""]"
15,github,77.74,5876.0,15,1,2,0,0,"[""github""]"
16,gitlab,67.0,6850.2,10,1,2,0,0,"[""gitlab""]"
17,microsoft learn,63.64,10236.2,9,2,2,0,0,"[""microsoft learn""]"
18,docker hub,63.07,5843.1,5,1,2,0,0,"[""docker hub""]"
19,hackernews,61.14,7536.4,15,1,2,0,0,"[""hackernews""]"
20,bing news,60.0,647.8,0,0,2,0,0,[]
21,brave.news,60.0,1949.2,0,0,2,0,0,[]
22,askubuntu,59.8,6669.6,5,1,2,0,0,"[""askubuntu""]"
23,npm,57.04,7946.2,12.5,1,2,0,0,"[""npm""]"
24,mdn,56.1,10389.9,6,2,2,0,0,"[""mdn""]"
25,arxiv,54.31,7218.6,5,1,2,0,0,"[""arxiv""]"
26,superuser,44.68,7981.8,4,1,2,0,0,"[""superuser""]"
27,pkg.go.dev,40.68,8782.4,25,1,2,0,0,"[""pkg.go.dev""]"
28,sourcehut,22.05,9645.2,1,1,2,0,0,"[""sourcehut""]"
29,startpage news,16.41,6859.0,0,0,2,0,0,[]
30,wikipedia,16.29,6871.1,0,0,2,0,0,[]
31,pubmed,15.5,9049.8,10,1,2,0,1,"[""pubmed""]"
32,pypi,1.03,8397.4,0,0,2,0,0,[]
33,semantic scholar,0,6657.8,0,0,2,0,2,[]
34,wikidata,0,8565.3,0,0,2,0,2,[]
35,lib.rs,0,9375.0,0,0,2,0,2,[]
36,qwant,0,10274.0,0,0,2,0,2,[]
37,qwant news,0,10529.5,0,0,2,0,2,[]
38,mojeek,0,11256.4,0,0,2,0,2,[]
39,mojeek news,0,11503.0,0,0,2,0,2,[]
40,seznam,0,12367.0,0,0,2,0,2,[]
41,wiby,0,15006.0,0,0,2,2,0,[]
1 rank engine score avg_elapsed_ms avg_results queries_with_results query_count error_count unresponsive_count result_engines
2 1 bing 162.5 454.4 8.5 2 2 0 0 ["bing"]
3 2 yep 149.4 6559.8 20 2 2 0 0 ["yep"]
4 3 360search 140.0 612.9 4 2 2 0 0 ["360search"]
5 4 searchmysite 130.71 6429.3 10 2 2 0 0 ["searchmysite"]
6 5 startpage 129.21 6128.9 10 2 2 0 0 ["startpage"]
7 6 crowdview 122.0 1811.5 20 1 2 0 0 ["crowdview"]
8 7 duckduckgo news 120.37 2963.2 15 1 2 0 0 ["duckduckgo news"]
9 8 mwmbl 109.85 3615.0 17 1 2 0 0 ["mwmbl"]
10 9 openalex 92.51 7499.3 10 2 2 0 0 ["openalex"]
11 10 brave 92.0 1757.4 8.5 1 2 0 1 ["brave"]
12 11 stackoverflow 91.21 6779.4 5.5 2 2 0 0 ["stackoverflow"]
13 12 crossref 86.86 9674.9 19 2 2 0 0 ["crossref"]
14 13 reuters 83.71 5279.0 10 1 2 0 0 ["reuters"]
15 14 naver news 82.92 5257.9 5 1 2 0 0 ["naver news"]
16 15 github 77.74 5876.0 15 1 2 0 0 ["github"]
17 16 gitlab 67.0 6850.2 10 1 2 0 0 ["gitlab"]
18 17 microsoft learn 63.64 10236.2 9 2 2 0 0 ["microsoft learn"]
19 18 docker hub 63.07 5843.1 5 1 2 0 0 ["docker hub"]
20 19 hackernews 61.14 7536.4 15 1 2 0 0 ["hackernews"]
21 20 bing news 60.0 647.8 0 0 2 0 0 []
22 21 brave.news 60.0 1949.2 0 0 2 0 0 []
23 22 askubuntu 59.8 6669.6 5 1 2 0 0 ["askubuntu"]
24 23 npm 57.04 7946.2 12.5 1 2 0 0 ["npm"]
25 24 mdn 56.1 10389.9 6 2 2 0 0 ["mdn"]
26 25 arxiv 54.31 7218.6 5 1 2 0 0 ["arxiv"]
27 26 superuser 44.68 7981.8 4 1 2 0 0 ["superuser"]
28 27 pkg.go.dev 40.68 8782.4 25 1 2 0 0 ["pkg.go.dev"]
29 28 sourcehut 22.05 9645.2 1 1 2 0 0 ["sourcehut"]
30 29 startpage news 16.41 6859.0 0 0 2 0 0 []
31 30 wikipedia 16.29 6871.1 0 0 2 0 0 []
32 31 pubmed 15.5 9049.8 10 1 2 0 1 ["pubmed"]
33 32 pypi 1.03 8397.4 0 0 2 0 0 []
34 33 semantic scholar 0 6657.8 0 0 2 0 2 []
35 34 wikidata 0 8565.3 0 0 2 0 2 []
36 35 lib.rs 0 9375.0 0 0 2 0 2 []
37 36 qwant 0 10274.0 0 0 2 0 2 []
38 37 qwant news 0 10529.5 0 0 2 0 2 []
39 38 mojeek 0 11256.4 0 0 2 0 2 []
40 39 mojeek news 0 11503.0 0 0 2 0 2 []
41 40 seznam 0 12367.0 0 0 2 0 2 []
42 41 wiby 0 15006.0 0 0 2 2 0 []