fix: reduce brew noise in onboarding

This commit is contained in:
Peter Steinberger
2026-02-09 13:27:13 -06:00
parent 9a765c9fb4
commit 268094938b
4 changed files with 287 additions and 45 deletions

View File

@@ -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 [];