feat: improve scope up and down command & parse-prd improvements (#1079)

* feat: improve scope up and down command & parse-prd improvements

* chore: run format
This commit is contained in:
Ralph Khreish
2025-08-03 15:12:46 +03:00
committed by GitHub
parent e0d1d03f33
commit e495b2b559
13 changed files with 167 additions and 43 deletions

View File

@@ -71,8 +71,8 @@ export async function scopeDownDirect(args, log, context = {}) {
};
}
// Parse task IDs
const taskIds = id.split(',').map((taskId) => taskId.trim());
// Parse task IDs - convert to numbers as expected by scopeDownTask
const taskIds = id.split(',').map((taskId) => parseInt(taskId.trim(), 10));
log.info(
`Scoping down tasks: ${taskIds.join(', ')}, strength: ${strength}, research: ${research}`
@@ -90,10 +90,10 @@ export async function scopeDownDirect(args, log, context = {}) {
projectRoot,
commandName: 'scope-down',
outputType: 'mcp',
tag
tag,
research
},
'json', // outputFormat
research
'json' // outputFormat
);
// Restore normal logging

View File

@@ -71,8 +71,8 @@ export async function scopeUpDirect(args, log, context = {}) {
};
}
// Parse task IDs
const taskIds = id.split(',').map((taskId) => taskId.trim());
// Parse task IDs - convert to numbers as expected by scopeUpTask
const taskIds = id.split(',').map((taskId) => parseInt(taskId.trim(), 10));
log.info(
`Scoping up tasks: ${taskIds.join(', ')}, strength: ${strength}, research: ${research}`
@@ -90,10 +90,10 @@ export async function scopeUpDirect(args, log, context = {}) {
projectRoot,
commandName: 'scope-up',
outputType: 'mcp',
tag
tag,
research
},
'json', // outputFormat
research
'json' // outputFormat
);
// Restore normal logging