Compare commits
6 Commits
ralph/chor
...
feat/0.22.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4ae526337 | ||
|
|
3e50b53d56 | ||
|
|
9ef66c764e | ||
|
|
d364a60f14 | ||
|
|
2e7c2c40c7 | ||
|
|
292bc3ff49 |
5
.changeset/thick-squids-attend.md
Normal file
5
.changeset/thick-squids-attend.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"task-master-ai": minor
|
||||
---
|
||||
|
||||
Prompt to generate a complexity report when it is missing
|
||||
@@ -9,10 +9,7 @@
|
||||
"task-master-mcp": "mcp-server/server.js",
|
||||
"task-master-ai": "mcp-server/server.js"
|
||||
},
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"."
|
||||
],
|
||||
"workspaces": ["apps/*", "."],
|
||||
"scripts": {
|
||||
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
||||
"test:fails": "node --experimental-vm-modules node_modules/.bin/jest --onlyFailures",
|
||||
|
||||
@@ -9,6 +9,7 @@ import boxen from 'boxen';
|
||||
import ora from 'ora';
|
||||
import Table from 'cli-table3';
|
||||
import gradient from 'gradient-string';
|
||||
import readline from 'readline';
|
||||
import {
|
||||
log,
|
||||
findTaskById,
|
||||
@@ -1682,18 +1683,15 @@ async function displayComplexityReport(reportPath) {
|
||||
)
|
||||
);
|
||||
|
||||
const readline = require('readline').createInterface({
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
});
|
||||
|
||||
const answer = await new Promise((resolve) => {
|
||||
readline.question(
|
||||
chalk.cyan('Generate complexity report? (y/n): '),
|
||||
resolve
|
||||
);
|
||||
rl.question(chalk.cyan('Generate complexity report? (y/n): '), resolve);
|
||||
});
|
||||
readline.close();
|
||||
rl.close();
|
||||
|
||||
if (answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes') {
|
||||
// Call the analyze-complexity command
|
||||
@@ -1974,8 +1972,6 @@ async function confirmTaskOverwrite(tasksPath) {
|
||||
)
|
||||
);
|
||||
|
||||
// Use dynamic import to get the readline module
|
||||
const readline = await import('readline');
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
@@ -2463,8 +2459,6 @@ async function displayMultipleTasksSummary(
|
||||
)
|
||||
);
|
||||
|
||||
// Use dynamic import for readline
|
||||
const readline = await import('readline');
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
|
||||
Reference in New Issue
Block a user