mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 01:20:20 +00:00
Main recovery: restore formatter and contract checks (#49570)
* Extensions: fix oxfmt drift on main * Plugins: restore runtime barrel exports on main * Config: restore web search compatibility types * Telegram: align test harness with reply runtime * Plugin SDK: fix channel config accessor generics * CLI: remove redundant search provider casts * Tests: restore main typecheck coverage * Lobster: fix test import formatting * Extensions: route bundled seams through plugin-sdk * Tests: use extension env helper for xai * Image generation: fix main oxfmt drift * Config: restore latest main compatibility checks * Plugin SDK: align guardrail tests with lint * Telegram: type native command skill mock
This commit is contained in:
@@ -68,7 +68,10 @@ function createProviderSecretRefConfig(
|
||||
}
|
||||
|
||||
function readProviderKey(config: OpenClawConfig, provider: ProviderUnderTest): unknown {
|
||||
return config.plugins?.entries?.[providerPluginId(provider)]?.config?.webSearch?.apiKey;
|
||||
const pluginConfig = config.plugins?.entries?.[providerPluginId(provider)]?.config as
|
||||
| { webSearch?: { apiKey?: unknown } }
|
||||
| undefined;
|
||||
return pluginConfig?.webSearch?.apiKey;
|
||||
}
|
||||
|
||||
function expectInactiveFirecrawlSecretRef(params: {
|
||||
|
||||
Reference in New Issue
Block a user