mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:11:26 +00:00
fix: reduce brew noise in onboarding
This commit is contained in:
@@ -111,6 +111,13 @@ function normalizeInstallOptions(
|
||||
entry: SkillEntry,
|
||||
prefs: SkillsInstallPreferences,
|
||||
): SkillInstallOption[] {
|
||||
// If the skill is explicitly OS-scoped, don't surface install actions on unsupported platforms.
|
||||
// (Installers run locally; remote OS eligibility is handled separately.)
|
||||
const requiredOs = entry.metadata?.os ?? [];
|
||||
if (requiredOs.length > 0 && !requiredOs.includes(process.platform)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const install = entry.metadata?.install ?? [];
|
||||
if (install.length === 0) {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user