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:
Vincent Koc
2026-03-18 00:30:01 -07:00
committed by GitHub
parent e6c6aaa11b
commit fbd88e2c8f
78 changed files with 476 additions and 327 deletions

View File

@@ -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: {