mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 14:00:51 +00:00
31 lines
755 B
JavaScript
31 lines
755 B
JavaScript
export const optionalBundledClusters = [
|
|
"acpx",
|
|
"diagnostics-otel",
|
|
"diffs",
|
|
"googlechat",
|
|
"matrix",
|
|
"memory-lancedb",
|
|
"msteams",
|
|
"nostr",
|
|
"tlon",
|
|
"twitch",
|
|
"ui",
|
|
"zalouser",
|
|
];
|
|
|
|
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);
|
|
}
|