feat(xai): add plugin-owned x_search onboarding

This commit is contained in:
Peter Steinberger
2026-03-29 00:12:15 +00:00
parent ebb4794952
commit 5872f860c9
11 changed files with 407 additions and 53 deletions

View File

@@ -1192,6 +1192,14 @@ export type WebSearchRuntimeMetadataContext = {
};
};
export type WebSearchProviderSetupContext = {
config: OpenClawConfig;
runtime: RuntimeEnv;
prompter: WizardPrompter;
quickstartDefaults?: boolean;
secretInputMode?: SecretInputMode;
};
export type WebSearchProviderPlugin = {
id: WebSearchProviderId;
label: string;
@@ -1219,6 +1227,7 @@ export type WebSearchProviderPlugin = {
getConfiguredCredentialValue?: (config?: OpenClawConfig) => unknown;
setConfiguredCredentialValue?: (configTarget: OpenClawConfig, value: unknown) => void;
applySelectionConfig?: (config: OpenClawConfig) => OpenClawConfig;
runSetup?: (ctx: WebSearchProviderSetupContext) => OpenClawConfig | Promise<OpenClawConfig>;
resolveRuntimeMetadata?: (
ctx: WebSearchRuntimeMetadataContext,
) => Partial<RuntimeWebSearchMetadata> | Promise<Partial<RuntimeWebSearchMetadata>>;