An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
task management
Eyal Toledano4c835264ac6c
diff --git a/.changeset/cuddly-walls-clap.md b/.changeset/cuddly-walls-clap.mdnew file mode 100644index 00000000..270ba6c2--- /dev/null+++ b/.changeset/cuddly-walls-clap.md@@ -0,0 +1,9 @@+---+'task-master-ai': patch+---++Adds and updates supported AI models with costs:+- Added new OpenRouter models: GPT-4.1 series, O3, Codex Mini, Llama 4 Maverick, Llama 4 Scout, Qwen3-235b+- Added Mistral models: Devstral Small, Mistral Nemo+- Updated Ollama models with latest variants: Devstral, Qwen3, Mistral-small3.1, Llama3.3+- Updated Gemini model to latest 2.5 Flash preview versiondiff --git a/.taskmasterconfig b/.taskmasterconfigindex 2a1e943a..9f377d4f 100644--- a/.taskmasterconfig+++ b/.taskmasterconfig@@ -1,32 +1,32 @@{- "models": {- "main": {- "provider": "anthropic",- "modelId": "claude-3-7-sonnet-20250219",- "maxTokens": 100000,- "temperature": 0.2- },- "research": {- "provider": "perplexity",- "modelId": "sonar-pro",- "maxTokens": 8700,- "temperature": 0.1- },- "fallback": {- "provider": "anthropic",- "modelId": "claude-3-7-sonnet-20250219",- "maxTokens": 8192,- "temperature": 0.2- }- },- "global": {- "logLevel": "info",- "debug": false,- "defaultSubtasks": 5,- "defaultPriority": "medium",- "projectName": "Taskmaster",- "ollamaBaseUrl": "http://localhost:11434/api",- "userId": "1234567890",- "azureOpenaiBaseUrl": "https://your-endpoint.openai.azure.com/"- }-}+ "models": {+ "main": {+ "provider": "ollama",+ "modelId": "devstral:latest",+ "maxTokens": 120000,+ "temperature": 0.2+ },+ "research": {+ "provider": "perplexity",+ "modelId": "sonar-pro",+ "maxTokens": 8700,+ "temperature": 0.1+ },+ "fallback": {+ "provider": "anthropic",+ "modelId": "claude-3-7-sonnet-20250219",+ "maxTokens": 8192,+ "temperature": 0.2+ }+ },+ "global": {+ "logLevel": "info",+ "debug": false,+ "defaultSubtasks": 5,+ "defaultPriority": "medium",+ "projectName": "Taskmaster",+ "ollamaBaseUrl": "http://localhost:11434/api",+ "userId": "1234567890",+ "azureOpenaiBaseUrl": "https://your-endpoint.openai.azure.com/"+ }+}\ No newline at end of filediff --git a/scripts/modules/supported-models.json b/scripts/modules/supported-models.jsonindex b1f1e1c7..fcdd38f9 100644--- a/scripts/modules/supported-models.json+++ b/scripts/modules/supported-models.json@@ -191,43 +191,43 @@],"ollama": [{- "id": "gemma3:27b",+ "id": "devstral:latest","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "gemma3:12b",+ "id": "qwen3:latest","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "qwq",+ "id": "qwen3:14b","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "deepseek-r1",+ "id": "qwen3:32b","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "mistral-small3.1",+ "id": "mistral-small3.1:latest","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "llama3.3",+ "id": "llama3.3:latest","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]},{- "id": "phi4",+ "id": "phi4:latest","swe_score": 0,"cost_per_1m_tokens": { "input": 0, "output": 0 },"allowed_roles": ["main", "fallback"]@@ -235,9 +235,16 @@],"openrouter": [{- "id": "google/gemini-2.0-flash-001",+ "id": "google/gemini-2.5-flash-preview-05-20","swe_score": 0,- "cost_per_1m_tokens": { "input": 0.1, "output": 0.4 },+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 1048576+ },+ {+ "id": "google/gemini-2.5-flash-preview-05-20:thinking",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.15, "output": 3.50 },"allowed_roles": ["main", "fallback"],"max_tokens": 1048576},@@ -263,47 +270,46 @@"max_tokens": 64000},{- "id": "deepseek/deepseek-r1:free",+ "id": "openai/gpt-4.1","swe_score": 0,- "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "cost_per_1m_tokens": { "input": 2, "output": 8 },"allowed_roles": ["main", "fallback"],- "max_tokens": 163840+ "max_tokens": 1000000},-{- "id": "microsoft/mai-ds-r1:free",+ "id": "openai/gpt-4.1-mini","swe_score": 0,- "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "cost_per_1m_tokens": { "input": 0.40, "output": 1.60 },"allowed_roles": ["main", "fallback"],- "max_tokens": 163840+ "max_tokens": 1000000},{- "id": "google/gemini-2.5-pro-preview-03-25",+ "id": "openai/gpt-4.1-nano","swe_score": 0,- "cost_per_1m_tokens": { "input": 1.25, "output": 10 },+ "cost_per_1m_tokens": { "input": 0.10, "output": 0.40 },"allowed_roles": ["main", "fallback"],- "max_tokens": 65535+ "max_tokens": 1000000},{- "id": "google/gemini-2.5-flash-preview",+ "id": "openai/o3","swe_score": 0,- "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },- "allowed_roles": ["main"],- "max_tokens": 65535+ "cost_per_1m_tokens": { "input": 10, "output": 40 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 200000},{- "id": "google/gemini-2.5-flash-preview:thinking",+ "id": "openai/codex-mini","swe_score": 0,- "cost_per_1m_tokens": { "input": 0.15, "output": 3.5 },- "allowed_roles": ["main"],- "max_tokens": 65535+ "cost_per_1m_tokens": { "input": 1.5, "output": 6 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000},{- "id": "openai/o3",+ "id": "openai/gpt-4o-mini","swe_score": 0,- "cost_per_1m_tokens": { "input": 10, "output": 40 },+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },"allowed_roles": ["main", "fallback"],- "max_tokens": 200000+ "max_tokens": 100000},{"id": "openai/o4-mini",@@ -334,46 +340,18 @@"max_tokens": 1048576},{- "id": "google/gemma-3-12b-it:free",- "swe_score": 0,- "cost_per_1m_tokens": { "input": 0, "output": 0 },- "allowed_roles": ["main", "fallback"],- "max_tokens": 131072- },- {- "id": "google/gemma-3-12b-it",- "swe_score": 0,- "cost_per_1m_tokens": { "input": 50, "output": 100 },- "allowed_roles": ["main", "fallback"],- "max_tokens": 131072- },- {- "id": "google/gemma-3-27b-it:free",- "swe_score": 0,- "cost_per_1m_tokens": { "input": 0, "output": 0 },- "allowed_roles": ["main", "fallback"],- "max_tokens": 96000- },- {- "id": "google/gemma-3-27b-it",- "swe_score": 0,- "cost_per_1m_tokens": { "input": 100, "output": 200 },- "allowed_roles": ["main", "fallback"],- "max_tokens": 131072- },- {- "id": "qwen/qwq-32b:free",+ "id": "meta-llama/llama-4-maverick","swe_score": 0,- "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "cost_per_1m_tokens": { "input": 0.18, "output": 0.60 },"allowed_roles": ["main", "fallback"],- "max_tokens": 40000+ "max_tokens": 1000000},{- "id": "qwen/qwq-32b",+ "id": "meta-llama/llama-4-scout","swe_score": 0,- "cost_per_1m_tokens": { "input": 150, "output": 200 },+ "cost_per_1m_tokens": { "input": 0.08, "output": 0.30 },"allowed_roles": ["main", "fallback"],- "max_tokens": 131072+ "max_tokens": 1000000},{"id": "qwen/qwen-max",@@ -389,6 +367,13 @@"allowed_roles": ["main", "fallback"],"max_tokens": 1000000},+ {+ "id": "qwen/qwen3-235b-a22b",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.14, "output": 2 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 24000+ },{"id": "mistralai/mistral-small-3.1-24b-instruct:free","swe_score": 0,@@ -403,6 +388,20 @@"allowed_roles": ["main", "fallback"],"max_tokens": 128000},+ {+ "id": "mistralai/devstral-small",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.10, "output": 0.30 },+ "allowed_roles": ["main"],+ "max_tokens": 110000+ },+ {+ "id": "mistralai/mistral-nemo",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.03, "output": 0.07 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000+ },{"id": "thudm/glm-4-32b:free","swe_score": 0,diff --git a/tasks/task_063.txt b/tasks/task_063.txtindex 86bf3a5a..2268ee52 100644--- a/tasks/task_063.txt+++ b/tasks/task_063.txt@@ -1,6 +1,6 @@# Task ID: 63# Title: Add pnpm Support for the Taskmaster Package-# Status: pending+# Status: done# Dependencies: None# Priority: medium# Description: Implement full support for pnpm as an alternative package manager in the Taskmaster application, ensuring users have the exact same experience as with npm when installing and managing the package. The installation process, including any CLI prompts or web interfaces, must serve the exact same content and user experience regardless of whether npm or pnpm is used. The project uses 'module' as the package type, defines binaries 'task-master' and 'task-master-mcp', and its core logic resides in 'scripts/modules/'. The 'init' command (via scripts/init.js) creates the directory structure (.cursor/rules, scripts, tasks), copies templates (.env.example, .gitignore, rule files, dev.js), manages package.json merging, and sets up MCP config (.cursor/mcp.json). All dependencies are standard npm dependencies listed in package.json, and manual modifications are being removed.@@ -88,49 +88,49 @@ This implementation should maintain full feature parity and identical user experSuccess criteria: Taskmaster should install and function identically regardless of whether it was installed via npm or pnpm, with no degradation in functionality, performance, or user experience. All binaries should be properly linked, and the directory structure should be correctly created.# Subtasks:-## 1. Update Documentation for pnpm Support [pending]+## 1. Update Documentation for pnpm Support [done]### Dependencies: None### Description: Revise installation and usage documentation to include pnpm commands and instructions for installing and managing Taskmaster with pnpm. Clearly state that the installation process, including any website or UI shown, is identical to npm. Ensure documentation reflects the use of 'module' package type, binaries, and the init process as defined in scripts/init.js.### Details:Add pnpm installation commands (e.g., `pnpm add taskmaster`) and update all relevant sections in the README and official docs to reflect pnpm as a supported package manager. Document that any installation website or prompt is the same as with npm. Include notes on the 'module' package type, binaries, and the directory/template setup performed by scripts/init.js.-## 2. Ensure Package Scripts Compatibility with pnpm [pending]+## 2. Ensure Package Scripts Compatibility with pnpm [done]### Dependencies: 63.1### Description: Review and update package.json scripts to ensure they work seamlessly with pnpm's execution model. Confirm that any scripts responsible for showing a website or prompt during install behave identically with pnpm and npm. Ensure compatibility with 'module' package type and correct binary definitions.### Details:Test all scripts using `pnpm run <script>`, address any pnpm-specific path or execution differences, and modify scripts as needed for compatibility. Pay special attention to any scripts that trigger a website or prompt during installation, ensuring they serve the same content as npm. Validate that scripts/init.js and binaries are referenced correctly for ESM ('module') projects.-## 3. Generate and Validate pnpm Lockfile [pending]+## 3. Generate and Validate pnpm Lockfile [done]### Dependencies: 63.2### Description: Install dependencies using pnpm to create a pnpm-lock.yaml file and ensure it accurately reflects the project's dependency tree, considering the 'module' package type.### Details:Run `pnpm install` to generate the lockfile, check it into version control, and verify that dependency resolution is correct and consistent. Ensure that all dependencies listed in package.json are resolved as expected for an ESM project.-## 4. Test Taskmaster Installation and Operation with pnpm [pending]+## 4. Test Taskmaster Installation and Operation with pnpm [done]### Dependencies: 63.3### Description: Thoroughly test Taskmaster's installation and CLI operation when installed via pnpm, both globally and locally. Confirm that any website or UI shown during installation is identical to npm. Validate that binaries and the init process (scripts/init.js) work as expected.### Details:Perform global (`pnpm add -g taskmaster`) and local installations, verify CLI commands, and check for any pnpm-specific issues or incompatibilities. Ensure any installation UIs or websites appear identical to npm installations, including any website or prompt shown during install. Test that binaries 'task-master' and 'task-master-mcp' are linked and that scripts/init.js creates the correct structure and templates.-## 5. Integrate pnpm into CI/CD Pipeline [pending]+## 5. Integrate pnpm into CI/CD Pipeline [done]### Dependencies: 63.4### Description: Update CI/CD workflows to include pnpm in the test matrix, ensuring all tests pass when dependencies are installed with pnpm. Confirm that tests cover the 'module' package type, binaries, and init process.### Details:Modify GitHub Actions or other CI configurations to use pnpm/action-setup, run tests with pnpm, and cache pnpm dependencies for efficiency. Ensure that CI covers CLI commands, binary linking, and the directory/template setup performed by scripts/init.js.-## 6. Verify Installation UI/Website Consistency [pending]+## 6. Verify Installation UI/Website Consistency [done]### Dependencies: 63.4### Description: Ensure any installation UIs, websites, or interactive prompts—including any website or prompt shown during install—appear and function identically when installing with pnpm compared to npm. Confirm that the experience is consistent for the 'module' package type and the init process.### Details:Identify all user-facing elements during the installation process, including any website or prompt shown during install, and verify they are consistent across package managers. If a website is shown during installation, ensure it appears the same regardless of package manager used. Validate that any prompts or UIs triggered by scripts/init.js are identical.-## 7. Test init.js Script with pnpm [pending]+## 7. Test init.js Script with pnpm [done]### Dependencies: 63.4### Description: Verify that the scripts/init.js file works correctly when Taskmaster is installed via pnpm, creating the proper directory structure and copying all required templates as defined in the project structure.### Details:Test the init command to ensure it properly creates .cursor/rules, scripts, and tasks directories, copies templates (.env.example, .gitignore, rule files, dev.js), handles package.json merging, and sets up MCP config (.cursor/mcp.json) as per scripts/init.js.-## 8. Verify Binary Links with pnpm [pending]+## 8. Verify Binary Links with pnpm [done]### Dependencies: 63.4### Description: Ensure that the task-master and task-master-mcp binaries are properly defined in package.json, linked, and executable when installed via pnpm, in both global and local installations.### Details:diff --git a/tasks/task_064.txt b/tasks/task_064.txtindex ae3614f5..538bbb82 100644--- a/tasks/task_064.txt+++ b/tasks/task_064.txt@@ -1,6 +1,6 @@# Task ID: 64# Title: Add Yarn Support for Taskmaster Installation-# Status: pending+# Status: done# Dependencies: None# Priority: medium# Description: Implement full support for installing and managing Taskmaster using Yarn package manager, ensuring users have the exact same experience as with npm or pnpm. The installation process, including any CLI prompts or web interfaces, must serve the exact same content and user experience regardless of whether npm, pnpm, or Yarn is used. The project uses 'module' as the package type, defines binaries 'task-master' and 'task-master-mcp', and its core logic resides in 'scripts/modules/'. The 'init' command (via scripts/init.js) creates the directory structure (.cursor/rules, scripts, tasks), copies templates (.env.example, .gitignore, rule files, dev.js), manages package.json merging, and sets up MCP config (.cursor/mcp.json). All dependencies are standard npm dependencies listed in package.json, and manual modifications are being removed.@@ -74,55 +74,55 @@ Testing should verify complete Yarn support through the following steps:All tests should pass with the same results as when using npm, with identical user experience throughout the installation and usage process.# Subtasks:-## 1. Update package.json for Yarn Compatibility [pending]+## 1. Update package.json for Yarn Compatibility [done]### Dependencies: None### Description: Modify the package.json file to ensure all dependencies, scripts, and configurations are compatible with Yarn's installation and resolution methods. Confirm that any scripts responsible for showing a website or prompt during install behave identically with Yarn and npm. Ensure compatibility with 'module' package type and correct binary definitions.### Details:Review and update dependency declarations, script syntax, and any package manager-specific fields to avoid conflicts or unsupported features when using Yarn. Pay special attention to any scripts that trigger a website or prompt during installation, ensuring they serve the same content as npm. Validate that scripts/init.js and binaries are referenced correctly for ESM ('module') projects.-## 2. Add Yarn-Specific Configuration Files [pending]+## 2. Add Yarn-Specific Configuration Files [done]### Dependencies: 64.1### Description: Introduce Yarn-specific configuration files such as .yarnrc.yml if needed to optimize Yarn behavior and ensure consistent installs for 'module' package type and binary definitions.### Details:Determine if Yarn v2+ (Berry) or classic requires additional configuration for the project, and add or update .yarnrc.yml or .yarnrc files accordingly. Ensure configuration supports ESM and binary linking.-## 3. Test and Fix Yarn Compatibility for Scripts and CLI [pending]+## 3. Test and Fix Yarn Compatibility for Scripts and CLI [done]### Dependencies: 64.2### Description: Ensure all scripts, post-install hooks, and CLI commands function correctly when Taskmaster is installed and managed via Yarn. Confirm that any website or UI shown during installation is identical to npm. Validate that binaries and the init process (scripts/init.js) work as expected.### Details:Test all lifecycle scripts, post-install actions, and CLI commands using Yarn. Address any issues related to environment variables, script execution, or dependency hoisting. Ensure any website or prompt shown during install is the same as with npm. Validate that binaries 'task-master' and 'task-master-mcp' are linked and that scripts/init.js creates the correct structure and templates.-## 4. Update Documentation for Yarn Installation and Usage [pending]+## 4. Update Documentation for Yarn Installation and Usage [done]### Dependencies: 64.3### Description: Revise installation and usage documentation to include clear instructions for installing and managing Taskmaster with Yarn. Clearly state that the installation process, including any website or UI shown, is identical to npm. Ensure documentation reflects the use of 'module' package type, binaries, and the init process as defined in scripts/init.js. If the installation process includes a website component or requires account setup, document the steps users must follow. If not, explicitly state that no website or account setup is required.### Details:Add Yarn-specific installation commands, troubleshooting tips, and notes on version compatibility to the README and any relevant docs. Document that any installation website or prompt is the same as with npm. Include notes on the 'module' package type, binaries, and the directory/template setup performed by scripts/init.js. If website or account setup is required during installation, provide clear instructions; otherwise, confirm and document that no such steps are needed.-## 5. Implement and Test Package Manager Detection Logic [pending]+## 5. Implement and Test Package Manager Detection Logic [done]### Dependencies: 64.4### Description: Update or add logic in the codebase to detect Yarn installations and handle Yarn-specific behaviors, ensuring feature parity across package managers. Ensure detection logic works for 'module' package type and binary definitions.### Details:Modify detection logic to recognize Yarn (classic and berry), handle lockfile generation, and resolve any Yarn-specific package resolution or hoisting issues. Ensure detection logic supports ESM and binary linking.-## 6. Verify Installation UI/Website Consistency [pending]+## 6. Verify Installation UI/Website Consistency [done]### Dependencies: 64.3### Description: Ensure any installation UIs, websites, or interactive prompts—including any website or prompt shown during install—appear and function identically when installing with Yarn compared to npm. Confirm that the experience is consistent for the 'module' package type and the init process. If the installation process includes a website or account setup, verify that all required website actions (e.g., account creation, login) are consistent and documented. If not, confirm and document that no website or account setup is needed.### Details:Identify all user-facing elements during the installation process, including any website or prompt shown during install, and verify they are consistent across package managers. If a website is shown during installation or account setup is required, ensure it appears and functions the same regardless of package manager used, and document the steps. If not, confirm and document that no website or account setup is needed. Validate that any prompts or UIs triggered by scripts/init.js are identical.-## 7. Test init.js Script with Yarn [pending]+## 7. Test init.js Script with Yarn [done]### Dependencies: 64.3### Description: Verify that the scripts/init.js file works correctly when Taskmaster is installed via Yarn, creating the proper directory structure and copying all required templates as defined in the project structure.### Details:Test the init command to ensure it properly creates .cursor/rules, scripts, and tasks directories, copies templates (.env.example, .gitignore, rule files, dev.js), handles package.json merging, and sets up MCP config (.cursor/mcp.json) as per scripts/init.js.-## 8. Verify Binary Links with Yarn [pending]+## 8. Verify Binary Links with Yarn [done]### Dependencies: 64.3### Description: Ensure that the task-master and task-master-mcp binaries are properly defined in package.json, linked, and executable when installed via Yarn, in both global and local installations.### Details:Check that the binaries defined in package.json are correctly linked in node_modules/.bin when installed with Yarn, and that they can be executed without errors. Validate that binaries work for ESM ('module') projects and are accessible after both global and local installs.-## 9. Test Website Account Setup with Yarn [pending]+## 9. Test Website Account Setup with Yarn [done]### Dependencies: 64.6### Description: If the installation process includes a website component, verify that account setup, registration, or any other user-specific configurations work correctly when Taskmaster is installed via Yarn. If no website or account setup is required, confirm and document this explicitly.### Details:diff --git a/tasks/task_065.txt b/tasks/task_065.txtindex 7cbfcbe2..065868ab 100644--- a/tasks/task_065.txt+++ b/tasks/task_065.txt@@ -1,6 +1,6 @@# Task ID: 65# Title: Add Bun Support for Taskmaster Installation-# Status: pending+# Status: done# Dependencies: None# Priority: medium# Description: Implement full support for installing and managing Taskmaster using the Bun package manager, ensuring the installation process and user experience are identical to npm, pnpm, and Yarn.@@ -11,37 +11,37 @@ Update the Taskmaster installation scripts and documentation to support Bun as a1. Install Taskmaster using Bun on macOS, Linux, and Windows (including WSL and PowerShell), following the updated documentation. 2. Run the full installation and initialization process, verifying that the directory structure, templates, and MCP config are set up identically to npm, pnpm, and Yarn. 3. Execute all CLI commands (including 'init') and confirm functional parity. 4. If a website or account setup is required, test these flows for consistency; if not, confirm and document this. 5. Check for Bun-specific issues (e.g., install hangs) and verify that troubleshooting steps are effective. 6. Ensure the documentation is clear, accurate, and up to date for all supported platforms.# Subtasks:-## 1. Research Bun compatibility requirements [pending]+## 1. Research Bun compatibility requirements [done]### Dependencies: None### Description: Investigate Bun's JavaScript runtime environment and identify key differences from Node.js that may affect Taskmaster's installation and operation.### Details:Research Bun's package management, module resolution, and API compatibility with Node.js. Document any potential issues or limitations that might affect Taskmaster. Identify required changes to make Taskmaster compatible with Bun's execution model.-## 2. Update installation scripts for Bun compatibility [pending]+## 2. Update installation scripts for Bun compatibility [done]### Dependencies: 65.1### Description: Modify the existing installation scripts to detect and support Bun as a runtime environment.### Details:Add Bun detection logic to installation scripts. Update package management commands to use Bun equivalents where needed. Ensure all dependencies are compatible with Bun. Modify any Node.js-specific code to work with Bun's runtime.-## 3. Create Bun-specific installation path [pending]+## 3. Create Bun-specific installation path [done]### Dependencies: 65.2### Description: Implement a dedicated installation flow for Bun users that optimizes for Bun's capabilities.### Details:Create a Bun-specific installation script that leverages Bun's performance advantages. Update any environment detection logic to properly identify Bun environments. Ensure proper path resolution and environment variable handling for Bun.-## 4. Test Taskmaster installation with Bun [pending]+## 4. Test Taskmaster installation with Bun [done]### Dependencies: 65.3### Description: Perform comprehensive testing of the installation process using Bun across different operating systems.### Details:Test installation on Windows, macOS, and Linux using Bun. Verify that all Taskmaster features work correctly when installed via Bun. Document any issues encountered and implement fixes as needed.-## 5. Test Taskmaster operation with Bun [pending]+## 5. Test Taskmaster operation with Bun [done]### Dependencies: 65.4### Description: Ensure all Taskmaster functionality works correctly when running under Bun.### Details:Test all Taskmaster commands and features when running with Bun. Compare performance metrics between Node.js and Bun. Identify and fix any runtime issues specific to Bun. Ensure all plugins and extensions are compatible.-## 6. Update documentation for Bun support [pending]+## 6. Update documentation for Bun support [done]### Dependencies: 65.4, 65.5### Description: Update all relevant documentation to include information about installing and running Taskmaster with Bun.### Details:diff --git a/tasks/task_067.txt b/tasks/task_067.txtindex 7194fd40..35c766a7 100644--- a/tasks/task_067.txt+++ b/tasks/task_067.txt@@ -15,29 +15,92 @@ This task has two main components:\n\n1. Add `--json` flag to all relevant CLI c### Dependencies: None### Description: Modify the command handlers for `task-master next` and `task-master show <id>` to recognize and handle a `--json` flag. When the flag is present, output the raw data received from MCP tools directly as JSON.### Details:-Use a CLI argument parsing library (e.g., argparse, click, commander) to add the `--json` boolean flag. In the command execution logic, check if the flag is set. If true, serialize the data object (before any human-readable formatting) into a JSON string and print it to stdout. If false, proceed with the existing formatting logic. Focus on these two commands first to establish the pattern.+1. Update the CLI argument parser to add the `--json` boolean flag to both commands+2. Create a `formatAsJson` utility function in `src/utils/output.js` that takes a data object and returns a properly formatted JSON string+3. In the command handler functions (`src/commands/next.js` and `src/commands/show.js`), add a conditional check for the `--json` flag+4. If the flag is set, call the `formatAsJson` function with the raw data object and print the result+5. If the flag is not set, continue with the existing human-readable formatting logic+6. Ensure proper error handling for JSON serialization failures+7. Update the command help text in both files to document the new flag## 2. Extend JSON Output to All Relevant Commands and Ensure Schema Consistency [pending]### Dependencies: 67.1### Description: Apply the JSON output pattern established in subtask 1 to all other relevant Taskmaster CLI commands that display data (e.g., `list`, `status`, etc.). Ensure the JSON structure is consistent where applicable (e.g., task objects should have the same fields). Add help text mentioning the `--json` flag for each modified command.### Details:-Identify all commands that output structured data. Refactor the JSON output logic into a reusable utility function if possible. Define a standard schema for common data types like tasks. Update the help documentation for each command to include the `--json` flag description. Ensure error outputs are also handled appropriately (e.g., potentially outputting JSON error objects).+1. Create a JSON schema definition file at `src/schemas/task.json` to define the standard structure for task objects+2. Modify the following command files to support the `--json` flag:+ - `src/commands/list.js`+ - `src/commands/status.js`+ - `src/commands/search.js`+ - `src/commands/summary.js`+3. Refactor the `formatAsJson` utility to handle different data types (single task, task array, status object, etc.)+4. Add a `validateJsonSchema` function in `src/utils/validation.js` to ensure output conforms to defined schemas+5. Update each command's help text documentation to include the `--json` flag description+6. Implement consistent error handling for JSON output (using a standard error object format)+7. For list-type commands, ensure array outputs are properly formatted as JSON arrays## 3. Create `install-keybindings` Command Structure and OS Detection [pending]### Dependencies: None### Description: Set up the basic structure for the new `task-master install-keybindings` command. Implement logic to detect the user's operating system (Linux, macOS, Windows) and determine the default path to Cursor's `keybindings.json` file.### Details:-Add a new command entry point using the CLI framework. Use standard library functions (e.g., `os.platform()` in Node, `platform.system()` in Python) to detect the OS. Define constants or a configuration map for the default `keybindings.json` paths for each supported OS. Handle cases where the path might vary (e.g., different installation methods for Cursor). Add basic help text for the new command.+1. Create a new command file at `src/commands/install-keybindings.js`+2. Register the command in the main CLI entry point (`src/index.js`)+3. Implement OS detection using `os.platform()` in Node.js+4. Define the following path constants in `src/config/paths.js`:+ - Windows: `%APPDATA%\Cursor\User\keybindings.json`+ - macOS: `~/Library/Application Support/Cursor/User/keybindings.json`+ - Linux: `~/.config/Cursor/User/keybindings.json`+5. Create a `getCursorKeybindingsPath()` function that returns the appropriate path based on detected OS+6. Add path override capability via a `--path` command line option+7. Implement proper error handling for unsupported operating systems+8. Add detailed help text explaining the command's purpose and options## 4. Implement Keybinding File Handling and Backup Logic [pending]### Dependencies: 67.3### Description: Implement the core logic within the `install-keybindings` command to read the target `keybindings.json` file. If it exists, create a backup. If it doesn't exist, create a new file with an empty JSON array `[]`. Prepare the structure to add new keybindings.### Details:-Use file system modules to check for file existence, read, write, and copy files. Implement a backup mechanism (e.g., copy `keybindings.json` to `keybindings.json.bak`). Handle potential file I/O errors gracefully (e.g., permissions issues). Parse the existing JSON content; if parsing fails, report an error and potentially abort. Ensure the file is created with `[]` if it's missing.+1. Create a `KeybindingsManager` class in `src/utils/keybindings.js` with the following methods:+ - `checkFileExists(path)`: Verify if the keybindings file exists+ - `createBackup(path)`: Copy existing file to `keybindings.json.bak`+ - `readKeybindings(path)`: Read and parse the JSON file+ - `writeKeybindings(path, data)`: Serialize and write data to the file+ - `createEmptyFile(path)`: Create a new file with `[]` content+2. In the command handler, use these methods to:+ - Check if the target file exists+ - Create a backup if it does (with timestamp in filename)+ - Read existing keybindings or create an empty file+ - Parse the JSON content with proper error handling+3. Add a `--no-backup` flag to skip backup creation+4. Implement verbose logging with a `--verbose` flag+5. Handle all potential file system errors (permissions, disk space, etc.)+6. Add a `--dry-run` option that shows what would be done without making changes## 5. Add Taskmaster Keybindings, Prevent Duplicates, and Support Customization [pending]### Dependencies: 67.4### Description: Define the specific Taskmaster keybindings (e.g., next task to clipboard, status update, open agent chat) and implement the logic to merge them into the user's `keybindings.json` data. Prevent adding duplicate keybindings (based on command ID or key combination). Add support for custom key combinations via command flags.### Details:-Define the desired keybindings as a list of JSON objects following Cursor's format. Before adding, iterate through the existing keybindings (parsed in subtask 4) to check if a Taskmaster keybinding with the same command or key combination already exists. If not, append the new keybinding to the list. Add command-line flags (e.g., `--next-key='ctrl+alt+n'`) to allow users to override default key combinations. Serialize the updated list back to JSON and write it to the `keybindings.json` file.+1. Define default Taskmaster keybindings in `src/config/default-keybindings.js` as an array of objects with:+ - `key`: Default key combination (e.g., `"ctrl+alt+n"`)+ - `command`: Cursor command ID (e.g., `"taskmaster.nextTask"`)+ - `when`: Context when keybinding is active (e.g., `"editorTextFocus"`)+ - `args`: Any command arguments as an object+ - `description`: Human-readable description of what the keybinding does+2. Implement the following keybindings:+ - Next task to clipboard: `ctrl+alt+n`+ - Update task status: `ctrl+alt+u`+ - Open agent chat with task context: `ctrl+alt+a`+ - Show task details: `ctrl+alt+d`+3. Add command-line options to customize each keybinding:+ - `--next-key="ctrl+alt+n"`+ - `--update-key="ctrl+alt+u"`+ - `--agent-key="ctrl+alt+a"`+ - `--details-key="ctrl+alt+d"`+4. Implement a `mergeKeybindings(existing, new)` function that:+ - Checks for duplicates based on command ID+ - Checks for key combination conflicts+ - Warns about conflicts but allows override with `--force` flag+ - Preserves existing non-Taskmaster keybindings+5. Add a `--reset` flag to remove all existing Taskmaster keybindings before adding new ones+6. Add a `--list` option to display currently installed Taskmaster keybindings+7. Implement an `--uninstall` option to remove all Taskmaster keybindingsdiff --git a/tasks/task_077.txt b/tasks/task_077.txtindex f3f53ff3..a5d54137 100644--- a/tasks/task_077.txt+++ b/tasks/task_077.txt@@ -1,6 +1,6 @@# Task ID: 77# Title: Implement AI Usage Telemetry for Taskmaster (with external analytics endpoint)-# Status: in-progress+# Status: done# Dependencies: None# Priority: medium# Description: Capture detailed AI usage data (tokens, costs, models, commands) within Taskmaster and send this telemetry to an external, closed-source analytics backend for usage analysis, profitability measurement, and pricing optimization.@@ -536,13 +536,13 @@ async function callAiService(params) {### Details:Update the provider functions in `src/ai-providers/google.js` to ensure they return telemetry-compatible results:\n\n1. **`generateGoogleText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\n2. **`generateGoogleObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\n3. **`streamGoogleText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\n\nReference `anthropic.js` for the pattern.-## 14. Update openai.js for Telemetry Compatibility [pending]+## 14. Update openai.js for Telemetry Compatibility [done]### Dependencies: None### Description: Modify src/ai-providers/openai.js functions to return usage data.### Details:Update the provider functions in `src/ai-providers/openai.js` to ensure they return telemetry-compatible results:\n\n1. **`generateOpenAIText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\n2. **`generateOpenAIObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\n3. **`streamOpenAIText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\n\nReference `anthropic.js` for the pattern.-## 15. Update openrouter.js for Telemetry Compatibility [pending]+## 15. Update openrouter.js for Telemetry Compatibility [done]### Dependencies: None### Description: Modify src/ai-providers/openrouter.js functions to return usage data.### Details:@@ -554,13 +554,13 @@ Update the provider functions in `src/ai-providers/openrouter.js` to ensure they### Details:Update the provider functions in `src/ai-providers/perplexity.js` to ensure they return telemetry-compatible results:\n\n1. **`generatePerplexityText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\n2. **`generatePerplexityObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\n3. **`streamPerplexityText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\n\nReference `anthropic.js` for the pattern.-## 17. Update xai.js for Telemetry Compatibility [pending]+## 17. Update xai.js for Telemetry Compatibility [done]### Dependencies: None### Description: Modify src/ai-providers/xai.js functions to return usage data.### Details:Update the provider functions in `src/ai-providers/xai.js` to ensure they return telemetry-compatible results:\n\n1. **`generateXaiText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\n2. **`generateXaiObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\n3. **`streamXaiText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\n\nReference `anthropic.js` for the pattern.-## 18. Create dedicated telemetry transmission module [pending]+## 18. Create dedicated telemetry transmission module [done]### Dependencies: 77.1, 77.3### Description: Implement a separate module for handling telemetry transmission logic### Details:diff --git a/tasks/task_081.txt b/tasks/task_081.txtdeleted file mode 100644index 99d23434..00000000--- a/tasks/task_081.txt+++ /dev/null@@ -1,144 +0,0 @@-# Task ID: 81-# Title: Task #81: Implement Comprehensive Local Telemetry System with Future Server Integration Capability-# Status: pending-# Dependencies: None-# Priority: medium-# Description: Expand the existing telemetry system to capture additional metrics about feature usage, performance, and user behavior patterns, implementing local storage and aggregation of telemetry data with the capability for future server integration.-# Details:-This task builds upon the existing telemetry infrastructure (Tasks #77 and #80) to provide more comprehensive insights into how users interact with the application, while storing data locally until a server endpoint becomes available.--Key implementation details:-1. Identify and implement additional telemetry data points:- - Command execution frequency and timing metrics- - Feature usage patterns (which commands/features are most/least used)- - Performance metrics (execution time, memory usage, etc.)- - Error rates and types- - Session duration and activity patterns- - System environment information (OS, Node version, etc.)--2. Implement a local telemetry storage system:- - Create a robust local storage mechanism to hold telemetry data indefinitely- - Implement data aggregation to combine similar events and reduce storage size- - Add data retention policies to prevent excessive local storage usage- - Implement configurable storage limits and cleanup procedures- - Design the storage format to be compatible with future server transmission--3. Add privacy-preserving mechanisms:- - Ensure all personally identifiable information is properly anonymized- - Implement data minimization principles (only collect what's necessary)- - Add user-configurable telemetry levels (basic, enhanced, full)- - Provide clear documentation on what data is collected and how it's used--4. Design for future server integration:- - Create a pluggable transmission architecture that can be connected to a server later- - Define API contracts and data formats for future server endpoints- - Add configuration options for server URLs and authentication that will be used later- - Implement feature flags to easily enable server transmission when available--5. Add telemetry debugging capabilities:- - Create a developer mode to view telemetry data being collected- - Implement logging of telemetry events (when in debug mode)- - Add commands to export telemetry data for manual analysis- - Create visualization tools for local telemetry data--6. Focus on user-facing benefits:- - Implement personal usage dashboards showing the user's own patterns- - Add productivity insights based on collected telemetry- - Create features that allow users to optimize their workflow based on their usage data- - Ensure all telemetry collection provides immediate value to the user--# Test Strategy:-The testing strategy for the expanded telemetry system should be comprehensive and cover all aspects of the implementation:--1. Unit Tests:- - Test each telemetry collection function in isolation- - Verify proper anonymization of sensitive data- - Test aggregation logic with various input scenarios- - Validate local storage mechanisms with different data volumes- - Test data retention and cleanup policies--2. Integration Tests:- - Verify telemetry data is properly stored locally- - Test the complete flow from data collection to local storage- - Validate that the storage format is suitable for future server transmission- - Test different application states (startup, shutdown, crash recovery)- - Verify proper handling of storage failures--3. End-to-End Tests:- - Create automated E2E tests that perform various user actions and verify telemetry is captured- - Test with simulated long-term usage to verify storage efficiency- - Verify that aggregated data accurately represents the performed actions--4. Performance Tests:- - Measure the performance impact of the expanded telemetry system- - Test with large volumes of telemetry data to ensure efficient handling- - Verify memory usage remains within acceptable limits- - Test CPU utilization during telemetry collection and storage operations--5. Manual Testing:- - Verify telemetry debug mode correctly displays collected data- - Test different telemetry level configurations- - Manually verify the accuracy of collected metrics- - Test the export functionality and analyze the exported data- - Validate that user-facing insights and dashboards provide accurate and useful information--6. Privacy Compliance Testing:- - Verify no PII is stored without proper anonymization- - Test opt-out functionality works correctly- - Ensure telemetry levels properly restrict data collection as configured--7. Regression Testing:- - Verify existing functionality continues to work with the expanded telemetry- - Ensure the system is designed to be compatible with future server integration--8. User Experience Testing:- - Test the usability of personal dashboards and insights features- - Gather feedback on the usefulness of telemetry-based recommendations- - Verify users can easily understand their own usage patterns--# Subtasks:-## 1. Implement Additional Telemetry Data Collection Points [pending]-### Dependencies: None-### Description: Extend the telemetry system to capture new metrics including command execution frequency, feature usage patterns, performance metrics, error rates, session data, and system environment information. [Updated: 5/8/2025] [Updated: 5/8/2025] [Updated: 5/8/2025]-### Details:-Create new telemetry event types and collection points throughout the codebase. Implement hooks in the command execution pipeline to track timing and frequency. Add performance monitoring for key operations using high-resolution timers. Capture system environment data at startup. Implement error tracking that records error types and frequencies. Add session tracking with start/end events and periodic heartbeats.-<info added on 2025-05-08T22:57:23.259Z>-This is a test note added via the MCP tool. The telemetry collection system should be thoroughly tested before implementation.-</info added on 2025-05-08T22:57:23.259Z>-<info added on 2025-05-08T22:59:29.818Z>-For future server integration, Prometheus time-series database with its companion storage solutions (like Cortex or Thanos) would be an excellent choice for handling our telemetry data. The local telemetry collection system should be designed with compatible data structures and metrics formatting that will allow seamless export to Prometheus once server-side infrastructure is in place. This approach would provide powerful querying capabilities, visualization options through Grafana, and scalable long-term storage. Consider implementing the OpenMetrics format locally to ensure compatibility with the Prometheus ecosystem.-</info added on 2025-05-08T22:59:29.818Z>-<info added on 2025-05-08T23:02:59.692Z>-Prometheus would be an excellent choice for server-side telemetry storage and analysis. When designing the local telemetry collection system, we should structure our metrics and events to be compatible with Prometheus' data model (time series with key-value pairs). This would allow for straightforward export to Prometheus once server infrastructure is established. For long-term storage, companion solutions like Cortex or Thanos could extend Prometheus' capabilities, enabling historical analysis and scalable retention. Additionally, adopting the OpenMetrics format locally would ensure seamless integration with the broader Prometheus ecosystem, including visualization through Grafana dashboards.-</info added on 2025-05-08T23:02:59.692Z>--## 2. Build Robust Local Telemetry Storage System [pending]-### Dependencies: None-### Description: Create a persistent local storage mechanism to hold telemetry data indefinitely with aggregation capabilities to combine similar events and reduce storage requirements.-### Details:-Implement a persistent local store using SQLite or similar lightweight database. Create data schemas for different telemetry types. Develop aggregation functions that can combine similar events (e.g., multiple instances of the same command) into summary statistics. Implement data retention policies to prevent excessive storage usage. Add serialization/deserialization for telemetry objects. Design the storage format to be compatible with future server transmission needs.--## 3. Design Server Transmission Architecture for Future Implementation [pending]-### Dependencies: None-### Description: Create a pluggable architecture for future server transmission capabilities while maintaining local-only functionality for now.-### Details:-Design a modular transmission system with clear interfaces that can be implemented later when a server becomes available. Define data formats and API contracts for future server endpoints. Add configuration options for server URLs and authentication that will be used in the future. Implement feature flags to easily enable server transmission when available. Create a transmission queue design that can be activated later. Document the architecture for future implementation.--## 4. Implement Privacy Controls and User Configuration [pending]-### Dependencies: None-### Description: Add privacy-preserving mechanisms including data anonymization, minimization principles, and user-configurable telemetry levels.-### Details:-Create a telemetry sanitization layer that removes or hashes PII before storage. Implement three telemetry levels (basic, enhanced, full) with clear documentation of what each includes. Add user settings UI for controlling telemetry levels. Create a first-run experience that explains telemetry and requests user consent. Implement runtime filtering of telemetry events based on user settings.--## 5. Add Telemetry Debugging and Local Analysis Tools [pending]-### Dependencies: None-### Description: Create developer tools for debugging telemetry including a developer mode to view collected data, logging capabilities, and local data analysis features.-### Details:-Implement a developer console command to toggle telemetry debug mode. Create a UI panel that displays collected telemetry data when in debug mode. Add detailed logging of telemetry events to the application log when debugging is enabled. Create commands to export telemetry data in various formats (JSON, CSV) for manual analysis. Implement basic visualization tools for local telemetry data to help users understand their own usage patterns.--## 6. Develop User-Facing Telemetry Benefits [pending]-### Dependencies: 81.1, 81.2-### Description: Create features that provide immediate value to users based on their telemetry data, focusing on personal insights and workflow optimization.-### Details:-Implement a personal usage dashboard that visualizes the user's command usage patterns, feature adoption, and productivity trends. Create a 'productivity insights' feature that offers personalized recommendations based on usage patterns. Add workflow optimization suggestions that help users discover more efficient ways to use the application. Develop weekly/monthly usage reports that users can view to track their own progress. Ensure all telemetry collection has a direct benefit to the user in the absence of server-side analysis.-diff --git a/tasks/task_088.txt b/tasks/task_088.txtnew file mode 100644index 00000000..e6ab1d3e--- /dev/null+++ b/tasks/task_088.txt@@ -0,0 +1,57 @@+# Task ID: 88+# Title: Enhance Add-Task Functionality to Consider All Task Dependencies+# Status: pending+# Dependencies: None+# Priority: medium+# Description: Improve the add-task feature to accurately account for all dependencies among tasks, ensuring proper task ordering and execution.+# Details:+1. Review current implementation of add-task functionality.+2. Identify existing mechanisms for handling task dependencies.+3. Modify add-task to recursively analyze and incorporate all dependencies.+4. Ensure that dependencies are resolved in the correct order during task execution.+5. Update documentation to reflect changes in dependency handling.+6. Consider edge cases such as circular dependencies and handle them appropriately.+7. Optimize performance to ensure efficient dependency resolution, especially for projects with a large number of tasks.+8. Integrate with existing validation and error handling mechanisms (from Task 87) to provide clear feedback if dependencies cannot be resolved.+9. Test thoroughly with various dependency scenarios to ensure robustness.++# Test Strategy:+1. Create test cases with simple linear dependencies to verify correct ordering.+2. Develop test cases with complex, nested dependencies to ensure recursive resolution works correctly.+3. Include tests for edge cases such as circular dependencies, verifying appropriate error messages are displayed.+4. Measure performance with large sets of tasks and dependencies to ensure efficiency.+5. Conduct integration testing with other components that rely on task dependencies.+6. Perform manual code reviews to validate implementation against requirements.+7. Execute automated tests to verify no regressions in existing functionality.++# Subtasks:+## 1. Review Current Add-Task Implementation and Identify Dependency Mechanisms [pending]+### Dependencies: None+### Description: Examine the existing add-task functionality to understand how task dependencies are currently handled.+### Details:+Conduct a code review of the add-task feature. Document any existing mechanisms for handling task dependencies.++## 2. Modify Add-Task to Recursively Analyze Dependencies [pending]+### Dependencies: 88.1+### Description: Update the add-task functionality to recursively analyze and incorporate all task dependencies.+### Details:+Implement a recursive algorithm that identifies and incorporates all dependencies for a given task. Ensure it handles nested dependencies correctly.++## 3. Ensure Correct Order of Dependency Resolution [pending]+### Dependencies: 88.2+### Description: Modify the add-task functionality to ensure that dependencies are resolved in the correct order during task execution.+### Details:+Implement logic to sort and execute tasks based on their dependency order. Handle cases where multiple tasks depend on each other.++## 4. Integrate with Existing Validation and Error Handling [pending]+### Dependencies: 88.3+### Description: Update the add-task functionality to integrate with existing validation and error handling mechanisms (from Task 87).+### Details:+Modify the code to provide clear feedback if dependencies cannot be resolved. Ensure that circular dependencies are detected and handled appropriately.++## 5. Optimize Performance for Large Projects [pending]+### Dependencies: 88.4+### Description: Optimize the add-task functionality to ensure efficient dependency resolution, especially for projects with a large number of tasks.+### Details:+Profile and optimize the recursive dependency analysis algorithm. Implement caching or other performance improvements as needed.+diff --git a/tasks/tasks.json b/tasks/tasks.jsonindex f19c0b18..19aae5e0 100644--- a/tasks/tasks.json+++ b/tasks/tasks.json@@ -4163,7 +4163,7 @@"id": 63,"title": "Add pnpm Support for the Taskmaster Package","description": "Implement full support for pnpm as an alternative package manager in the Taskmaster application, ensuring users have the exact same experience as with npm when installing and managing the package. The installation process, including any CLI prompts or web interfaces, must serve the exact same content and user experience regardless of whether npm or pnpm is used. The project uses 'module' as the package type, defines binaries 'task-master' and 'task-master-mcp', and its core logic resides in 'scripts/modules/'. The 'init' command (via scripts/init.js) creates the directory structure (.cursor/rules, scripts, tasks), copies templates (.env.example, .gitignore, rule files, dev.js), manages package.json merging, and sets up MCP config (.cursor/mcp.json). All dependencies are standard npm dependencies listed in package.json, and manual modifications are being removed.",- "status": "pending",+ "status": "done","dependencies": [],"priority": "medium","details": "This task involves:\n\n1. Update the installation documentation to include pnpm installation commands (e.g., `pnpm add taskmaster`).\n\n2. Ensure all package scripts are compatible with pnpm's execution model:\n - Review and modify package.json scripts if necessary\n - Test script execution with pnpm syntax (`pnpm run <script>`)\n - Address any pnpm-specific path or execution differences\n - Confirm that scripts responsible for showing a website or prompt during install behave identically with pnpm and npm\n\n3. Create a pnpm-lock.yaml file by installing dependencies with pnpm.\n\n4. Test the application's installation and operation when installed via pnpm:\n - Global installation (`pnpm add -g taskmaster`)\n - Local project installation\n - Verify CLI commands work correctly when installed with pnpm\n - Verify binaries `task-master` and `task-master-mcp` are properly linked\n - Ensure the `init` command (scripts/init.js) correctly creates directory structure and copies templates as described\n\n5. Update CI/CD pipelines to include testing with pnpm:\n - Add a pnpm test matrix to GitHub Actions workflows\n - Ensure tests pass when dependencies are installed with pnpm\n\n6. Handle any pnpm-specific dependency resolution issues:\n - Address potential hoisting differences between npm and pnpm\n - Test with pnpm's strict mode to ensure compatibility\n - Verify proper handling of 'module' package type\n\n7. Document any pnpm-specific considerations or commands in the README and documentation.\n\n8. Verify that the `scripts/init.js` file works correctly with pnpm:\n - Ensure it properly creates `.cursor/rules`, `scripts`, and `tasks` directories\n - Verify template copying (`.env.example`, `.gitignore`, rule files, `dev.js`)\n - Confirm `package.json` merging works correctly\n - Test MCP config setup (`.cursor/mcp.json`)\n\n9. Ensure core logic in `scripts/modules/` works correctly when installed via pnpm.\n\nThis implementation should maintain full feature parity and identical user experience regardless of which package manager is used to install Taskmaster.",@@ -4175,7 +4175,7 @@"description": "Revise installation and usage documentation to include pnpm commands and instructions for installing and managing Taskmaster with pnpm. Clearly state that the installation process, including any website or UI shown, is identical to npm. Ensure documentation reflects the use of 'module' package type, binaries, and the init process as defined in scripts/init.js.","dependencies": [],"details": "Add pnpm installation commands (e.g., `pnpm add taskmaster`) and update all relevant sections in the README and official docs to reflect pnpm as a supported package manager. Document that any installation website or prompt is the same as with npm. Include notes on the 'module' package type, binaries, and the directory/template setup performed by scripts/init.js.",- "status": "pending",+ "status": "done","testStrategy": "Verify that documentation changes are clear, accurate, and render correctly in all documentation formats. Confirm that documentation explicitly states the identical experience for npm and pnpm, including any website or UI shown during install, and describes the init process and binaries."},{@@ -4186,7 +4186,7 @@1],"details": "Test all scripts using `pnpm run <script>`, address any pnpm-specific path or execution differences, and modify scripts as needed for compatibility. Pay special attention to any scripts that trigger a website or prompt during installation, ensuring they serve the same content as npm. Validate that scripts/init.js and binaries are referenced correctly for ESM ('module') projects.",- "status": "pending",+ "status": "done","testStrategy": "Run all package scripts using pnpm and confirm expected behavior matches npm, especially for any website or UI shown during install. Validate correct execution of scripts/init.js and binary linking."},{@@ -4197,7 +4197,7 @@2],"details": "Run `pnpm install` to generate the lockfile, check it into version control, and verify that dependency resolution is correct and consistent. Ensure that all dependencies listed in package.json are resolved as expected for an ESM project.",- "status": "pending",+ "status": "done","testStrategy": "Compare dependency trees between npm and pnpm; ensure no missing or extraneous dependencies. Validate that the lockfile works for both CLI and init.js flows."},{@@ -4208,7 +4208,7 @@3],"details": "Perform global (`pnpm add -g taskmaster`) and local installations, verify CLI commands, and check for any pnpm-specific issues or incompatibilities. Ensure any installation UIs or websites appear identical to npm installations, including any website or prompt shown during install. Test that binaries 'task-master' and 'task-master-mcp' are linked and that scripts/init.js creates the correct structure and templates.",- "status": "pending",+ "status": "done","testStrategy": "Document and resolve any errors encountered during installation or usage with pnpm. Compare the installation experience side-by-side with npm, including any website or UI shown during install. Validate directory and template setup as per scripts/init.js."},{@@ -4219,7 +4219,7 @@4],"details": "Modify GitHub Actions or other CI configurations to use pnpm/action-setup, run tests with pnpm, and cache pnpm dependencies for efficiency. Ensure that CI covers CLI commands, binary linking, and the directory/template setup performed by scripts/init.js.",- "status": "pending",+ "status": "done","testStrategy": "Confirm that CI passes for all supported package managers, including pnpm, and that pnpm-specific jobs are green. Validate that tests cover ESM usage, binaries, and init.js flows."},{@@ -4230,7 +4230,7 @@4],"details": "Identify all user-facing elements during the installation process, including any website or prompt shown during install, and verify they are consistent across package managers. If a website is shown during installation, ensure it appears the same regardless of package manager used. Validate that any prompts or UIs triggered by scripts/init.js are identical.",- "status": "pending",+ "status": "done","testStrategy": "Perform side-by-side installations with npm and pnpm, capturing screenshots of any UIs or websites for comparison. Test all interactive elements to ensure identical behavior, including any website or prompt shown during install and those from scripts/init.js."},{@@ -4241,7 +4241,7 @@4],"details": "Test the init command to ensure it properly creates .cursor/rules, scripts, and tasks directories, copies templates (.env.example, .gitignore, rule files, dev.js), handles package.json merging, and sets up MCP config (.cursor/mcp.json) as per scripts/init.js.",- "status": "pending",+ "status": "done","testStrategy": "Run the init command after installing with pnpm and verify all directories and files are created correctly. Compare the results with an npm installation to ensure identical behavior and structure."},{@@ -4252,7 +4252,7 @@4],"details": "Check that the binaries defined in package.json are correctly linked in node_modules/.bin when installed with pnpm, and that they can be executed without errors. Validate that binaries work for ESM ('module') projects and are accessible after both global and local installs.",- "status": "pending",+ "status": "done","testStrategy": "Install Taskmaster with pnpm and verify that the binaries are accessible and executable. Test both global and local installations, ensuring correct behavior for ESM projects."}]@@ -4261,7 +4261,7 @@"id": 64,"title": "Add Yarn Support for Taskmaster Installation","description": "Implement full support for installing and managing Taskmaster using Yarn package manager, ensuring users have the exact same experience as with npm or pnpm. The installation process, including any CLI prompts or web interfaces, must serve the exact same content and user experience regardless of whether npm, pnpm, or Yarn is used. The project uses 'module' as the package type, defines binaries 'task-master' and 'task-master-mcp', and its core logic resides in 'scripts/modules/'. The 'init' command (via scripts/init.js) creates the directory structure (.cursor/rules, scripts, tasks), copies templates (.env.example, .gitignore, rule files, dev.js), manages package.json merging, and sets up MCP config (.cursor/mcp.json). All dependencies are standard npm dependencies listed in package.json, and manual modifications are being removed. \n\nIf the installation process includes a website component (such as for account setup or registration), ensure that any required website actions (e.g., creating an account, logging in, or configuring user settings) are clearly documented and tested for parity between Yarn and other package managers. If no website or account setup is required, confirm and document this explicitly.",- "status": "pending",+ "status": "done","dependencies": [],"priority": "medium","details": "This task involves adding comprehensive Yarn support to the Taskmaster package to ensure it can be properly installed and managed using Yarn. Implementation should include:\n\n1. Update package.json to ensure compatibility with Yarn installation methods, considering the 'module' package type and binary definitions\n2. Verify all scripts and dependencies work correctly with Yarn\n3. Add Yarn-specific configuration files (e.g., .yarnrc.yml if needed)\n4. Update installation documentation to include Yarn installation instructions\n5. Ensure all post-install scripts work correctly with Yarn\n6. Verify that all CLI commands function properly when installed via Yarn\n7. Ensure binaries `task-master` and `task-master-mcp` are properly linked\n8. Test the `scripts/init.js` file with Yarn to verify it correctly:\n - Creates directory structure (`.cursor/rules`, `scripts`, `tasks`)\n - Copies templates (`.env.example`, `.gitignore`, rule files, `dev.js`)\n - Manages `package.json` merging\n - Sets up MCP config (`.cursor/mcp.json`)\n9. Handle any Yarn-specific package resolution or hoisting issues\n10. Test compatibility with different Yarn versions (classic and berry/v2+)\n11. Ensure proper lockfile generation and management\n12. Update any package manager detection logic in the codebase to recognize Yarn installations\n13. Verify that core logic in `scripts/modules/` works correctly when installed via Yarn\n14. If the installation process includes a website component, verify that any account setup or user registration flows work identically with Yarn as they do with npm or pnpm. If website actions are required, document the steps and ensure they are tested for parity. If not, confirm and document that no website or account setup is needed.\n\nThe implementation should maintain feature parity and identical user experience regardless of which package manager (npm, pnpm, or Yarn) is used to install Taskmaster.",@@ -4273,7 +4273,7 @@"description": "Modify the package.json file to ensure all dependencies, scripts, and configurations are compatible with Yarn's installation and resolution methods. Confirm that any scripts responsible for showing a website or prompt during install behave identically with Yarn and npm. Ensure compatibility with 'module' package type and correct binary definitions.","dependencies": [],"details": "Review and update dependency declarations, script syntax, and any package manager-specific fields to avoid conflicts or unsupported features when using Yarn. Pay special attention to any scripts that trigger a website or prompt during installation, ensuring they serve the same content as npm. Validate that scripts/init.js and binaries are referenced correctly for ESM ('module') projects.",- "status": "pending",+ "status": "done","testStrategy": "Run 'yarn install' and 'yarn run <script>' for all scripts to confirm successful execution and dependency resolution, especially for any website or UI shown during install. Validate correct execution of scripts/init.js and binary linking."},{@@ -4284,7 +4284,7 @@1],"details": "Determine if Yarn v2+ (Berry) or classic requires additional configuration for the project, and add or update .yarnrc.yml or .yarnrc files accordingly. Ensure configuration supports ESM and binary linking.",- "status": "pending",+ "status": "done","testStrategy": "Verify that Yarn respects the configuration by running installs and checking for expected behaviors (e.g., plug'n'play, nodeLinker settings, ESM support, binary linking)."},{@@ -4295,7 +4295,7 @@2],"details": "Test all lifecycle scripts, post-install actions, and CLI commands using Yarn. Address any issues related to environment variables, script execution, or dependency hoisting. Ensure any website or prompt shown during install is the same as with npm. Validate that binaries 'task-master' and 'task-master-mcp' are linked and that scripts/init.js creates the correct structure and templates.",- "status": "pending",+ "status": "done","testStrategy": "Install Taskmaster using Yarn and run all documented scripts and CLI commands, comparing results to npm installations, especially for any website or UI shown during install. Validate directory and template setup as per scripts/init.js."},{@@ -4306,7 +4306,7 @@3],"details": "Add Yarn-specific installation commands, troubleshooting tips, and notes on version compatibility to the README and any relevant docs. Document that any installation website or prompt is the same as with npm. Include notes on the 'module' package type, binaries, and the directory/template setup performed by scripts/init.js. If website or account setup is required during installation, provide clear instructions; otherwise, confirm and document that no such steps are needed.",- "status": "pending",+ "status": "done","testStrategy": "Review documentation for accuracy and clarity; have a user follow the Yarn instructions to verify successful installation and usage. Confirm that documentation explicitly states the identical experience for npm and Yarn, including any website or UI shown during install, and describes the init process and binaries. If website/account setup is required, verify that instructions are complete and accurate; if not, confirm this is documented."},{@@ -4317,7 +4317,7 @@4],"details": "Modify detection logic to recognize Yarn (classic and berry), handle lockfile generation, and resolve any Yarn-specific package resolution or hoisting issues. Ensure detection logic supports ESM and binary linking.",- "status": "pending",+ "status": "done","testStrategy": "Install Taskmaster using npm, pnpm, and Yarn (classic and berry), verifying that the application detects the package manager correctly and behaves consistently for ESM projects and binaries."},{@@ -4328,7 +4328,7 @@3],"details": "Identify all user-facing elements during the installation process, including any website or prompt shown during install, and verify they are consistent across package managers. If a website is shown during installation or account setup is required, ensure it appears and functions the same regardless of package manager used, and document the steps. If not, confirm and document that no website or account setup is needed. Validate that any prompts or UIs triggered by scripts/init.js are identical.",- "status": "pending",+ "status": "done","testStrategy": "Perform side-by-side installations with npm and Yarn, capturing screenshots of any UIs or websites for comparison. Test all interactive elements to ensure identical behavior, including any website or prompt shown during install and those from scripts/init.js. If website/account setup is required, verify and document the steps; if not, confirm this is documented."},{@@ -4339,7 +4339,7 @@3],"details": "Test the init command to ensure it properly creates .cursor/rules, scripts, and tasks directories, copies templates (.env.example, .gitignore, rule files, dev.js), handles package.json merging, and sets up MCP config (.cursor/mcp.json) as per scripts/init.js.",- "status": "pending",+ "status": "done","testStrategy": "Run the init command after installing with Yarn and verify all directories and files are created correctly. Compare the results with an npm installation to ensure identical behavior and structure."},{@@ -4350,7 +4350,7 @@3],"details": "Check that the binaries defined in package.json are correctly linked in node_modules/.bin when installed with Yarn, and that they can be executed without errors. Validate that binaries work for ESM ('module') projects and are accessible after both global and local installs.",- "status": "pending",+ "status": "done","testStrategy": "Install Taskmaster with Yarn and verify that the binaries are accessible and executable. Test both global and local installations, ensuring correct behavior for ESM projects."},{@@ -4361,7 +4361,7 @@6],"details": "Test the complete user flow for any website component that appears during installation, including account creation, login, and configuration steps. Ensure that all website interactions work identically with Yarn as they do with npm or pnpm. Document any website-specific steps that users need to complete during the installation process. If no website or account setup is required, confirm and document this.\n\n<info added on 2025-04-25T08:45:48.709Z>\nSince the request is vague, I'll provide helpful implementation details for testing website account setup with Yarn:\n\nFor thorough testing, create a test matrix covering different browsers (Chrome, Firefox, Safari) and operating systems (Windows, macOS, Linux). Document specific Yarn-related environment variables that might affect website connectivity. Use tools like Playwright or Cypress to automate the account setup flow testing, capturing screenshots at each step for documentation. Implement network throttling tests to verify behavior under poor connectivity. Create a checklist of all UI elements that should be verified during the account setup process, including form validation, error messages, and success states. If no website component exists, explicitly document this in the project README and installation guides to prevent user confusion.\n</info added on 2025-04-25T08:45:48.709Z>\n\n<info added on 2025-04-25T08:46:08.651Z>\n- For environments where the website component requires integration with external authentication providers (such as OAuth, SSO, or LDAP), ensure that these flows are tested specifically when Taskmaster is installed via Yarn. Validate that redirect URIs, token exchanges, and session persistence behave as expected across all supported browsers.\n\n- If the website setup involves configuring application pools or web server settings (e.g., with IIS), document any Yarn-specific considerations, such as environment variable propagation or file permission differences, that could affect the web service's availability or configuration[2].\n\n- When automating tests, include validation for accessibility compliance (e.g., using axe-core or Lighthouse) during the account setup process to ensure the UI is usable for all users.\n\n- Capture and log all HTTP requests and responses during the account setup flow to help diagnose any discrepancies between Yarn and other package managers. This can be achieved by enabling network logging in Playwright or Cypress test runs.\n\n- If the website component supports batch operations or automated uploads (such as uploading user data or configuration files), verify that these automation features function identically after installation with Yarn[3].\n\n- For documentation, provide annotated screenshots or screen recordings of the account setup process, highlighting any Yarn-specific prompts, warnings, or differences encountered.\n\n- If the website component is not required, add a badge or prominent note in the README and installation guides stating \"No website or account setup required,\" and reference the test results confirming this.\n</info added on 2025-04-25T08:46:08.651Z>\n\n<info added on 2025-04-25T17:04:12.550Z>\nFor clarity, this task does not involve setting up a Yarn account. Yarn itself is just a package manager that doesn't require any account creation. The task is about testing whether any website component that is part of Taskmaster (if one exists) works correctly when Taskmaster is installed using Yarn as the package manager.\n\nTo be specific:\n- You don't need to create a Yarn account\n- Yarn is simply the tool used to install Taskmaster (`yarn add taskmaster` instead of `npm install taskmaster`)\n- The testing focuses on whether any web interfaces or account setup processes that are part of Taskmaster itself function correctly when the installation was done via Yarn\n- If Taskmaster includes a web dashboard or requires users to create accounts within the Taskmaster system, those features should be tested\n\nIf you're uncertain whether Taskmaster includes a website component at all, the first step would be to check the project documentation or perform an initial installation to determine if any web interface exists.\n</info added on 2025-04-25T17:04:12.550Z>\n\n<info added on 2025-04-25T17:19:03.256Z>\nWhen testing website account setup with Yarn after the codebase refactor, pay special attention to:\n\n- Verify that any environment-specific configuration files (like `.env` or config JSON files) are properly loaded when the application is installed via Yarn\n- Test the session management implementation to ensure user sessions persist correctly across page refreshes and browser restarts\n- Check that any database migrations or schema updates required for account setup execute properly when installed via Yarn\n- Validate that client-side form validation logic works consistently with server-side validation\n- Ensure that any WebSocket connections for real-time features initialize correctly after the refactor\n- Test account deletion and data export functionality to verify GDPR compliance remains intact\n- Document any changes to the authentication flow that resulted from the refactor and confirm they work identically with Yarn installation\n</info added on 2025-04-25T17:19:03.256Z>\n\n<info added on 2025-04-25T17:22:05.951Z>\nWhen testing website account setup with Yarn after the logging fix, implement these additional verification steps:\n\n1. Verify that all account-related actions are properly logged with the correct log levels (debug, info, warn, error) according to the updated logging framework\n2. Test the error handling paths specifically - force authentication failures and verify the logs contain sufficient diagnostic information\n3. Check that sensitive user information is properly redacted in logs according to privacy requirements\n4. Confirm that log rotation and persistence work correctly when high volumes of authentication attempts occur\n5. Validate that any custom logging middleware correctly captures HTTP request/response data for account operations\n6. Test that log aggregation tools (if used) can properly parse and display the account setup logs in their expected format\n7. Verify that performance metrics for account setup flows are correctly captured in logs for monitoring purposes\n8. Document any Yarn-specific environment variables that affect the logging configuration for the website component\n</info added on 2025-04-25T17:22:05.951Z>\n\n<info added on 2025-04-25T17:22:46.293Z>\nWhen testing website account setup with Yarn, consider implementing a positive user experience validation:\n\n1. Measure and document time-to-completion for the account setup process to ensure it meets usability standards\n2. Create a satisfaction survey for test users to rate the account setup experience on a 1-5 scale\n3. Implement A/B testing for different account setup flows to identify the most user-friendly approach\n4. Add delightful micro-interactions or success animations that make the setup process feel rewarding\n5. Test the \"welcome\" or \"onboarding\" experience that follows successful account creation\n6. Ensure helpful tooltips and contextual help are displayed at appropriate moments during setup\n7. Verify that error messages are friendly, clear, and provide actionable guidance rather than technical jargon\n8. Test the account recovery flow to ensure users have a smooth experience if they forget credentials\n</info added on 2025-04-25T17:22:46.293Z>",- "status": "pending",+ "status": "done","testStrategy": "Perform a complete installation with Yarn and follow through any website account setup process. Compare the experience with npm installation to ensure identical behavior. Test edge cases such as account creation failures, login issues, and configuration changes. If no website or account setup is required, confirm and document this in the test results."}]@@ -4372,7 +4372,7 @@"description": "Implement full support for installing and managing Taskmaster using the Bun package manager, ensuring the installation process and user experience are identical to npm, pnpm, and Yarn.","details": "Update the Taskmaster installation scripts and documentation to support Bun as a first-class package manager. Ensure that users can install Taskmaster and run all CLI commands (including 'init' via scripts/init.js) using Bun, with the same directory structure, template copying, package.json merging, and MCP config setup as with npm, pnpm, and Yarn. Verify that all dependencies are compatible with Bun and that any Bun-specific configuration (such as lockfile handling or binary linking) is handled correctly. If the installation process includes a website or account setup, document and test these flows for parity; if not, explicitly confirm and document that no such steps are required. Update all relevant documentation and installation guides to include Bun instructions for macOS, Linux, and Windows (including WSL and PowerShell). Address any known Bun-specific issues (e.g., sporadic install hangs) with clear troubleshooting guidance.","testStrategy": "1. Install Taskmaster using Bun on macOS, Linux, and Windows (including WSL and PowerShell), following the updated documentation. 2. Run the full installation and initialization process, verifying that the directory structure, templates, and MCP config are set up identically to npm, pnpm, and Yarn. 3. Execute all CLI commands (including 'init') and confirm functional parity. 4. If a website or account setup is required, test these flows for consistency; if not, confirm and document this. 5. Check for Bun-specific issues (e.g., install hangs) and verify that troubleshooting steps are effective. 6. Ensure the documentation is clear, accurate, and up to date for all supported platforms.",- "status": "pending",+ "status": "done","dependencies": [],"priority": "medium","subtasks": [@@ -4382,7 +4382,7 @@"description": "Investigate Bun's JavaScript runtime environment and identify key differences from Node.js that may affect Taskmaster's installation and operation.","dependencies": [],"details": "Research Bun's package management, module resolution, and API compatibility with Node.js. Document any potential issues or limitations that might affect Taskmaster. Identify required changes to make Taskmaster compatible with Bun's execution model.",- "status": "pending"+ "status": "done"},{"id": 2,@@ -4392,7 +4392,7 @@1],"details": "Add Bun detection logic to installation scripts. Update package management commands to use Bun equivalents where needed. Ensure all dependencies are compatible with Bun. Modify any Node.js-specific code to work with Bun's runtime.",- "status": "pending"+ "status": "done"},{"id": 3,@@ -4402,7 +4402,7 @@2],"details": "Create a Bun-specific installation script that leverages Bun's performance advantages. Update any environment detection logic to properly identify Bun environments. Ensure proper path resolution and environment variable handling for Bun.",- "status": "pending"+ "status": "done"},{"id": 4,@@ -4412,7 +4412,7 @@3],"details": "Test installation on Windows, macOS, and Linux using Bun. Verify that all Taskmaster features work correctly when installed via Bun. Document any issues encountered and implement fixes as needed.",- "status": "pending"+ "status": "done"},{"id": 5,@@ -4422,7 +4422,7 @@4],"details": "Test all Taskmaster commands and features when running with Bun. Compare performance metrics between Node.js and Bun. Identify and fix any runtime issues specific to Bun. Ensure all plugins and extensions are compatible.",- "status": "pending"+ "status": "done"},{"id": 6,@@ -4433,7 +4433,7 @@5],"details": "Add Bun installation instructions to README and documentation. Document any Bun-specific considerations or limitations. Update troubleshooting guides to include Bun-specific issues. Create examples showing Bun usage with Taskmaster.",- "status": "pending"+ "status": "done"}]},@@ -4452,20 +4452,20 @@"id": 67,"title": "Add CLI JSON output and Cursor keybindings integration","description": "Enhance Taskmaster CLI with JSON output option and add a new command to install pre-configured Cursor keybindings",- "details": "This task has two main components:\\n\\n1. Add `--json` flag to all relevant CLI commands:\\n - Modify the CLI command handlers to check for a `--json` flag\\n - When the flag is present, output the raw data from the MCP tools in JSON format instead of formatting for human readability\\n - Ensure consistent JSON schema across all commands\\n - Add documentation for this feature in the help text for each command\\n - Test with common scenarios like `task-master next --json` and `task-master show <id> --json`\\n\\n2. Create a new `install-keybindings` command:\\n - Create a new CLI command that installs pre-configured Taskmaster keybindings to Cursor\\n - Detect the user's OS to determine the correct path to Cursor's keybindings.json\\n - Check if the file exists; create it if it doesn't\\n - Add useful Taskmaster keybindings like:\\n - Quick access to next task with output to clipboard\\n - Task status updates\\n - Opening new agent chat with context from the current task\\n - Implement safeguards to prevent duplicate keybindings\\n - Add undo functionality or backup of previous keybindings\\n - Support custom key combinations via command flags",- "testStrategy": "1. JSON output testing:\\n - Unit tests for each command with the --json flag\\n - Verify JSON schema consistency across commands\\n - Validate that all necessary task data is included in the JSON output\\n - Test piping output to other commands like jq\\n\\n2. Keybindings command testing:\\n - Test on different OSes (macOS, Windows, Linux)\\n - Verify correct path detection for Cursor's keybindings.json\\n - Test behavior when file doesn't exist\\n - Test behavior when existing keybindings conflict\\n - Validate the installed keybindings work as expected\\n - Test uninstall/restore functionality","status": "pending","dependencies": [],"priority": "high",+ "details": "This task has two main components:\\n\\n1. Add `--json` flag to all relevant CLI commands:\\n - Modify the CLI command handlers to check for a `--json` flag\\n - When the flag is present, output the raw data from the MCP tools in JSON format instead of formatting for human readability\\n - Ensure consistent JSON schema across all commands\\n - Add documentation for this feature in the help text for each command\\n - Test with common scenarios like `task-master next --json` and `task-master show <id> --json`\\n\\n2. Create a new `install-keybindings` command:\\n - Create a new CLI command that installs pre-configured Taskmaster keybindings to Cursor\\n - Detect the user's OS to determine the correct path to Cursor's keybindings.json\\n - Check if the file exists; create it if it doesn't\\n - Add useful Taskmaster keybindings like:\\n - Quick access to next task with output to clipboard\\n - Task status updates\\n - Opening new agent chat with context from the current task\\n - Implement safeguards to prevent duplicate keybindings\\n - Add undo functionality or backup of previous keybindings\\n - Support custom key combinations via command flags",+ "testStrategy": "1. JSON output testing:\\n - Unit tests for each command with the --json flag\\n - Verify JSON schema consistency across commands\\n - Validate that all necessary task data is included in the JSON output\\n - Test piping output to other commands like jq\\n\\n2. Keybindings command testing:\\n - Test on different OSes (macOS, Windows, Linux)\\n - Verify correct path detection for Cursor's keybindings.json\\n - Test behavior when file doesn't exist\\n - Test behavior when existing keybindings conflict\\n - Validate the installed keybindings work as expected\\n - Test uninstall/restore functionality","subtasks": [{"id": 1,"title": "Implement Core JSON Output Logic for `next` and `show` Commands","description": "Modify the command handlers for `task-master next` and `task-master show <id>` to recognize and handle a `--json` flag. When the flag is present, output the raw data received from MCP tools directly as JSON.","dependencies": [],- "details": "Use a CLI argument parsing library (e.g., argparse, click, commander) to add the `--json` boolean flag. In the command execution logic, check if the flag is set. If true, serialize the data object (before any human-readable formatting) into a JSON string and print it to stdout. If false, proceed with the existing formatting logic. Focus on these two commands first to establish the pattern.",+ "details": "1. Update the CLI argument parser to add the `--json` boolean flag to both commands\n2. Create a `formatAsJson` utility function in `src/utils/output.js` that takes a data object and returns a properly formatted JSON string\n3. In the command handler functions (`src/commands/next.js` and `src/commands/show.js`), add a conditional check for the `--json` flag\n4. If the flag is set, call the `formatAsJson` function with the raw data object and print the result\n5. If the flag is not set, continue with the existing human-readable formatting logic\n6. Ensure proper error handling for JSON serialization failures\n7. Update the command help text in both files to document the new flag","status": "pending",- "testStrategy": "Run `task-master next --json` and `task-master show <some_id> --json`. Verify the output is valid JSON and contains the expected data fields. Compare with non-JSON output to ensure data consistency."+ "testStrategy": "1. Create unit tests in `tests/commands/next.test.js` and `tests/commands/show.test.js`\n2. Mock the MCP data response and verify the JSON output matches expected format\n3. Test with both valid and invalid task IDs for the `show` command\n4. Verify the JSON output can be parsed back into a valid object\n5. Run manual tests with `task-master next --json` and `task-master show 123 --json` to confirm functionality"},{"id": 2,@@ -4474,18 +4474,18 @@"dependencies": [1],- "details": "Identify all commands that output structured data. Refactor the JSON output logic into a reusable utility function if possible. Define a standard schema for common data types like tasks. Update the help documentation for each command to include the `--json` flag description. Ensure error outputs are also handled appropriately (e.g., potentially outputting JSON error objects).",+ "details": "1. Create a JSON schema definition file at `src/schemas/task.json` to define the standard structure for task objects\n2. Modify the following command files to support the `--json` flag:\n - `src/commands/list.js`\n - `src/commands/status.js`\n - `src/commands/search.js`\n - `src/commands/summary.js`\n3. Refactor the `formatAsJson` utility to handle different data types (single task, task array, status object, etc.)\n4. Add a `validateJsonSchema` function in `src/utils/validation.js` to ensure output conforms to defined schemas\n5. Update each command's help text documentation to include the `--json` flag description\n6. Implement consistent error handling for JSON output (using a standard error object format)\n7. For list-type commands, ensure array outputs are properly formatted as JSON arrays","status": "pending",- "testStrategy": "Test the `--json` flag on all modified commands with various inputs. Validate the output against the defined JSON schemas. Check help text using `--help` flag for each command."+ "testStrategy": "1. Create unit tests for each modified command in their respective test files\n2. Test each command with the `--json` flag and validate output against the defined schemas\n3. Create specific test cases for edge conditions (empty lists, error states, etc.)\n4. Verify help text includes `--json` documentation for each command\n5. Test piping JSON output to tools like `jq` to confirm proper formatting\n6. Create integration tests that verify schema consistency across different commands"},{"id": 3,"title": "Create `install-keybindings` Command Structure and OS Detection","description": "Set up the basic structure for the new `task-master install-keybindings` command. Implement logic to detect the user's operating system (Linux, macOS, Windows) and determine the default path to Cursor's `keybindings.json` file.","dependencies": [],- "details": "Add a new command entry point using the CLI framework. Use standard library functions (e.g., `os.platform()` in Node, `platform.system()` in Python) to detect the OS. Define constants or a configuration map for the default `keybindings.json` paths for each supported OS. Handle cases where the path might vary (e.g., different installation methods for Cursor). Add basic help text for the new command.",+ "details": "1. Create a new command file at `src/commands/install-keybindings.js`\n2. Register the command in the main CLI entry point (`src/index.js`)\n3. Implement OS detection using `os.platform()` in Node.js\n4. Define the following path constants in `src/config/paths.js`:\n - Windows: `%APPDATA%\\Cursor\\User\\keybindings.json`\n - macOS: `~/Library/Application Support/Cursor/User/keybindings.json`\n - Linux: `~/.config/Cursor/User/keybindings.json`\n5. Create a `getCursorKeybindingsPath()` function that returns the appropriate path based on detected OS\n6. Add path override capability via a `--path` command line option\n7. Implement proper error handling for unsupported operating systems\n8. Add detailed help text explaining the command's purpose and options","status": "pending",- "testStrategy": "Run the command stub on different OSes (or mock the OS detection) and verify it correctly identifies the expected default path. Test edge cases like unsupported OS."+ "testStrategy": "1. Create unit tests in `tests/commands/install-keybindings.test.js`\n2. Mock the OS detection to test path resolution for each supported platform\n3. Test the path override functionality with the `--path` option\n4. Verify error handling for unsupported OS scenarios\n5. Test the command's help output to ensure it's comprehensive\n6. Run manual tests on different operating systems if possible"},{"id": 4,@@ -4494,9 +4494,9 @@"dependencies": [3],- "details": "Use file system modules to check for file existence, read, write, and copy files. Implement a backup mechanism (e.g., copy `keybindings.json` to `keybindings.json.bak`). Handle potential file I/O errors gracefully (e.g., permissions issues). Parse the existing JSON content; if parsing fails, report an error and potentially abort. Ensure the file is created with `[]` if it's missing.",+ "details": "1. Create a `KeybindingsManager` class in `src/utils/keybindings.js` with the following methods:\n - `checkFileExists(path)`: Verify if the keybindings file exists\n - `createBackup(path)`: Copy existing file to `keybindings.json.bak`\n - `readKeybindings(path)`: Read and parse the JSON file\n - `writeKeybindings(path, data)`: Serialize and write data to the file\n - `createEmptyFile(path)`: Create a new file with `[]` content\n2. In the command handler, use these methods to:\n - Check if the target file exists\n - Create a backup if it does (with timestamp in filename)\n - Read existing keybindings or create an empty file\n - Parse the JSON content with proper error handling\n3. Add a `--no-backup` flag to skip backup creation\n4. Implement verbose logging with a `--verbose` flag\n5. Handle all potential file system errors (permissions, disk space, etc.)\n6. Add a `--dry-run` option that shows what would be done without making changes","status": "pending",- "testStrategy": "Test file handling scenarios: file exists, file doesn't exist, file exists but is invalid JSON, file exists but has no write permissions (if possible to simulate). Verify backup file creation."+ "testStrategy": "1. Create unit tests for the `KeybindingsManager` class\n2. Test all file handling scenarios with mocked file system:\n - File exists with valid JSON\n - File exists with invalid JSON\n - File doesn't exist\n - File exists but is not writable\n - Backup creation succeeds/fails\n3. Test the `--no-backup` and `--dry-run` flags\n4. Verify error messages are clear and actionable\n5. Test with various mock file contents to ensure proper parsing"},{"id": 5,@@ -4505,9 +4505,9 @@"dependencies": [4],- "details": "Define the desired keybindings as a list of JSON objects following Cursor's format. Before adding, iterate through the existing keybindings (parsed in subtask 4) to check if a Taskmaster keybinding with the same command or key combination already exists. If not, append the new keybinding to the list. Add command-line flags (e.g., `--next-key='ctrl+alt+n'`) to allow users to override default key combinations. Serialize the updated list back to JSON and write it to the `keybindings.json` file.",+ "details": "1. Define default Taskmaster keybindings in `src/config/default-keybindings.js` as an array of objects with:\n - `key`: Default key combination (e.g., `\"ctrl+alt+n\"`)\n - `command`: Cursor command ID (e.g., `\"taskmaster.nextTask\"`)\n - `when`: Context when keybinding is active (e.g., `\"editorTextFocus\"`)\n - `args`: Any command arguments as an object\n - `description`: Human-readable description of what the keybinding does\n2. Implement the following keybindings:\n - Next task to clipboard: `ctrl+alt+n`\n - Update task status: `ctrl+alt+u`\n - Open agent chat with task context: `ctrl+alt+a`\n - Show task details: `ctrl+alt+d`\n3. Add command-line options to customize each keybinding:\n - `--next-key=\"ctrl+alt+n\"`\n - `--update-key=\"ctrl+alt+u\"`\n - `--agent-key=\"ctrl+alt+a\"`\n - `--details-key=\"ctrl+alt+d\"`\n4. Implement a `mergeKeybindings(existing, new)` function that:\n - Checks for duplicates based on command ID\n - Checks for key combination conflicts\n - Warns about conflicts but allows override with `--force` flag\n - Preserves existing non-Taskmaster keybindings\n5. Add a `--reset` flag to remove all existing Taskmaster keybindings before adding new ones\n6. Add a `--list` option to display currently installed Taskmaster keybindings\n7. Implement an `--uninstall` option to remove all Taskmaster keybindings","status": "pending",- "testStrategy": "Test adding keybindings to an empty file, a file with existing non-Taskmaster keybindings, and a file that already contains some Taskmaster keybindings (to test duplicate prevention). Test overriding default keys using flags. Manually inspect the resulting `keybindings.json` file and test the keybindings within Cursor if possible."+ "testStrategy": "1. Create unit tests for the keybinding merging logic\n2. Test duplicate detection and conflict resolution\n3. Test each customization flag to verify it properly overrides defaults\n4. Test the `--reset`, `--list`, and `--uninstall` options\n5. Create integration tests with various starting keybindings.json states\n6. Manually verify the installed keybindings work in Cursor\n7. Test edge cases like:\n - All keybindings customized\n - Conflicting key combinations with `--force` and without\n - Empty initial keybindings file\n - File with existing Taskmaster keybindings"}]},@@ -4898,7 +4898,7 @@"id": 77,"title": "Implement AI Usage Telemetry for Taskmaster (with external analytics endpoint)","description": "Capture detailed AI usage data (tokens, costs, models, commands) within Taskmaster and send this telemetry to an external, closed-source analytics backend for usage analysis, profitability measurement, and pricing optimization.",- "status": "in-progress",+ "status": "done","dependencies": [],"priority": "medium","details": "* Add a telemetry utility (`logAiUsage`) within `ai-services.js` to track AI usage.\n* Collected telemetry data fields must include:\n * `timestamp`: Current date/time in ISO 8601.\n * `userId`: Unique user identifier generated at setup (stored in `.taskmasterconfig`).\n * `commandName`: Taskmaster command invoked (`expand`, `parse-prd`, `research`, etc.).\n * `modelUsed`: Name/ID of the AI model invoked.\n * `inputTokens`: Count of input tokens used.\n * `outputTokens`: Count of output tokens generated.\n * `totalTokens`: Sum of input and output tokens.\n * `totalCost`: Monetary cost calculated using pricing from `supported_models.json`.\n* Send telemetry payload securely via HTTPS POST request from user's Taskmaster installation directly to the closed-source analytics API (Express/Supabase backend).\n* Introduce a privacy notice and explicit user consent prompt upon initial installation/setup to enable telemetry.\n* Provide a graceful fallback if telemetry request fails (e.g., no internet connectivity).\n* Optionally display a usage summary directly in Taskmaster CLI output for user transparency.",@@ -5040,7 +5040,7 @@"title": "Update openai.js for Telemetry Compatibility","description": "Modify src/ai-providers/openai.js functions to return usage data.","details": "Update the provider functions in `src/ai-providers/openai.js` to ensure they return telemetry-compatible results:\\n\\n1. **`generateOpenAIText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\\n2. **`generateOpenAIObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\\n3. **`streamOpenAIText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\\n\\nReference `anthropic.js` for the pattern.",- "status": "pending",+ "status": "done","dependencies": [],"parentTaskId": 77},@@ -5049,7 +5049,7 @@"title": "Update openrouter.js for Telemetry Compatibility","description": "Modify src/ai-providers/openrouter.js functions to return usage data.","details": "Update the provider functions in `src/ai-providers/openrouter.js` to ensure they return telemetry-compatible results:\\n\\n1. **`generateOpenRouterText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\\n2. **`generateOpenRouterObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\\n3. **`streamOpenRouterText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\\n\\nReference `anthropic.js` for the pattern.",- "status": "pending",+ "status": "done","dependencies": [],"parentTaskId": 77},@@ -5067,7 +5067,7 @@"title": "Update xai.js for Telemetry Compatibility","description": "Modify src/ai-providers/xai.js functions to return usage data.","details": "Update the provider functions in `src/ai-providers/xai.js` to ensure they return telemetry-compatible results:\\n\\n1. **`generateXaiText`**: Return `{ text: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts from the Vercel AI SDK result.\\n2. **`generateXaiObject`**: Return `{ object: ..., usage: { inputTokens: ..., outputTokens: ... } }`. Extract token counts.\\n3. **`streamXaiText`**: Return the *full stream result object* returned by the Vercel AI SDK's `streamText`, not just the `textStream` property. The full object contains usage information.\\n\\nReference `anthropic.js` for the pattern.",- "status": "pending",+ "status": "done","dependencies": [],"parentTaskId": 77},@@ -5076,7 +5076,7 @@"title": "Create dedicated telemetry transmission module","description": "Implement a separate module for handling telemetry transmission logic","details": "Create a new module (e.g., `scripts/utils/telemetry-client.js`) that encapsulates all telemetry transmission functionality:\n\n1. Implement core functions:\n - `sendTelemetryData(telemetryPayload)`: Main function to handle HTTPS POST requests\n - `isUserConsentGiven()`: Helper to check if user has consented to telemetry\n - `logTelemetryError(error)`: Helper for consistent error logging\n\n2. Use Axios with retry logic:\n - Configure with exponential backoff (max 3 retries, 500ms base delay)\n - Implement proper TLS encryption via HTTPS\n - Set appropriate timeouts (5000ms recommended)\n\n3. Implement robust error handling:\n - Catch all transmission errors\n - Log failures locally without disrupting application flow\n - Ensure failures are transparent to users\n\n4. Configure securely:\n - Load endpoint URL and authentication from environment variables\n - Never hardcode secrets in source code\n - Validate payload data before transmission\n\n5. Integration with ai-services-unified.js:\n - Import the telemetry-client module\n - Call after telemetryData object is constructed\n - Only send if user consent is confirmed\n - Use non-blocking approach to avoid performance impact",- "status": "pending",+ "status": "done","dependencies": [1,3@@ -5152,75 +5152,6 @@}]},- {- "id": 81,- "title": "Task #81: Implement Comprehensive Local Telemetry System with Future Server Integration Capability",- "description": "Expand the existing telemetry system to capture additional metrics about feature usage, performance, and user behavior patterns, implementing local storage and aggregation of telemetry data with the capability for future server integration.",- "status": "pending",- "dependencies": [],- "priority": "medium",- "details": "This task builds upon the existing telemetry infrastructure (Tasks #77 and #80) to provide more comprehensive insights into how users interact with the application, while storing data locally until a server endpoint becomes available.\n\nKey implementation details:\n1. Identify and implement additional telemetry data points:\n - Command execution frequency and timing metrics\n - Feature usage patterns (which commands/features are most/least used)\n - Performance metrics (execution time, memory usage, etc.)\n - Error rates and types\n - Session duration and activity patterns\n - System environment information (OS, Node version, etc.)\n\n2. Implement a local telemetry storage system:\n - Create a robust local storage mechanism to hold telemetry data indefinitely\n - Implement data aggregation to combine similar events and reduce storage size\n - Add data retention policies to prevent excessive local storage usage\n - Implement configurable storage limits and cleanup procedures\n - Design the storage format to be compatible with future server transmission\n\n3. Add privacy-preserving mechanisms:\n - Ensure all personally identifiable information is properly anonymized\n - Implement data minimization principles (only collect what's necessary)\n - Add user-configurable telemetry levels (basic, enhanced, full)\n - Provide clear documentation on what data is collected and how it's used\n\n4. Design for future server integration:\n - Create a pluggable transmission architecture that can be connected to a server later\n - Define API contracts and data formats for future server endpoints\n - Add configuration options for server URLs and authentication that will be used later\n - Implement feature flags to easily enable server transmission when available\n\n5. Add telemetry debugging capabilities:\n - Create a developer mode to view telemetry data being collected\n - Implement logging of telemetry events (when in debug mode)\n - Add commands to export telemetry data for manual analysis\n - Create visualization tools for local telemetry data\n\n6. Focus on user-facing benefits:\n - Implement personal usage dashboards showing the user's own patterns\n - Add productivity insights based on collected telemetry\n - Create features that allow users to optimize their workflow based on their usage data\n - Ensure all telemetry collection provides immediate value to the user",- "testStrategy": "The testing strategy for the expanded telemetry system should be comprehensive and cover all aspects of the implementation:\n\n1. Unit Tests:\n - Test each telemetry collection function in isolation\n - Verify proper anonymization of sensitive data\n - Test aggregation logic with various input scenarios\n - Validate local storage mechanisms with different data volumes\n - Test data retention and cleanup policies\n\n2. Integration Tests:\n - Verify telemetry data is properly stored locally\n - Test the complete flow from data collection to local storage\n - Validate that the storage format is suitable for future server transmission\n - Test different application states (startup, shutdown, crash recovery)\n - Verify proper handling of storage failures\n\n3. End-to-End Tests:\n - Create automated E2E tests that perform various user actions and verify telemetry is captured\n - Test with simulated long-term usage to verify storage efficiency\n - Verify that aggregated data accurately represents the performed actions\n\n4. Performance Tests:\n - Measure the performance impact of the expanded telemetry system\n - Test with large volumes of telemetry data to ensure efficient handling\n - Verify memory usage remains within acceptable limits\n - Test CPU utilization during telemetry collection and storage operations\n\n5. Manual Testing:\n - Verify telemetry debug mode correctly displays collected data\n - Test different telemetry level configurations\n - Manually verify the accuracy of collected metrics\n - Test the export functionality and analyze the exported data\n - Validate that user-facing insights and dashboards provide accurate and useful information\n\n6. Privacy Compliance Testing:\n - Verify no PII is stored without proper anonymization\n - Test opt-out functionality works correctly\n - Ensure telemetry levels properly restrict data collection as configured\n\n7. Regression Testing:\n - Verify existing functionality continues to work with the expanded telemetry\n - Ensure the system is designed to be compatible with future server integration\n\n8. User Experience Testing:\n - Test the usability of personal dashboards and insights features\n - Gather feedback on the usefulness of telemetry-based recommendations\n - Verify users can easily understand their own usage patterns",- "subtasks": [- {- "id": 1,- "title": "Implement Additional Telemetry Data Collection Points",- "description": "Extend the telemetry system to capture new metrics including command execution frequency, feature usage patterns, performance metrics, error rates, session data, and system environment information. [Updated: 5/8/2025] [Updated: 5/8/2025] [Updated: 5/8/2025]",- "dependencies": [],- "details": "Create new telemetry event types and collection points throughout the codebase. Implement hooks in the command execution pipeline to track timing and frequency. Add performance monitoring for key operations using high-resolution timers. Capture system environment data at startup. Implement error tracking that records error types and frequencies. Add session tracking with start/end events and periodic heartbeats.\n<info added on 2025-05-08T22:57:23.259Z>\nThis is a test note added via the MCP tool. The telemetry collection system should be thoroughly tested before implementation.\n</info added on 2025-05-08T22:57:23.259Z>\n<info added on 2025-05-08T22:59:29.818Z>\nFor future server integration, Prometheus time-series database with its companion storage solutions (like Cortex or Thanos) would be an excellent choice for handling our telemetry data. The local telemetry collection system should be designed with compatible data structures and metrics formatting that will allow seamless export to Prometheus once server-side infrastructure is in place. This approach would provide powerful querying capabilities, visualization options through Grafana, and scalable long-term storage. Consider implementing the OpenMetrics format locally to ensure compatibility with the Prometheus ecosystem.\n</info added on 2025-05-08T22:59:29.818Z>\n<info added on 2025-05-08T23:02:59.692Z>\nPrometheus would be an excellent choice for server-side telemetry storage and analysis. When designing the local telemetry collection system, we should structure our metrics and events to be compatible with Prometheus' data model (time series with key-value pairs). This would allow for straightforward export to Prometheus once server infrastructure is established. For long-term storage, companion solutions like Cortex or Thanos could extend Prometheus' capabilities, enabling historical analysis and scalable retention. Additionally, adopting the OpenMetrics format locally would ensure seamless integration with the broader Prometheus ecosystem, including visualization through Grafana dashboards.\n</info added on 2025-05-08T23:02:59.692Z>",- "status": "pending",- "testStrategy": "Create unit tests for each new telemetry point. Implement integration tests that verify telemetry is captured during normal application usage. Add mock services to verify data format correctness."- },- {- "id": 2,- "title": "Build Robust Local Telemetry Storage System",- "description": "Create a persistent local storage mechanism to hold telemetry data indefinitely with aggregation capabilities to combine similar events and reduce storage requirements.",- "dependencies": [],- "details": "Implement a persistent local store using SQLite or similar lightweight database. Create data schemas for different telemetry types. Develop aggregation functions that can combine similar events (e.g., multiple instances of the same command) into summary statistics. Implement data retention policies to prevent excessive storage usage. Add serialization/deserialization for telemetry objects. Design the storage format to be compatible with future server transmission needs.",- "status": "pending",- "testStrategy": "Test storage persistence across application restarts. Verify aggregation logic correctly combines similar events. Benchmark storage performance with large volumes of telemetry data. Test data retention policies with simulated long-term usage."- },- {- "id": 3,- "title": "Design Server Transmission Architecture for Future Implementation",- "description": "Create a pluggable architecture for future server transmission capabilities while maintaining local-only functionality for now.",- "dependencies": [],- "details": "Design a modular transmission system with clear interfaces that can be implemented later when a server becomes available. Define data formats and API contracts for future server endpoints. Add configuration options for server URLs and authentication that will be used in the future. Implement feature flags to easily enable server transmission when available. Create a transmission queue design that can be activated later. Document the architecture for future implementation.",- "status": "pending",- "testStrategy": "Create interface tests to verify the design is implementable. Test configuration loading for future server settings. Verify the architecture allows for easy extension without major refactoring. Create mock implementations to validate the design."- },- {- "id": 4,- "title": "Implement Privacy Controls and User Configuration",- "description": "Add privacy-preserving mechanisms including data anonymization, minimization principles, and user-configurable telemetry levels.",- "dependencies": [],- "details": "Create a telemetry sanitization layer that removes or hashes PII before storage. Implement three telemetry levels (basic, enhanced, full) with clear documentation of what each includes. Add user settings UI for controlling telemetry levels. Create a first-run experience that explains telemetry and requests user consent. Implement runtime filtering of telemetry events based on user settings.",- "status": "pending",- "testStrategy": "Verify PII is properly anonymized in all telemetry events. Test that changing telemetry levels correctly adjusts what data is collected. Ensure user preferences persist across application updates."- },- {- "id": 5,- "title": "Add Telemetry Debugging and Local Analysis Tools",- "description": "Create developer tools for debugging telemetry including a developer mode to view collected data, logging capabilities, and local data analysis features.",- "dependencies": [],- "details": "Implement a developer console command to toggle telemetry debug mode. Create a UI panel that displays collected telemetry data when in debug mode. Add detailed logging of telemetry events to the application log when debugging is enabled. Create commands to export telemetry data in various formats (JSON, CSV) for manual analysis. Implement basic visualization tools for local telemetry data to help users understand their own usage patterns.",- "status": "pending",- "testStrategy": "Verify debug mode correctly displays all telemetry events. Test data export functionality with various output formats. Ensure visualizations accurately represent the underlying data. Test with large datasets to verify performance."- },- {- "id": 6,- "title": "Develop User-Facing Telemetry Benefits",- "description": "Create features that provide immediate value to users based on their telemetry data, focusing on personal insights and workflow optimization.",- "dependencies": [- 1,- 2- ],- "details": "Implement a personal usage dashboard that visualizes the user's command usage patterns, feature adoption, and productivity trends. Create a 'productivity insights' feature that offers personalized recommendations based on usage patterns. Add workflow optimization suggestions that help users discover more efficient ways to use the application. Develop weekly/monthly usage reports that users can view to track their own progress. Ensure all telemetry collection has a direct benefit to the user in the absence of server-side analysis.",- "status": "pending",- "testStrategy": "Test dashboard visualizations with various usage patterns. Verify recommendations are relevant and helpful based on simulated usage data. Conduct usability testing to ensure insights are presented in an understandable way. Test with different user profiles to ensure recommendations are appropriately personalized."- }- ]- },{"id": 82,"title": "Update supported-models.json with token limit fields",@@ -5306,6 +5237,71 @@],"status": "pending","subtasks": []+ },+ {+ "id": 88,+ "title": "Enhance Add-Task Functionality to Consider All Task Dependencies",+ "description": "Improve the add-task feature to accurately account for all dependencies among tasks, ensuring proper task ordering and execution.",+ "details": "1. Review current implementation of add-task functionality.\n2. Identify existing mechanisms for handling task dependencies.\n3. Modify add-task to recursively analyze and incorporate all dependencies.\n4. Ensure that dependencies are resolved in the correct order during task execution.\n5. Update documentation to reflect changes in dependency handling.\n6. Consider edge cases such as circular dependencies and handle them appropriately.\n7. Optimize performance to ensure efficient dependency resolution, especially for projects with a large number of tasks.\n8. Integrate with existing validation and error handling mechanisms (from Task 87) to provide clear feedback if dependencies cannot be resolved.\n9. Test thoroughly with various dependency scenarios to ensure robustness.",+ "testStrategy": "1. Create test cases with simple linear dependencies to verify correct ordering.\n2. Develop test cases with complex, nested dependencies to ensure recursive resolution works correctly.\n3. Include tests for edge cases such as circular dependencies, verifying appropriate error messages are displayed.\n4. Measure performance with large sets of tasks and dependencies to ensure efficiency.\n5. Conduct integration testing with other components that rely on task dependencies.\n6. Perform manual code reviews to validate implementation against requirements.\n7. Execute automated tests to verify no regressions in existing functionality.",+ "status": "pending",+ "dependencies": [],+ "priority": "medium",+ "subtasks": [+ {+ "id": 1,+ "title": "Review Current Add-Task Implementation and Identify Dependency Mechanisms",+ "description": "Examine the existing add-task functionality to understand how task dependencies are currently handled.",+ "dependencies": [],+ "details": "Conduct a code review of the add-task feature. Document any existing mechanisms for handling task dependencies.",+ "status": "pending",+ "testStrategy": "Verify that all current dependency handling features work as expected."+ },+ {+ "id": 2,+ "title": "Modify Add-Task to Recursively Analyze Dependencies",+ "description": "Update the add-task functionality to recursively analyze and incorporate all task dependencies.",+ "dependencies": [+ 1+ ],+ "details": "Implement a recursive algorithm that identifies and incorporates all dependencies for a given task. Ensure it handles nested dependencies correctly.",+ "status": "pending",+ "testStrategy": "Test with various dependency scenarios, including nested dependencies."+ },+ {+ "id": 3,+ "title": "Ensure Correct Order of Dependency Resolution",+ "description": "Modify the add-task functionality to ensure that dependencies are resolved in the correct order during task execution.",+ "dependencies": [+ 2+ ],+ "details": "Implement logic to sort and execute tasks based on their dependency order. Handle cases where multiple tasks depend on each other.",+ "status": "pending",+ "testStrategy": "Test with complex dependency chains to verify correct ordering."+ },+ {+ "id": 4,+ "title": "Integrate with Existing Validation and Error Handling",+ "description": "Update the add-task functionality to integrate with existing validation and error handling mechanisms (from Task 87).",+ "dependencies": [+ 3+ ],+ "details": "Modify the code to provide clear feedback if dependencies cannot be resolved. Ensure that circular dependencies are detected and handled appropriately.",+ "status": "pending",+ "testStrategy": "Test with invalid dependency scenarios to verify proper error handling."+ },+ {+ "id": 5,+ "title": "Optimize Performance for Large Projects",+ "description": "Optimize the add-task functionality to ensure efficient dependency resolution, especially for projects with a large number of tasks.",+ "dependencies": [+ 4+ ],+ "details": "Profile and optimize the recursive dependency analysis algorithm. Implement caching or other performance improvements as needed.",+ "status": "pending",+ "testStrategy": "Test with large sets of tasks to verify performance improvements."+ }+ ]}]}\ No newline at end of file