fix: add plugin runtime registry

This commit is contained in:
Peter Steinberger
2026-01-15 02:44:45 +00:00
parent 2b4a68e276
commit 1b24b6a02b

17
src/plugins/runtime.ts Normal file
View File

@@ -0,0 +1,17 @@
import type { PluginRegistry } from "./registry.js";
let activeRegistry: PluginRegistry | null = null;
let activeRegistryKey: string | null = null;
export function setActivePluginRegistry(registry: PluginRegistry, cacheKey?: string) {
activeRegistry = registry;
activeRegistryKey = cacheKey ?? null;
}
export function getActivePluginRegistry(): PluginRegistry | null {
return activeRegistry;
}
export function getActivePluginRegistryKey(): string | null {
return activeRegistryKey;
}