fix: preserve bundled facade fallback semantics

This commit is contained in:
Peter Steinberger
2026-04-28 00:50:28 +01:00
parent b90f29d313
commit da3cf1c1a8
7 changed files with 92 additions and 7 deletions

View File

@@ -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();
}