




















@@ -68,6 +68,7 @@ const BUNDLED_RUNTIME_DEPS_LOCK_STALE_MS = 10 * 60_000;
6868const BUNDLED_RUNTIME_DEPS_OWNERLESS_LOCK_STALE_MS = 30_000;
6969const BUNDLED_RUNTIME_DEPS_INSTALL_PROGRESS_INTERVAL_MS = 5_000;
7070const BUNDLED_RUNTIME_MIRROR_MATERIALIZED_EXTENSIONS = new Set([".cjs", ".js", ".mjs"]);
71+const BUNDLED_EXTENSION_DIST_DIR = "extensions";
7172const BUNDLED_RUNTIME_MIRROR_PLUGIN_REGION_RE = /(?:^|\n)\/\/#region extensions\/[^/\s]+(?:\/|$)/u;
7273const MIRRORED_CORE_RUNTIME_DEP_NAMES = ["tslog"] as const;
7374const MIRRORED_PACKAGE_RUNTIME_DEP_PLUGIN_ID = "openclaw-core";
@@ -569,11 +570,13 @@ function isPluginOwnedDistImporter(params: {
569570source: string;
570571pluginIds: readonly string[];
571572}): boolean {
572-return params.pluginIds.some(
573-(pluginId) =>
574-params.relativePath.startsWith(`extensions/${pluginId}/`) ||
575-params.source.includes(`//#region extensions/${pluginId}/`),
576-);
573+return params.pluginIds.some((pluginId) => {
574+const pluginPathPrefix = `${BUNDLED_EXTENSION_DIST_DIR}/${pluginId}/`;
575+return (
576+params.relativePath.startsWith(pluginPathPrefix) ||
577+params.source.includes(`//#region ${pluginPathPrefix}`)
578+);
579+});
577580}
578581579582function collectBundledRuntimeDependencyOwners(packageRoot: string): Map<
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。