Tests: shim config runtime for capability contracts

This commit is contained in:
Gustavo Madeira Santana 2026-03-28 20:01:39 -04:00
parent 3cbd3960f9
commit 680c30bc5d
No known key found for this signature in database
2 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,9 @@ function applyVitestCapabilityAliasOverrides(params: {
"openclaw/plugin-sdk/llm-task": fileURLToPath(
new URL("./capability-runtime-vitest-shims/llm-task.ts", import.meta.url),
),
"openclaw/plugin-sdk/config-runtime": fileURLToPath(
new URL("./capability-runtime-vitest-shims/config-runtime.ts", import.meta.url),
),
"openclaw/plugin-sdk/media-runtime": fileURLToPath(
new URL("./capability-runtime-vitest-shims/media-runtime.ts", import.meta.url),
),

View File

@ -0,0 +1,8 @@
import { resolveActiveTalkProviderConfig } from "../../config/talk.js";
import type { OpenClawConfig } from "../../config/types.js";
export { resolveActiveTalkProviderConfig };
export function getRuntimeConfigSnapshot(): OpenClawConfig | null {
return null;
}