@@ -8,13 +8,13 @@ import {
88} from "./web-search-providers.js" ;
99
1010const BUNDLED_WEB_SEARCH_PROVIDERS = [
11- { pluginId : "exa" , id : "exa" , order : 5 } ,
1211 { pluginId : "brave" , id : "brave" , order : 10 } ,
1312 { pluginId : "google" , id : "gemini" , order : 20 } ,
1413 { pluginId : "xai" , id : "grok" , order : 30 } ,
1514 { pluginId : "moonshot" , id : "kimi" , order : 40 } ,
1615 { pluginId : "perplexity" , id : "perplexity" , order : 50 } ,
1716 { pluginId : "firecrawl" , id : "firecrawl" , order : 60 } ,
17+ { pluginId : "exa" , id : "exa" , order : 65 } ,
1818] as const ;
1919
2020const { loadOpenClawPluginsMock } = vi . hoisted ( ( ) => ( {
@@ -90,22 +90,22 @@ describe("resolvePluginWebSearchProviders", () => {
9090 const providers = resolvePluginWebSearchProviders ( { } ) ;
9191
9292 expect ( providers . map ( ( provider ) => `${ provider . pluginId } :${ provider . id } ` ) ) . toEqual ( [
93- "exa:exa" ,
9493 "brave:brave" ,
9594 "google:gemini" ,
9695 "xai:grok" ,
9796 "moonshot:kimi" ,
9897 "perplexity:perplexity" ,
9998 "firecrawl:firecrawl" ,
99+ "exa:exa" ,
100100 ] ) ;
101101 expect ( providers . map ( ( provider ) => provider . credentialPath ) ) . toEqual ( [
102- "plugins.entries.exa.config.webSearch.apiKey" ,
103102 "plugins.entries.brave.config.webSearch.apiKey" ,
104103 "plugins.entries.google.config.webSearch.apiKey" ,
105104 "plugins.entries.xai.config.webSearch.apiKey" ,
106105 "plugins.entries.moonshot.config.webSearch.apiKey" ,
107106 "plugins.entries.perplexity.config.webSearch.apiKey" ,
108107 "plugins.entries.firecrawl.config.webSearch.apiKey" ,
108+ "plugins.entries.exa.config.webSearch.apiKey" ,
109109 ] ) ;
110110 expect ( providers . find ( ( provider ) => provider . id === "firecrawl" ) ?. applySelectionConfig ) . toEqual (
111111 expect . any ( Function ) ,
@@ -126,13 +126,13 @@ describe("resolvePluginWebSearchProviders", () => {
126126 } ) ;
127127
128128 expect ( providers . map ( ( provider ) => provider . pluginId ) ) . toEqual ( [
129- "exa" ,
130129 "brave" ,
131130 "google" ,
132131 "xai" ,
133132 "moonshot" ,
134133 "perplexity" ,
135134 "firecrawl" ,
135+ "exa" ,
136136 ] ) ;
137137 } ) ;
138138
0 commit comments