chore: linting and prettier

This commit is contained in:
Eyal Toledano
2025-05-22 04:17:06 -04:00
parent 5a91941913
commit 0c55ce0165
20 changed files with 2303 additions and 1785 deletions

View File

@@ -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,

View File

@@ -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 = {}) {
}
};
}
}
}

View File

@@ -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(