An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
fix merge conflicts to prep for merge with branch next
Eyal Toledanod2f761c652cc
diff --cc .taskmasterconfigindex ccb7704c,00000000..a4ef94efmode 100644,000000..100644--- a/.taskmasterconfig+++ b/.taskmasterconfig@@@ -1,31 -1,0 +1,31 @@@+{+ "models": {+ "main": {+ "provider": "anthropic",+ "modelId": "claude-3-7-sonnet-20250219",+ "maxTokens": 100000,+ "temperature": 0.2+ },+ "research": {- "provider": "perplexity",- "modelId": "sonar-pro",++ "provider": "xai",++ "modelId": "grok-3",+ "maxTokens": 8700,+ "temperature": 0.1+ },+ "fallback": {+ "provider": "anthropic",+ "modelId": "claude-3-5-sonnet-20241022",+ "maxTokens": 120000,+ "temperature": 0.2+ }+ },+ "global": {+ "logLevel": "info",+ "debug": false,+ "defaultSubtasks": 5,+ "defaultPriority": "medium",+ "projectName": "Taskmaster",+ "ollamaBaseUrl": "http://localhost:11434/api",+ "azureOpenaiBaseUrl": "https://your-endpoint.openai.azure.com/"+ }+}diff --cc mcp-server/src/core/direct-functions/parse-prd.jsindex 76a48b46,29fdf97a..2a5ac33f--- a/mcp-server/src/core/direct-functions/parse-prd.js+++ b/mcp-server/src/core/direct-functions/parse-prd.js@@@ -101,45 -122,78 +101,81 @@@ export async function parsePRDDirect(ar}}+ // Extract the append flag from args+ const append = Boolean(args.append) === true;++ // Log key parameters including append flaglog.info(- `Preparing to parse PRD from ${inputPath} and output to ${outputPath} with ${numTasks} tasks`+ `Preparing to parse PRD from ${inputPath} and output to ${outputPath} with ${numTasks} tasks, append mode: ${append}`);- // Create the logger wrapper for proper logging in the core function- const logWrapper = {- info: (message, ...args) => log.info(message, ...args),- warn: (message, ...args) => log.warn(message, ...args),- error: (message, ...args) => log.error(message, ...args),- debug: (message, ...args) => log.debug && log.debug(message, ...args),- success: (message, ...args) => log.info(message, ...args) // Map success to info- };+ // --- Logger Wrapper ---+ const mcpLog = createLogWrapper(log);- // Get model config from session- const modelConfig = getModelConfig(session);+ // Prepare options for the core function+ const options = {+ mcpLog,+ session+ };// Enable silent mode to prevent console logs from interfering with JSON responseenableSilentMode();try {- // Execute core parsePRD function - It now handles AI internally- const tasksDataResult = await parsePRD(inputPath, numTasks, options);-- // Check the result from the core function (assuming it might return data or null/undefined)- if (!tasksDataResult || !tasksDataResult.tasks) {- throw new Error(- 'Core parsePRD function did not return valid task data.'- );+ // Make sure the output directory exists+ const outputDir = path.dirname(outputPath);+ if (!fs.existsSync(outputDir)) {+ log.info(`Creating output directory: ${outputDir}`);+ fs.mkdirSync(outputDir, { recursive: true });}- log.info(- `Successfully parsed PRD and generated ${tasksDataResult.tasks?.length || 0} tasks`+ // Execute core parsePRD function with AI client- await parsePRD(++ const tasksDataResult = await parsePRD(+ inputPath,+ outputPath,+ numTasks,+ {+ mcpLog: logWrapper,+ session,+ append+ },+ aiClient,+ modelConfig);- return {- success: true,- data: {- message: `Successfully generated ${tasksDataResult.tasks?.length || 0} tasks from PRD`,- taskCount: tasksDataResult.tasks?.length || 0,- outputPath- },- fromCache: false // This operation always modifies state- };+ // Since parsePRD doesn't return a value but writes to a file, we'll read the result+ // to return it to the caller+ if (fs.existsSync(outputPath)) {+ const tasksData = JSON.parse(fs.readFileSync(outputPath, 'utf8'));+ const actionVerb = append ? 'appended' : 'generated';+ const message = `Successfully ${actionVerb} ${tasksData.tasks?.length || 0} tasks from PRD`;+++ if (!tasksDataResult || !tasksDataResult.tasks || !tasksData) {++ throw new Error(++ 'Core parsePRD function did not return valid task data.'++ );++ }+++ log.info(message);++ return {+ success: true,+ data: {+ message,- taskCount: tasksData.tasks?.length || 0,++ taskCount: tasksDataResult.tasks?.length || 0,+ outputPath,+ appended: append+ },+ fromCache: false // This operation always modifies state and should never be cached+ };+ } else {+ const errorMessage = `Tasks file was not created at ${outputPath}`;+ log.error(errorMessage);+ return {+ success: false,+ error: { code: 'OUTPUT_FILE_NOT_CREATED', message: errorMessage },+ fromCache: false+ };+ }} finally {// Always restore normal loggingdisableSilentMode();diff --cc package-lock.jsonindex 77f9a6fa,7780e665..401315f9--- a/package-lock.json+++ b/package-lock.json@@@ -6,22 -6,13 +6,19 @@@"packages": {"": {"name": "task-master-ai",- "version": "0.11.0",+ "version": "0.12.1","license": "MIT WITH Commons-Clause","dependencies": {+ "@ai-sdk/anthropic": "^1.2.10",+ "@ai-sdk/azure": "^1.3.17",+ "@ai-sdk/google": "^1.2.13",+ "@ai-sdk/mistral": "^1.2.7",+ "@ai-sdk/openai": "^1.3.20",+ "@ai-sdk/perplexity": "^1.1.7",+ "@ai-sdk/xai": "^1.2.15","@anthropic-ai/sdk": "^0.39.0",- "boxen": "^8.0.1",- "chalk": "^4.1.2",- "cli-table3": "^0.6.5",+ "@openrouter/ai-sdk-provider": "^0.4.5",+ "ai": "^4.3.10",- "boxen": "^8.0.1",- "chalk": "^4.1.2",- "cli-table3": "^0.6.5","commander": "^11.1.0","cors": "^2.8.5","dotenv": "^16.3.1",@@@ -47,232 -38,16 +45,281 @@@"@changesets/changelog-github": "^0.5.1","@changesets/cli": "^2.28.1","@types/jest": "^29.5.14",++ "boxen": "^8.0.1",++ "chalk": "^5.4.1",++ "cli-table3": "^0.6.5",++ "execa": "^8.0.1",++ "ink": "^5.0.1","jest": "^29.7.0","jest-environment-node": "^29.7.0","mock-fs": "^5.5.0",++ "node-fetch": "^3.3.2","prettier": "^3.5.3",-- "supertest": "^7.1.0"++ "react": "^18.3.1",++ "supertest": "^7.1.0",++ "tsx": "^4.16.2",++ "zod": "^3.23.8"},"engines": {"node": ">=14.0.0"}},+ "node_modules/@ai-sdk/anthropic": {+ "version": "1.2.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/anthropic/-/anthropic-1.2.10.tgz",+ "integrity": "sha512-PyE7EC2fPjs9DnzRAHDrPQmcnI2m2Eojr8pfhckOejOlDEh2w7NnSJr1W3qe5hUWzKr+6d7NG1ZKR9fhmpDdEQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/azure": {+ "version": "1.3.17",+ "resolved": "https://registry.npmjs.org/@ai-sdk/azure/-/azure-1.3.17.tgz",+ "integrity": "sha512-uGCQ7q81S3mY1EmH2mrsysc/Qw9czMiNTJDr5fc5ocDnHS89rbiaNUdBbdYpjS471EEa2Rcrx2FTCGiQ0gTPDQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/openai": "1.3.16",+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/azure/node_modules/@ai-sdk/openai": {+ "version": "1.3.16",+ "resolved": "https://registry.npmjs.org/@ai-sdk/openai/-/openai-1.3.16.tgz",+ "integrity": "sha512-pjtiBKt1GgaSKZryTbM3tqgoegJwgAUlp1+X5uN6T+VPnI4FLSymV65tyloWzDlyqZmi9HXnnSRPu76VoL5D5g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/google": {+ "version": "1.2.13",+ "resolved": "https://registry.npmjs.org/@ai-sdk/google/-/google-1.2.13.tgz",+ "integrity": "sha512-nnHDzbX1Zst28AjP3718xSWsEqx++qmFuqmnDc2Htelc02HyO6WkWOXMH+YVK3W8zdIyZEKpHL9KKlql7pa10A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/mistral": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@ai-sdk/mistral/-/mistral-1.2.7.tgz",+ "integrity": "sha512-MbOMGfnHKcsvjbv4d6OT7Oaz+Wp4jD8yityqC4hASoKoW1s7L52woz25ES8RgAgTRlfbEZ3MOxEzLu58I228bQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/openai": {+ "version": "1.3.20",+ "resolved": "https://registry.npmjs.org/@ai-sdk/openai/-/openai-1.3.20.tgz",+ "integrity": "sha512-/DflUy7ROG9k6n6YTXMBFPbujBKnbGY58f3CwvicLvDar9nDAloVnUWd3LUoOxpSVnX8vtQ7ngxF52SLWO6RwQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/openai-compatible": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/@ai-sdk/openai-compatible/-/openai-compatible-0.2.13.tgz",+ "integrity": "sha512-tB+lL8Z3j0qDod/mvxwjrPhbLUHp/aQW+NvMoJaqeTtP+Vmv5qR800pncGczxn5WN0pllQm+7aIRDnm69XeSbg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/perplexity": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@ai-sdk/perplexity/-/perplexity-1.1.7.tgz",+ "integrity": "sha512-FH2zEADLU/NTuRkQXMbZkUZ0qSsJ5qhufQ+7IsFMuhhKShGt0M8gOZlnkxuolnIjDrOdD3r1r59nZKMsFHuwqw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/provider": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.1.3.tgz",+ "integrity": "sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==",+ "license": "Apache-2.0",+ "dependencies": {+ "json-schema": "^0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/provider-utils": {+ "version": "2.2.7",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.2.7.tgz",+ "integrity": "sha512-kM0xS3GWg3aMChh9zfeM+80vEZfXzR3JEUBdycZLtbRZ2TRT8xOj3WodGHPb06sUK5yD7pAXC/P7ctsi2fvUGQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "nanoid": "^3.3.8",+ "secure-json-parse": "^2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.23.8"+ }+ },+ "node_modules/@ai-sdk/react": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-1.2.9.tgz",+ "integrity": "sha512-/VYm8xifyngaqFDLXACk/1czDRCefNCdALUyp+kIX6DUIYUWTM93ISoZ+qJ8+3E+FiJAKBQz61o8lIIl+vYtzg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider-utils": "2.2.7",+ "@ai-sdk/ui-utils": "1.2.8",+ "swr": "^2.2.5",+ "throttleit": "2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "react": "^18 || ^19 || ^19.0.0-rc",+ "zod": "^3.23.8"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/ui-utils": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.2.8.tgz",+ "integrity": "sha512-nls/IJCY+ks3Uj6G/agNhXqQeLVqhNfoJbuNgCny+nX2veY5ADB91EcZUqVeQ/ionul2SeUswPY6Q/DxteY29Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7",+ "zod-to-json-schema": "^3.24.1"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.23.8"+ }+ },+ "node_modules/@ai-sdk/xai": {+ "version": "1.2.15",+ "resolved": "https://registry.npmjs.org/@ai-sdk/xai/-/xai-1.2.15.tgz",+ "integrity": "sha512-18qEYyVHIqTiOMePE00bfx4kJrTHM4dV3D3Rpe+eBISlY80X1FnzZRnRTJo3Q6MOSmW5+ZKVaX9jtryhoFpn0A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/openai-compatible": "0.2.13",+ "@ai-sdk/provider": "1.1.3",+ "@ai-sdk/provider-utils": "2.2.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },++ "node_modules/@alcalzone/ansi-tokenize": {++ "version": "0.1.3",++ "resolved": "https://registry.npmjs.org/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.1.3.tgz",++ "integrity": "sha512-3yWxPTq3UQ/FY9p1ErPxIyfT64elWaMvM9lIHnaqpyft63tkxodF5aUElYHrdisWve5cETkh1+KBw1yJuW0aRw==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^6.2.1",++ "is-fullwidth-code-point": "^4.0.0"++ },++ "engines": {++ "node": ">=14.13.1"++ }++ },++ "node_modules/@alcalzone/ansi-tokenize/node_modules/ansi-styles": {++ "version": "6.2.1",++ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",++ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/chalk/ansi-styles?sponsor=1"++ }++ },++ "node_modules/@alcalzone/ansi-tokenize/node_modules/is-fullwidth-code-point": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",++ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/@ampproject/remapping": {"version": "2.3.0","resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",@@@ -1191,220 -966,220 +1238,646 @@@"version": "1.5.0","resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz","integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",++ "dev": true,"license": "MIT","optional": true,"engines": {"node": ">=0.1.90"}},-- "node_modules/@inquirer/checkbox": {-- "version": "4.1.4",-- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz",-- "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==",++ "node_modules/@esbuild/aix-ppc64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz",++ "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==",++ "cpu": [++ "ppc64"++ ],++ "dev": true,"license": "MIT",-- "dependencies": {-- "@inquirer/core": "^10.1.9",-- "@inquirer/figures": "^1.0.11",-- "@inquirer/type": "^3.0.5",-- "ansi-escapes": "^4.3.2",-- "yoctocolors-cjs": "^2.1.2"-- },++ "optional": true,++ "os": [++ "aix"++ ],"engines": {"node": ">=18"-- },-- "peerDependencies": {-- "@types/node": ">=18"-- },-- "peerDependenciesMeta": {-- "@types/node": {-- "optional": true-- }}},-- "node_modules/@inquirer/confirm": {-- "version": "5.1.8",-- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz",-- "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==",++ "node_modules/@esbuild/android-arm": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz",++ "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==",++ "cpu": [++ "arm"++ ],++ "dev": true,"license": "MIT",-- "dependencies": {-- "@inquirer/core": "^10.1.9",-- "@inquirer/type": "^3.0.5"-- },++ "optional": true,++ "os": [++ "android"++ ],"engines": {"node": ">=18"-- },-- "peerDependencies": {-- "@types/node": ">=18"-- },-- "peerDependenciesMeta": {-- "@types/node": {-- "optional": true-- }}},-- "node_modules/@inquirer/core": {-- "version": "10.1.9",-- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz",-- "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==",++ "node_modules/@esbuild/android-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz",++ "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==",++ "cpu": [++ "arm64"++ ],++ "dev": true,"license": "MIT",-- "dependencies": {-- "@inquirer/figures": "^1.0.11",-- "@inquirer/type": "^3.0.5",-- "ansi-escapes": "^4.3.2",-- "cli-width": "^4.1.0",-- "mute-stream": "^2.0.0",-- "signal-exit": "^4.1.0",-- "wrap-ansi": "^6.2.0",-- "yoctocolors-cjs": "^2.1.2"-- },++ "optional": true,++ "os": [++ "android"++ ],"engines": {"node": ">=18"-- },-- "peerDependencies": {-- "@types/node": ">=18"-- },-- "peerDependenciesMeta": {-- "@types/node": {-- "optional": true-- }}},-- "node_modules/@inquirer/core/node_modules/ansi-regex": {-- "version": "5.0.1",-- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",-- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",++ "node_modules/@esbuild/android-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz",++ "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==",++ "cpu": [++ "x64"++ ],++ "dev": true,"license": "MIT",++ "optional": true,++ "os": [++ "android"++ ],"engines": {-- "node": ">=8"++ "node": ">=18"}},-- "node_modules/@inquirer/core/node_modules/emoji-regex": {-- "version": "8.0.0",-- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",-- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",-- "license": "MIT"-- },-- "node_modules/@inquirer/core/node_modules/string-width": {-- "version": "4.2.3",-- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",-- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",++ "node_modules/@esbuild/darwin-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz",++ "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==",++ "cpu": [++ "arm64"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },++ "optional": true,++ "os": [++ "darwin"++ ],+ "engines": {- "node": ">=8"++ "node": ">=18"+ }+ },- "node_modules/@inquirer/core/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",++ "node_modules/@esbuild/darwin-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz",++ "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==",++ "cpu": [++ "x64"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },++ "optional": true,++ "os": [++ "darwin"++ ],+ "engines": {- "node": ">=8"++ "node": ">=18"+ }+ },- "node_modules/@inquirer/core/node_modules/wrap-ansi": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",++ "node_modules/@esbuild/freebsd-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz",++ "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==",++ "cpu": [++ "arm64"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },++ "optional": true,++ "os": [++ "freebsd"++ ],+ "engines": {- "node": ">=8"++ "node": ">=18"+ }+ },- "node_modules/@inquirer/editor": {- "version": "4.2.9",- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz",- "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==",++ "node_modules/@esbuild/freebsd-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz",++ "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==",++ "cpu": [++ "x64"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "external-editor": "^3.1.0"- },++ "optional": true,++ "os": [++ "freebsd"++ ],+ "engines": {+ "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }+ }+ },- "node_modules/@inquirer/expand": {- "version": "4.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz",- "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==",++ "node_modules/@esbuild/linux-arm": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz",++ "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==",++ "cpu": [++ "arm"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "yoctocolors-cjs": "^2.1.2"- },++ "optional": true,++ "os": [++ "linux"++ ],+ "engines": {+ "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }+ }+ },- "node_modules/@inquirer/figures": {- "version": "1.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz",- "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==",++ "node_modules/@esbuild/linux-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz",++ "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==",++ "cpu": [++ "arm64"++ ],++ "dev": true,+ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],+ "engines": {+ "node": ">=18"+ }+ },- "node_modules/@inquirer/input": {- "version": "4.1.8",- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz",- "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==",++ "node_modules/@esbuild/linux-ia32": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz",++ "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==",++ "cpu": [++ "ia32"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5"- },++ "optional": true,++ "os": [++ "linux"++ ],+ "engines": {+ "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }+ }+ },- "node_modules/@inquirer/number": {- "version": "3.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz",- "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==",++ "node_modules/@esbuild/linux-loong64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz",++ "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==",++ "cpu": [++ "loong64"++ ],++ "dev": true,+ "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/linux-mips64el": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz",++ "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==",++ "cpu": [++ "mips64el"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/linux-ppc64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz",++ "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==",++ "cpu": [++ "ppc64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/linux-riscv64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz",++ "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==",++ "cpu": [++ "riscv64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/linux-s390x": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz",++ "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==",++ "cpu": [++ "s390x"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/linux-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz",++ "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==",++ "cpu": [++ "x64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "linux"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/netbsd-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz",++ "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==",++ "cpu": [++ "arm64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "netbsd"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/netbsd-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz",++ "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==",++ "cpu": [++ "x64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "netbsd"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/openbsd-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz",++ "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==",++ "cpu": [++ "arm64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "openbsd"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/openbsd-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz",++ "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==",++ "cpu": [++ "x64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "openbsd"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/sunos-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz",++ "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==",++ "cpu": [++ "x64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "sunos"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/win32-arm64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz",++ "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==",++ "cpu": [++ "arm64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "win32"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/win32-ia32": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz",++ "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==",++ "cpu": [++ "ia32"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "win32"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@esbuild/win32-x64": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz",++ "integrity": "sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==",++ "cpu": [++ "x64"++ ],++ "dev": true,++ "license": "MIT",++ "optional": true,++ "os": [++ "win32"++ ],++ "engines": {++ "node": ">=18"++ }++ },++ "node_modules/@inquirer/checkbox": {++ "version": "4.1.4",++ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz",++ "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==",++ "license": "MIT",++ "dependencies": {++ "@inquirer/core": "^10.1.9",++ "@inquirer/figures": "^1.0.11",++ "@inquirer/type": "^3.0.5",++ "ansi-escapes": "^4.3.2",++ "yoctocolors-cjs": "^2.1.2"++ },++ "engines": {++ "node": ">=18"++ },++ "peerDependencies": {++ "@types/node": ">=18"++ },++ "peerDependenciesMeta": {++ "@types/node": {++ "optional": true++ }++ }++ },++ "node_modules/@inquirer/confirm": {++ "version": "5.1.8",++ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz",++ "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==",++ "license": "MIT",++ "dependencies": {++ "@inquirer/core": "^10.1.9",++ "@inquirer/type": "^3.0.5"++ },++ "engines": {++ "node": ">=18"++ },++ "peerDependencies": {++ "@types/node": ">=18"++ },++ "peerDependenciesMeta": {++ "@types/node": {++ "optional": true++ }++ }++ },++ "node_modules/@inquirer/core": {++ "version": "10.1.9",++ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz",++ "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==",++ "license": "MIT",++ "dependencies": {++ "@inquirer/figures": "^1.0.11",++ "@inquirer/type": "^3.0.5",++ "ansi-escapes": "^4.3.2",++ "cli-width": "^4.1.0",++ "mute-stream": "^2.0.0",++ "signal-exit": "^4.1.0",++ "wrap-ansi": "^6.2.0",++ "yoctocolors-cjs": "^2.1.2"++ },++ "engines": {++ "node": ">=18"++ },++ "peerDependencies": {++ "@types/node": ">=18"++ },++ "peerDependenciesMeta": {++ "@types/node": {++ "optional": true++ }++ }++ },++ "node_modules/@inquirer/core/node_modules/ansi-regex": {++ "version": "5.0.1",++ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",++ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",++ "license": "MIT",++ "engines": {++ "node": ">=8"++ }++ },++ "node_modules/@inquirer/core/node_modules/emoji-regex": {++ "version": "8.0.0",++ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",++ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",++ "license": "MIT"++ },++ "node_modules/@inquirer/core/node_modules/string-width": {++ "version": "4.2.3",++ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",++ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@inquirer/core/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@inquirer/core/node_modules/wrap-ansi": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/@inquirer/editor": {+ "version": "4.2.9",+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz",+ "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==",+ "license": "MIT",+ "dependencies": {+ "@inquirer/core": "^10.1.9",+ "@inquirer/type": "^3.0.5",+ "external-editor": "^3.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@types/node": ">=18"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ }+ }+ },+ "node_modules/@inquirer/expand": {+ "version": "4.0.11",+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz",+ "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==",+ "license": "MIT",+ "dependencies": {+ "@inquirer/core": "^10.1.9",+ "@inquirer/type": "^3.0.5",+ "yoctocolors-cjs": "^2.1.2"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@types/node": ">=18"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ }+ }+ },+ "node_modules/@inquirer/figures": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz",+ "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@inquirer/input": {+ "version": "4.1.8",+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz",+ "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==",+ "license": "MIT",+ "dependencies": {+ "@inquirer/core": "^10.1.9",+ "@inquirer/type": "^3.0.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@types/node": ">=18"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ }+ }+ },+ "node_modules/@inquirer/number": {+ "version": "3.0.11",+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz",+ "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==",+ "license": "MIT",+ "dependencies": {+ "@inquirer/core": "^10.1.9","@inquirer/type": "^3.0.5"},"engines": {@@@ -1611,6 -1386,6 +2084,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/@jest/console/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/@jest/core": {"version": "29.7.0","resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz",@@@ -1669,6 -1444,6 +2159,23 @@@"node": ">=8"}},++ "node_modules/@jest/core/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/@jest/core/node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",@@@ -1813,6 -1588,6 +2320,23 @@@"node": ">=8"}},++ "node_modules/@jest/reporters/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/@jest/reporters/node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",@@@ -1913,6 -1688,6 +2437,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/@jest/transform/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/@jest/types": {"version": "29.6.3","resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",@@@ -1931,6 -1706,6 +2472,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/@jest/types/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/@jridgewell/gen-mapping": {"version": "0.3.8","resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",@@@ -2749,6 -2432,6 +3307,7 @@@"version": "3.0.1","resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz","integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==",++ "dev": true,"license": "ISC","dependencies": {"string-width": "^4.1.0"@@@ -2758,6 -2441,6 +3317,7 @@@"version": "5.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz","integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",++ "dev": true,"license": "MIT","engines": {"node": ">=8"@@@ -2767,12 -2450,12 +3327,14 @@@"version": "8.0.0","resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz","integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",++ "dev": true,"license": "MIT"},"node_modules/ansi-align/node_modules/string-width": {"version": "4.2.3","resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz","integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",++ "dev": true,"license": "MIT","dependencies": {"emoji-regex": "^8.0.0",@@@ -2787,6 -2470,6 +3349,7 @@@"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",++ "dev": true,"license": "MIT","dependencies": {"ansi-regex": "^5.0.1"@@@ -2912,6 -2595,6 +3475,19 @@@"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==","license": "MIT"},++ "node_modules/auto-bind": {++ "version": "5.0.1",++ "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-5.0.1.tgz",++ "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/babel-jest": {"version": "29.7.0","resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz",@@@ -2934,6 -2617,6 +3510,23 @@@"@babel/core": "^7.8.0"}},++ "node_modules/babel-jest/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/babel-plugin-istanbul": {"version": "6.1.1","resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",@@@ -3106,6 -2789,6 +3699,7 @@@"version": "8.0.1","resolved": "https://registry.npmjs.org/boxen/-/boxen-8.0.1.tgz","integrity": "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==",++ "dev": true,"license": "MIT","dependencies": {"ansi-align": "^3.0.1",@@@ -3124,18 -2807,18 +3718,6 @@@"url": "https://github.com/sponsors/sindresorhus"}},-- "node_modules/boxen/node_modules/chalk": {-- "version": "5.4.1",-- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",-- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",-- "license": "MIT",-- "engines": {-- "node": "^12.17.0 || ^14.13 || >=16.0.0"-- },-- "funding": {-- "url": "https://github.com/chalk/chalk?sponsor=1"-- }-- },"node_modules/brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",@@@ -3268,6 -2951,6 +3850,7 @@@"version": "8.0.0","resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz","integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==",++ "dev": true,"license": "MIT","engines": {"node": ">=16"@@@ -3298,16 -2981,16 +3881,12 @@@"license": "CC-BY-4.0"},"node_modules/chalk": {-- "version": "4.1.2",-- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",-- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "version": "5.4.1",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",++ "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==","license": "MIT",-- "dependencies": {-- "ansi-styles": "^4.1.0",-- "supports-color": "^7.1.0"-- },"engines": {-- "node": ">=10"++ "node": "^12.17.0 || ^14.13 || >=16.0.0"},"funding": {"url": "https://github.com/chalk/chalk?sponsor=1"@@@ -3356,6 -3039,6 +3935,7 @@@"version": "3.0.0","resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz","integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",++ "dev": true,"license": "MIT","engines": {"node": ">=10"@@@ -3395,6 -3078,6 +3975,7 @@@"version": "0.6.5","resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz","integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==",++ "dev": true,"license": "MIT","dependencies": {"string-width": "^4.2.0"@@@ -3410,6 -3093,6 +3991,7 @@@"version": "5.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz","integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",++ "dev": true,"license": "MIT","engines": {"node": ">=8"@@@ -3419,34 -3102,34 +4001,97 @@@"version": "8.0.0","resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz","integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",++ "dev": true,"license": "MIT"},"node_modules/cli-table3/node_modules/string-width": {"version": "4.2.3","resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz","integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",++ "dev": true,"license": "MIT","dependencies": {"emoji-regex": "^8.0.0","is-fullwidth-code-point": "^3.0.0","strip-ansi": "^6.0.1"},- "engines": {- "node": ">=8"+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-table3/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",++ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },++ "node_modules/cli-truncate": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",++ "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "slice-ansi": "^5.0.0",++ "string-width": "^7.0.0"++ },++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/cli-truncate/node_modules/ansi-styles": {++ "version": "6.2.1",++ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",++ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/chalk/ansi-styles?sponsor=1"++ }++ },++ "node_modules/cli-truncate/node_modules/is-fullwidth-code-point": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",++ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"+ }+ },- "node_modules/cli-table3/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",++ "node_modules/cli-truncate/node_modules/slice-ansi": {++ "version": "5.0.0",++ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",++ "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",++ "dev": true,+ "license": "MIT",+ "dependencies": {- "ansi-regex": "^5.0.1"++ "ansi-styles": "^6.0.0",++ "is-fullwidth-code-point": "^4.0.0"+ },+ "engines": {- "node": ">=8"++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/chalk/slice-ansi?sponsor=1"+ }+ },"node_modules/cli-width": {"version": "4.1.0","resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",@@@ -3539,6 -3222,6 +4184,19 @@@"node": ">= 0.12.0"}},++ "node_modules/code-excerpt": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",++ "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "convert-to-spaces": "^2.0.1"++ },++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ }++ },"node_modules/collect-v8-coverage": {"version": "1.0.2","resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz",@@@ -3630,6 -3313,6 +4288,16 @@@"dev": true,"license": "MIT"},++ "node_modules/convert-to-spaces": {++ "version": "2.0.1",++ "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz",++ "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ }++ },"node_modules/cookie": {"version": "0.7.1","resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",@@@ -3687,6 -3370,6 +4355,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/create-jest/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/cross-spawn": {"version": "7.0.6","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",@@@ -3969,6 -3637,6 +4654,19 @@@"node": ">=8"}},++ "node_modules/environment": {++ "version": "1.1.0",++ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",++ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/error-ex": {"version": "1.3.2","resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",@@@ -4024,6 -3692,6 +4722,58 @@@"node": ">= 0.4"}},++ "node_modules/es-toolkit": {++ "version": "1.36.0",++ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.36.0.tgz",++ "integrity": "sha512-5lpkRpDELuTSeAL//Rcg5urg+K/yOD1BobJSiNeCc89snMqgrhckmj8jdljqraDbpREiXTNW311RN518eVHBng==",++ "dev": true,++ "license": "MIT",++ "workspaces": [++ "docs",++ "benchmarks"++ ]++ },++ "node_modules/esbuild": {++ "version": "0.25.3",++ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz",++ "integrity": "sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==",++ "dev": true,++ "hasInstallScript": true,++ "license": "MIT",++ "bin": {++ "esbuild": "bin/esbuild"++ },++ "engines": {++ "node": ">=18"++ },++ "optionalDependencies": {++ "@esbuild/aix-ppc64": "0.25.3",++ "@esbuild/android-arm": "0.25.3",++ "@esbuild/android-arm64": "0.25.3",++ "@esbuild/android-x64": "0.25.3",++ "@esbuild/darwin-arm64": "0.25.3",++ "@esbuild/darwin-x64": "0.25.3",++ "@esbuild/freebsd-arm64": "0.25.3",++ "@esbuild/freebsd-x64": "0.25.3",++ "@esbuild/linux-arm": "0.25.3",++ "@esbuild/linux-arm64": "0.25.3",++ "@esbuild/linux-ia32": "0.25.3",++ "@esbuild/linux-loong64": "0.25.3",++ "@esbuild/linux-mips64el": "0.25.3",++ "@esbuild/linux-ppc64": "0.25.3",++ "@esbuild/linux-riscv64": "0.25.3",++ "@esbuild/linux-s390x": "0.25.3",++ "@esbuild/linux-x64": "0.25.3",++ "@esbuild/netbsd-arm64": "0.25.3",++ "@esbuild/netbsd-x64": "0.25.3",++ "@esbuild/openbsd-arm64": "0.25.3",++ "@esbuild/openbsd-x64": "0.25.3",++ "@esbuild/sunos-x64": "0.25.3",++ "@esbuild/win32-arm64": "0.25.3",++ "@esbuild/win32-ia32": "0.25.3",++ "@esbuild/win32-x64": "0.25.3"++ }++ },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@@ -4103,52 -3771,52 +4853,45 @@@}},"node_modules/execa": {-- "version": "5.1.1",-- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",-- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",++ "version": "8.0.1",++ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",++ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==","dev": true,"license": "MIT","dependencies": {"cross-spawn": "^7.0.3",-- "get-stream": "^6.0.0",-- "human-signals": "^2.1.0",-- "is-stream": "^2.0.0",++ "get-stream": "^8.0.1",++ "human-signals": "^5.0.0",++ "is-stream": "^3.0.0","merge-stream": "^2.0.0",-- "npm-run-path": "^4.0.1",-- "onetime": "^5.1.2",-- "signal-exit": "^3.0.3",-- "strip-final-newline": "^2.0.0"++ "npm-run-path": "^5.1.0",++ "onetime": "^6.0.0",++ "signal-exit": "^4.1.0",++ "strip-final-newline": "^3.0.0"},"engines": {-- "node": ">=10"++ "node": ">=16.17"},"funding": {"url": "https://github.com/sindresorhus/execa?sponsor=1"}},"node_modules/execa/node_modules/onetime": {-- "version": "5.1.2",-- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",-- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",++ "version": "6.0.0",++ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",++ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==","dev": true,"license": "MIT","dependencies": {-- "mimic-fn": "^2.1.0"++ "mimic-fn": "^4.0.0"},"engines": {-- "node": ">=6"++ "node": ">=12"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},-- "node_modules/execa/node_modules/signal-exit": {-- "version": "3.0.7",-- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",-- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",-- "dev": true,-- "license": "ISC"-- },"node_modules/exit": {"version": "0.1.2","resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",@@@ -4819,18 -4487,18 +5562,31 @@@}},"node_modules/get-stream": {-- "version": "6.0.1",-- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",-- "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",++ "version": "8.0.1",++ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",++ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==","dev": true,"license": "MIT","engines": {-- "node": ">=10"++ "node": ">=16"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},++ "node_modules/get-tsconfig": {++ "version": "4.10.0",++ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz",++ "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "resolve-pkg-maps": "^1.0.0"++ },++ "funding": {++ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"++ }++ },"node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",@@@ -4925,26 -4593,26 +5681,15 @@@"chalk": "^5.3.0","tinygradient": "^1.1.5"},- "engines": {- "node": ">=14"- }- },- "node_modules/gradient-string/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",- "license": "MIT",- "engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"+ "engines": {+ "node": ">=14"}},- "node_modules/gradient-string/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",- "license": "MIT",- "engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },"node_modules/has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz","integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",++ "dev": true,"license": "MIT","engines": {"node": ">=8"@@@ -5042,13 -4710,13 +5787,13 @@@}},"node_modules/human-signals": {-- "version": "2.1.0",-- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",-- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",++ "version": "5.0.0",++ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",++ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==","dev": true,"license": "Apache-2.0","engines": {-- "node": ">=10.17.0"++ "node": ">=16.17.0"}},"node_modules/humanize-ms": {@@@ -5132,6 -4800,6 +5877,19 @@@"node": ">=0.8.19"}},++ "node_modules/indent-string": {++ "version": "5.0.0",++ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",++ "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/inflight": {"version": "1.0.6","resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",@@@ -5150,6 -4818,6 +5908,150 @@@"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==","license": "ISC"},++ "node_modules/ink": {++ "version": "5.2.0",++ "resolved": "https://registry.npmjs.org/ink/-/ink-5.2.0.tgz",++ "integrity": "sha512-gHzSBBvsh/1ZYuGi+aKzU7RwnYIr6PSz56or9T90i4DDS99euhN7nYKOMR3OTev0dKIB6Zod3vSapYzqoilQcg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "@alcalzone/ansi-tokenize": "^0.1.3",++ "ansi-escapes": "^7.0.0",++ "ansi-styles": "^6.2.1",++ "auto-bind": "^5.0.1",++ "chalk": "^5.3.0",++ "cli-boxes": "^3.0.0",++ "cli-cursor": "^4.0.0",++ "cli-truncate": "^4.0.0",++ "code-excerpt": "^4.0.0",++ "es-toolkit": "^1.22.0",++ "indent-string": "^5.0.0",++ "is-in-ci": "^1.0.0",++ "patch-console": "^2.0.0",++ "react-reconciler": "^0.29.0",++ "scheduler": "^0.23.0",++ "signal-exit": "^3.0.7",++ "slice-ansi": "^7.1.0",++ "stack-utils": "^2.0.6",++ "string-width": "^7.2.0",++ "type-fest": "^4.27.0",++ "widest-line": "^5.0.0",++ "wrap-ansi": "^9.0.0",++ "ws": "^8.18.0",++ "yoga-layout": "~3.2.1"++ },++ "engines": {++ "node": ">=18"++ },++ "peerDependencies": {++ "@types/react": ">=18.0.0",++ "react": ">=18.0.0",++ "react-devtools-core": "^4.19.1"++ },++ "peerDependenciesMeta": {++ "@types/react": {++ "optional": true++ },++ "react-devtools-core": {++ "optional": true++ }++ }++ },++ "node_modules/ink/node_modules/ansi-escapes": {++ "version": "7.0.0",++ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz",++ "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "environment": "^1.0.0"++ },++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/ink/node_modules/ansi-styles": {++ "version": "6.2.1",++ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",++ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/chalk/ansi-styles?sponsor=1"++ }++ },++ "node_modules/ink/node_modules/cli-cursor": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",++ "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "restore-cursor": "^4.0.0"++ },++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/ink/node_modules/mimic-fn": {++ "version": "2.1.0",++ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",++ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=6"++ }++ },++ "node_modules/ink/node_modules/onetime": {++ "version": "5.1.2",++ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",++ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "mimic-fn": "^2.1.0"++ },++ "engines": {++ "node": ">=6"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/ink/node_modules/restore-cursor": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",++ "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "onetime": "^5.1.0",++ "signal-exit": "^3.0.2"++ },++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/ink/node_modules/signal-exit": {++ "version": "3.0.7",++ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",++ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",++ "dev": true,++ "license": "ISC"++ },"node_modules/inquirer": {"version": "12.5.0","resolved": "https://registry.npmjs.org/inquirer/-/inquirer-12.5.0.tgz",@@@ -5250,6 -4918,6 +6152,22 @@@"node": ">=0.10.0"}},++ "node_modules/is-in-ci": {++ "version": "1.0.0",++ "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-1.0.0.tgz",++ "integrity": "sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==",++ "dev": true,++ "license": "MIT",++ "bin": {++ "is-in-ci": "cli.js"++ },++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/is-interactive": {"version": "2.0.0","resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz",@@@ -5291,13 -4959,13 +6209,13 @@@"license": "MIT"},"node_modules/is-stream": {-- "version": "2.0.1",-- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",-- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",++ "version": "3.0.0",++ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",++ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==","dev": true,"license": "MIT","engines": {-- "node": ">=8"++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"},"funding": {"url": "https://github.com/sponsors/sindresorhus"@@@ -5428,48 -5096,48 +6346,164 @@@"node": ">=8"}},- "node_modules/jest": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",- "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",+ "node_modules/jest": {+ "version": "29.7.0",+ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz",+ "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jest/core": "^29.7.0",+ "@jest/types": "^29.6.3",+ "import-local": "^3.0.2",+ "jest-cli": "^29.7.0"+ },+ "bin": {+ "jest": "bin/jest.js"+ },+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ },+ "peerDependencies": {+ "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"+ },+ "peerDependenciesMeta": {+ "node-notifier": {+ "optional": true+ }+ }+ },+ "node_modules/jest-changed-files": {+ "version": "29.7.0",+ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",+ "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "execa": "^5.0.0",+ "jest-util": "^29.7.0",+ "p-limit": "^3.1.0"+ },+ "engines": {+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },++ "node_modules/jest-changed-files/node_modules/execa": {++ "version": "5.1.1",++ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",++ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "cross-spawn": "^7.0.3",++ "get-stream": "^6.0.0",++ "human-signals": "^2.1.0",++ "is-stream": "^2.0.0",++ "merge-stream": "^2.0.0",++ "npm-run-path": "^4.0.1",++ "onetime": "^5.1.2",++ "signal-exit": "^3.0.3",++ "strip-final-newline": "^2.0.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/sindresorhus/execa?sponsor=1"++ }++ },++ "node_modules/jest-changed-files/node_modules/get-stream": {++ "version": "6.0.1",++ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",++ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/jest-changed-files/node_modules/human-signals": {++ "version": "2.1.0",++ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",++ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",++ "dev": true,++ "license": "Apache-2.0",++ "engines": {++ "node": ">=10.17.0"++ }++ },++ "node_modules/jest-changed-files/node_modules/is-stream": {++ "version": "2.0.1",++ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",++ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=8"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/jest-changed-files/node_modules/mimic-fn": {++ "version": "2.1.0",++ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",++ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=6"++ }++ },++ "node_modules/jest-changed-files/node_modules/npm-run-path": {++ "version": "4.0.1",++ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",++ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "path-key": "^3.0.0"++ },++ "engines": {++ "node": ">=8"++ }++ },++ "node_modules/jest-changed-files/node_modules/onetime": {++ "version": "5.1.2",++ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",++ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {- "@jest/core": "^29.7.0",- "@jest/types": "^29.6.3",- "import-local": "^3.0.2",- "jest-cli": "^29.7.0"- },- "bin": {- "jest": "bin/jest.js"++ "mimic-fn": "^2.1.0"+ },+ "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- },- "peerDependencies": {- "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"++ "node": ">=6"+ },- "peerDependenciesMeta": {- "node-notifier": {- "optional": true- }++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"+ }+ },- "node_modules/jest-changed-files": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz",- "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==",++ "node_modules/jest-changed-files/node_modules/signal-exit": {++ "version": "3.0.7",++ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",++ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",++ "dev": true,++ "license": "ISC"++ },++ "node_modules/jest-changed-files/node_modules/strip-final-newline": {++ "version": "2.0.0",++ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",++ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "dev": true,+ "license": "MIT",- "dependencies": {- "execa": "^5.0.0",- "jest-util": "^29.7.0",- "p-limit": "^3.1.0"- },+ "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"++ "node": ">=6"+ }+ },"node_modules/jest-circus": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz",@@@ -5502,6 -5170,6 +6536,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-circus/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-cli": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz",@@@ -5536,6 -5204,6 +6587,23 @@@}}},++ "node_modules/jest-cli/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-config": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz",@@@ -5582,6 -5250,6 +6650,23 @@@}}},++ "node_modules/jest-config/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-diff": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",@@@ -5598,6 -5266,6 +6683,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-diff/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-docblock": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz",@@@ -5628,6 -5296,6 +6730,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-each/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-environment-node": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz",@@@ -5712,6 -5380,6 +6831,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-matcher-utils/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-message-util": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz",@@@ -5733,6 -5401,6 +6869,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-message-util/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-mock": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz",@@@ -5811,6 -5479,6 +6964,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-resolve/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-runner": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz",@@@ -5844,6 -5512,6 +7014,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-runner/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-runtime": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz",@@@ -5875,9 -5543,9 +7062,26 @@@"strip-bom": "^4.0.0"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ }+ },++ "node_modules/jest-runtime/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },"node_modules/jest-snapshot": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz",@@@ -5910,6 -5578,6 +7114,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-snapshot/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-snapshot/node_modules/semver": {"version": "7.7.1","resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",@@@ -5941,6 -5609,6 +7162,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-util/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-validate": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz",@@@ -5969,9 -5637,9 +7207,26 @@@"node": ">=10"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },++ "node_modules/jest-validate/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },"node_modules/jest-watcher": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz",@@@ -5992,6 -5660,6 +7247,23 @@@"node": "^14.15.0 || ^16.10.0 || >=18.0.0"}},++ "node_modules/jest-watcher/node_modules/chalk": {++ "version": "4.1.2",++ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",++ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^4.1.0",++ "supports-color": "^7.1.0"++ },++ "engines": {++ "node": ">=10"++ },++ "funding": {++ "url": "https://github.com/chalk/chalk?sponsor=1"++ }++ },"node_modules/jest-worker": {"version": "29.7.0","resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz",@@@ -6028,7 -5696,7 +7300,6 @@@"version": "4.0.0","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz","integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",-- "dev": true,"license": "MIT"},"node_modules/js-yaml": {@@@ -6084,35 -5746,6 +7355,23 @@@"node": ">=6"}},+ "node_modules/jsondiffpatch": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/jsondiffpatch/-/jsondiffpatch-0.6.0.tgz",+ "integrity": "sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==",+ "license": "MIT",+ "dependencies": {+ "@types/diff-match-patch": "^1.0.36",+ "chalk": "^5.3.0",+ "diff-match-patch": "^1.0.5"+ },+ "bin": {+ "jsondiffpatch": "bin/jsondiffpatch.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },- "node_modules/jsondiffpatch/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",- "license": "MIT",- "engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },"node_modules/jsonfile": {"version": "4.0.0","resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",@@@ -6283,18 -5916,18 +7542,6 @@@"url": "https://github.com/sponsors/sindresorhus"}},-- "node_modules/log-symbols/node_modules/chalk": {-- "version": "5.4.1",-- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",-- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",-- "license": "MIT",-- "engines": {-- "node": "^12.17.0 || ^14.13 || >=16.0.0"-- },-- "funding": {-- "url": "https://github.com/chalk/chalk?sponsor=1"-- }-- },"node_modules/log-symbols/node_modules/is-unicode-supported": {"version": "1.3.0","resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",@@@ -6307,6 -5940,6 +7554,18 @@@"url": "https://github.com/sponsors/sindresorhus"}},++ "node_modules/loose-envify": {++ "version": "1.4.0",++ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",++ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",++ "license": "MIT",++ "dependencies": {++ "js-tokens": "^3.0.0 || ^4.0.0"++ },++ "bin": {++ "loose-envify": "cli.js"++ }++ },"node_modules/lru-cache": {"version": "10.4.3","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",@@@ -6468,13 -6101,13 +7727,16 @@@}},"node_modules/mimic-fn": {-- "version": "2.1.0",-- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",-- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",++ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==","dev": true,"license": "MIT","engines": {-- "node": ">=6"++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"}},"node_modules/mimic-function": {@@@ -6633,16 -6248,16 +7895,32 @@@}},"node_modules/npm-run-path": {-- "version": "4.0.1",-- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",-- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",++ "version": "5.3.0",++ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",++ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==","dev": true,"license": "MIT","dependencies": {-- "path-key": "^3.0.0"++ "path-key": "^4.0.0"},"engines": {-- "node": ">=8"++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },++ "node_modules/npm-run-path/node_modules/path-key": {++ "version": "4.0.0",++ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",++ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"}},"node_modules/object-assign": {@@@ -6777,18 -6370,18 +8055,6 @@@"url": "https://github.com/sponsors/sindresorhus"}},-- "node_modules/ora/node_modules/chalk": {-- "version": "5.4.1",-- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",-- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",-- "license": "MIT",-- "engines": {-- "node": "^12.17.0 || ^14.13 || >=16.0.0"-- },-- "funding": {-- "url": "https://github.com/chalk/chalk?sponsor=1"-- }-- },"node_modules/os-tmpdir": {"version": "1.0.2","resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",@@@ -6933,12 -6526,6 +8199,22 @@@"node": ">= 0.8"}},+ "node_modules/partial-json": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/partial-json/-/partial-json-0.1.7.tgz",+ "integrity": "sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==",+ "license": "MIT"+ },++ "node_modules/patch-console": {++ "version": "2.0.0",++ "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",++ "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"++ }++ },"node_modules/path-exists": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",@@@ -7246,16 -6833,6 +8522,18 @@@"node": ">= 0.8"}},+ "node_modules/react": {- "version": "19.1.0",- "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz",- "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==",++ "version": "18.3.1",++ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",++ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",- "peer": true,++ "dependencies": {++ "loose-envify": "^1.1.0"++ },+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/react-is": {"version": "18.3.1","resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",@@@ -7263,6 -6840,6 +8541,23 @@@"dev": true,"license": "MIT"},++ "node_modules/react-reconciler": {++ "version": "0.29.2",++ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.2.tgz",++ "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "loose-envify": "^1.1.0",++ "scheduler": "^0.23.2"++ },++ "engines": {++ "node": ">=0.10.0"++ },++ "peerDependencies": {++ "react": "^18.3.1"++ }++ },"node_modules/read-yaml-file": {"version": "1.1.0","resolved": "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz",@@@ -7349,6 -6926,6 +8644,16 @@@"node": ">=8"}},++ "node_modules/resolve-pkg-maps": {++ "version": "1.0.0",++ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",++ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",++ "dev": true,++ "license": "MIT",++ "funding": {++ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"++ }++ },"node_modules/resolve.exports": {"version": "2.0.3","resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz",@@@ -7479,12 -7056,6 +8784,22 @@@"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==","license": "MIT"},++ "node_modules/scheduler": {++ "version": "0.23.2",++ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",++ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "loose-envify": "^1.1.0"++ }++ },+ "node_modules/secure-json-parse": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz",+ "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==",+ "license": "BSD-3-Clause"+ },"node_modules/semver": {"version": "6.3.1","resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",@@@ -7698,6 -7269,6 +9013,52 @@@"node": ">=8"}},++ "node_modules/slice-ansi": {++ "version": "7.1.0",++ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz",++ "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "ansi-styles": "^6.2.1",++ "is-fullwidth-code-point": "^5.0.0"++ },++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/chalk/slice-ansi?sponsor=1"++ }++ },++ "node_modules/slice-ansi/node_modules/ansi-styles": {++ "version": "6.2.1",++ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",++ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",++ "dev": true,++ "license": "MIT",++ "engines": {++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/chalk/ansi-styles?sponsor=1"++ }++ },++ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {++ "version": "5.0.0",++ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz",++ "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "get-east-asian-width": "^1.0.0"++ },++ "engines": {++ "node": ">=18"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"++ }++ },"node_modules/source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",@@@ -7857,13 -7428,13 +9218,16 @@@}},"node_modules/strip-final-newline": {-- "version": "2.0.0",-- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",-- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",++ "version": "3.0.0",++ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",++ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==","dev": true,"license": "MIT","engines": {-- "node": ">=6"++ "node": ">=12"++ },++ "funding": {++ "url": "https://github.com/sponsors/sindresorhus"}},"node_modules/strip-json-comments": {@@@ -7935,6 -7506,6 +9299,7 @@@"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",++ "dev": true,"license": "MIT","dependencies": {"has-flag": "^4.0.0"@@@ -8089,6 -7635,6 +9454,26 @@@"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},++ "node_modules/tsx": {++ "version": "4.19.3",++ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz",++ "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==",++ "dev": true,++ "license": "MIT",++ "dependencies": {++ "esbuild": "~0.25.0",++ "get-tsconfig": "^4.7.5"++ },++ "bin": {++ "tsx": "dist/cli.mjs"++ },++ "engines": {++ "node": ">=18.0.0"++ },++ "optionalDependencies": {++ "fsevents": "~2.3.3"++ }++ },"node_modules/type-detect": {"version": "4.0.8","resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",@@@ -8103,6 -7649,6 +9488,7 @@@"version": "4.37.0","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.37.0.tgz","integrity": "sha512-S/5/0kFftkq27FPNye0XM1e2NsnoD/3FS+pBmbjmmtLT6I+i344KoOf7pvXreaFsDamWeaJX55nczA1m5PsBDg==",++ "dev": true,"license": "(MIT OR CC0-1.0)","engines": {"node": ">=16"@@@ -8312,6 -7849,6 +9698,7 @@@"version": "5.0.0","resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz","integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==",++ "dev": true,"license": "MIT","dependencies": {"string-width": "^7.0.0"@@@ -8327,6 -7864,6 +9714,7 @@@"version": "9.0.0","resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz","integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",++ "dev": true,"license": "MIT","dependencies": {"ansi-styles": "^6.2.1",@@@ -8344,6 -7881,6 +9732,7 @@@"version": "6.2.1","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz","integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",++ "dev": true,"license": "MIT","engines": {"node": ">=12"@@@ -8379,6 -7916,6 +9768,28 @@@"dev": true,"license": "ISC"},++ "node_modules/ws": {++ "version": "8.18.1",++ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz",++ "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==",++ "devOptional": true,++ "license": "MIT",++ "engines": {++ "node": ">=10.0.0"++ },++ "peerDependencies": {++ "bufferutil": "^4.0.1",++ "utf-8-validate": ">=5.0.2"++ },++ "peerDependenciesMeta": {++ "bufferutil": {++ "optional": true++ },++ "utf-8-validate": {++ "optional": true++ }++ }++ },"node_modules/y18n": {"version": "5.0.8","resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",@@@ -8500,6 -8037,6 +9911,13 @@@"url": "https://github.com/sponsors/sindresorhus"}},++ "node_modules/yoga-layout": {++ "version": "3.2.1",++ "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",++ "integrity": "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==",++ "dev": true,++ "license": "MIT"++ },"node_modules/zod": {"version": "3.24.2","resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz",diff --cc package.jsonindex 29e09f49,2d38da57..c9487173--- a/package.json+++ b/package.json@@@ -13,8 -14,8 +14,8 @@@"test:fails": "node --experimental-vm-modules node_modules/.bin/jest --onlyFailures","test:watch": "node --experimental-vm-modules node_modules/.bin/jest --watch","test:coverage": "node --experimental-vm-modules node_modules/.bin/jest --coverage",-- "prepare-package": "node scripts/prepare-package.js",-- "prepublishOnly": "npm run prepare-package",++ "test:e2e": "./tests/e2e/run_e2e.sh",++ "analyze-log": "./tests/e2e/run_e2e.sh --analyze-log","prepare": "chmod +x bin/task-master.js mcp-server/server.js","changeset": "changeset","release": "changeset publish",@@@ -38,19 -39,10 +39,16 @@@"author": "Eyal Toledano","license": "MIT WITH Commons-Clause","dependencies": {+ "@ai-sdk/anthropic": "^1.2.10",+ "@ai-sdk/azure": "^1.3.17",+ "@ai-sdk/google": "^1.2.13",+ "@ai-sdk/mistral": "^1.2.7",+ "@ai-sdk/openai": "^1.3.20",+ "@ai-sdk/perplexity": "^1.1.7",+ "@ai-sdk/xai": "^1.2.15","@anthropic-ai/sdk": "^0.39.0",- "boxen": "^8.0.1",- "chalk": "^4.1.2",- "cli-table3": "^0.6.5",+ "@openrouter/ai-sdk-provider": "^0.4.5",+ "ai": "^4.3.10",- "boxen": "^8.0.1",- "chalk": "^4.1.2",- "cli-table3": "^0.6.5","commander": "^11.1.0","cors": "^2.8.5","dotenv": "^16.3.1",@@@ -98,10 -89,10 +96,19 @@@"@changesets/changelog-github": "^0.5.1","@changesets/cli": "^2.28.1","@types/jest": "^29.5.14",++ "boxen": "^8.0.1",++ "chalk": "^5.4.1",++ "cli-table3": "^0.6.5",++ "execa": "^8.0.1",++ "ink": "^5.0.1","jest": "^29.7.0","jest-environment-node": "^29.7.0","mock-fs": "^5.5.0",++ "node-fetch": "^3.3.2","prettier": "^3.5.3",-- "supertest": "^7.1.0"++ "react": "^18.3.1",++ "supertest": "^7.1.0",++ "tsx": "^4.16.2",++ "zod": "^3.23.8"}}diff --cc scripts/init.jsindex 3f5b4e55,3851c9d8..71dd18ff--- a/scripts/init.js+++ b/scripts/init.js@@@ -24,6 -23,7 +23,8 @@@ import figlet from 'figlet'import boxen from 'boxen';import gradient from 'gradient-string';import { isSilentMode } from './modules/utils.js';+ import { convertAllCursorRulesToRooRules } from './modules/rule-transformer.js';++import { execSync } from 'child_process';const __filename = fileURLToPath(import.meta.url);const __dirname = dirname(__filename);@@@ -404,14 -371,8 +369,13 @@@ async function initializeProject(optionconsole.log('SKIPPING PROMPTS - Using defaults or provided values');}- // We no longer need these variables+ // Use provided options or defaults+ const projectName = options.name || 'task-master-project';+ const projectDescription =+ options.description || 'A project managed with Task Master AI';+ const projectVersion = options.version || '0.1.0';+ const authorName = options.author || 'Vibe coder';const dryRun = options.dryRun || false;- const skipInstall = options.skipInstall || false;const addAliases = options.aliases || false;if (dryRun) {@@@ -438,18 -387,10 +390,9 @@@};}- // Call createProjectStructure (no need for isInteractive flag)- createProjectStructure(- projectName,- projectDescription,- projectVersion,- authorName,- skipInstall,- addAliases,- dryRun // Pass dryRun- );- // Create structure using only necessary values- createProjectStructure(addAliases);++ createProjectStructure(addAliases, dryRun);} else {- // Prompting logic (only runs if skipPrompts is false)+ // Interactive logiclog('info', 'Required options not provided, proceeding with prompts.');const rl = readline.createInterface({input: process.stdin,@@@ -508,12 -425,12 +427,11 @@@if (!shouldContinue) {log('info', 'Project initialization cancelled by user');- process.exit(0); // Exit if cancelled- return; // Added return for clarity+ process.exit(0);+ return;}- // Still respect dryRun if passed initially even when promptingconst dryRun = options.dryRun || false;- const skipInstall = options.skipInstall || false;if (dryRun) {log('info', 'DRY RUN MODE: No files will be modified');@@@ -539,20 -444,12 +445,12 @@@};}- // Call createProjectStructure (no need for isInteractive flag)- createProjectStructure(- projectName,- projectDescription,- projectVersion,- authorName,- skipInstall,- addAliasesPrompted,- dryRun // Pass dryRun- );+ // Create structure using only necessary values- createProjectStructure(addAliasesPrompted);++ createProjectStructure(addAliasesPrompted, dryRun);} catch (error) {rl.close();- log('error', `Error during prompting: ${error.message}`); // Use log function- process.exit(1); // Exit on error during prompts+ log('error', `Error during initialization process: ${error.message}`);+ process.exit(1);}}}@@@ -567,15 -464,7 +465,7 @@@ function promptQuestion(rl, question)}// Function to create the project structure- function createProjectStructure(- projectName,- projectDescription,- projectVersion,- authorName,- skipInstall,- addAliases,- dryRun- ) {-function createProjectStructure(addAliases) {++function createProjectStructure(addAliases, dryRun) {const targetDir = process.cwd();log('info', `Initializing project in ${targetDir}`);@@@ -770,93 -562,11 +572,75 @@@replacements);- // Add shell aliases if requested- if (addAliases) {- addShellAliases();+ // Initialize git repository if git is available+ try {+ if (!fs.existsSync(path.join(targetDir, '.git'))) {+ log('info', 'Initializing git repository...');+ execSync('git init', { stdio: 'ignore' });+ log('success', 'Git repository initialized');+ }+ } catch (error) {+ log('warn', 'Git not available, skipping repository initialization');}+ // Run npm install automatically+ const npmInstallOptions = {+ cwd: targetDir,+ // Default to inherit for interactive CLI, change if silent+ stdio: 'inherit'+ };++ if (isSilentMode()) {+ // If silent (MCP mode), suppress npm install output+ npmInstallOptions.stdio = 'ignore';+ log('info', 'Running npm install silently...'); // Log our own message+ } else {+ // Interactive mode, show the boxen message+ console.log(+ boxen(chalk.cyan('Installing dependencies...'), {+ padding: 0.5,+ margin: 0.5,+ borderStyle: 'round',+ borderColor: 'blue'+ })+ );+ }+- try {- if (!skipInstall) {- // Use the determined options- execSync('npm install', npmInstallOptions);- log('success', 'Dependencies installed successfully!');- } else {- log('info', 'Dependencies installation skipped');- }- } catch (error) {- log('error', 'Failed to install dependencies:', error.message);- // Add more detail if silent, as the user won't see npm's error directly- if (isSilentMode()) {- log('error', 'Check npm logs or run "npm install" manually for details.');- } else {- log('error', 'Please run npm install manually');- }- }-+ // === Add Model Configuration Step ===+ if (!isSilentMode() && !dryRun) {+ console.log(+ boxen(chalk.cyan('Configuring AI Models...'), {+ padding: 0.5,+ margin: { top: 1, bottom: 0.5 },+ borderStyle: 'round',+ borderColor: 'blue'+ })+ );+ log(+ 'info',+ 'Running interactive model setup. Please select your preferred AI models.'+ );+ try {+ execSync('npx task-master models --setup', {+ stdio: 'inherit',+ cwd: targetDir+ });+ log('success', 'AI Models configured.');+ } catch (error) {+ log('error', 'Failed to configure AI models:', error.message);+ log('warn', 'You may need to run "task-master models --setup" manually.');+ }+ } else if (isSilentMode() && !dryRun) {+ log('info', 'Skipping interactive model setup in silent (MCP) mode.');+ log(+ 'warn',+ 'Please configure AI models using "task-master models --set-..." or the "models" MCP tool.'+ );+ } else if (dryRun) {+ log('info', 'DRY RUN: Skipping interactive model setup.');+ }+ // ====================================+// Display success messageif (!isSilentMode()) {console.log(diff --cc scripts/modules/commands.jsindex c558c529,c83224c0..ff614dc3--- a/scripts/modules/commands.js+++ b/scripts/modules/commands.js@@@ -10,9 -10,9 +10,8 @@@ import boxen from 'boxen'import fs from 'fs';import https from 'https';import inquirer from 'inquirer';- import Table from 'cli-table3';-import ora from 'ora';-import { CONFIG, log, readJSON, writeJSON } from './utils.js';+import { log, readJSON } from './utils.js';import {parsePRD,updateTasks,@@@ -40,16 -40,6 +39,16 @@@ importfixDependenciesCommand} from './dependency-manager.js';+import {+ isApiKeySet,+ getDebugFlag,+ getConfig,+ writeConfig,- ConfigurationError, // Import the custom error- getAllProviders,- isConfigFilePresent++ ConfigurationError,++ isConfigFilePresent,++ getAvailableModels+} from './config-manager.js';+import {displayBanner,displayHelp,@@@ -66,380 -53,6 +65,407 @@@} from './ui.js';import { initializeProject } from '../init.js';+import {+ getModelConfiguration,+ getAvailableModelsList,+ setModel,+ getApiKeyStatusReport- } from './task-manager/models.js'; // Import new core functions- import { findProjectRoot } from './utils.js'; // Import findProjectRoot++} from './task-manager/models.js';++import { findProjectRoot } from './utils.js';++/**+ * Runs the interactive setup process for model configuration.+ * @param {string|null} projectRoot - The resolved project root directory.+ */+async function runInteractiveSetup(projectRoot) {+ if (!projectRoot) {+ console.error(+ chalk.red(+ 'Error: Could not determine project root for interactive setup.'+ )+ );+ process.exit(1);+ }+++ const currentConfigResult = await getModelConfiguration({ projectRoot });++ const currentModels = currentConfigResult.success++ ? currentConfigResult.data.activeModels++ : { main: null, research: null, fallback: null };++ // Handle potential config load failure gracefully for the setup flow++ if (++ !currentConfigResult.success &&++ currentConfigResult.error?.code !== 'CONFIG_MISSING'++ ) {++ console.warn(++ chalk.yellow(++ `Warning: Could not load current model configuration: ${currentConfigResult.error?.message || 'Unknown error'}. Proceeding with defaults.`++ )++ );++ }+++ // Helper function to fetch OpenRouter models (duplicated for CLI context)+ function fetchOpenRouterModelsCLI() {+ return new Promise((resolve) => {+ const options = {+ hostname: 'openrouter.ai',+ path: '/api/v1/models',+ method: 'GET',+ headers: {+ Accept: 'application/json'+ }+ };++ const req = https.request(options, (res) => {+ let data = '';+ res.on('data', (chunk) => {+ data += chunk;+ });+ res.on('end', () => {+ if (res.statusCode === 200) {+ try {+ const parsedData = JSON.parse(data);+ resolve(parsedData.data || []); // Return the array of models+ } catch (e) {+ console.error('Error parsing OpenRouter response:', e);+ resolve(null); // Indicate failure+ }+ } else {+ console.error(+ `OpenRouter API request failed with status code: ${res.statusCode}`+ );+ resolve(null); // Indicate failure+ }+ });+ });++ req.on('error', (e) => {+ console.error('Error fetching OpenRouter models:', e);+ resolve(null); // Indicate failure+ });+ req.end();+ });+ }+- // Get available models - pass projectRoot- const availableModelsResult = await getAvailableModelsList({ projectRoot });- if (!availableModelsResult.success) {- console.error(- chalk.red(- `Error fetching available models: ${availableModelsResult.error?.message || 'Unknown error'}`- )- );- process.exit(1);- }- const availableModelsForSetup = availableModelsResult.data.models;-- // Get current config - pass projectRoot- const currentConfigResult = await getModelConfiguration({ projectRoot });- // Allow setup even if current config fails (might be first time run)- const currentModels = currentConfigResult.success- ? currentConfigResult.data?.activeModels- : { main: {}, research: {}, fallback: {} };- if (- !currentConfigResult.success &&- currentConfigResult.error?.code !== 'CONFIG_MISSING'- ) {- // Log error if it's not just a missing file- console.error(- chalk.red(- `Warning: Could not fetch current configuration: ${currentConfigResult.error?.message || 'Unknown error'}`- )- );- }-- console.log(chalk.cyan.bold('\nInteractive Model Setup:'));-+ // Helper to get choices and default index for a role+ const getPromptData = (role, allowNone = false) => {- // Filter models FIRST based on allowed roles- const filteredModels = availableModelsForSetup- .filter((model) => !model.modelId.startsWith('[')) // Filter out placeholders- .filter((model) => model.allowedRoles?.includes(role)); // Filter by allowed role-- // THEN map the filtered models to the choice format- const roleChoices = filteredModels.map((model) => ({- name: `${model.provider} / ${model.modelId}`,- value: { provider: model.provider, id: model.modelId }- }));-- let choices = []; // Initialize choices array- let defaultIndex = -1;- const currentModelId = currentModels[role]?.modelId;-- // --- Add Custom/Cancel Options --- //++ const currentModel = currentModels[role]; // Use the fetched data++ const allModelsRaw = getAvailableModels(); // Get all available models++++ // Manually group models by provider++ const modelsByProvider = allModelsRaw.reduce((acc, model) => {++ if (!acc[model.provider]) {++ acc[model.provider] = [];++ }++ acc[model.provider].push(model);++ return acc;++ }, {});++++ const cancelOption = { name: 'βΉ Cancel Model Setup', value: '__CANCEL__' }; // Symbol updated++ const noChangeOption = currentModel?.modelId++ ? {++ name: `β No change to current ${role} model (${currentModel.modelId})`, // Symbol updated++ value: '__NO_CHANGE__'++ }++ : null;+++ const customOpenRouterOption = {- name: 'OpenRouter (Enter Custom ID)',++ name: '* Custom OpenRouter model', // Symbol updated+ value: '__CUSTOM_OPENROUTER__'+ };- const customOllamaOption = {- name: 'Ollama (Enter Custom ID)',- value: '__CUSTOM_OLLAMA__'- };- const cancelOption = { name: 'Cancel setup', value: '__CANCEL__' };+- // Find the index of the current model within the role-specific choices *before* adding custom options- const currentChoiceIndex = roleChoices.findIndex(- (c) => c.value.id === currentModelId- );++ let choices = [];++ let defaultIndex = 0; // Default to 'Cancel'++++ // Filter and format models allowed for this role using the manually grouped data++ const roleChoices = Object.entries(modelsByProvider)++ .map(([provider, models]) => {++ const providerModels = models++ .filter((m) => m.allowed_roles.includes(role))++ .map((m) => ({++ name: `${provider} / ${m.id} ${++ m.cost_per_1m_tokens++ ? chalk.gray(++ `($${m.cost_per_1m_tokens.input.toFixed(2)} input | $${m.cost_per_1m_tokens.output.toFixed(2)} output)`++ )++ : ''++ }`,++ value: { id: m.id, provider },++ short: `${provider}/${m.id}`++ }));++ if (providerModels.length > 0) {++ return [...providerModels];++ }++ return null;++ })++ .filter(Boolean)++ .flat();++++ // Find the index of the currently selected model for setting the default++ let currentChoiceIndex = -1;++ if (currentModel?.modelId && currentModel?.provider) {++ currentChoiceIndex = roleChoices.findIndex(++ (choice) =>++ typeof choice.value === 'object' &&++ choice.value.id === currentModel.modelId &&++ choice.value.provider === currentModel.provider++ );++ }++++ // Construct final choices list based on whether 'None' is allowed++ const commonPrefix = [cancelOption];++ if (noChangeOption) {++ commonPrefix.push(noChangeOption); // Add if it exists++ }++ commonPrefix.push(customOpenRouterOption);++++ let prefixLength = commonPrefix.length; // Initial prefix length++ if (allowNone) {+ choices = [- cancelOption,- customOpenRouterOption,- customOllamaOption,++ ...commonPrefix,+ new inquirer.Separator(),- { name: 'None (disable)', value: null },++ { name: 'βͺ None (disable)', value: null }, // Symbol updated+ new inquirer.Separator(),+ ...roleChoices+ ];- // Adjust default index for extra options (Cancel, CustomOR, CustomOllama, Sep1, None, Sep2)- defaultIndex = currentChoiceIndex !== -1 ? currentChoiceIndex + 6 : 4; // Default to 'None' if no current model matched++ // Adjust default index: Prefix + Sep1 + None + Sep2 (+3)++ const noneOptionIndex = prefixLength + 1;++ defaultIndex =++ currentChoiceIndex !== -1++ ? currentChoiceIndex + prefixLength + 3 // Offset by prefix and separators++ : noneOptionIndex; // Default to 'None' if no current model matched+ } else {+ choices = [- cancelOption,- customOpenRouterOption,- customOllamaOption,++ ...commonPrefix,+ new inquirer.Separator(),- ...roleChoices++ ...roleChoices,++ new inquirer.Separator()+ ];- // Adjust default index for extra options (Cancel, CustomOR, CustomOllama, Sep)- defaultIndex = currentChoiceIndex !== -1 ? currentChoiceIndex + 4 : 0; // Default to 'Cancel' if no current model matched++ // Adjust default index: Prefix + Sep (+1)++ defaultIndex =++ currentChoiceIndex !== -1++ ? currentChoiceIndex + prefixLength + 1 // Offset by prefix and separator++ : noChangeOption++ ? 1++ : 0; // Default to 'No Change' if present, else 'Cancel'+ }++ // Ensure defaultIndex is valid within the final choices array length+ if (defaultIndex < 0 || defaultIndex >= choices.length) {+ // If default calculation failed or pointed outside bounds, reset intelligently+ defaultIndex = 0; // Default to 'Cancel'+ console.warn(+ `Warning: Could not determine default model for role '${role}'. Defaulting to 'Cancel'.`+ ); // Add warning+ }++ return { choices, default: defaultIndex };+ };++ // --- Generate choices using the helper ---+ const mainPromptData = getPromptData('main');+ const researchPromptData = getPromptData('research');+ const fallbackPromptData = getPromptData('fallback', true); // Allow 'None' for fallback++ const answers = await inquirer.prompt([+ {+ type: 'list',+ name: 'mainModel',+ message: 'Select the main model for generation/updates:',+ choices: mainPromptData.choices,+ default: mainPromptData.default+ },+ {+ type: 'list',+ name: 'researchModel',+ message: 'Select the research model:',+ choices: researchPromptData.choices,+ default: researchPromptData.default,+ when: (ans) => ans.mainModel !== '__CANCEL__'+ },+ {+ type: 'list',+ name: 'fallbackModel',+ message: 'Select the fallback model (optional):',+ choices: fallbackPromptData.choices,+ default: fallbackPromptData.default,+ when: (ans) =>+ ans.mainModel !== '__CANCEL__' && ans.researchModel !== '__CANCEL__'+ }+ ]);++ let setupSuccess = true;+ let setupConfigModified = false;+ const coreOptionsSetup = { projectRoot }; // Pass root for setup actions++ // Helper to handle setting a model (including custom)+ async function handleSetModel(role, selectedValue, currentModelId) {+ if (selectedValue === '__CANCEL__') {+ console.log(+ chalk.yellow(`\nSetup canceled during ${role} model selection.`)+ );++ setupSuccess = false; // Also mark success as false on cancel+ return false; // Indicate cancellation+ }+++ // Handle the new 'No Change' option++ if (selectedValue === '__NO_CHANGE__') {++ console.log(chalk.gray(`No change selected for ${role} model.`));++ return true; // Indicate success, continue setup++ }+++ let modelIdToSet = null;+ let providerHint = null;+ let isCustomSelection = false;++ if (selectedValue === '__CUSTOM_OPENROUTER__') {+ isCustomSelection = true;+ const { customId } = await inquirer.prompt([+ {+ type: 'input',+ name: 'customId',+ message: `Enter the custom OpenRouter Model ID for the ${role} role:`+ }+ ]);+ if (!customId) {+ console.log(chalk.yellow('No custom ID entered. Skipping role.'));+ return true; // Continue setup, but don't set this role+ }+ modelIdToSet = customId;+ providerHint = 'openrouter';+ // Validate against live OpenRouter list+ const openRouterModels = await fetchOpenRouterModelsCLI();+ if (+ !openRouterModels ||+ !openRouterModels.some((m) => m.id === modelIdToSet)+ ) {+ console.error(+ chalk.red(+ `Error: Model ID "${modelIdToSet}" not found in the live OpenRouter model list. Please check the ID.`+ )+ );+ setupSuccess = false;+ return true; // Continue setup, but mark as failed+ }- } else if (selectedValue === '__CUSTOM_OLLAMA__') {- isCustomSelection = true;- const { customId } = await inquirer.prompt([- {- type: 'input',- name: 'customId',- message: `Enter the custom Ollama Model ID for the ${role} role:`- }- ]);- if (!customId) {- console.log(chalk.yellow('No custom ID entered. Skipping role.'));- return true;- }- modelIdToSet = customId;- providerHint = 'ollama';+ } else if (+ selectedValue &&+ typeof selectedValue === 'object' &&+ selectedValue.id+ ) {+ // Standard model selected from list+ modelIdToSet = selectedValue.id;+ providerHint = selectedValue.provider; // Provider is known+ } else if (selectedValue === null && role === 'fallback') {+ // Handle disabling fallback+ modelIdToSet = null;+ providerHint = null;+ } else if (selectedValue) {+ console.error(+ chalk.red(+ `Internal Error: Unexpected selection value for ${role}: ${JSON.stringify(selectedValue)}`+ )+ );+ setupSuccess = false;+ return true;+ }++ // Only proceed if there's a change to be made+ if (modelIdToSet !== currentModelId) {+ if (modelIdToSet) {+ // Set a specific model (standard or custom)+ const result = await setModel(role, modelIdToSet, {+ ...coreOptionsSetup,+ providerHint // Pass the hint+ });+ if (result.success) {+ console.log(+ chalk.blue(+ `Set ${role} model: ${result.data.provider} / ${result.data.modelId}`+ )+ );+ if (result.data.warning) {+ // Display warning if returned by setModel+ console.log(chalk.yellow(result.data.warning));+ }+ setupConfigModified = true;+ } else {+ console.error(+ chalk.red(+ `Error setting ${role} model: ${result.error?.message || 'Unknown'}`+ )+ );+ setupSuccess = false;+ }+ } else if (role === 'fallback') {+ // Disable fallback model+ const currentCfg = getConfig(projectRoot);+ if (currentCfg?.models?.fallback?.modelId) {+ // Check if it was actually set before clearing+ currentCfg.models.fallback = {+ ...currentCfg.models.fallback,+ provider: undefined,+ modelId: undefined+ };+ if (writeConfig(currentCfg, projectRoot)) {+ console.log(chalk.blue('Fallback model disabled.'));+ setupConfigModified = true;+ } else {+ console.error(+ chalk.red('Failed to disable fallback model in config file.')+ );+ setupSuccess = false;+ }+ } else {+ console.log(chalk.blue('Fallback model was already disabled.'));+ }+ }+ }+ return true; // Indicate setup should continue+ }++ // Process answers using the handler+ if (+ !(await handleSetModel(+ 'main',+ answers.mainModel,- currentModels.main?.modelId++ currentModels.main?.modelId // <--- Now 'currentModels' is defined+ ))- )- return;++ ) {++ return false; // Explicitly return false if cancelled++ }+ if (+ !(await handleSetModel(+ 'research',+ answers.researchModel,- currentModels.research?.modelId++ currentModels.research?.modelId // <--- Now 'currentModels' is defined+ ))- )- return;++ ) {++ return false; // Explicitly return false if cancelled++ }+ if (+ !(await handleSetModel(+ 'fallback',+ answers.fallbackModel,- currentModels.fallback?.modelId++ currentModels.fallback?.modelId // <--- Now 'currentModels' is defined+ ))- )- return;++ ) {++ return false; // Explicitly return false if cancelled++ }++ if (setupSuccess && setupConfigModified) {+ console.log(chalk.green.bold('\nModel setup complete!'));+ } else if (setupSuccess && !setupConfigModified) {+ console.log(chalk.yellow('\nNo changes made to model configuration.'));+ } else if (!setupSuccess) {+ console.error(+ chalk.red(+ '\nErrors occurred during model selection. Please review and try again.'+ )+ );+ }++ return true; // Indicate setup flow completed (not cancelled)+ // Let the main command flow continue to display results+}/*** Configure and register CLI commands@@@ -1781,9 -1387,9 +1819,10 @@@ function registerCommands(programInstanprogramInstance.command('remove-task').description('Remove one or more tasks or subtasks permanently')++ .description('Remove one or more tasks or subtasks permanently').option(- '-i, --id <id>',- 'ID(s) of the task(s) or subtask(s) to remove (e.g., "5" or "5.2" or "5,6,7")'+ '-i, --id <ids>',+ 'ID(s) of the task(s) or subtask(s) to remove (e.g., "5", "5.2", or "5,6.1,7")').option('-f, --file <file>', 'Path to the tasks file', 'tasks/tasks.json').option('-y, --yes', 'Skip confirmation prompt', false)@@@ -1985,16 -1570,11 +2024,21 @@@}));+ process.exit(1); // Exit with error code if any part failed+ }++ // Log any initially non-existent IDs again for clarity+ if (nonExistentIds.length > 0) {+ console.warn(+ chalk.yellow(+ `Note: The following IDs were not found initially and were skipped: ${nonExistentIds.join(', ')}`+ )+ );++ // Exit with error if any removals failed+ if (successfulRemovals.length === 0) {+ process.exit(1);+ }}} catch (error) {console.error(@@@ -2035,200 -1615,7 +2079,227 @@@}});- // Add more commands as needed...+ // models command+ programInstance+ .command('models')+ .description('Manage AI model configurations')+ .option(+ '--set-main <model_id>',+ 'Set the primary model for task generation/updates'+ )+ .option(+ '--set-research <model_id>',+ 'Set the model for research-backed operations'+ )+ .option(+ '--set-fallback <model_id>',+ 'Set the model to use if the primary fails'+ )+ .option('--setup', 'Run interactive setup to configure models')+ .option(+ '--openrouter',+ 'Allow setting a custom OpenRouter model ID (use with --set-*) '+ )+ .option(+ '--ollama',+ 'Allow setting a custom Ollama model ID (use with --set-*) '+ )+ .addHelpText(+ 'after',+ `+Examples:+ $ task-master models # View current configuration+ $ task-master models --set-main gpt-4o # Set main model (provider inferred)+ $ task-master models --set-research sonar-pro # Set research model+ $ task-master models --set-fallback claude-3-5-sonnet-20241022 # Set fallback+ $ task-master models --set-main my-custom-model --ollama # Set custom Ollama model for main role+ $ task-master models --set-main some/other-model --openrouter # Set custom OpenRouter model for main role+ $ task-master models --setup # Run interactive setup`+ )+ .action(async (options) => {+ const projectRoot = findProjectRoot(); // Find project root for context++ // Validate flags: cannot use both --openrouter and --ollama simultaneously+ if (options.openrouter && options.ollama) {+ console.error(+ chalk.red(+ 'Error: Cannot use both --openrouter and --ollama flags simultaneously.'+ )+ );+ process.exit(1);+ }+- // --- Handle Interactive Setup ---- if (options.setup) {- // Assume runInteractiveSetup is defined elsewhere in this file- await runInteractiveSetup(projectRoot);- // No return here, flow continues to display results below++ // Determine the primary action based on flags++ const isSetup = options.setup;++ const isSetOperation =++ options.setMain || options.setResearch || options.setFallback;++++ // --- Execute Action ---++++ if (isSetup) {++ // Action 1: Run Interactive Setup++ console.log(chalk.blue('Starting interactive model setup...')); // Added feedback++ try {++ await runInteractiveSetup(projectRoot);++ // runInteractiveSetup logs its own completion/error messages++ } catch (setupError) {++ console.error(++ chalk.red('\\nInteractive setup failed unexpectedly:'),++ setupError.message++ );++ }++ // --- IMPORTANT: Exit after setup ---++ return; // Stop execution here+ }- // --- Handle Direct Set Operations (only if not running setup) ---- else {- let modelUpdated = false;++++ if (isSetOperation) {++ // Action 2: Perform Direct Set Operations++ let updateOccurred = false; // Track if any update actually happened+++ if (options.setMain) {+ const result = await setModel('main', options.setMain, {+ projectRoot,+ providerHint: options.openrouter+ ? 'openrouter'+ : options.ollama+ ? 'ollama'+ : undefined+ });+ if (result.success) {+ console.log(chalk.green(`β ${result.data.message}`));- if (result.data.warning) {++ if (result.data.warning)+ console.log(chalk.yellow(result.data.warning));- }- modelUpdated = true;++ updateOccurred = true;+ } else {- console.error(chalk.red(`β Error: ${result.error.message}`));- // Optionally exit or provide more specific feedback++ console.error(++ chalk.red(`β Error setting main model: ${result.error.message}`)++ );+ }+ }+ if (options.setResearch) {+ const result = await setModel('research', options.setResearch, {+ projectRoot,+ providerHint: options.openrouter+ ? 'openrouter'+ : options.ollama+ ? 'ollama'+ : undefined+ });+ if (result.success) {+ console.log(chalk.green(`β ${result.data.message}`));- if (result.data.warning) {++ if (result.data.warning)+ console.log(chalk.yellow(result.data.warning));- }- modelUpdated = true;++ updateOccurred = true;+ } else {- console.error(chalk.red(`β Error: ${result.error.message}`));++ console.error(++ chalk.red(++ `β Error setting research model: ${result.error.message}`++ )++ );+ }+ }+ if (options.setFallback) {+ const result = await setModel('fallback', options.setFallback, {+ projectRoot,+ providerHint: options.openrouter+ ? 'openrouter'+ : options.ollama+ ? 'ollama'+ : undefined+ });+ if (result.success) {+ console.log(chalk.green(`β ${result.data.message}`));- if (result.data.warning) {++ if (result.data.warning)+ console.log(chalk.yellow(result.data.warning));- }- modelUpdated = true;++ updateOccurred = true;+ } else {- console.error(chalk.red(`β Error: ${result.error.message}`));++ console.error(++ chalk.red(++ `β Error setting fallback model: ${result.error.message}`++ )++ );+ }+ }- // If only set flags were used, we still proceed to display the results++++ // Optional: Add a final confirmation if any update occurred++ if (updateOccurred) {++ console.log(chalk.blue('\nModel configuration updated.'));++ } else {++ console.log(++ chalk.yellow(++ '\nNo model configuration changes were made (or errors occurred).'++ )++ );++ }++++ // --- IMPORTANT: Exit after set operations ---++ return; // Stop execution here+ }- // --- Always Display Status After Setup or Set ---+++ // Action 3: Display Full Status (Only runs if no setup and no set flags)++ console.log(chalk.blue('Fetching current model configuration...')); // Added feedback+ const configResult = await getModelConfiguration({ projectRoot });- // Fetch available models *before* displaying config to use for formatting+ const availableResult = await getAvailableModelsList({ projectRoot });- const apiKeyStatusResult = await getApiKeyStatusReport({ projectRoot }); // Fetch API key status++ const apiKeyStatusResult = await getApiKeyStatusReport({ projectRoot });++ // 1. Display Active Models+ if (!configResult.success) {- // If config is missing AFTER setup attempt, it might indicate an issue saving.- if (options.setup && configResult.error?.code === 'CONFIG_MISSING') {- console.error(- chalk.red(- `β Error: Configuration file still missing after setup attempt. Check file permissions.`- )- );- } else {- console.error(- chalk.red(- `β Error fetching configuration: ${configResult.error.message}`- )- );- }- // Attempt to display other info even if config fails++ console.error(++ chalk.red(++ `β Error fetching configuration: ${configResult.error.message}`++ )++ );+ } else {- // Pass available models list for SWE score formatting+ displayModelConfiguration(+ configResult.data,+ availableResult.data?.models || []+ );+ }++ // 2. Display API Key Status+ if (apiKeyStatusResult.success) {+ displayApiKeyStatus(apiKeyStatusResult.data.report);+ } else {+ console.error(+ chalk.yellow(+ `β οΈ Warning: Could not display API Key status: ${apiKeyStatusResult.error.message}`+ )+ );+ }++ // 3. Display Other Available Models (Filtered)+ if (availableResult.success) {- // Filter out models that are already actively configured and placeholders+ const activeIds = configResult.success+ ? [+ configResult.data.activeModels.main.modelId,+ configResult.data.activeModels.research.modelId,+ configResult.data.activeModels.fallback?.modelId+ ].filter(Boolean)+ : [];+ const displayableAvailable = availableResult.data.models.filter(- (m) => !activeIds.includes(m.modelId) && !m.modelId.startsWith('[') // Exclude placeholders like [ollama-any]++ (m) => !activeIds.includes(m.modelId) && !m.modelId.startsWith('[')+ );- displayAvailableModels(displayableAvailable); // This function now includes the "Next Steps" box++ displayAvailableModels(displayableAvailable);+ } else {+ console.error(+ chalk.yellow(+ `β οΈ Warning: Could not display available models: ${availableResult.error.message}`+ )+ );+ }++ // 4. Conditional Hint if Config File is Missing- const configExists = isConfigFilePresent(projectRoot); // Re-check after potential setup/writes++ const configExists = isConfigFilePresent(projectRoot);+ if (!configExists) {+ console.log(+ chalk.yellow(+ "\\nHint: Run 'task-master models --setup' to create or update your configuration."+ )+ );+ }++ // --- IMPORTANT: Exit after displaying status ---++ return; // Stop execution here+ });return programInstance;}diff --cc scripts/modules/dependency-manager.jsindex 55ecca9b,8ce4565a..410cbe0d--- a/scripts/modules/dependency-manager.js+++ b/scripts/modules/dependency-manager.js@@@ -353,11 -361,11 +355,13 @@@ function isCircularDependency(tasks, ta// Find the task or subtasklet task = null;++ let parentIdForSubtask = null;// Check if this is a subtask reference (e.g., "1.2")if (taskIdStr.includes('.')) {const [parentId, subtaskId] = taskIdStr.split('.').map(Number);const parentTask = tasks.find((t) => t.id === parentId);++ parentIdForSubtask = parentId; // Store parent ID if it's a subtaskif (parentTask && parentTask.subtasks) {task = parentTask.subtasks.find((st) => st.id === subtaskId);@@@ -377,10 -385,10 +381,18 @@@}// Check each dependency recursively-- const newChain = [...chain, taskId];-- return task.dependencies.some((depId) =>-- isCircularDependency(tasks, depId, newChain)-- );++ const newChain = [...chain, taskIdStr]; // Use taskIdStr for consistency++ return task.dependencies.some((depId) => {++ let normalizedDepId = String(depId);++ // Normalize relative subtask dependencies++ if (typeof depId === 'number' && parentIdForSubtask !== null) {++ // If the current task is a subtask AND the dependency is a number,++ // assume it refers to a sibling subtask.++ normalizedDepId = `${parentIdForSubtask}.${depId}`;++ }++ // Pass the normalized ID to the recursive call++ return isCircularDependency(tasks, normalizedDepId, newChain);++ });}/**@@@ -579,118 -587,118 +591,43 @@@ async function validateDependenciesComm`Analyzing dependencies for ${taskCount} tasks and ${subtaskCount} subtasks...`);-- // Track validation statistics-- const stats = {-- nonExistentDependenciesRemoved: 0,-- selfDependenciesRemoved: 0,-- tasksFixed: 0,-- subtasksFixed: 0-- };---- // Create a custom logger instead of reassigning the imported log function-- const warnings = [];-- const customLogger = function (level, ...args) {-- if (level === 'warn') {-- warnings.push(args.join(' '));---- // Count the type of fix based on the warning message-- const msg = args.join(' ');-- if (msg.includes('self-dependency')) {-- stats.selfDependenciesRemoved++;-- } else if (msg.includes('invalid')) {-- stats.nonExistentDependenciesRemoved++;-- }---- // Count if it's a task or subtask being fixed-- if (msg.includes('from subtask')) {-- stats.subtasksFixed++;-- } else if (msg.includes('from task')) {-- stats.tasksFixed++;-- }-- }-- // Call the original log function-- return log(level, ...args);-- };---- // Run validation with custom loggertry {-- // Temporarily save validateTaskDependencies function with normal log-- const originalValidateTaskDependencies = validateTaskDependencies;---- // Create patched version that uses customLogger-- const patchedValidateTaskDependencies = (tasks, tasksPath) => {-- // Temporarily redirect log calls in this scope-- const originalLog = log;-- const logProxy = function (...args) {-- return customLogger(...args);-- };---- // Call the original function in a context where log calls are intercepted-- const result = (() => {-- // Use Function.prototype.bind to create a new function that has logProxy available-- // Pass isCircularDependency explicitly to make it available-- return Function(-- 'tasks',-- 'tasksPath',-- 'log',-- 'customLogger',-- 'isCircularDependency',-- 'taskExists',-- `return (${originalValidateTaskDependencies.toString()})(tasks, tasksPath);`-- )(-- tasks,-- tasksPath,-- logProxy,-- customLogger,-- isCircularDependency,-- taskExists-- );-- })();---- return result;-- };++ // Directly call the validation function++ const validationResult = validateTaskDependencies(data.tasks);-- const changesDetected = patchedValidateTaskDependencies(-- data.tasks,-- tasksPath-- );++ if (!validationResult.valid) {++ log(++ 'error',++ `Dependency validation failed. Found ${validationResult.issues.length} issue(s):`++ );++ validationResult.issues.forEach((issue) => {++ let errorMsg = ` [${issue.type.toUpperCase()}] Task ${issue.taskId}: ${issue.message}`;++ if (issue.dependencyId) {++ errorMsg += ` (Dependency: ${issue.dependencyId})`;++ }++ log('error', errorMsg); // Log each issue as an error++ });-- // Create a detailed report-- if (changesDetected) {-- log('success', 'Invalid dependencies were removed from tasks.json');++ // Optionally exit if validation fails, depending on desired behavior++ // process.exit(1); // Uncomment if validation failure should stop the process-- // Show detailed stats in a nice box - only if not in silent mode++ // Display summary box even on failure, showing issues foundif (!isSilentMode()) {console.log(boxen(-- chalk.green(`Dependency Validation Results:\n\n`) +++ chalk.red(`Dependency Validation FAILED\n\n`) +`${chalk.cyan('Tasks checked:')} ${taskCount}\n` +`${chalk.cyan('Subtasks checked:')} ${subtaskCount}\n` +-- `${chalk.cyan('Non-existent dependencies removed:')} ${stats.nonExistentDependenciesRemoved}\n` +-- `${chalk.cyan('Self-dependencies removed:')} ${stats.selfDependenciesRemoved}\n` +-- `${chalk.cyan('Tasks fixed:')} ${stats.tasksFixed}\n` +-- `${chalk.cyan('Subtasks fixed:')} ${stats.subtasksFixed}`,++ `${chalk.red('Issues found:')} ${validationResult.issues.length}`, // Display count from result{padding: 1,-- borderColor: 'green',++ borderColor: 'red',borderStyle: 'round',margin: { top: 1, bottom: 1 }}));---- // Show all warnings in a collapsible list if there are many-- if (warnings.length > 0) {-- console.log(chalk.yellow('\nDetailed fixes:'));-- warnings.forEach((warning) => {-- console.log(` ${warning}`);-- });-- }}---- // Regenerate task files to reflect the changes-- await generateTaskFiles(tasksPath, path.dirname(tasksPath));-- log('info', 'Task files regenerated to reflect dependency changes');} else {log('success',diff --cc scripts/modules/supported-models.jsonindex 8305153b,00000000..7e57d01emode 100644,000000..100644--- a/scripts/modules/supported-models.json+++ b/scripts/modules/supported-models.json@@@ -1,437 -1,0 +1,438 @@@+{+ "anthropic": [+ {+ "id": "claude-3-7-sonnet-20250219",+ "swe_score": 0.623,+ "cost_per_1m_tokens": { "input": 3.0, "output": 15.0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 120000+ },+ {+ "id": "claude-3-5-sonnet-20241022",+ "swe_score": 0.49,+ "cost_per_1m_tokens": { "input": 3.0, "output": 15.0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 64000+ },+ {+ "id": "claude-3-5-haiku-20241022",+ "swe_score": 0.406,+ "cost_per_1m_tokens": { "input": 0.8, "output": 4.0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 64000+ },+ {+ "id": "claude-3-opus-20240229",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 15, "output": 75 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 64000+ }+ ],+ "openai": [+ {+ "id": "gpt-4o",+ "swe_score": 0.332,+ "cost_per_1m_tokens": { "input": 2.5, "output": 10.0 },- "allowed_roles": ["main", "fallback"]++ "allowed_roles": ["main", "fallback"],++ "max_tokens": 16384+ },+ {+ "id": "o1",+ "swe_score": 0.489,+ "cost_per_1m_tokens": { "input": 15.0, "output": 60.0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "o3",+ "swe_score": 0.5,+ "cost_per_1m_tokens": { "input": 10.0, "output": 40.0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "o3-mini",+ "swe_score": 0.493,+ "cost_per_1m_tokens": { "input": 1.1, "output": 4.4 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000+ },+ {+ "id": "o4-mini",+ "swe_score": 0.45,+ "cost_per_1m_tokens": { "input": 1.1, "output": 4.4 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "o1-mini",+ "swe_score": 0.4,+ "cost_per_1m_tokens": { "input": 1.1, "output": 4.4 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "o1-pro",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 150.0, "output": 600.0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gpt-4-5-preview",+ "swe_score": 0.38,+ "cost_per_1m_tokens": { "input": 75.0, "output": 150.0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gpt-4-1-mini",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.4, "output": 1.6 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gpt-4-1-nano",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.1, "output": 0.4 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gpt-4o-mini",+ "swe_score": 0.3,+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gpt-4o-search-preview",+ "swe_score": 0.33,+ "cost_per_1m_tokens": { "input": 2.5, "output": 10.0 },+ "allowed_roles": ["main", "fallback", "research"]+ },+ {+ "id": "gpt-4o-mini-search-preview",+ "swe_score": 0.3,+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback", "research"]+ }+ ],+ "google": [+ {+ "id": "gemini-2.5-pro-exp-03-25",+ "swe_score": 0.638,+ "cost_per_1m_tokens": null,+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gemini-2.5-flash-preview-04-17",+ "swe_score": 0,+ "cost_per_1m_tokens": null,+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gemini-2.0-flash",+ "swe_score": 0.754,+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gemini-2.0-flash-thinking-experimental",+ "swe_score": 0.754,+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gemini-2.0-pro",+ "swe_score": 0,+ "cost_per_1m_tokens": null,+ "allowed_roles": ["main", "fallback"]+ }+ ],+ "perplexity": [+ {+ "id": "sonar-pro",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 3, "output": 15 },+ "allowed_roles": ["research"],+ "max_tokens": 8700+ },+ {+ "id": "sonar",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 1, "output": 1 },+ "allowed_roles": ["research"],+ "max_tokens": 8700+ },+ {+ "id": "deep-research",+ "swe_score": 0.211,+ "cost_per_1m_tokens": { "input": 2, "output": 8 },+ "allowed_roles": ["research"],+ "max_tokens": 8700+ },+ {+ "id": "sonar-reasoning-pro",+ "swe_score": 0.211,+ "cost_per_1m_tokens": { "input": 2, "output": 8 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 8700+ },+ {+ "id": "sonar-reasoning",+ "swe_score": 0.211,+ "cost_per_1m_tokens": { "input": 1, "output": 5 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 8700+ }+ ],+ "xai": [+ {+ "id": "grok-3",+ "name": "Grok 3",+ "swe_score": null,+ "cost_per_1m_tokens": { "input": 3, "output": 15 },+ "allowed_roles": ["main", "fallback", "research"],+ "max_tokens": 131072+ },+ {+ "id": "grok-3-mini",+ "name": "Grok 3 Mini",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.3, "output": 0.5 },+ "allowed_roles": ["main", "fallback", "research"],+ "max_tokens": 131072+ },+ {+ "id": "grok-3-fast",+ "name": "Grok 3 Fast",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 5, "output": 25 },+ "allowed_roles": ["main", "fallback", "research"],+ "max_tokens": 131072+ },+ {+ "id": "grok-3-mini-fast",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.6, "output": 4 },+ "allowed_roles": ["main", "fallback", "research"],+ "max_tokens": 131072+ }+ ],+ "ollama": [+ {+ "id": "gemma3:27b",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "gemma3:12b",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "qwq",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "deepseek-r1",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "mistral-small3.1",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "llama3.3",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ },+ {+ "id": "phi4",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"]+ }+ ],+ "openrouter": [+ {+ "id": "google/gemini-2.0-flash-001",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.1, "output": 0.4 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 1048576+ },+ {+ "id": "google/gemini-2.5-pro-exp-03-25",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 1000000+ },+ {+ "id": "deepseek/deepseek-chat-v3-0324:free",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 163840+ },+ {+ "id": "deepseek/deepseek-chat-v3-0324",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.27, "output": 1.1 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 64000+ },+ {+ "id": "deepseek/deepseek-r1:free",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 163840+ },++ {+ "id": "microsoft/mai-ds-r1:free",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 163840+ },+ {+ "id": "google/gemini-2.5-pro-preview-03-25",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 1.25, "output": 10 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 65535+ },+ {+ "id": "google/gemini-2.5-flash-preview",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.15, "output": 0.6 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 65535+ },+ {+ "id": "google/gemini-2.5-flash-preview:thinking",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.15, "output": 3.5 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 65535+ },+ {+ "id": "openai/o3",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 10, "output": 40 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 200000+ },+ {+ "id": "openai/o4-mini",+ "swe_score": 0.45,+ "cost_per_1m_tokens": { "input": 1.1, "output": 4.4 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000+ },+ {+ "id": "openai/o4-mini-high",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 1.1, "output": 4.4 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000+ },+ {+ "id": "openai/o1-pro",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 150, "output": 600 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 100000+ },+ {+ "id": "meta-llama/llama-3.3-70b-instruct",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 120, "output": 600 },+ "allowed_roles": ["main", "fallback"],+ "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",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 40000+ },+ {+ "id": "qwen/qwq-32b",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 150, "output": 200 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 131072+ },+ {+ "id": "qwen/qwen-max",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 1.6, "output": 6.4 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 32768+ },+ {+ "id": "qwen/qwen-turbo",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.05, "output": 0.2 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 1000000+ },+ {+ "id": "mistralai/mistral-small-3.1-24b-instruct:free",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 96000+ },+ {+ "id": "mistralai/mistral-small-3.1-24b-instruct",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0.1, "output": 0.3 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 128000+ },+ {+ "id": "thudm/glm-4-32b:free",+ "swe_score": 0,+ "cost_per_1m_tokens": { "input": 0, "output": 0 },+ "allowed_roles": ["main", "fallback"],+ "max_tokens": 32768+ }+ ]+}diff --cc scripts/modules/task-manager/add-task.jsindex 05855767,00000000..4bc37930mode 100644,000000..100644--- a/scripts/modules/task-manager/add-task.js+++ b/scripts/modules/task-manager/add-task.js@@@ -1,351 -1,0 +1,363 @@@+import path from 'path';+import chalk from 'chalk';+import boxen from 'boxen';+import Table from 'cli-table3';+import { z } from 'zod';++import {+ displayBanner,+ getStatusWithColor,+ startLoadingIndicator,+ stopLoadingIndicator+} from '../ui.js';+import { log, readJSON, writeJSON, truncate } from '../utils.js';+import { generateObjectService } from '../ai-services-unified.js';+import { getDefaultPriority } from '../config-manager.js';+import generateTaskFiles from './generate-task-files.js';++// Define Zod schema for the expected AI output object+const AiTaskDataSchema = z.object({+ title: z.string().describe('Clear, concise title for the task'),+ description: z+ .string()+ .describe('A one or two sentence description of the task'),+ details: z+ .string()+ .describe('In-depth implementation details, considerations, and guidance'),+ testStrategy: z+ .string()+ .describe('Detailed approach for verifying task completion')+});++/**+ * Add a new task using AI+ * @param {string} tasksPath - Path to the tasks.json file+ * @param {string} prompt - Description of the task to add (required for AI-driven creation)+ * @param {Array} dependencies - Task dependencies+ * @param {string} priority - Task priority+ * @param {function} reportProgress - Function to report progress to MCP server (optional)+ * @param {Object} mcpLog - MCP logger object (optional)+ * @param {Object} session - Session object from MCP server (optional)+ * @param {string} outputFormat - Output format (text or json)+ * @param {Object} customEnv - Custom environment variables (optional) - Note: AI params override deprecated+ * @param {Object} manualTaskData - Manual task data (optional, for direct task creation without AI)+ * @param {boolean} useResearch - Whether to use the research model (passed to unified service)+ * @returns {number} The new task ID+ */+async function addTask(+ tasksPath,+ prompt,+ dependencies = [],+ priority = getDefaultPriority(), // Keep getter for default priority+ { reportProgress, mcpLog, session } = {},+ outputFormat = 'text',+ // customEnv = null, // Removed as AI param overrides are deprecated+ manualTaskData = null,+ useResearch = false // <-- Add useResearch parameter+) {+ let loadingIndicator = null;++ // Create custom reporter that checks for MCP log+ const report = (message, level = 'info') => {+ if (mcpLog) {+ mcpLog[level](message);+ } else if (outputFormat === 'text') {+ log(level, message);+ }+ };++ try {+ // Only display banner and UI elements for text output (CLI)+ if (outputFormat === 'text') {+ displayBanner();++ console.log(+ boxen(chalk.white.bold(`Creating New Task`), {+ padding: 1,+ borderColor: 'blue',+ borderStyle: 'round',+ margin: { top: 1, bottom: 1 }+ })+ );+ }++ // Read the existing tasks+ const data = readJSON(tasksPath);+ if (!data || !data.tasks) {+ report('Invalid or missing tasks.json.', 'error');+ throw new Error('Invalid or missing tasks.json.');+ }++ // Find the highest task ID to determine the next ID+ const highestId =+ data.tasks.length > 0 ? Math.max(...data.tasks.map((t) => t.id)) : 0;+ const newTaskId = highestId + 1;++ // Only show UI box for CLI mode+ if (outputFormat === 'text') {+ console.log(+ boxen(chalk.white.bold(`Creating New Task #${newTaskId}`), {+ padding: 1,+ borderColor: 'blue',+ borderStyle: 'round',+ margin: { top: 1, bottom: 1 }+ })+ );+ }++ // Validate dependencies before proceeding+ const invalidDeps = dependencies.filter((depId) => {+ // Ensure depId is parsed as a number for comparison+ const numDepId = parseInt(depId, 10);+ return isNaN(numDepId) || !data.tasks.some((t) => t.id === numDepId);+ });++ if (invalidDeps.length > 0) {+ report(+ `The following dependencies do not exist or are invalid: ${invalidDeps.join(', ')}`,+ 'warn'+ );+ report('Removing invalid dependencies...', 'info');+ dependencies = dependencies.filter(+ (depId) => !invalidDeps.includes(depId)+ );+ }+ // Ensure dependencies are numbers+ const numericDependencies = dependencies.map((dep) => parseInt(dep, 10));++ let taskData;++ // Check if manual task data is provided+ if (manualTaskData) {+ report('Using manually provided task data', 'info');+ taskData = manualTaskData;+ report('DEBUG: Taking MANUAL task data path.', 'debug');++ // Basic validation for manual data+ if (+ !taskData.title ||+ typeof taskData.title !== 'string' ||+ !taskData.description ||+ typeof taskData.description !== 'string'+ ) {+ throw new Error(+ 'Manual task data must include at least a title and description.'+ );+ }+ } else {+ report('DEBUG: Taking AI task generation path.', 'debug');+ // --- Refactored AI Interaction ---+ report('Generating task data with AI...', 'info');++ // Create context string for task creation prompt+ let contextTasks = '';+ if (numericDependencies.length > 0) {+ const dependentTasks = data.tasks.filter((t) =>+ numericDependencies.includes(t.id)+ );+ contextTasks = `\nThis task depends on the following tasks:\n${dependentTasks+ .map((t) => `- Task ${t.id}: ${t.title} - ${t.description}`)+ .join('\n')}`;+ } else {+ const recentTasks = [...data.tasks]+ .sort((a, b) => b.id - a.id)+ .slice(0, 3);+ if (recentTasks.length > 0) {+ contextTasks = `\nRecent tasks in the project:\n${recentTasks+ .map((t) => `- Task ${t.id}: ${t.title} - ${t.description}`)+ .join('\n')}`;+ }+ }++ // System Prompt+ const systemPrompt =+ "You are a helpful assistant that creates well-structured tasks for a software development project. Generate a single new task based on the user's description, adhering strictly to the provided JSON schema.";++ // Task Structure Description (for user prompt)+ const taskStructureDesc = `+ {+ "title": "Task title goes here",+ "description": "A concise one or two sentence description of what the task involves",+ "details": "In-depth implementation details, considerations, and guidance.",+ "testStrategy": "Detailed approach for verifying task completion."+ }`;++ // Add any manually provided details to the prompt for context+ let contextFromArgs = '';+ if (manualTaskData?.title)+ contextFromArgs += `\n- Suggested Title: "${manualTaskData.title}"`;+ if (manualTaskData?.description)+ contextFromArgs += `\n- Suggested Description: "${manualTaskData.description}"`;+ if (manualTaskData?.details)+ contextFromArgs += `\n- Additional Details Context: "${manualTaskData.details}"`;+ if (manualTaskData?.testStrategy)+ contextFromArgs += `\n- Additional Test Strategy Context: "${manualTaskData.testStrategy}"`;++ // User Prompt+ const userPrompt = `Create a comprehensive new task (Task #${newTaskId}) for a software development project based on this description: "${prompt}"++ ${contextTasks}+ ${contextFromArgs ? `\nConsider these additional details provided by the user:${contextFromArgs}` : ''}++ Return your answer as a single JSON object matching the schema precisely:+ ${taskStructureDesc}++ Make sure the details and test strategy are thorough and specific.`;++ // Start the loading indicator - only for text mode+ if (outputFormat === 'text') {+ loadingIndicator = startLoadingIndicator(+ `Generating new task with ${useResearch ? 'Research' : 'Main'} AI...`+ );+ }++ try {+ // Determine the service role based on the useResearch flag+ const serviceRole = useResearch ? 'research' : 'main';+++ report('DEBUG: Calling generateObjectService...', 'debug');+ // Call the unified AI service+ const aiGeneratedTaskData = await generateObjectService({+ role: serviceRole, // <-- Use the determined role+ session: session, // Pass session for API key resolution+ schema: AiTaskDataSchema, // Pass the Zod schema+ objectName: 'newTaskData', // Name for the object+ systemPrompt: systemPrompt,+ prompt: userPrompt,+ reportProgress // Pass progress reporter if available+ });++ report('DEBUG: generateObjectService returned successfully.', 'debug');++ report('Successfully generated task data from AI.', 'success');+ taskData = aiGeneratedTaskData; // Assign the validated object+ } catch (error) {++ report(++ `DEBUG: generateObjectService caught error: ${error.message}`,++ 'debug'++ );+ report(`Error generating task with AI: ${error.message}`, 'error');+ if (loadingIndicator) stopLoadingIndicator(loadingIndicator);+ throw error; // Re-throw error after logging+ } finally {++ report('DEBUG: generateObjectService finally block reached.', 'debug');+ if (loadingIndicator) stopLoadingIndicator(loadingIndicator); // Ensure indicator stops+ }+ // --- End Refactored AI Interaction ---+ }++ // Create the new task object+ const newTask = {+ id: newTaskId,+ title: taskData.title,+ description: taskData.description,+ details: taskData.details || '',+ testStrategy: taskData.testStrategy || '',+ status: 'pending',+ dependencies: numericDependencies, // Use validated numeric dependencies+ priority: priority,+ subtasks: [] // Initialize with empty subtasks array+ };++ // Add the task to the tasks array+ data.tasks.push(newTask);+++ report('DEBUG: Writing tasks.json...', 'debug');+ // Write the updated tasks to the file+ writeJSON(tasksPath, data);++ report('DEBUG: tasks.json written.', 'debug');++ // Generate markdown task files+ report('Generating task files...', 'info');++ report('DEBUG: Calling generateTaskFiles...', 'debug');+ // Pass mcpLog if available to generateTaskFiles+ await generateTaskFiles(tasksPath, path.dirname(tasksPath), { mcpLog });++ report('DEBUG: generateTaskFiles finished.', 'debug');++ // Show success message - only for text output (CLI)+ if (outputFormat === 'text') {+ const table = new Table({+ head: [+ chalk.cyan.bold('ID'),+ chalk.cyan.bold('Title'),+ chalk.cyan.bold('Description')+ ],+ colWidths: [5, 30, 50] // Adjust widths as needed+ });++ table.push([+ newTask.id,+ truncate(newTask.title, 27),+ truncate(newTask.description, 47)+ ]);++ console.log(chalk.green('β New task created successfully:'));+ console.log(table.toString());++ // Helper to get priority color+ const getPriorityColor = (p) => {+ switch (p?.toLowerCase()) {+ case 'high':+ return 'red';+ case 'low':+ return 'gray';+ case 'medium':+ default:+ return 'yellow';+ }+ };++ // Show success message box+ console.log(+ boxen(+ chalk.white.bold(`Task ${newTaskId} Created Successfully`) ++ '\n\n' ++ chalk.white(`Title: ${newTask.title}`) ++ '\n' ++ chalk.white(`Status: ${getStatusWithColor(newTask.status)}`) ++ '\n' ++ chalk.white(- `Priority: ${chalk.keyword(getPriorityColor(newTask.priority))(newTask.priority)}`++ `Priority: ${chalk[getPriorityColor(newTask.priority)](newTask.priority)}`+ ) ++ '\n' ++ (numericDependencies.length > 0+ ? chalk.white(`Dependencies: ${numericDependencies.join(', ')}`) ++ '\n'+ : '') ++ '\n' ++ chalk.white.bold('Next Steps:') ++ '\n' ++ chalk.cyan(+ `1. Run ${chalk.yellow(`task-master show ${newTaskId}`)} to see complete task details`+ ) ++ '\n' ++ chalk.cyan(+ `2. Run ${chalk.yellow(`task-master set-status --id=${newTaskId} --status=in-progress`)} to start working on it`+ ) ++ '\n' ++ chalk.cyan(+ `3. Run ${chalk.yellow(`task-master expand --id=${newTaskId}`)} to break it down into subtasks`+ ),+ { padding: 1, borderColor: 'green', borderStyle: 'round' }+ )+ );+ }++ // Return the new task ID++ report(`DEBUG: Returning new task ID: ${newTaskId}`, 'debug');+ return newTaskId;+ } catch (error) {+ // Stop any loading indicator on error+ if (loadingIndicator) {+ stopLoadingIndicator(loadingIndicator);+ }++ report(`Error adding task: ${error.message}`, 'error');+ if (outputFormat === 'text') {+ console.error(chalk.red(`Error: ${error.message}`));+ }+ // In MCP mode, we let the direct function handler catch and format+ throw error;+ }+}++export default addTask;diff --cc scripts/modules/ui.jsindex 64336e9d,4d13b71e..c6fc368a--- a/scripts/modules/ui.js+++ b/scripts/modules/ui.js@@@ -1757,214 -1693,6 +1757,214 @@@ async function confirmTaskOverwrite(tasreturn answer.toLowerCase() === 'y' || answer.toLowerCase() === 'yes';}+/**+ * Displays the API key status for different providers.+ * @param {Array<{provider: string, cli: boolean, mcp: boolean}>} statusReport - The report generated by getApiKeyStatusReport.+ */+function displayApiKeyStatus(statusReport) {+ if (!statusReport || statusReport.length === 0) {+ console.log(chalk.yellow('No API key status information available.'));+ return;+ }++ const table = new Table({+ head: [+ chalk.cyan('Provider'),+ chalk.cyan('CLI Key (.env)'),+ chalk.cyan('MCP Key (mcp.json)')+ ],+ colWidths: [15, 20, 25],+ chars: { mid: '', 'left-mid': '', 'mid-mid': '', 'right-mid': '' }+ });++ statusReport.forEach(({ provider, cli, mcp }) => {+ const cliStatus = cli ? chalk.green('β Found') : chalk.red('β Missing');+ const mcpStatus = mcp ? chalk.green('β Found') : chalk.red('β Missing');+ // Capitalize provider name for display+ const providerName = provider.charAt(0).toUpperCase() + provider.slice(1);+ table.push([providerName, cliStatus, mcpStatus]);+ });++ console.log(chalk.bold('\nπ API Key Status:'));+ console.log(table.toString());+ console.log(+ chalk.gray(+ ' Note: Some providers (e.g., Azure, Ollama) may require additional endpoint configuration in .taskmasterconfig.'+ )+ );+}++// --- Formatting Helpers (Potentially move some to utils.js if reusable) ---++const formatSweScoreWithTertileStars = (score, allModels) => {+ // ... (Implementation from previous version or refine) ...+ if (score === null || score === undefined || score <= 0) return 'N/A';+ const formattedPercentage = `${(score * 100).toFixed(1)}%`;++ const validScores = allModels+ .map((m) => m.sweScore)+ .filter((s) => s !== null && s !== undefined && s > 0);+ const sortedScores = [...validScores].sort((a, b) => b - a);+ const n = sortedScores.length;+ let stars = chalk.gray('βββ');++ if (n > 0) {+ const topThirdIndex = Math.max(0, Math.floor(n / 3) - 1);+ const midThirdIndex = Math.max(0, Math.floor((2 * n) / 3) - 1);+ if (score >= sortedScores[topThirdIndex]) stars = chalk.yellow('β β β ');+ else if (score >= sortedScores[midThirdIndex])+ stars = chalk.yellow('β β ') + chalk.gray('β');+ else stars = chalk.yellow('β ') + chalk.gray('ββ');+ }+ return `${formattedPercentage} ${stars}`;+};++const formatCost = (costObj) => {+ // ... (Implementation from previous version or refine) ...+ if (!costObj) return 'N/A';+ if (costObj.input === 0 && costObj.output === 0) {+ return chalk.green('Free');+ }+ const formatSingleCost = (costValue) => {+ if (costValue === null || costValue === undefined) return 'N/A';+ const isInteger = Number.isInteger(costValue);+ return `$${costValue.toFixed(isInteger ? 0 : 2)}`;+ };+ return `${formatSingleCost(costObj.input)} in, ${formatSingleCost(costObj.output)} out`;+};++// --- Display Functions ---++/**+ * Displays the currently configured active models.+ * @param {ConfigData} configData - The active configuration data.+ * @param {AvailableModel[]} allAvailableModels - Needed for SWE score tertiles.+ */+function displayModelConfiguration(configData, allAvailableModels = []) {+ console.log(chalk.cyan.bold('\nActive Model Configuration:'));+ const active = configData.activeModels;+ const activeTable = new Table({+ head: [+ 'Role',+ 'Provider',+ 'Model ID',+ 'SWE Score',+ 'Cost ($/1M tkns)'+ // 'API Key Status' // Removed, handled by separate displayApiKeyStatus+ ].map((h) => chalk.cyan.bold(h)),+ colWidths: [10, 14, 30, 18, 20 /*, 28 */], // Adjusted widths+ style: { head: ['cyan', 'bold'] }+ });++ activeTable.push([+ chalk.white('Main'),+ active.main.provider,+ active.main.modelId,+ formatSweScoreWithTertileStars(active.main.sweScore, allAvailableModels),+ formatCost(active.main.cost)+ // getCombinedStatus(active.main.keyStatus) // Removed+ ]);+ activeTable.push([+ chalk.white('Research'),+ active.research.provider,+ active.research.modelId,+ formatSweScoreWithTertileStars(+ active.research.sweScore,+ allAvailableModels+ ),+ formatCost(active.research.cost)+ // getCombinedStatus(active.research.keyStatus) // Removed+ ]);+ if (active.fallback && active.fallback.provider && active.fallback.modelId) {+ activeTable.push([+ chalk.white('Fallback'),+ active.fallback.provider,+ active.fallback.modelId,+ formatSweScoreWithTertileStars(+ active.fallback.sweScore,+ allAvailableModels+ ),+ formatCost(active.fallback.cost)+ // getCombinedStatus(active.fallback.keyStatus) // Removed+ ]);+ } else {+ activeTable.push([+ chalk.white('Fallback'),+ chalk.gray('-'),+ chalk.gray('(Not Set)'),+ chalk.gray('-'),+ chalk.gray('-')+ // chalk.gray('-') // Removed+ ]);+ }+ console.log(activeTable.toString());+}++/**+ * Displays the list of available models not currently configured.+ * @param {AvailableModel[]} availableModels - List of available models.+ */+function displayAvailableModels(availableModels) {+ if (!availableModels || availableModels.length === 0) {+ console.log(+ chalk.gray('\n(No other models available or all are configured)')+ );+ return;+ }++ console.log(chalk.cyan.bold('\nOther Available Models:'));+ const availableTable = new Table({+ head: ['Provider', 'Model ID', 'SWE Score', 'Cost ($/1M tkns)'].map((h) =>+ chalk.cyan.bold(h)+ ),+ colWidths: [15, 40, 18, 25],+ style: { head: ['cyan', 'bold'] }+ });++ availableModels.forEach((model) => {+ availableTable.push([+ model.provider,+ model.modelId,+ formatSweScoreWithTertileStars(model.sweScore, availableModels), // Pass itself for comparison+ formatCost(model.cost)+ ]);+ });+ console.log(availableTable.toString());++ // --- Suggested Actions Section (moved here from models command) ---+ console.log(+ boxen(+ chalk.white.bold('Next Steps:') ++ '\n' ++ chalk.cyan(+ `1. Set main model: ${chalk.yellow('task-master models --set-main <model_id>')}`+ ) ++ '\n' ++ chalk.cyan(+ `2. Set research model: ${chalk.yellow('task-master models --set-research <model_id>')}`+ ) ++ '\n' ++ chalk.cyan(+ `3. Set fallback model: ${chalk.yellow('task-master models --set-fallback <model_id>')}`+ ) ++ '\n' ++ chalk.cyan(+ `4. Run interactive setup: ${chalk.yellow('task-master models --setup')}`+ ) ++ '\n' ++ chalk.cyan(- `5. Use custom models: ${chalk.yellow('task-master models --custom --set-main|research|fallback <model_id>')}`++ `5. Use custom ollama/openrouter models: ${chalk.yellow('task-master models --openrouter|ollama --set-main|research|fallback <model_id>')}`+ ),+ {+ padding: 1,+ borderColor: 'yellow',+ borderStyle: 'round',+ margin: { top: 1 }+ }+ )+ );+}+// Export UI functionsexport {displayBanner,diff --cc scripts/prepare-package.jsindex 4d1d2d2d,e6c4caf1..00000000deleted file mode 100755,100755--- a/scripts/prepare-package.js+++ /dev/null@@@ -1,211 -1,221 +1,0 @@@--#!/usr/bin/env node----/**-- * This script prepares the package for publication to NPM.-- * It ensures all necessary files are included and properly configured.-- *-- * Additional options:-- * --patch: Increment patch version (default)-- * --minor: Increment minor version-- * --major: Increment major version-- * --version=x.y.z: Set specific version-- */----import fs from 'fs';--import path from 'path';--import { execSync } from 'child_process';--import { fileURLToPath } from 'url';--import { dirname } from 'path';----const __filename = fileURLToPath(import.meta.url);--const __dirname = dirname(__filename);----// Define colors for console output--const COLORS = {-- reset: '\x1b[0m',-- bright: '\x1b[1m',-- dim: '\x1b[2m',-- red: '\x1b[31m',-- green: '\x1b[32m',-- yellow: '\x1b[33m',-- blue: '\x1b[34m',-- magenta: '\x1b[35m',-- cyan: '\x1b[36m'--};----// Parse command line arguments--const args = process.argv.slice(2);--const versionBump = args.includes('--major')-- ? 'major'-- : args.includes('--minor')-- ? 'minor'-- : 'patch';----// Check for explicit version--const versionArg = args.find((arg) => arg.startsWith('--version='));--const explicitVersion = versionArg ? versionArg.split('=')[1] : null;----// Log function with color support--function log(level, ...args) {-- const prefix = {-- info: `${COLORS.blue}[INFO]${COLORS.reset}`,-- warn: `${COLORS.yellow}[WARN]${COLORS.reset}`,-- error: `${COLORS.red}[ERROR]${COLORS.reset}`,-- success: `${COLORS.green}[SUCCESS]${COLORS.reset}`-- }[level.toLowerCase()];---- console.log(prefix, ...args);--}----// Function to check if a file exists--function fileExists(filePath) {-- return fs.existsSync(filePath);--}----// Function to ensure a file is executable--function ensureExecutable(filePath) {-- try {-- fs.chmodSync(filePath, '755');-- log('info', `Made ${filePath} executable`);-- } catch (error) {-- log('error', `Failed to make ${filePath} executable:`, error.message);-- return false;-- }-- return true;--}----// Function to sync template files--function syncTemplateFiles() {-- // We no longer need to sync files since we're using them directly-- log(-- 'info',-- 'Template syncing has been deprecated - using source files directly'-- );-- return true;--}----// Function to increment version--function incrementVersion(currentVersion, type = 'patch') {-- const [major, minor, patch] = currentVersion.split('.').map(Number);---- switch (type) {-- case 'major':-- return `${major + 1}.0.0`;-- case 'minor':-- return `${major}.${minor + 1}.0`;-- case 'patch':-- default:-- return `${major}.${minor}.${patch + 1}`;-- }--}----// Main function to prepare the package--function preparePackage() {-- const rootDir = path.join(__dirname, '..');-- log('info', `Preparing package in ${rootDir}`);---- // Update version in package.json-- const packageJsonPath = path.join(rootDir, 'package.json');-- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));-- const currentVersion = packageJson.version;---- let newVersion;-- if (explicitVersion) {-- newVersion = explicitVersion;-- log(-- 'info',-- `Setting version to specified ${newVersion} (was ${currentVersion})`-- );-- } else {-- newVersion = incrementVersion(currentVersion, versionBump);-- log(-- 'info',-- `Incrementing ${versionBump} version to ${newVersion} (was ${currentVersion})`-- );-- }---- packageJson.version = newVersion;-- fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));-- log('success', `Updated package.json version to ${newVersion}`);---- // Check for required files-- const requiredFiles = [-- 'package.json',-- 'README-task-master.md',-- 'index.js',-- 'scripts/init.js',-- 'scripts/dev.js',-- 'assets/env.example',-- 'assets/gitignore',-- 'assets/example_prd.txt',-- 'assets/scripts_README.md',-- '.cursor/rules/dev_workflow.mdc',-- '.cursor/rules/taskmaster.mdc',-- '.cursor/rules/cursor_rules.mdc',- '.cursor/rules/self_improve.mdc'- '.cursor/rules/self_improve.mdc',- 'assets/roocode/.roo/rules/dev_workflow.md',- 'assets/roocode/.roo/rules/roo_rules.md',- 'assets/roocode/.roo/rules/self_improve.md',- 'assets/roocode/.roo/rules-architect/architect-rules',- 'assets/roocode/.roo/rules-ask/ask-rules',- 'assets/roocode/.roo/rules-boomerang/boomerang-rules',- 'assets/roocode/.roo/rules-code/code-rules',- 'assets/roocode/.roo/rules-debug/debug-rules',- 'assets/roocode/.roo/rules-test/test-rules',- 'assets/roocode/.roomodes'-- ];---- let allFilesExist = true;-- for (const file of requiredFiles) {-- const filePath = path.join(rootDir, file);-- if (!fileExists(filePath)) {-- log('error', `Required file ${file} does not exist`);-- allFilesExist = false;-- }-- }---- if (!allFilesExist) {-- log(-- 'error',-- 'Some required files are missing. Package preparation failed.'-- );-- process.exit(1);-- }---- // Ensure scripts are executable-- const executableScripts = ['scripts/init.js', 'scripts/dev.js'];---- let allScriptsExecutable = true;-- for (const script of executableScripts) {-- const scriptPath = path.join(rootDir, script);-- if (!ensureExecutable(scriptPath)) {-- allScriptsExecutable = false;-- }-- }---- if (!allScriptsExecutable) {-- log(-- 'warn',-- 'Some scripts could not be made executable. This may cause issues.'-- );-- }---- // Run npm pack to test package creation-- try {-- log('info', 'Running npm pack to test package creation...');-- const output = execSync('npm pack --dry-run', { cwd: rootDir }).toString();-- log('info', output);-- } catch (error) {-- log('error', 'Failed to run npm pack:', error.message);-- process.exit(1);-- }---- // Make scripts executable-- log('info', 'Making scripts executable...');-- try {-- execSync('chmod +x scripts/init.js', { stdio: 'ignore' });-- log('info', 'Made scripts/init.js executable');-- execSync('chmod +x scripts/dev.js', { stdio: 'ignore' });-- log('info', 'Made scripts/dev.js executable');-- } catch (error) {-- log('error', 'Failed to make scripts executable:', error.message);-- }---- log('success', `Package preparation completed successfully! π`);-- log('success', `Version updated to ${newVersion}`);-- log('info', 'You can now publish the package with:');-- log('info', ' npm publish');--}----// Run the preparation--preparePackage();diff --cc tests/e2e/e2e_helpers.shindex 00000000,00000000..8d3c6f25new file mode 100644--- /dev/null+++ b/tests/e2e/e2e_helpers.sh@@@ -1,0 -1,0 +1,162 @@@++#!/bin/bash++++# --- LLM Analysis Helper Function ---++# This function should be sourced by the main E2E script or test scripts.++# It requires curl and jq to be installed.++# It expects the project root path to be passed as the second argument.++++analyze_log_with_llm() {++ local log_file="$1"++ local project_root="$2" # Expect project root as the second argument++++ if [ -z "$project_root" ]; then++ echo "[HELPER_ERROR] Project root argument is missing. Skipping LLM analysis." >&2++ return 1++ fi++++ local env_file="${project_root}/.env" # Path to .env in project root++++ local provider_summary_log="provider_add_task_summary.log" # File summarizing provider test outcomes++ local api_key=""++ # !!! IMPORTANT: Replace with your actual Claude API endpoint if different !!!++ local api_endpoint="https://api.anthropic.com/v1/messages"++ # !!! IMPORTANT: Ensure this matches the variable name in your .env file !!!++ local api_key_name="ANTHROPIC_API_KEY"++++ echo "" # Add a newline before analysis starts++++ # Check for jq and curl++ if ! command -v jq &> /dev/null; then++ echo "[HELPER_ERROR] LLM Analysis requires 'jq'. Skipping analysis." >&2++ return 1++ fi++ if ! command -v curl &> /dev/null; then++ echo "[HELPER_ERROR] LLM Analysis requires 'curl'. Skipping analysis." >&2++ return 1++ fi++++ # Check for API Key in the PROJECT ROOT's .env file++ if [ -f "$env_file" ]; then++ # Original assignment - Reading from project root .env++ api_key=$(grep "^${api_key_name}=" "$env_file" | sed -e "s/^${api_key_name}=//" -e 's/^[[:space:]"]*//' -e 's/[[:space:]"]*$//')++ fi++++ if [ -z "$api_key" ]; then++ echo "[HELPER_ERROR] ${api_key_name} not found or empty in project root .env file ($env_file). Skipping LLM analysis." >&2 # Updated error message++ return 1++ fi++++ # Log file path is passed as argument, need to ensure it exists relative to where the script *calling* this function is, OR use absolute path.++ # Assuming absolute path or path relative to the initial PWD for simplicity here.++ # The calling script passes the correct path relative to the original PWD.++ if [ ! -f "$log_file" ]; then++ echo "[HELPER_ERROR] Log file not found: $log_file (PWD: $(pwd)). Check path passed to function. Skipping LLM analysis." >&2 # Updated error++ return 1++ fi++++ local log_content++ # Read entire file, handle potential errors++ log_content=$(cat "$log_file") || {++ echo "[HELPER_ERROR] Failed to read log file: $log_file. Skipping LLM analysis." >&2++ return 1++ }++++ # Prepare the prompt using a quoted heredoc for literal interpretation++ read -r -d '' prompt_template <<'EOF'++Analyze the following E2E test log for the task-master tool. The log contains output from various 'task-master' commands executed sequentially.++++Your goal is to:++1. Verify if the key E2E steps completed successfully based on the log messages (e.g., init, parse PRD, list tasks, analyze complexity, expand task, set status, manage models, add/remove dependencies, add/update/remove tasks/subtasks, generate files).++2. **Specifically analyze the Multi-Provider Add-Task Test Sequence:**++ a. Identify which providers were tested for `add-task`. Look for log steps like "Testing Add-Task with Provider: ..." and the summary log 'provider_add_task_summary.log'.++ b. For each tested provider, determine if `add-task` succeeded or failed. Note the created task ID if successful.++ c. Review the corresponding `add_task_show_output_<provider>_id_<id>.log` file (if created) for each successful `add-task` execution.++ d. **Compare the quality and completeness** of the task generated by each successful provider based on their `show` output. Assign a score (e.g., 1-10, 10 being best) based on relevance to the prompt, detail level, and correctness.++ e. Note any providers where `add-task` failed or where the task ID could not be extracted.++3. Identify any general explicit "[ERROR]" messages or stack traces throughout the *entire* log.++4. Identify any potential warnings or unusual output that might indicate a problem even if not marked as an explicit error.++5. Provide an overall assessment of the test run's health based *only* on the log content.++++Return your analysis **strictly** in the following JSON format. Do not include any text outside of the JSON structure:++++{++ "overall_status": "Success|Failure|Warning",++ "verified_steps": [ "Initialization", "PRD Parsing", /* ...other general steps observed... */ ],++ "provider_add_task_comparison": {++ "prompt_used": "... (extract from log if possible or state 'standard auth prompt') ...",++ "provider_results": {++ "anthropic": { "status": "Success|Failure|ID_Extraction_Failed|Set_Model_Failed", "task_id": "...", "score": "X/10 | N/A", "notes": "..." },++ "openai": { "status": "Success|Failure|...", "task_id": "...", "score": "X/10 | N/A", "notes": "..." },++ /* ... include all tested providers ... */++ },++ "comparison_summary": "Brief overall comparison of generated tasks..."++ },++ "detected_issues": [ { "severity": "Error|Warning|Anomaly", "description": "...", "log_context": "[Optional, short snippet from log near the issue]" } ],++ "llm_summary_points": [ "Overall summary point 1", "Provider comparison highlight", "Any major issues noted" ]++}++++Here is the main log content:++++%s++EOF++# Note: The final %s is a placeholder for printf later++++ local full_prompt++ # Use printf to substitute the log content into the %s placeholder++ if ! printf -v full_prompt "$prompt_template" "$log_content"; then++ echo "[HELPER_ERROR] Failed to format prompt using printf." >&2++ # It's unlikely printf itself fails, but good practice++ return 1++ fi++++ # Construct the JSON payload for Claude Messages API++ local payload++ payload=$(jq -n --arg prompt "$full_prompt" '{++ "model": "claude-3-haiku-20240307", # Using Haiku for faster/cheaper testing++ "max_tokens": 3072, # Increased slightly++ "messages": [++ {"role": "user", "content": $prompt}++ ]++ # "temperature": 0.0 # Optional: Lower temperature for more deterministic JSON output++ }') || {++ echo "[HELPER_ERROR] Failed to create JSON payload using jq." >&2++ return 1++ }++++ local response_raw response_http_code response_body++ # Capture body and HTTP status code separately++ response_raw=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$api_endpoint" \++ -H "Content-Type: application/json" \++ -H "x-api-key: $api_key" \++ -H "anthropic-version: 2023-06-01" \++ --data "$payload")++++ # Extract status code and body++ response_http_code=$(echo "$response_raw" | grep '^HTTP_STATUS_CODE:' | sed 's/HTTP_STATUS_CODE://')++ response_body=$(echo "$response_raw" | sed '$d') # Remove last line (status code)++++ if [ "$response_http_code" != "200" ]; then++ echo "[HELPER_ERROR] LLM API call failed with HTTP status $response_http_code." >&2++ echo "[HELPER_ERROR] Response Body: $response_body" >&2++ return 1++ fi++++ if [ -z "$response_body" ]; then++ echo "[HELPER_ERROR] LLM API call returned empty response body." >&2++ return 1++ fi++++ # Pipe the raw response body directly to the Node.js parser script++ if echo "$response_body" | node "${project_root}/tests/e2e/parse_llm_output.cjs" "$log_file"; then++ echo "[HELPER_SUCCESS] LLM analysis parsed and printed successfully by Node.js script."++ return 0 # Success++ else++ local node_exit_code=$?++ echo "[HELPER_ERROR] Node.js parsing script failed with exit code ${node_exit_code}."++ echo "[HELPER_ERROR] Raw API response body (first 500 chars): $(echo "$response_body" | head -c 500)"++ return 1 # Failure++ fi++}++++# Export the function so it might be available to subshells if sourced++export -f analyze_log_with_llmdiff --cc tests/e2e/parse_llm_output.cjsindex 00000000,00000000..d75c7d5enew file mode 100644--- /dev/null+++ b/tests/e2e/parse_llm_output.cjs@@@ -1,0 -1,0 +1,266 @@@++#!/usr/bin/env node++++// Note: We will use dynamic import() inside the async callback due to project being type: module++++const readline = require('readline');++const path = require('path'); // Import path module++++let inputData = '';++++const rl = readline.createInterface({++ input: process.stdin,++ output: process.stdout,++ terminal: false++});++++rl.on('line', (line) => {++ inputData += line;++});++++// Make the callback async to allow await for dynamic imports++rl.on('close', async () => {++ let chalk, boxen, Table;++ try {++ // Dynamically import libraries++ chalk = (await import('chalk')).default;++ boxen = (await import('boxen')).default;++ Table = (await import('cli-table3')).default;++++ // 1. Parse the initial API response body++ const apiResponse = JSON.parse(inputData);++++ // 2. Extract the text content containing the nested JSON++ // Robust check for content structure++ const textContent = apiResponse?.content?.[0]?.text;++ if (!textContent) {++ console.error(++ chalk.red(++ "Error: Could not find '.content[0].text' in the API response JSON."++ )++ );++ process.exit(1);++ }++++ // 3. Find the start of the actual JSON block++ const jsonStart = textContent.indexOf('{');++ const jsonEnd = textContent.lastIndexOf('}');++++ if (jsonStart === -1 || jsonEnd === -1 || jsonEnd < jsonStart) {++ console.error(++ chalk.red(++ 'Error: Could not find JSON block starting with { and ending with } in the extracted text content.'++ )++ );++ process.exit(1);++ }++ const jsonString = textContent.substring(jsonStart, jsonEnd + 1);++++ // 4. Parse the extracted JSON string++ let reportData;++ try {++ reportData = JSON.parse(jsonString);++ } catch (parseError) {++ console.error(++ chalk.red('Error: Failed to parse the extracted JSON block.')++ );++ console.error(chalk.red('Parse Error:'), parseError.message);++ process.exit(1);++ }++++ // Ensure reportData is an object++ if (typeof reportData !== 'object' || reportData === null) {++ console.error(++ chalk.red('Error: Parsed report data is not a valid object.')++ );++ process.exit(1);++ }++++ // --- Get Log File Path and Format Timestamp ---++ const logFilePath = process.argv[2]; // Get the log file path argument++ let formattedTime = 'Unknown';++ if (logFilePath) {++ const logBasename = path.basename(logFilePath);++ const timestampMatch = logBasename.match(/e2e_run_(\d{8}_\d{6})\.log$/);++ if (timestampMatch && timestampMatch[1]) {++ const ts = timestampMatch[1]; // YYYYMMDD_HHMMSS++ // Format into YYYY-MM-DD HH:MM:SS++ formattedTime = `${ts.substring(0, 4)}-${ts.substring(4, 6)}-${ts.substring(6, 8)} ${ts.substring(9, 11)}:${ts.substring(11, 13)}:${ts.substring(13, 15)}`;++ }++ }++ // --------------------------------------------++++ // 5. Generate CLI Report (with defensive checks)++ console.log(++ '\n' +++ chalk.cyan.bold(++ boxen(++ `TASKMASTER E2E Log Analysis Report\nRun Time: ${chalk.yellow(formattedTime)}`, // Display formatted time++ {++ padding: 1,++ borderStyle: 'double',++ borderColor: 'cyan',++ textAlign: 'center' // Center align title++ }++ )++ ) +++ '\n'++ );++++ // Overall Status++ let statusColor = chalk.white;++ const overallStatus = reportData.overall_status || 'Unknown'; // Default if missing++ if (overallStatus === 'Success') statusColor = chalk.green.bold;++ if (overallStatus === 'Warning') statusColor = chalk.yellow.bold;++ if (overallStatus === 'Failure') statusColor = chalk.red.bold;++ console.log(++ boxen(`Overall Status: ${statusColor(overallStatus)}`, {++ padding: { left: 1, right: 1 },++ margin: { bottom: 1 },++ borderColor: 'blue'++ })++ );++++ // LLM Summary Points++ console.log(chalk.blue.bold('π Summary Points:'));++ if (++ Array.isArray(reportData.llm_summary_points) &&++ reportData.llm_summary_points.length > 0++ ) {++ reportData.llm_summary_points.forEach((point) => {++ console.log(chalk.white(` - ${point || 'N/A'}`)); // Handle null/undefined points++ });++ } else {++ console.log(chalk.gray(' No summary points provided.'));++ }++ console.log();++++ // Verified Steps++ console.log(chalk.green.bold('β Verified Steps:'));++ if (++ Array.isArray(reportData.verified_steps) &&++ reportData.verified_steps.length > 0++ ) {++ reportData.verified_steps.forEach((step) => {++ console.log(chalk.green(` - ${step || 'N/A'}`)); // Handle null/undefined steps++ });++ } else {++ console.log(chalk.gray(' No verified steps listed.'));++ }++ console.log();++++ // Provider Add-Task Comparison++ console.log(chalk.magenta.bold('π Provider Add-Task Comparison:'));++ const comp = reportData.provider_add_task_comparison;++ if (typeof comp === 'object' && comp !== null) {++ console.log(++ chalk.white(` Prompt Used: ${comp.prompt_used || 'Not specified'}`)++ );++ console.log();++++ if (++ typeof comp.provider_results === 'object' &&++ comp.provider_results !== null &&++ Object.keys(comp.provider_results).length > 0++ ) {++ const providerTable = new Table({++ head: ['Provider', 'Status', 'Task ID', 'Score', 'Notes'].map((h) =>++ chalk.magenta.bold(h)++ ),++ colWidths: [15, 18, 10, 12, 45],++ style: { head: [], border: [] },++ wordWrap: true++ });++++ for (const provider in comp.provider_results) {++ const result = comp.provider_results[provider] || {}; // Default to empty object if provider result is null/undefined++ const status = result.status || 'Unknown';++ const isSuccess = status === 'Success';++ const statusIcon = isSuccess ? chalk.green('β ') : chalk.red('β');++ const statusText = isSuccess++ ? chalk.green(status)++ : chalk.red(status);++ providerTable.push([++ chalk.white(provider),++ `${statusIcon} ${statusText}`,++ chalk.white(result.task_id || 'N/A'),++ chalk.white(result.score || 'N/A'),++ chalk.dim(result.notes || 'N/A')++ ]);++ }++ console.log(providerTable.toString());++ console.log();++ } else {++ console.log(chalk.gray(' No provider results available.'));++ console.log();++ }++ console.log(chalk.white.bold(` Comparison Summary:`));++ console.log(chalk.white(` ${comp.comparison_summary || 'N/A'}`));++ } else {++ console.log(chalk.gray(' Provider comparison data not found.'));++ }++ console.log();++++ // Detected Issues++ console.log(chalk.red.bold('π¨ Detected Issues:'));++ if (++ Array.isArray(reportData.detected_issues) &&++ reportData.detected_issues.length > 0++ ) {++ reportData.detected_issues.forEach((issue, index) => {++ if (typeof issue !== 'object' || issue === null) return; // Skip invalid issue entries++++ const severity = issue.severity || 'Unknown';++ let boxColor = 'blue';++ let icon = 'βΉοΈ';++ if (severity === 'Error') {++ boxColor = 'red';++ icon = 'β';++ }++ if (severity === 'Warning') {++ boxColor = 'yellow';++ icon = 'β οΈ';++ }++++ let issueContent = `${chalk.bold('Description:')} ${chalk.white(issue.description || 'N/A')}`;++ // Only add log context if it exists and is not empty++ if (issue.log_context && String(issue.log_context).trim()) {++ issueContent += `\n${chalk.bold('Log Context:')} \n${chalk.dim(String(issue.log_context).trim())}`;++ }++++ console.log(++ boxen(issueContent, {++ title: `${icon} Issue ${index + 1}: [${severity}]`,++ padding: 1,++ margin: { top: 1, bottom: 0 },++ borderColor: boxColor,++ borderStyle: 'round'++ })++ );++ });++ console.log(); // Add final newline if issues exist++ } else {++ console.log(chalk.green(' No specific issues detected by the LLM.'));++ }++ console.log();++++ console.log(chalk.cyan.bold('========================================'));++ console.log(chalk.cyan.bold(' End of LLM Report'));++ console.log(chalk.cyan.bold('========================================\n'));++ } catch (error) {++ // Ensure chalk is available for error reporting, provide fallback++ const errorChalk = chalk || { red: (t) => t, yellow: (t) => t };++ console.error(++ errorChalk.red('Error processing LLM response:'),++ error.message++ );++ // Avoid printing potentially huge inputData here unless necessary for debugging++ // console.error(errorChalk.yellow('Raw input data (first 500 chars):'), inputData.substring(0, 500));++ process.exit(1);++ }++});++++// Handle potential errors during stdin reading++process.stdin.on('error', (err) => {++ console.error('Error reading standard input:', err);++ process.exit(1);++});diff --cc tests/e2e/run_e2e.shindex 5f819248,00000000..ef450922mode 100755,000000..100755--- a/tests/e2e/run_e2e.sh+++ b/tests/e2e/run_e2e.sh@@@ -1,625 -1,0 +1,669 @@@+#!/bin/bash++# Treat unset variables as an error when substituting.+set -u+# Prevent errors in pipelines from being masked.+set -o pipefail++# --- Configuration ---+# Assumes script is run from the project root (claude-task-master)+TASKMASTER_SOURCE_DIR="." # Current directory is the source+# Base directory for test runs, relative to project root+BASE_TEST_DIR="$TASKMASTER_SOURCE_DIR/tests/e2e/_runs"+# Log directory, relative to project root+LOG_DIR="$TASKMASTER_SOURCE_DIR/tests/e2e/log"+# Path to the sample PRD, relative to project root+SAMPLE_PRD_SOURCE="$TASKMASTER_SOURCE_DIR/tests/fixtures/sample-prd.txt"+# Path to the main .env file in the source directory+MAIN_ENV_FILE="$TASKMASTER_SOURCE_DIR/.env"+# ---+++# <<< Source the helper script >>>++source "$TASKMASTER_SOURCE_DIR/tests/e2e/e2e_helpers.sh"++++# --- Argument Parsing for Analysis-Only Mode ---++if [ "$#" -ge 2 ] && [ "$1" == "--analyze-log" ]; then++ LOG_TO_ANALYZE="$2"++ # Ensure the log path is absolute++ if [[ "$LOG_TO_ANALYZE" != /* ]]; then++ LOG_TO_ANALYZE="$(pwd)/$LOG_TO_ANALYZE"++ fi++ echo "[INFO] Running in analysis-only mode for log: $LOG_TO_ANALYZE"++++ # --- Derive TEST_RUN_DIR from log file path ---++ # Extract timestamp like YYYYMMDD_HHMMSS from e2e_run_YYYYMMDD_HHMMSS.log++ log_basename=$(basename "$LOG_TO_ANALYZE")++ timestamp_match=$(echo "$log_basename" | sed -n 's/^e2e_run_\([0-9]\{8\}_[0-9]\{6\}\).log$/\1/p')++++ if [ -z "$timestamp_match" ]; then++ echo "[ERROR] Could not extract timestamp from log file name: $log_basename" >&2++ echo "[ERROR] Expected format: e2e_run_YYYYMMDD_HHMMSS.log" >&2++ exit 1++ fi++++ # Construct the expected run directory path relative to project root++ EXPECTED_RUN_DIR="$TASKMASTER_SOURCE_DIR/tests/e2e/_runs/run_$timestamp_match"++ # Make it absolute++ EXPECTED_RUN_DIR_ABS="$(cd "$TASKMASTER_SOURCE_DIR" && pwd)/tests/e2e/_runs/run_$timestamp_match"++++ if [ ! -d "$EXPECTED_RUN_DIR_ABS" ]; then++ echo "[ERROR] Corresponding test run directory not found: $EXPECTED_RUN_DIR_ABS" >&2++ exit 1++ fi++++ # Save original dir before changing++ ORIGINAL_DIR=$(pwd)++++ echo "[INFO] Changing directory to $EXPECTED_RUN_DIR_ABS for analysis context..."++ cd "$EXPECTED_RUN_DIR_ABS"++++ # Call the analysis function (sourced from helpers)++ echo "[INFO] Calling analyze_log_with_llm function..."++ analyze_log_with_llm "$LOG_TO_ANALYZE" "$(cd "$ORIGINAL_DIR/$TASKMASTER_SOURCE_DIR" && pwd)" # Pass absolute project root++ ANALYSIS_EXIT_CODE=$?++++ # Return to original directory++ cd "$ORIGINAL_DIR"++ exit $ANALYSIS_EXIT_CODE++fi++# --- End Analysis-Only Mode Logic ---++++# --- Normal Execution Starts Here (if not in analysis-only mode) ---+++# --- Test State Variables ---+# Note: These are mainly for step numbering within the log now, not for final summary+test_step_count=0+start_time_for_helpers=0 # Separate start time for helper functions inside the pipe+# ---++# --- Log File Setup ---+# Create the log directory if it doesn't exist+mkdir -p "$LOG_DIR"+# Define timestamped log file path+TIMESTAMP=$(date +"%Y%m%d_%H%M%S")- LOG_FILE="$LOG_DIR/e2e_run_$TIMESTAMP.log"++# <<< Use pwd to create an absolute path >>>++LOG_FILE="$(pwd)/$LOG_DIR/e2e_run_$TIMESTAMP"++# Define and create the test run directory *before* the main pipe+mkdir -p "$BASE_TEST_DIR" # Ensure base exists first+TEST_RUN_DIR="$BASE_TEST_DIR/run_$TIMESTAMP"+mkdir -p "$TEST_RUN_DIR"++# Echo starting message to the original terminal BEFORE the main piped block+echo "Starting E2E test. Output will be shown here and saved to: $LOG_FILE"+echo "Running from directory: $(pwd)"+echo "--- Starting E2E Run ---" # Separator before piped output starts++# Record start time for overall duration *before* the pipe+overall_start_time=$(date +%s)+++# ==========================================++# >>> MOVE FUNCTION DEFINITION HERE <<<++# --- Helper Functions (Define globally) ---++_format_duration() {++ local total_seconds=$1++ local minutes=$((total_seconds / 60))++ local seconds=$((total_seconds % 60))++ printf "%dm%02ds" "$minutes" "$seconds"++}++++# Note: This relies on 'overall_start_time' being set globally before the function is called++_get_elapsed_time_for_log() {++ local current_time=$(date +%s)++ # Use overall_start_time here, as start_time_for_helpers might not be relevant globally++ local elapsed_seconds=$((current_time - overall_start_time))++ _format_duration "$elapsed_seconds"++}++++log_info() {++ echo "[INFO] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"++}++++log_success() {++ echo "[SUCCESS] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"++}++++log_error() {++ echo "[ERROR] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1" >&2++}++++log_step() {++ test_step_count=$((test_step_count + 1))++ echo ""++ echo "============================================="++ echo " STEP ${test_step_count}: [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"++ echo "============================================="++}++++# ==========================================+++# --- Main Execution Block (Piped to tee) ---+# Wrap the main part of the script in braces and pipe its output (stdout and stderr) to tee+{- # Record start time for helper functions *inside* the pipe- start_time_for_helpers=$(date +%s)-- # --- Helper Functions (Output will now go to tee -> terminal & log file) ---- _format_duration() {- local total_seconds=$1- local minutes=$((total_seconds / 60))- local seconds=$((total_seconds % 60))- printf "%dm%02ds" "$minutes" "$seconds"- }-- _get_elapsed_time_for_log() {- local current_time=$(date +%s)- local elapsed_seconds=$((current_time - start_time_for_helpers))- _format_duration "$elapsed_seconds"- }-- log_info() {- echo "[INFO] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"- }-- log_success() {- # We no longer increment success_step_count here for the final summary- echo "[SUCCESS] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"- }-- log_error() {- # Output errors to stderr, which gets merged and sent to tee- echo "[ERROR] [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1" >&2- }-- log_step() {- test_step_count=$((test_step_count + 1))- echo ""- echo "============================================="- echo " STEP ${test_step_count}: [$(_get_elapsed_time_for_log)] $(date +"%Y-%m-%d %H:%M:%S") $1"- echo "============================================="- }-- analyze_log_with_llm() {- local log_file="$1"- local provider_summary_log="provider_add_task_summary.log" # File summarizing provider test outcomes- local api_key=""- local api_endpoint="https://api.anthropic.com/v1/messages"- local api_key_name="CLAUDE_API_KEY"-- echo "" # Add a newline before analysis starts- log_info "Attempting LLM analysis of log: $log_file"-- # Check for jq and curl- if ! command -v jq &> /dev/null; then- log_error "LLM Analysis requires 'jq'. Skipping analysis."- return 1- fi- if ! command -v curl &> /dev/null; then- log_error "LLM Analysis requires 'curl'. Skipping analysis."- return 1- fi-- # Check for API Key in the TEST_RUN_DIR/.env (copied earlier)- if [ -f ".env" ]; then- # Using grep and sed for better handling of potential quotes/spaces- api_key=$(grep "^${api_key_name}=" .env | sed -e "s/^${api_key_name}=//" -e 's/^[[:space:]"]*//' -e 's/[[:space:]"]*$//')- fi-- if [ -z "$api_key" ]; then- log_error "${api_key_name} not found or empty in .env file in the test run directory ($(pwd)/.env). Skipping LLM analysis."- return 1- fi-- if [ ! -f "$log_file" ]; then- log_error "Log file not found: $log_file. Skipping LLM analysis."- return 1- fi-- log_info "Reading log file content..."- local log_content- # Read entire file, handle potential errors- log_content=$(cat "$log_file") || {- log_error "Failed to read log file: $log_file. Skipping LLM analysis."- return 1- }-- # Prepare the prompt- # Using printf with %s for the log content is generally safer than direct variable expansion- local prompt_template='Analyze the following E2E test log for the task-master tool. The log contains output from various '\''task-master'\'' commands executed sequentially.\n\nYour goal is to:\n1. Verify if the key E2E steps completed successfully based on the log messages (e.g., init, parse PRD, list tasks, analyze complexity, expand task, set status, manage models, add/remove dependencies, add/update/remove tasks/subtasks, generate files).\n2. **Specifically analyze the Multi-Provider Add-Task Test Sequence:**\n a. Identify which providers were tested for `add-task`. Look for log steps like "Testing Add-Task with Provider: ..." and the summary log `'"$provider_summary_log"'`.\n b. For each tested provider, determine if `add-task` succeeded or failed. Note the created task ID if successful.\n c. Review the corresponding `add_task_show_output_<provider>_id_<id>.log` file (if created) for each successful `add-task` execution.\n d. **Compare the quality and completeness** of the task generated by each successful provider based on their `show` output. Assign a score (e.g., 1-10, 10 being best) based on relevance to the prompt, detail level, and correctness.\n e. Note any providers where `add-task` failed or where the task ID could not be extracted.\n3. Identify any general explicit "[ERROR]" messages or stack traces throughout the *entire* log.\n4. Identify any potential warnings or unusual output that might indicate a problem even if not marked as an explicit error.\n5. Provide an overall assessment of the test run'\''s health based *only* on the log content.\n\nReturn your analysis **strictly** in the following JSON format. Do not include any text outside of the JSON structure:\n\n{\n "overall_status": "Success|Failure|Warning",\n "verified_steps": [ "Initialization", "PRD Parsing", /* ...other general steps observed... */ ],\n "provider_add_task_comparison": {\n "prompt_used": "... (extract from log if possible or state 'standard auth prompt') ...",\n "provider_results": {\n "anthropic": { "status": "Success|Failure|ID_Extraction_Failed|Set_Model_Failed", "task_id": "...", "score": "X/10 | N/A", "notes": "..." },\n "openai": { "status": "Success|Failure|...", "task_id": "...", "score": "X/10 | N/A", "notes": "..." },\n /* ... include all tested providers ... */\n },\n "comparison_summary": "Brief overall comparison of generated tasks..."\n },\n "detected_issues": [ { "severity": "Error|Warning|Anomaly", "description": "...", "log_context": "[Optional, short snippet from log near the issue]" } ],\n "llm_summary_points": [ "Overall summary point 1", "Provider comparison highlight", "Any major issues noted" ]\n}\n\nHere is the main log content:\n\n%s'-- local full_prompt- printf -v full_prompt "$prompt_template" "$log_content"-- # Construct the JSON payload for Claude Messages API- # Using jq for robust JSON construction- local payload- payload=$(jq -n --arg prompt "$full_prompt" '{- "model": "claude-3-7-sonnet-20250219",- "max_tokens": 10000,- "messages": [- {"role": "user", "content": $prompt}- ],- "temperature": 0.0- }') || {- log_error "Failed to create JSON payload using jq."- return 1- }-- log_info "Sending request to LLM API endpoint: $api_endpoint ..."- local response_raw response_http_code response_body- # Capture body and HTTP status code separately- response_raw=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$api_endpoint" \- -H "Content-Type: application/json" \- -H "x-api-key: $api_key" \- -H "anthropic-version: 2023-06-01" \- --data "$payload")-- # Extract status code and body- response_http_code=$(echo "$response_raw" | grep '^HTTP_STATUS_CODE:' | sed 's/HTTP_STATUS_CODE://')- response_body=$(echo "$response_raw" | sed '$d') # Remove last line (status code)-- if [ "$response_http_code" != "200" ]; then- log_error "LLM API call failed with HTTP status $response_http_code."- log_error "Response Body: $response_body"- return 1- fi-- if [ -z "$response_body" ]; then- log_error "LLM API call returned empty response body."- return 1- fi-- log_info "Received LLM response (HTTP 200). Parsing analysis JSON..."-- # Extract the analysis JSON string from the API response (adjust jq path if needed)- local analysis_json_string- analysis_json_string=$(echo "$response_body" | jq -r '.content[0].text' 2>/dev/null) # Assumes Messages API structure-- if [ -z "$analysis_json_string" ]; then- log_error "Failed to extract 'content[0].text' from LLM response JSON."- log_error "Full API response body: $response_body"- return 1- fi-- # Validate and pretty-print the extracted JSON- if ! echo "$analysis_json_string" | jq -e . > /dev/null 2>&1; then- log_error "Extracted content from LLM is not valid JSON."- log_error "Raw extracted content: $analysis_json_string"- return 1- fi-- log_success "LLM analysis completed successfully."- echo ""- echo "--- LLM Analysis ---"- # Pretty print the JSON analysis- echo "$analysis_json_string" | jq '.'- echo "--------------------"-- return 0- }- # ---++ # Note: Helper functions are now defined globally above,++ # but we still need start_time_for_helpers if any logging functions++ # called *inside* this block depend on it. If not, it can be removed.++ start_time_for_helpers=$(date +%s) # Keep if needed by helpers called inside this block++ # --- Test Setup (Output to tee) ---+ log_step "Setting up test environment"++ log_step "Creating global npm link for task-master-ai"+ if npm link; then+ log_success "Global link created/updated."+ else+ log_error "Failed to run 'npm link'. Check permissions or output for details."+ exit 1+ fi++ log_info "Ensured base test directory exists: $BASE_TEST_DIR"++ log_info "Using test run directory (created earlier): $TEST_RUN_DIR"++ # Check if source .env file exists+ if [ ! -f "$MAIN_ENV_FILE" ]; then+ log_error "Source .env file not found at $MAIN_ENV_FILE. Cannot proceed with API-dependent tests."+ exit 1+ fi+ log_info "Source .env file found at $MAIN_ENV_FILE."++ # Check if sample PRD exists+ if [ ! -f "$SAMPLE_PRD_SOURCE" ]; then+ log_error "Sample PRD not found at $SAMPLE_PRD_SOURCE. Please check path."+ exit 1+ fi++ log_info "Copying sample PRD to test directory..."+ cp "$SAMPLE_PRD_SOURCE" "$TEST_RUN_DIR/prd.txt"+ if [ ! -f "$TEST_RUN_DIR/prd.txt" ]; then+ log_error "Failed to copy sample PRD to $TEST_RUN_DIR."+ exit 1+ fi+ log_success "Sample PRD copied."++ ORIGINAL_DIR=$(pwd) # Save original dir+ cd "$TEST_RUN_DIR"+ log_info "Changed directory to $(pwd)"++ # === Copy .env file BEFORE init ===+ log_step "Copying source .env file for API keys"+ if cp "$ORIGINAL_DIR/.env" ".env"; then+ log_success ".env file copied successfully."+ else+ log_error "Failed to copy .env file from $ORIGINAL_DIR/.env"+ exit 1+ fi+ # ========================================++ # --- Test Execution (Output to tee) ---++ log_step "Linking task-master-ai package locally"+ npm link task-master-ai+ log_success "Package linked locally."++ log_step "Initializing Task Master project (non-interactive)"+ task-master init -y --name="E2E Test $TIMESTAMP" --description="Automated E2E test run"- if [ ! -f ".taskmasterconfig" ] || [ ! -f "package.json" ]; then- log_error "Initialization failed: .taskmasterconfig or package.json not found."++ if [ ! -f ".taskmasterconfig" ]; then++ log_error "Initialization failed: .taskmasterconfig not found."+ exit 1+ fi+ log_success "Project initialized."++ log_step "Parsing PRD"+ task-master parse-prd ./prd.txt --force+ if [ ! -s "tasks/tasks.json" ]; then+ log_error "Parsing PRD failed: tasks/tasks.json not found or is empty."+ exit 1+ fi+ log_success "PRD parsed successfully."++ log_step "Listing tasks"+ task-master list > task_list_output.log+ log_success "Task list saved to task_list_output.log"++ log_step "Analyzing complexity"+ # Add --research flag if needed and API keys support it+ task-master analyze-complexity --research --output complexity_results.json+ if [ ! -f "complexity_results.json" ]; then+ log_error "Complexity analysis failed: complexity_results.json not found."+ exit 1+ fi+ log_success "Complexity analysis saved to complexity_results.json"++ log_step "Generating complexity report"+ task-master complexity-report --file complexity_results.json > complexity_report_formatted.log+ log_success "Formatted complexity report saved to complexity_report_formatted.log"++ log_step "Expanding Task 1 (assuming it exists)"+ # Add --research flag if needed and API keys support it+ task-master expand --id=1 # Add --research?+ log_success "Attempted to expand Task 1."++ log_step "Setting status for Subtask 1.1 (assuming it exists)"+ task-master set-status --id=1.1 --status=done+ log_success "Attempted to set status for Subtask 1.1 to 'done'."++ log_step "Listing tasks again (after changes)"+ task-master list --with-subtasks > task_list_after_changes.log+ log_success "Task list after changes saved to task_list_after_changes.log"++ # === Test Model Commands ===+ log_step "Checking initial model configuration"+ task-master models > models_initial_config.log+ log_success "Initial model config saved to models_initial_config.log"++ log_step "Setting main model"+ task-master models --set-main claude-3-7-sonnet-20250219+ log_success "Set main model."++ log_step "Setting research model"+ task-master models --set-research sonar-pro+ log_success "Set research model."++ log_step "Setting fallback model"+ task-master models --set-fallback claude-3-5-sonnet-20241022+ log_success "Set fallback model."++ log_step "Checking final model configuration"+ task-master models > models_final_config.log+ log_success "Final model config saved to models_final_config.log"++ log_step "Resetting main model to default (Claude Sonnet) before provider tests"+ task-master models --set-main claude-3-7-sonnet-20250219+ log_success "Main model reset to claude-3-7-sonnet-20250219."++ # === End Model Commands Test ===++ # === Multi-Provider Add-Task Test ===+ log_step "Starting Multi-Provider Add-Task Test Sequence"++ # Define providers, models, and flags+ # Array order matters: providers[i] corresponds to models[i] and flags[i]+ declare -a providers=("anthropic" "openai" "google" "perplexity" "xai" "openrouter")+ declare -a models=(+ "claude-3-7-sonnet-20250219"+ "gpt-4o"+ "gemini-2.5-pro-exp-03-25"+ "sonar-pro"+ "grok-3"+ "anthropic/claude-3.7-sonnet" # OpenRouter uses Claude 3.7+ )+ # Flags: Add provider-specific flags here, e.g., --openrouter. Use empty string if none.+ declare -a flags=("" "" "" "" "" "--openrouter")++ # Consistent prompt for all providers+ add_task_prompt="Create a task to implement user authentication using OAuth 2.0 with Google as the provider. Include steps for registering the app, handling the callback, and storing user sessions."+ log_info "Using consistent prompt for add-task tests: \"$add_task_prompt\""++ for i in "${!providers[@]}"; do+ provider="${providers[$i]}"+ model="${models[$i]}"+ flag="${flags[$i]}"++ log_step "Testing Add-Task with Provider: $provider (Model: $model)"++ # 1. Set the main model for this provider+ log_info "Setting main model to $model for $provider ${flag:+using flag $flag}..."+ set_model_cmd="task-master models --set-main \"$model\" $flag"+ echo "Executing: $set_model_cmd"+ if eval $set_model_cmd; then+ log_success "Successfully set main model for $provider."+ else+ log_error "Failed to set main model for $provider. Skipping add-task for this provider."+ # Optionally save failure info here if needed for LLM analysis+ echo "Provider $provider set-main FAILED" >> provider_add_task_summary.log+ continue # Skip to the next provider+ fi++ # 2. Run add-task+ log_info "Running add-task with prompt..."+ add_task_output_file="add_task_raw_output_${provider}.log"+ # Run add-task and capture ALL output (stdout & stderr) to a file AND a variable+ add_task_cmd_output=$(task-master add-task --prompt "$add_task_prompt" 2>&1 | tee "$add_task_output_file")+ add_task_exit_code=${PIPESTATUS[0]}++ # 3. Check for success and extract task ID+ new_task_id=""- if [ $add_task_exit_code -eq 0 ] && echo "$add_task_cmd_output" | grep -q "Successfully added task with ID:"; then++ if [ $add_task_exit_code -eq 0 ] && echo "$add_task_cmd_output" | grep -q "β Added new task #"; then+ # Attempt to extract the ID (adjust grep/sed/awk as needed based on actual output format)- new_task_id=$(echo "$add_task_cmd_output" | grep "Successfully added task with ID:" | sed 's/.*Successfully added task with ID: \([0-9.]\+\).*/\1/')++ new_task_id=$(echo "$add_task_cmd_output" | grep "β Added new task #" | sed 's/.*β Added new task #\([0-9.]\+\).*/\1/')+ if [ -n "$new_task_id" ]; then+ log_success "Add-task succeeded for $provider. New task ID: $new_task_id"+ echo "Provider $provider add-task SUCCESS (ID: $new_task_id)" >> provider_add_task_summary.log+ else+ # Succeeded but couldn't parse ID - treat as warning/anomaly+ log_error "Add-task command succeeded for $provider, but failed to extract task ID from output."+ echo "Provider $provider add-task SUCCESS (ID extraction FAILED)" >> provider_add_task_summary.log+ new_task_id="UNKNOWN_ID_EXTRACTION_FAILED"+ fi+ else+ log_error "Add-task command failed for $provider (Exit Code: $add_task_exit_code). See $add_task_output_file for details."+ echo "Provider $provider add-task FAILED (Exit Code: $add_task_exit_code)" >> provider_add_task_summary.log+ new_task_id="FAILED"+ fi++ # 4. Run task show if ID was obtained (even if extraction failed, use placeholder)+ if [ "$new_task_id" != "FAILED" ] && [ "$new_task_id" != "UNKNOWN_ID_EXTRACTION_FAILED" ]; then+ log_info "Running task show for new task ID: $new_task_id"+ show_output_file="add_task_show_output_${provider}_id_${new_task_id}.log"+ if task-master show "$new_task_id" > "$show_output_file"; then+ log_success "Task show output saved to $show_output_file"+ else+ log_error "task show command failed for ID $new_task_id. Check log."+ # Still keep the file, it might contain error output+ fi+ elif [ "$new_task_id" == "UNKNOWN_ID_EXTRACTION_FAILED" ]; then+ log_info "Skipping task show for $provider due to ID extraction failure."+ else+ log_info "Skipping task show for $provider due to add-task failure."+ fi++ done # End of provider loop++ log_step "Finished Multi-Provider Add-Task Test Sequence"+ echo "Provider add-task summary log available at: provider_add_task_summary.log"+ # === End Multi-Provider Add-Task Test ===++ log_step "Listing tasks again (final)"+ task-master list --with-subtasks > task_list_final.log+ log_success "Final task list saved to task_list_final.log"++ # === Test Core Task Commands ===+ log_step "Listing tasks (initial)"+ task-master list > task_list_initial.log+ log_success "Initial task list saved to task_list_initial.log"++ log_step "Getting next task"+ task-master next > next_task_initial.log+ log_success "Initial next task saved to next_task_initial.log"++ log_step "Showing Task 1 details"+ task-master show 1 > task_1_details.log+ log_success "Task 1 details saved to task_1_details.log"++ log_step "Adding dependency (Task 2 depends on Task 1)"+ task-master add-dependency --id=2 --depends-on=1+ log_success "Added dependency 2->1."++ log_step "Validating dependencies (after add)"+ task-master validate-dependencies > validate_dependencies_after_add.log+ log_success "Dependency validation after add saved."++ log_step "Removing dependency (Task 2 depends on Task 1)"+ task-master remove-dependency --id=2 --depends-on=1+ log_success "Removed dependency 2->1."++ log_step "Fixing dependencies (should be no-op now)"+ task-master fix-dependencies > fix_dependencies_output.log+ log_success "Fix dependencies attempted."+++ # === Start New Test Section: Validate/Fix Bad Dependencies ===++++ log_step "Intentionally adding non-existent dependency (1 -> 999)"++ task-master add-dependency --id=1 --depends-on=999 || log_error "Failed to add non-existent dependency (unexpected)"++ # Don't exit even if the above fails, the goal is to test validation++ log_success "Attempted to add dependency 1 -> 999."++++ log_step "Validating dependencies (expecting non-existent error)"++ task-master validate-dependencies > validate_deps_non_existent.log 2>&1 || true # Allow command to fail without exiting script++ if grep -q "Non-existent dependency ID: 999" validate_deps_non_existent.log; then++ log_success "Validation correctly identified non-existent dependency 999."++ else++ log_error "Validation DID NOT report non-existent dependency 999 as expected. Check validate_deps_non_existent.log"++ # Consider exiting here if this check fails, as it indicates a validation logic problem++ # exit 1++ fi++++ log_step "Fixing dependencies (should remove 1 -> 999)"++ task-master fix-dependencies > fix_deps_after_non_existent.log++ log_success "Attempted to fix dependencies."++++ log_step "Validating dependencies (after fix)"++ task-master validate-dependencies > validate_deps_after_fix_non_existent.log 2>&1 || true # Allow potential failure++ if grep -q "Non-existent dependency ID: 999" validate_deps_after_fix_non_existent.log; then++ log_error "Validation STILL reports non-existent dependency 999 after fix. Check logs."++ # exit 1++ else++ log_success "Validation shows non-existent dependency 999 was removed."++ fi++++++ log_step "Intentionally adding circular dependency (4 -> 5 -> 4)"++ task-master add-dependency --id=4 --depends-on=5 || log_error "Failed to add dependency 4->5"++ task-master add-dependency --id=5 --depends-on=4 || log_error "Failed to add dependency 5->4"++ log_success "Attempted to add dependencies 4 -> 5 and 5 -> 4."++++++ log_step "Validating dependencies (expecting circular error)"++ task-master validate-dependencies > validate_deps_circular.log 2>&1 || true # Allow command to fail++ # Note: Adjust the grep pattern based on the EXACT error message from validate-dependencies++ if grep -q -E "Circular dependency detected involving task IDs: (4, 5|5, 4)" validate_deps_circular.log; then++ log_success "Validation correctly identified circular dependency between 4 and 5."++ else++ log_error "Validation DID NOT report circular dependency 4<->5 as expected. Check validate_deps_circular.log"++ # exit 1++ fi++++ log_step "Fixing dependencies (should remove one side of 4 <-> 5)"++ task-master fix-dependencies > fix_deps_after_circular.log++ log_success "Attempted to fix dependencies."++++ log_step "Validating dependencies (after fix circular)"++ task-master validate-dependencies > validate_deps_after_fix_circular.log 2>&1 || true # Allow potential failure++ if grep -q -E "Circular dependency detected involving task IDs: (4, 5|5, 4)" validate_deps_after_fix_circular.log; then++ log_error "Validation STILL reports circular dependency 4<->5 after fix. Check logs."++ # exit 1++ else++ log_success "Validation shows circular dependency 4<->5 was resolved."++ fi++++ # === End New Test Section ===+++ log_step "Adding Task 11 (Manual)"+ task-master add-task --title="Manual E2E Task" --description="Add basic health check endpoint" --priority=low --dependencies=3 # Depends on backend setup+ # Assuming the new task gets ID 11 (adjust if PRD parsing changes)+ log_success "Added Task 11 manually."++ log_step "Adding Task 12 (AI)"+ task-master add-task --prompt="Implement basic UI styling using CSS variables for colors and spacing" --priority=medium --dependencies=1 # Depends on frontend setup+ # Assuming the new task gets ID 12+ log_success "Added Task 12 via AI prompt."++ log_step "Updating Task 3 (update-task AI)"+ task-master update-task --id=3 --prompt="Update backend server setup: Ensure CORS is configured to allow requests from the frontend origin."+ log_success "Attempted update for Task 3."++ log_step "Updating Tasks from Task 5 (update AI)"+ task-master update --from=5 --prompt="Refactor the backend storage module to use a simple JSON file (storage.json) instead of an in-memory object for persistence. Update relevant tasks."+ log_success "Attempted update from Task 5 onwards."++ log_step "Expanding Task 8 (AI)"+ task-master expand --id=8 # Expand task 8: Frontend logic+ log_success "Attempted to expand Task 8."++ log_step "Updating Subtask 8.1 (update-subtask AI)"+ task-master update-subtask --id=8.1 --prompt="Implementation note: Remember to handle potential API errors and display a user-friendly message."+ log_success "Attempted update for Subtask 8.1."++ # Add a couple more subtasks for multi-remove test- log_step "Adding subtasks to Task 2 (for multi-remove test)"++ log_step 'Adding subtasks to Task 2 (for multi-remove test)'+ task-master add-subtask --parent=2 --title="Subtask 2.1 for removal"+ task-master add-subtask --parent=2 --title="Subtask 2.2 for removal"+ log_success "Added subtasks 2.1 and 2.2."++ log_step "Removing Subtasks 2.1 and 2.2 (multi-ID)"+ task-master remove-subtask --id=2.1,2.2+ log_success "Removed subtasks 2.1 and 2.2."++ log_step "Setting status for Task 1 to done"+ task-master set-status --id=1 --status=done+ log_success "Set status for Task 1 to done."++ log_step "Getting next task (after status change)"+ task-master next > next_task_after_change.log+ log_success "Next task after change saved to next_task_after_change.log"+++ # === Start New Test Section: List Filtering ===++ log_step "Listing tasks filtered by status 'done'"++ task-master list --status=done > task_list_status_done.log++ log_success "Filtered list saved to task_list_status_done.log (Manual/LLM check recommended)"++ # Optional assertion: Check if Task 1 ID exists and Task 2 ID does NOT++ # if grep -q "^1\." task_list_status_done.log && ! grep -q "^2\." task_list_status_done.log; then++ # log_success "Basic check passed: Task 1 found, Task 2 not found in 'done' list."++ # else++ # log_error "Basic check failed for list --status=done."++ # fi++ # === End New Test Section ===+++ log_step "Clearing subtasks from Task 8"+ task-master clear-subtasks --id=8+ log_success "Attempted to clear subtasks from Task 8."++ log_step "Removing Tasks 11 and 12 (multi-ID)"+ # Remove the tasks we added earlier+ task-master remove-task --id=11,12 -y+ log_success "Removed tasks 11 and 12."+++ # === Start New Test Section: Subtasks & Dependencies ===++++ log_step "Expanding Task 2 (to ensure multiple tasks have subtasks)"++ task-master expand --id=2 # Expand task 2: Backend setup++ log_success "Attempted to expand Task 2."++++ log_step "Listing tasks with subtasks (Before Clear All)"++ task-master list --with-subtasks > task_list_before_clear_all.log++ log_success "Task list before clear-all saved."++++ log_step "Clearing ALL subtasks"++ task-master clear-subtasks --all++ log_success "Attempted to clear all subtasks."++++ log_step "Listing tasks with subtasks (After Clear All)"++ task-master list --with-subtasks > task_list_after_clear_all.log++ log_success "Task list after clear-all saved. (Manual/LLM check recommended to verify subtasks removed)"++++ log_step "Expanding Task 1 again (to have subtasks for next test)"++ task-master expand --id=1++ log_success "Attempted to expand Task 1 again."++++ log_step "Adding dependency: Task 3 depends on Subtask 1.1"++ task-master add-dependency --id=3 --depends-on=1.1++ log_success "Added dependency 3 -> 1.1."++++ log_step "Showing Task 3 details (after adding subtask dependency)"++ task-master show 3 > task_3_details_after_dep_add.log++ log_success "Task 3 details saved. (Manual/LLM check recommended for dependency [1.1])"++++ log_step "Removing dependency: Task 3 depends on Subtask 1.1"++ task-master remove-dependency --id=3 --depends-on=1.1++ log_success "Removed dependency 3 -> 1.1."++++ log_step "Showing Task 3 details (after removing subtask dependency)"++ task-master show 3 > task_3_details_after_dep_remove.log++ log_success "Task 3 details saved. (Manual/LLM check recommended to verify dependency removed)"++++ # === End New Test Section ===+++ log_step "Generating task files (final)"+ task-master generate+ log_success "Generated task files."+ # === End Core Task Commands Test ===++ # === AI Commands (Tested earlier implicitly with add/update/expand) ===+ log_step "Analyzing complexity (AI with Research)"+ task-master analyze-complexity --research --output complexity_results.json+ if [ ! -f "complexity_results.json" ]; then log_error "Complexity analysis failed."; exit 1; fi+ log_success "Complexity analysis saved to complexity_results.json"++ log_step "Generating complexity report (Non-AI)"+ task-master complexity-report --file complexity_results.json > complexity_report_formatted.log+ log_success "Formatted complexity report saved to complexity_report_formatted.log"++ # Expand All (Commented Out)+ # log_step "Expanding All Tasks (AI - Heavy Operation, Commented Out)"+ # task-master expand --all --research+ # log_success "Attempted to expand all tasks."++ log_step "Expanding Task 1 (AI - Note: Subtasks were removed/cleared)"+ task-master expand --id=1+ log_success "Attempted to expand Task 1 again."+ # === End AI Commands ===++ log_step "Listing tasks again (final)"+ task-master list --with-subtasks > task_list_final.log+ log_success "Final task list saved to task_list_final.log"++ # --- Test Completion (Output to tee) ---+ log_step "E2E Test Steps Completed"+ echo ""+ ABS_TEST_RUN_DIR="$(pwd)"+ echo "Test artifacts and logs are located in: $ABS_TEST_RUN_DIR"+ echo "Key artifact files (within above dir):"+ echo " - .env (Copied from source)"+ echo " - tasks/tasks.json"+ echo " - task_list_output.log"+ echo " - complexity_results.json"+ echo " - complexity_report_formatted.log"+ echo " - task_list_after_changes.log"+ echo " - models_initial_config.log, models_final_config.log"+ echo " - task_list_final.log"+ echo " - task_list_initial.log, next_task_initial.log, task_1_details.log"+ echo " - validate_dependencies_after_add.log, fix_dependencies_output.log"+ echo " - complexity_*.log"+ echo ""+ echo "Full script log also available at: $LOG_FILE (relative to project root)"++ # Optional: cd back to original directory+ # cd "$ORIGINAL_DIR"++# End of the main execution block brace+} 2>&1 | tee "$LOG_FILE"++# --- Final Terminal Message ---+EXIT_CODE=${PIPESTATUS[0]}+overall_end_time=$(date +%s)+total_elapsed_seconds=$((overall_end_time - overall_start_time))++# Format total duration+total_minutes=$((total_elapsed_seconds / 60))+total_sec_rem=$((total_elapsed_seconds % 60))+formatted_total_time=$(printf "%dm%02ds" "$total_minutes" "$total_sec_rem")++# Count steps and successes from the log file *after* the pipe finishes+# Use grep -c for counting lines matching the pattern+final_step_count=$(grep -c '^==.* STEP [0-9]\+:' "$LOG_FILE" || true) # Count lines starting with === STEP X:+final_success_count=$(grep -c '\[SUCCESS\]' "$LOG_FILE" || true) # Count lines containing [SUCCESS]++echo "--- E2E Run Summary ---"+echo "Log File: $LOG_FILE"+echo "Total Elapsed Time: ${formatted_total_time}"+echo "Total Steps Executed: ${final_step_count}" # Use count from log++if [ $EXIT_CODE -eq 0 ]; then+ echo "Status: SUCCESS"+ # Use counts from log file+ echo "Successful Steps: ${final_success_count}/${final_step_count}"+else+ echo "Status: FAILED"+ # Use count from log file for total steps attempted+ echo "Failure likely occurred during/after Step: ${final_step_count}"+ # Use count from log file for successes before failure+ echo "Successful Steps Before Failure: ${final_success_count}"+ echo "Please check the log file '$LOG_FILE' for error details."+fi+echo "-------------------------"++# --- Attempt LLM Analysis ---- echo "DEBUG: Entering LLM Analysis section..."+# Run this *after* the main execution block and tee pipe finish writing the log file- # It will read the completed log file and append its output to the terminal (and the log via subsequent writes if tee is still active, though it shouldn't be)- # Change directory back into the test run dir where .env is located+if [ -d "$TEST_RUN_DIR" ]; then- echo "DEBUG: Found TEST_RUN_DIR: $TEST_RUN_DIR. Attempting cd..."+ cd "$TEST_RUN_DIR"- echo "DEBUG: Changed directory to $(pwd). Calling analyze_log_with_llm..."- analyze_log_with_llm "$LOG_FILE"- echo "DEBUG: analyze_log_with_llm function call finished."- # Optional: cd back again if needed, though script is ending++ analyze_log_with_llm "$LOG_FILE" "$TASKMASTER_SOURCE_DIR"++ ANALYSIS_EXIT_CODE=$? # Capture the exit code of the analysis function++ # Optional: cd back again if needed+ # cd "$ORIGINAL_DIR"+else- # Use log_error format even outside the pipe for consistency- current_time_for_error=$(date +%s)- elapsed_seconds_for_error=$((current_time_for_error - overall_start_time)) # Use overall start time- formatted_duration_for_error=$(_format_duration "$elapsed_seconds_for_error")++ formatted_duration_for_error=$(_format_duration "$total_elapsed_seconds")+ echo "[ERROR] [$formatted_duration_for_error] $(date +"%Y-%m-%d %H:%M:%S") Test run directory $TEST_RUN_DIR not found. Cannot perform LLM analysis." >&2+fi+- echo "DEBUG: Reached end of script before final exit."- exit $EXIT_CODE # Exit with the status of the main script block++exit $EXIT_CODEdiff --cc tests/e2e/test_llm_analysis.shindex 00000000,00000000..379a65ebnew file mode 100755--- /dev/null+++ b/tests/e2e/test_llm_analysis.sh@@@ -1,0 -1,0 +1,71 @@@++#!/bin/bash++++# Script to test the LLM analysis function independently++++# Exit on error++set -u++set -o pipefail++++# Source the helper functions++HELPER_SCRIPT="tests/e2e/e2e_helpers.sh"++if [ -f "$HELPER_SCRIPT" ]; then++ source "$HELPER_SCRIPT"++ echo "[INFO] Sourced helper script: $HELPER_SCRIPT"++else++ echo "[ERROR] Helper script not found at $HELPER_SCRIPT. Exiting." >&2++ exit 1++fi++++# --- Configuration ---++# Get the absolute path to the project root (assuming this script is run from the root)++PROJECT_ROOT="$(pwd)"++++# --- Argument Parsing ---++if [ "$#" -ne 2 ]; then++ echo "Usage: $0 <path_to_log_file> <path_to_test_run_directory>" >&2++ echo "Example: $0 tests/e2e/log/e2e_run_YYYYMMDD_HHMMSS.log tests/e2e/_runs/run_YYYYMMDD_HHMMSS" >&2++ exit 1++fi++++LOG_FILE_REL="$1" # Relative path from project root++TEST_RUN_DIR_REL="$2" # Relative path from project root++++# Construct absolute paths++LOG_FILE_ABS="$PROJECT_ROOT/$LOG_FILE_REL"++TEST_RUN_DIR_ABS="$PROJECT_ROOT/$TEST_RUN_DIR_REL"++++# --- Validation ---++if [ ! -f "$LOG_FILE_ABS" ]; then++ echo "[ERROR] Log file not found: $LOG_FILE_ABS" >&2++ exit 1++fi++++if [ ! -d "$TEST_RUN_DIR_ABS" ]; then++ echo "[ERROR] Test run directory not found: $TEST_RUN_DIR_ABS" >&2++ exit 1++fi++++if [ ! -f "$TEST_RUN_DIR_ABS/.env" ]; then++ echo "[ERROR] .env file not found in test run directory: $TEST_RUN_DIR_ABS/.env" >&2++ exit 1++fi++++++# --- Execution ---++echo "[INFO] Changing directory to test run directory: $TEST_RUN_DIR_ABS"++cd "$TEST_RUN_DIR_ABS" || { echo "[ERROR] Failed to cd into $TEST_RUN_DIR_ABS"; exit 1; }++++echo "[INFO] Current directory: $(pwd)"++echo "[INFO] Calling analyze_log_with_llm function with log file: $LOG_FILE_ABS"++++# Call the function (sourced earlier)++analyze_log_with_llm "$LOG_FILE_ABS"++ANALYSIS_EXIT_CODE=$?++++echo "[INFO] analyze_log_with_llm finished with exit code: $ANALYSIS_EXIT_CODE"++++# Optional: cd back to original directory++# echo "[INFO] Changing back to project root: $PROJECT_ROOT"++# cd "$PROJECT_ROOT"++++exit $ANALYSIS_EXIT_CODEdiff --cc tests/unit/rule-transformer.test.jsindex 00000000,0c49e673..0c49e673mode 000000,100644..100644--- a/tests/unit/rule-transformer.test.js+++ b/tests/unit/rule-transformer.test.js