Merge branch 'next' of https://github.com/eyaltoledano/claude-task-master into joedanz/flexible-brand-rules
# Conflicts: # .cursor/rules/taskmaster.mdc # README.md # docs/command-reference.md # mcp-server/src/core/direct-functions/initialize-project.js # mcp-server/src/tools/index.js # mcp-server/src/tools/initialize-project.js # scripts/init.js # scripts/modules/commands.js # scripts/modules/rule-transformer.js # scripts/modules/ui.js # tests/integration/roo-files-inclusion.test.js # tests/integration/roo-init-functionality.test.js # tests/unit/commands.test.js
This commit is contained in:
@@ -9,14 +9,6 @@ import os from 'os'; // Import os module for home directory check
|
||||
/**
|
||||
* Direct function wrapper for initializing a project.
|
||||
* Derives target directory from session, sets CWD, and calls core init logic.
|
||||
* @param {object} args - Arguments containing initialization options (addAliases, skipInstall, yes, projectRoot)
|
||||
* @param {object} log - The FastMCP logger instance.
|
||||
* @param {object} context - The context object, must contain { session }.
|
||||
* @returns {Promise<{success: boolean, data?: any, error?: {code: string, message: string}}>} - Standard result object.
|
||||
*/
|
||||
/**
|
||||
* Direct function wrapper for initializing a project.
|
||||
* Accepts a 'rules' array in args (e.g., ["cursor", "roo"]). If present, passes it as the --rules argument to the core init logic. Defaults to ["cursor"] if not provided.
|
||||
* @param {object} args - Arguments containing initialization options (addAliases, skipInstall, yes, projectRoot, rules)
|
||||
* @param {object} log - The FastMCP logger instance.
|
||||
* @param {object} context - The context object, must contain { session }.
|
||||
|
||||
@@ -24,6 +24,13 @@ export function registerInitializeProjectTool(server) {
|
||||
.optional()
|
||||
.default(false)
|
||||
.describe('Add shell aliases (tm, taskmaster) to shell config file.'),
|
||||
yes: z
|
||||
.boolean()
|
||||
.optional()
|
||||
.default(true)
|
||||
.describe(
|
||||
'Skip prompts and use default values. Always set to true for MCP tools.'
|
||||
),
|
||||
projectRoot: z
|
||||
.string()
|
||||
.describe(
|
||||
|
||||
@@ -222,7 +222,7 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) {
|
||||
break;
|
||||
// case 'README-task-master.md':
|
||||
// sourcePath = path.join(__dirname, '..', 'README-task-master.md');
|
||||
break;
|
||||
// break;
|
||||
|
||||
default:
|
||||
// For other files like env.example, gitignore, etc. that don't have direct equivalents
|
||||
|
||||
Reference in New Issue
Block a user