update function names

This commit is contained in:
Joe Danziger
2025-05-09 10:59:08 -04:00
parent a2e99bdfa4
commit ee02816a4f
2 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ import figlet from 'figlet';
import boxen from 'boxen';
import gradient from 'gradient-string';
import { isSilentMode } from './modules/utils.js';
import { convertAllCursorRulesToBrandRules } from './modules/rule-transformer.js';
import { convertAllRulesToBrandRules } from './modules/rule-transformer.js';
import { execSync } from 'child_process';
const __filename = fileURLToPath(import.meta.url);
@@ -358,7 +358,7 @@ async function initializeProject(options = {}) {
for (const rule of options.rules) {
const profile = ruleProfiles[rule];
if (profile) {
convertAllCursorRulesToBrandRules(targetDir, profile);
convertAllRulesToBrandRules(targetDir, profile);
// Ensure MCP config is set up under the correct brand folder for any non-cursor rule
if (rule !== 'cursor') {
setupMCPConfiguration(path.join(targetDir, `.${rule}`));
@@ -369,7 +369,7 @@ async function initializeProject(options = {}) {
}
} else {
// fallback for safety
convertAllCursorRulesToBrandRules(targetDir, cursorProfile);
convertAllRulesToBrandRules(targetDir, cursorProfile);
}
} else {
// Interactive logic
@@ -435,7 +435,7 @@ async function initializeProject(options = {}) {
for (const rule of options.rules) {
const profile = ruleProfiles[rule];
if (profile) {
convertAllCursorRulesToBrandRules(targetDir, profile);
convertAllRulesToBrandRules(targetDir, profile);
// Ensure MCP config is set up under the correct brand folder
if (rule === 'windsurf' || rule === 'roo') {
setupMCPConfiguration(path.join(targetDir, `.${rule}`));
@@ -446,7 +446,7 @@ async function initializeProject(options = {}) {
}
} else {
// fallback for safety
convertAllCursorRulesToBrandRules(targetDir, cursorProfile);
convertAllRulesToBrandRules(targetDir, cursorProfile);
}
} catch (error) {
rl.close();

View File

@@ -533,10 +533,10 @@ function registerCommands(programInstance) {
}
if (action === 'add') {
const { convertAllCursorRulesToBrandRules } = await import(
const { convertAllRulesToBrandRules } = await import(
'./rule-transformer.js'
);
convertAllCursorRulesToBrandRules(projectDir, profile);
convertAllRulesToBrandRules(projectDir, profile);
if (typeof profile.onAddBrandRules === 'function') {
profile.onAddBrandRules(projectDir);
}