fix: add-task fixes (#960)
- remove task-generation - fix mcp add-task generation in manual mode
This commit is contained in:
@@ -125,8 +125,7 @@ export async function addTaskDirect(args, log, context = {}) {
|
|||||||
},
|
},
|
||||||
'json', // outputFormat
|
'json', // outputFormat
|
||||||
manualTaskData, // Pass the manual task data
|
manualTaskData, // Pass the manual task data
|
||||||
false, // research flag is false for manual creation
|
false // research flag is false for manual creation
|
||||||
projectRoot // Pass projectRoot
|
|
||||||
);
|
);
|
||||||
newTaskId = result.newTaskId;
|
newTaskId = result.newTaskId;
|
||||||
telemetryData = result.telemetryData;
|
telemetryData = result.telemetryData;
|
||||||
|
|||||||
@@ -561,16 +561,6 @@ async function addTask(
|
|||||||
writeJSON(tasksPath, rawData, projectRoot, targetTag);
|
writeJSON(tasksPath, rawData, projectRoot, targetTag);
|
||||||
report('DEBUG: tasks.json written.', 'debug');
|
report('DEBUG: tasks.json written.', 'debug');
|
||||||
|
|
||||||
// Generate markdown task files
|
|
||||||
report('Generating task files...', 'info');
|
|
||||||
report('DEBUG: Calling generateTaskFiles...', 'debug');
|
|
||||||
// Pass mcpLog if available to generateTaskFiles
|
|
||||||
await generateTaskFiles(tasksPath, path.dirname(tasksPath), {
|
|
||||||
projectRoot,
|
|
||||||
tag: targetTag
|
|
||||||
});
|
|
||||||
report('DEBUG: generateTaskFiles finished.', 'debug');
|
|
||||||
|
|
||||||
// Show success message - only for text output (CLI)
|
// Show success message - only for text output (CLI)
|
||||||
if (outputFormat === 'text') {
|
if (outputFormat === 'text') {
|
||||||
const table = new Table({
|
const table = new Table({
|
||||||
|
|||||||
Reference in New Issue
Block a user