mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:50:46 +00:00
refactor: simplify plugin cache boundaries
This commit is contained in:
@@ -65,11 +65,6 @@ export type PluginDiscoveryResult = {
|
||||
diagnostics: PluginDiagnostic[];
|
||||
};
|
||||
|
||||
export function clearPluginDiscoveryCache(): void {
|
||||
// Discovery is intentionally uncached. Keep the public test/helper hook as a
|
||||
// compatibility no-op while callers migrate away from explicit cache clears.
|
||||
}
|
||||
|
||||
function currentUid(overrideUid?: number | null): number | null {
|
||||
if (overrideUid !== undefined) {
|
||||
return overrideUid;
|
||||
@@ -851,7 +846,6 @@ export function discoverOpenClawPlugins(params: {
|
||||
workspaceDir?: string;
|
||||
extraPaths?: string[];
|
||||
ownershipUid?: number | null;
|
||||
cache?: boolean;
|
||||
env?: NodeJS.ProcessEnv;
|
||||
}): PluginDiscoveryResult {
|
||||
const env = params.env ?? process.env;
|
||||
|
||||
Reference in New Issue
Block a user