add brandDir to remove ambiguity and support Cline

This commit is contained in:
Joe Danziger
2025-05-21 12:28:56 -04:00
parent 97859d8d7e
commit 9eacd6e061
6 changed files with 14 additions and 6 deletions

View File

@@ -110,8 +110,8 @@ export async function rulesDirect(args, log, context = {}) {
// Determine paths
const rulesDir = profile.rulesDir;
const brandRulesDir = path.join(projectRoot, rulesDir);
const brandDir = path.dirname(brandRulesDir);
const mcpPath = path.join(brandDir, 'mcp.json');
const brandDir = profile.brandDir;
const mcpPath = path.join(projectRoot, brandDir, 'mcp.json');
// Check what was created
const mcpConfigCreated = fs.existsSync(mcpPath);