mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 02:20:30 +00:00
fix: preserve plugin runtime registry state
This commit is contained in:
@@ -24,6 +24,14 @@ export {
|
||||
requireInRange,
|
||||
scheduleCleanup,
|
||||
} from "../../plugin-sdk/speech-core.js";
|
||||
export {
|
||||
asBoolean,
|
||||
asFiniteNumber,
|
||||
asObject,
|
||||
readResponseTextLimited,
|
||||
trimToUndefined,
|
||||
truncateErrorDetail,
|
||||
} from "../../tts/provider-error-utils.js";
|
||||
|
||||
export async function summarizeText(): Promise<never> {
|
||||
throw new Error("summarizeText is unavailable in the Vitest capability contract shim");
|
||||
|
||||
@@ -74,6 +74,7 @@ const setupRegistryCache = new Map<string, PluginSetupRegistry>();
|
||||
const setupProviderCache = new Map<string, ProviderPlugin | null>();
|
||||
|
||||
export function clearPluginSetupRegistryCache(): void {
|
||||
jitiLoaders.clear();
|
||||
setupRegistryCache.clear();
|
||||
setupProviderCache.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user