mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 15:10:42 +00:00
refactor: simplify plugin cache boundaries
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
installPluginFromNpmSpec,
|
||||
installPluginFromPath,
|
||||
} from "../plugins/install.js";
|
||||
import { clearPluginManifestRegistryCache } from "../plugins/manifest-registry.js";
|
||||
import {
|
||||
installPluginFromMarketplace,
|
||||
resolveMarketplaceInstallShortcut,
|
||||
@@ -307,7 +306,6 @@ async function tryInstallPluginOrHookPackFromNpmSpec(params: {
|
||||
return { ok: false };
|
||||
}
|
||||
|
||||
clearPluginManifestRegistryCache();
|
||||
const installRecord = resolvePinnedNpmInstallRecordForCli(
|
||||
params.spec,
|
||||
Boolean(params.pin),
|
||||
@@ -485,7 +483,6 @@ export async function runPluginInstallCommand(params: {
|
||||
return defaultRuntime.exit(1);
|
||||
}
|
||||
|
||||
clearPluginManifestRegistryCache();
|
||||
await persistPluginInstall({
|
||||
snapshot,
|
||||
pluginId: result.pluginId,
|
||||
@@ -588,7 +585,6 @@ export async function runPluginInstallCommand(params: {
|
||||
return defaultRuntime.exit(1);
|
||||
}
|
||||
|
||||
clearPluginManifestRegistryCache();
|
||||
const source: "archive" | "path" = resolveArchiveKind(resolved) ? "archive" : "path";
|
||||
await persistPluginInstall({
|
||||
snapshot,
|
||||
@@ -682,7 +678,6 @@ export async function runPluginInstallCommand(params: {
|
||||
return defaultRuntime.exit(1);
|
||||
}
|
||||
|
||||
clearPluginManifestRegistryCache();
|
||||
await persistPluginInstall({
|
||||
snapshot,
|
||||
pluginId: result.pluginId,
|
||||
@@ -712,7 +707,6 @@ export async function runPluginInstallCommand(params: {
|
||||
logger: createPluginInstallLogger(),
|
||||
});
|
||||
if (clawhubResult.ok) {
|
||||
clearPluginManifestRegistryCache();
|
||||
await persistPluginInstall({
|
||||
snapshot,
|
||||
pluginId: clawhubResult.pluginId,
|
||||
|
||||
Reference in New Issue
Block a user