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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user