fix: discover source-only plugins in checkouts

This commit is contained in:
Peter Steinberger
2026-05-02 17:30:59 +01:00
parent cc8a8f1df1
commit 5551d9fad4
26 changed files with 227 additions and 268 deletions

View File

@@ -316,9 +316,7 @@ function resolveStatus({ dirName, packageJson, excludedDirs }) {
const hasInstallSpec =
typeof packageJson.openclaw?.install?.clawhubSpec === "string" ||
typeof packageJson.openclaw?.install?.npmSpec === "string";
const excluded =
excludedDirs.has(dirName) || packageJson.openclaw?.bundle?.includeInCore === false;
if (!excluded) {
if (!excludedDirs.has(dirName)) {
return "core";
}
if (release?.publishToClawHub === true || release?.publishToNpm === true || hasInstallSpec) {

View File

@@ -35,14 +35,7 @@ function hasReleasedBundledInstall(packageJson) {
);
}
function isExplicitlyDownloadablePlugin(packageJson) {
return packageJson?.openclaw?.bundle?.includeInCore === false;
}
export function shouldBuildBundledCluster(cluster, env = process.env, options = {}) {
if (isExplicitlyDownloadablePlugin(options.packageJson)) {
return false;
}
if (hasReleasedBundledInstall(options.packageJson)) {
return true;
}

View File

@@ -171,9 +171,6 @@ function collectInternalizedBundledExtensionRuntimeDependencies(repoRoot, rootPa
continue;
}
const packageJson = readJson(packageJsonPath);
if (packageJson?.openclaw?.bundle?.includeInCore === false) {
continue;
}
for (const section of ["dependencies", "optionalDependencies"]) {
for (const depName of Object.keys(packageJson[section] ?? {})) {
const existing = dependencies.get(depName) ?? [];