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.
|
* Direct function wrapper for initializing a project.
|
||||||
* Derives target directory from session, sets CWD, and calls core init logic.
|
* 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} args - Arguments containing initialization options (addAliases, skipInstall, yes, projectRoot, rules)
|
||||||
* @param {object} log - The FastMCP logger instance.
|
* @param {object} log - The FastMCP logger instance.
|
||||||
* @param {object} context - The context object, must contain { session }.
|
* @param {object} context - The context object, must contain { session }.
|
||||||
|
|||||||
@@ -24,6 +24,13 @@ export function registerInitializeProjectTool(server) {
|
|||||||
.optional()
|
.optional()
|
||||||
.default(false)
|
.default(false)
|
||||||
.describe('Add shell aliases (tm, taskmaster) to shell config file.'),
|
.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
|
projectRoot: z
|
||||||
.string()
|
.string()
|
||||||
.describe(
|
.describe(
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) {
|
|||||||
break;
|
break;
|
||||||
// case 'README-task-master.md':
|
// case 'README-task-master.md':
|
||||||
// sourcePath = path.join(__dirname, '..', 'README-task-master.md');
|
// sourcePath = path.join(__dirname, '..', 'README-task-master.md');
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// For other files like env.example, gitignore, etc. that don't have direct equivalents
|
// For other files like env.example, gitignore, etc. that don't have direct equivalents
|
||||||
|
|||||||
Reference in New Issue
Block a user