mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-26 01:11:37 +00:00
Build: isolate optional bundled plugin-sdk clusters
This commit is contained in:
@@ -14,3 +14,17 @@ export const optionalBundledClusters = [
|
||||
];
|
||||
|
||||
export const optionalBundledClusterSet = new Set(optionalBundledClusters);
|
||||
|
||||
export const OPTIONAL_BUNDLED_BUILD_ENV = "OPENCLAW_INCLUDE_OPTIONAL_BUNDLED";
|
||||
|
||||
export function isOptionalBundledCluster(cluster) {
|
||||
return optionalBundledClusterSet.has(cluster);
|
||||
}
|
||||
|
||||
export function shouldIncludeOptionalBundledClusters(env = process.env) {
|
||||
return env[OPTIONAL_BUNDLED_BUILD_ENV] === "1";
|
||||
}
|
||||
|
||||
export function shouldBuildBundledCluster(cluster, env = process.env) {
|
||||
return shouldIncludeOptionalBundledClusters(env) || !isOptionalBundledCluster(cluster);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user