fix(cli): clear plugin manifest cache after install

This commit is contained in:
Peter Steinberger
2026-02-15 23:12:28 +00:00
parent 632b71c7f8
commit bed0e07620
2 changed files with 10 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ const registryCache = new Map<string, { expiresAt: number; registry: PluginManif
const DEFAULT_MANIFEST_CACHE_MS = 200;
export function clearPluginManifestRegistryCache(): void {
registryCache.clear();
}
function resolveManifestCacheMs(env: NodeJS.ProcessEnv): number {
const raw = env.OPENCLAW_PLUGIN_MANIFEST_CACHE_MS?.trim();
if (raw === "" || raw === "0") {