fix: restore provider auth and build checks

This commit is contained in:
Peter Steinberger
2026-03-27 20:17:00 +00:00
parent c28e76c490
commit d73dbb6753
29 changed files with 328 additions and 109 deletions

View File

@@ -46,10 +46,7 @@ export function resolvePluginSnapshotCacheTtlMs(env: NodeJS.ProcessEnv): number
return Math.min(discoveryCacheMs, manifestCacheMs);
}
export function buildPluginSnapshotCacheEnvKey(
env: NodeJS.ProcessEnv,
options: { includeProcessVitestFallback?: boolean } = {},
) {
export function buildPluginSnapshotCacheEnvKey(env: NodeJS.ProcessEnv) {
return {
OPENCLAW_BUNDLED_PLUGINS_DIR: env.OPENCLAW_BUNDLED_PLUGINS_DIR ?? "",
OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE: env.OPENCLAW_DISABLE_PLUGIN_DISCOVERY_CACHE ?? "",
@@ -61,8 +58,6 @@ export function buildPluginSnapshotCacheEnvKey(
OPENCLAW_CONFIG_PATH: env.OPENCLAW_CONFIG_PATH ?? "",
HOME: env.HOME ?? "",
USERPROFILE: env.USERPROFILE ?? "",
VITEST: options.includeProcessVitestFallback
? (env.VITEST ?? process.env.VITEST ?? "")
: (env.VITEST ?? ""),
VITEST: env.VITEST ?? "",
};
}