chore: linting and prettier
This commit is contained in:
@@ -29,11 +29,11 @@ import { createLogWrapper } from '../../tools/utils.js'; // Import the new utili
|
||||
*/
|
||||
export async function analyzeTaskComplexityDirect(args, log, context = {}) {
|
||||
const { session } = context;
|
||||
const {
|
||||
tasksJsonPath,
|
||||
outputPath,
|
||||
threshold,
|
||||
research,
|
||||
const {
|
||||
tasksJsonPath,
|
||||
outputPath,
|
||||
threshold,
|
||||
research,
|
||||
projectRoot,
|
||||
ids,
|
||||
from,
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
*/
|
||||
export async function moveTaskDirect(args, log, context = {}) {
|
||||
const { session } = context;
|
||||
|
||||
|
||||
// Validate required parameters
|
||||
if (!args.sourceId) {
|
||||
return {
|
||||
@@ -52,7 +52,8 @@ export async function moveTaskDirect(args, log, context = {}) {
|
||||
return {
|
||||
success: false,
|
||||
error: {
|
||||
message: 'Project root is required if tasksJsonPath is not provided',
|
||||
message:
|
||||
'Project root is required if tasksJsonPath is not provided',
|
||||
code: 'MISSING_PROJECT_ROOT'
|
||||
}
|
||||
};
|
||||
@@ -64,7 +65,12 @@ export async function moveTaskDirect(args, log, context = {}) {
|
||||
enableSilentMode();
|
||||
|
||||
// Call the core moveTask function, always generate files
|
||||
const result = await moveTask(tasksPath, args.sourceId, args.destinationId, true);
|
||||
const result = await moveTask(
|
||||
tasksPath,
|
||||
args.sourceId,
|
||||
args.destinationId,
|
||||
true
|
||||
);
|
||||
|
||||
// Restore console output
|
||||
disableSilentMode();
|
||||
@@ -81,7 +87,7 @@ export async function moveTaskDirect(args, log, context = {}) {
|
||||
disableSilentMode();
|
||||
|
||||
log.error(`Failed to move task: ${error.message}`);
|
||||
|
||||
|
||||
return {
|
||||
success: false,
|
||||
error: {
|
||||
@@ -90,4 +96,4 @@ export async function moveTaskDirect(args, log, context = {}) {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,9 @@ export async function parsePRDDirect(args, log, context = {}) {
|
||||
}
|
||||
|
||||
if (research) {
|
||||
logWrapper.info('Research mode enabled. Using Perplexity AI for enhanced PRD analysis.');
|
||||
logWrapper.info(
|
||||
'Research mode enabled. Using Perplexity AI for enhanced PRD analysis.'
|
||||
);
|
||||
}
|
||||
|
||||
logWrapper.info(
|
||||
|
||||
Reference in New Issue
Block a user