initialize with all brands if nothing specified
This commit is contained in:
@@ -40,7 +40,7 @@ export function registerInitializeProjectTool(server) {
|
|||||||
.array(z.string())
|
.array(z.string())
|
||||||
.optional()
|
.optional()
|
||||||
.describe(
|
.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) => {
|
execute: withNormalizedProjectRoot(async (args, context) => {
|
||||||
|
|||||||
@@ -537,8 +537,14 @@ function createProjectStructure(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// fallback for safety
|
// fallback for safety - use all available brand rules
|
||||||
convertAllRulesToBrandRules(targetDir, BRAND_PROFILES['cursor']);
|
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
|
// Run npm install automatically
|
||||||
|
|||||||
Reference in New Issue
Block a user