Compare commits
1 Commits
v017-adds
...
fix.728.ex
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
188e22a35d |
8
.changeset/nasty-chefs-add.md
Normal file
8
.changeset/nasty-chefs-add.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
"task-master-ai": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes issue with expand CLI command "Complexity report not found"
|
||||||
|
|
||||||
|
- Closes #735
|
||||||
|
- Closes #728
|
||||||
@@ -15,6 +15,7 @@ import { generateTextService } from '../ai-services-unified.js';
|
|||||||
import { getDefaultSubtasks, getDebugFlag } from '../config-manager.js';
|
import { getDefaultSubtasks, getDebugFlag } from '../config-manager.js';
|
||||||
import generateTaskFiles from './generate-task-files.js';
|
import generateTaskFiles from './generate-task-files.js';
|
||||||
import { COMPLEXITY_REPORT_FILE } from '../../../src/constants/paths.js';
|
import { COMPLEXITY_REPORT_FILE } from '../../../src/constants/paths.js';
|
||||||
|
import { findProjectRoot } from '../../../src/utils/path-utils.js';
|
||||||
|
|
||||||
// --- Zod Schemas (Keep from previous step) ---
|
// --- Zod Schemas (Keep from previous step) ---
|
||||||
const subtaskSchema = z
|
const subtaskSchema = z
|
||||||
@@ -417,8 +418,7 @@ async function expandTask(
|
|||||||
const outputFormat = mcpLog ? 'json' : 'text';
|
const outputFormat = mcpLog ? 'json' : 'text';
|
||||||
|
|
||||||
// Determine projectRoot: Use from context if available, otherwise derive from tasksPath
|
// Determine projectRoot: Use from context if available, otherwise derive from tasksPath
|
||||||
const projectRoot =
|
const projectRoot = contextProjectRoot || findProjectRoot(tasksPath);
|
||||||
contextProjectRoot || path.dirname(path.dirname(tasksPath));
|
|
||||||
|
|
||||||
// Use mcpLog if available, otherwise use the default console log wrapper
|
// Use mcpLog if available, otherwise use the default console log wrapper
|
||||||
const logger = mcpLog || {
|
const logger = mcpLog || {
|
||||||
|
|||||||
Reference in New Issue
Block a user