mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2025-11-14 17:13:47 +00:00
* initial cutover * update log to debug * update tracker to pass units * update test to match new base tracker format * add streamTextService mocks * remove unused imports * Ensure the CLI waits for async main() completion * refactor to reduce code duplication * update comment * reuse function * ensure targetTag is defined in streaming mode * avoid throwing inside process.exit spy * check for null * remove reference to generate * fix formatting * fix textStream assignment * ensure no division by 0 * fix jest chalk mocks * refactor for maintainability * Improve bar chart calculation logic for consistent visual representation * use custom streaming error types; fix mocks * Update streamText extraction in parse-prd.js to match actual service response * remove check - doesn't belong here * update mocks * remove streaming test that wasn't really doing anything * add comment * make parsing logic more DRY * fix formatting * Fix textStream extraction to match actual service response * fix mock * Add a cleanup method to ensure proper resource disposal and prevent memory leaks * debounce progress updates to reduce UI flicker during rapid updates * Implement timeout protection for streaming operations (60-second timeout) with automatic fallback to non-streaming mode. * clear timeout properly * Add a maximum buffer size limit (1MB) to prevent unbounded memory growth with very large streaming responses. * fix formatting * remove duplicate mock * better docs * fix formatting * sanitize the dynamic property name * Fix incorrect remaining progress calculation * Use onError callback instead of console.warn * Remove unused chalk import * Add missing custom validator in fallback parsing configuration * add custom validator parameter in fallback parsing * chore: fix package-lock.json * chore: large code refactor * chore: increase timeout from 1 minute to 3 minutes * fix: refactor and fix streaming * Merge remote-tracking branch 'origin/next' into joedanz/parse-prd-progress * fix: cleanup and fix unit tests * chore: fix unit tests * chore: fix format * chore: run format * chore: fix weird CI unit test error * chore: fix format --------- Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
68 lines
2.2 KiB
JavaScript
68 lines
2.2 KiB
JavaScript
/**
|
|
* task-manager.js
|
|
* Task management functions for the Task Master CLI
|
|
*/
|
|
|
|
import { findTaskById } from './utils.js';
|
|
import parsePRD from './task-manager/parse-prd/index.js';
|
|
import updateTasks from './task-manager/update-tasks.js';
|
|
import updateTaskById from './task-manager/update-task-by-id.js';
|
|
import generateTaskFiles from './task-manager/generate-task-files.js';
|
|
import setTaskStatus from './task-manager/set-task-status.js';
|
|
import updateSingleTaskStatus from './task-manager/update-single-task-status.js';
|
|
import listTasks from './task-manager/list-tasks.js';
|
|
import expandTask from './task-manager/expand-task.js';
|
|
import expandAllTasks from './task-manager/expand-all-tasks.js';
|
|
import clearSubtasks from './task-manager/clear-subtasks.js';
|
|
import addTask from './task-manager/add-task.js';
|
|
import analyzeTaskComplexity from './task-manager/analyze-task-complexity.js';
|
|
import findNextTask from './task-manager/find-next-task.js';
|
|
import addSubtask from './task-manager/add-subtask.js';
|
|
import removeSubtask from './task-manager/remove-subtask.js';
|
|
import updateSubtaskById from './task-manager/update-subtask-by-id.js';
|
|
import removeTask from './task-manager/remove-task.js';
|
|
import taskExists from './task-manager/task-exists.js';
|
|
import isTaskDependentOn from './task-manager/is-task-dependent.js';
|
|
import setResponseLanguage from './task-manager/response-language.js';
|
|
import moveTask from './task-manager/move-task.js';
|
|
import { migrateProject } from './task-manager/migrate.js';
|
|
import { performResearch } from './task-manager/research.js';
|
|
import { readComplexityReport } from './utils.js';
|
|
import {
|
|
scopeUpTask,
|
|
scopeDownTask,
|
|
validateStrength
|
|
} from './task-manager/scope-adjustment.js';
|
|
|
|
// Export task manager functions
|
|
export {
|
|
parsePRD,
|
|
updateTasks,
|
|
updateTaskById,
|
|
updateSubtaskById,
|
|
generateTaskFiles,
|
|
setTaskStatus,
|
|
updateSingleTaskStatus,
|
|
listTasks,
|
|
expandTask,
|
|
expandAllTasks,
|
|
clearSubtasks,
|
|
addTask,
|
|
addSubtask,
|
|
removeSubtask,
|
|
findNextTask,
|
|
analyzeTaskComplexity,
|
|
removeTask,
|
|
findTaskById,
|
|
taskExists,
|
|
isTaskDependentOn,
|
|
setResponseLanguage,
|
|
moveTask,
|
|
readComplexityReport,
|
|
migrateProject,
|
|
performResearch,
|
|
scopeUpTask,
|
|
scopeDownTask,
|
|
validateStrength
|
|
};
|