import { PluginLoaderCacheState } from "./loader-cache-state.js"; import type { PluginProcessGlobalState } from "./plugin-registration-transaction.js"; import type { PluginRegistry } from "./registry-types.js"; export type CachedPluginState = { registry: PluginRegistry; processGlobalState: PluginProcessGlobalState; }; const MAX_PLUGIN_REGISTRY_CACHE_ENTRIES = 128; export const pluginLoaderCacheInstances = { scoped: new PluginLoaderCacheState(MAX_PLUGIN_REGISTRY_CACHE_ENTRIES), fullWorkspace: new PluginLoaderCacheState(MAX_PLUGIN_REGISTRY_CACHE_ENTRIES), };