From 98ba5fd9523799289bd98f12d56d618ba970a0e1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 20 Apr 2026 22:14:50 +0100 Subject: [PATCH] fix(extensions): type web search onboarding scopes --- extensions/exa/src/exa-web-search-provider.shared.ts | 3 ++- .../perplexity/src/perplexity-web-search-provider.shared.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/exa/src/exa-web-search-provider.shared.ts b/extensions/exa/src/exa-web-search-provider.shared.ts index 54ec7ed8340..3d1a09ecd6c 100644 --- a/extensions/exa/src/exa-web-search-provider.shared.ts +++ b/extensions/exa/src/exa-web-search-provider.shared.ts @@ -1,13 +1,14 @@ import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract"; const EXA_CREDENTIAL_PATH = "plugins.entries.exa.config.webSearch.apiKey"; +const EXA_ONBOARDING_SCOPES: Array<"text-inference"> = ["text-inference"]; export function createExaWebSearchProviderBase() { return { id: "exa", label: "Exa Search", hint: "Neural + keyword search with date filters and content extraction", - onboardingScopes: ["text-inference"], + onboardingScopes: [...EXA_ONBOARDING_SCOPES], credentialLabel: "Exa API key", envVars: ["EXA_API_KEY"], placeholder: "exa-...", diff --git a/extensions/perplexity/src/perplexity-web-search-provider.shared.ts b/extensions/perplexity/src/perplexity-web-search-provider.shared.ts index 29467f33e35..98d8d4c27b0 100644 --- a/extensions/perplexity/src/perplexity-web-search-provider.shared.ts +++ b/extensions/perplexity/src/perplexity-web-search-provider.shared.ts @@ -9,6 +9,7 @@ export const DEFAULT_PERPLEXITY_BASE_URL = "https://openrouter.ai/api/v1"; export const PERPLEXITY_DIRECT_BASE_URL = "https://api.perplexity.ai"; export const PERPLEXITY_CREDENTIAL_PATH = "plugins.entries.perplexity.config.webSearch.apiKey"; +const PERPLEXITY_ONBOARDING_SCOPES: Array<"text-inference"> = ["text-inference"]; const PERPLEXITY_KEY_PREFIXES = ["pplx-"]; const OPENROUTER_KEY_PREFIXES = ["sk-or-"]; @@ -26,7 +27,7 @@ export function createPerplexityWebSearchProviderBase() { id: "perplexity", label: "Perplexity Search", hint: "Requires Perplexity API key or OpenRouter API key ยท structured results", - onboardingScopes: ["text-inference"], + onboardingScopes: [...PERPLEXITY_ONBOARDING_SCOPES], credentialLabel: "Perplexity API key", envVars: ["PERPLEXITY_API_KEY", "OPENROUTER_API_KEY"], placeholder: "pplx-...",