initialize with all brands if nothing specified
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user