mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:50:44 +00:00
fix: preserve bundled facade fallback semantics
This commit is contained in:
@@ -8,7 +8,7 @@ import { resolveUserPath } from "../utils.js";
|
||||
|
||||
const DISABLED_BUNDLED_PLUGINS_DIR = path.join(os.tmpdir(), "openclaw-empty-bundled-plugins");
|
||||
|
||||
function bundledPluginsDisabled(env: NodeJS.ProcessEnv): boolean {
|
||||
export function areBundledPluginsDisabled(env: NodeJS.ProcessEnv = process.env): boolean {
|
||||
const raw = normalizeOptionalLowercaseString(env.OPENCLAW_DISABLE_BUNDLED_PLUGINS);
|
||||
return raw === "1" || raw === "true";
|
||||
}
|
||||
@@ -109,7 +109,7 @@ function resolveBundledDirFromPackageRoot(
|
||||
}
|
||||
|
||||
export function resolveBundledPluginsDir(env: NodeJS.ProcessEnv = process.env): string | undefined {
|
||||
if (bundledPluginsDisabled(env)) {
|
||||
if (areBundledPluginsDisabled(env)) {
|
||||
return resolveDisabledBundledPluginsDir();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user