initialize with all brands if nothing specified

This commit is contained in:
Joe Danziger
2025-05-23 16:48:58 -04:00
parent 4c3c523145
commit d227643729
2 changed files with 9 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ export function registerInitializeProjectTool(server) {
.array(z.string())
.optional()
.describe(
'List of rules to include at initialization (e.g., ["cursor", "roo"]). If omitted, defaults to ["cursor"].'
'List of rules to include at initialization (e.g., ["cursor", "roo"]). If omitted, defaults to all available brand rules.'
)
}),
execute: withNormalizedProjectRoot(async (args, context) => {

View File

@@ -537,8 +537,14 @@ function createProjectStructure(
}
}
} else {
// fallback for safety
convertAllRulesToBrandRules(targetDir, BRAND_PROFILES['cursor']);
// fallback for safety - use all available brand rules
log('warn', 'selectedBrandRules is not an array, using all available brand rules as fallback');
for (const rule of BRAND_NAMES) {
const profile = BRAND_PROFILES[rule];
if (profile) {
convertAllRulesToBrandRules(targetDir, profile);
}
}
}
// Run npm install automatically