Skip to content

Commit 5a3720f

Browse files
committed
refactor: move exa to last in auto-detect order (65)
Co-Authored-By: Louis Walsh <[email protected]>
1 parent a1acd75 commit 5a3720f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extensions/exa/src/exa-web-search-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function createExaWebSearchProvider(): WebSearchProviderPlugin {
176176
placeholder: "exa-...",
177177
signupUrl: "https://exa.ai/",
178178
docsUrl: "https://docs.exa.ai/",
179-
autoDetectOrder: 5,
179+
autoDetectOrder: 65,
180180
credentialPath: "plugins.entries.exa.config.webSearch.apiKey",
181181
inactiveSecretPaths: ["plugins.entries.exa.config.webSearch.apiKey"],
182182
getCredentialValue: (searchConfig) => searchConfig?.apiKey,

src/plugins/web-search-providers.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import {
88
} from "./web-search-providers.js";
99

1010
const 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

2020
const { 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

Comments
 (0)