From 5149aaa56fcbd0d8696c3bba595b70224a86a3d3 Mon Sep 17 00:00:00 2001 From: Joe Danziger Date: Tue, 27 May 2025 14:50:39 -0400 Subject: [PATCH] update to 'rule profile' --- .changeset/lemon-deer-hide.md | 2 +- mcp-server/src/core/direct-functions/rules.js | 2 +- scripts/init.js | 2 +- src/utils/rule-transformer.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changeset/lemon-deer-hide.md b/.changeset/lemon-deer-hide.md index 36e7b778..d4f2c3d7 100644 --- a/.changeset/lemon-deer-hide.md +++ b/.changeset/lemon-deer-hide.md @@ -2,7 +2,7 @@ 'task-master-ai': minor --- -Added comprehensive rules profile management: +Added comprehensive rule profile management: - **New Profile Support**: Added comprehensive IDE profile support with five specialized profiles: Cline, Cursor, Roo, Trae, and Windsurf. Each profile is optimized for its respective IDE with appropriate mappings and configuration. - **Initialization**: You can now specify which rule profiles to include at project initialization using `--rules ` or `-r ` (e.g., `task-master init -r cursor,roo`). Only the selected profiles and configuration are included. diff --git a/mcp-server/src/core/direct-functions/rules.js b/mcp-server/src/core/direct-functions/rules.js index 71c15a48..b34eb8b9 100644 --- a/mcp-server/src/core/direct-functions/rules.js +++ b/mcp-server/src/core/direct-functions/rules.js @@ -76,7 +76,7 @@ export async function rulesDirect(args, log, context = {}) { removalResults.push({ profileName: profile, success: false, - error: `The requested rules profile for '${profile}' is unavailable. Supported profiles are: ${RULE_PROFILES.join(', ')}.` + error: `The requested rule profile for '${profile}' is unavailable. Supported profiles are: ${RULE_PROFILES.join(', ')}.` }); continue; } diff --git a/scripts/init.js b/scripts/init.js index b1d6dd67..b1612a78 100755 --- a/scripts/init.js +++ b/scripts/init.js @@ -448,7 +448,7 @@ function createProjectStructure( convertAllRulesToProfileRules(targetDir, profile); // Also triggers MCP config setup (if applicable) } else { - log('warn', `Unknown rules profile: ${profileName}`); + log('warn', `Unknown rule profile: ${profileName}`); } } diff --git a/src/utils/rule-transformer.js b/src/utils/rule-transformer.js index c9e508b5..a7f6927e 100644 --- a/src/utils/rule-transformer.js +++ b/src/utils/rule-transformer.js @@ -26,7 +26,7 @@ export function isValidProfile(profile) { } /** - * Get rules profile by name + * Get rule profile by name * @param {string} name - Profile name * @returns {Object|null} Profile object or null if not found */