fix: preserve plugin runtime registry state

This commit is contained in:
Peter Steinberger
2026-04-07 15:28:01 +01:00
parent d3b359a1c2
commit 067f158b74
3 changed files with 18 additions and 2 deletions

View File

@@ -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");

View File

@@ -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();
}