From 234ae70ae02621954b1901035e75427fb6aef912 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Thu, 12 Mar 2026 22:49:08 -0600 Subject: [PATCH] fix(create-story): update converted workflow path refs --- test/test-workflow-path-regex.js | 6 +++--- tools/cli/installers/lib/modules/manager.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-workflow-path-regex.js b/test/test-workflow-path-regex.js index 488d69b76..5f57a0ab9 100644 --- a/test/test-workflow-path-regex.js +++ b/test/test-workflow-path-regex.js @@ -47,7 +47,7 @@ const INSTALL_REGEX = /\{project-root\}\/(?:_bmad)\/([^/]+)\/workflows\/(.+)/; // --------------------------------------------------------------------------- // Test data // --------------------------------------------------------------------------- -const sourcePath = '{project-root}/_bmad/bmm/workflows/4-implementation/create-story/workflow.md'; +const sourcePath = '{project-root}/_bmad/bmm/workflows/4-implementation/bmad-create-story/workflow.md'; const installPath = '{project-root}/_bmad/bmgd/workflows/4-production/create-story/workflow.md'; console.log(`\n${colors.cyan}Workflow Path Regex Tests${colors.reset}\n`); @@ -63,9 +63,9 @@ assert( `Expected "bmm", got "${sourceMatch && sourceMatch[1]}"`, ); assert( - sourceMatch && sourceMatch[2] === '4-implementation/create-story/workflow.md', + sourceMatch && sourceMatch[2] === '4-implementation/bmad-create-story/workflow.md', 'Source regex group [2] is the workflow sub-path', - `Expected "4-implementation/create-story/workflow.md", got "${sourceMatch && sourceMatch[2]}"`, + `Expected "4-implementation/bmad-create-story/workflow.md", got "${sourceMatch && sourceMatch[2]}"`, ); // --- Install regex tests (group [2] returns module name, not sub-path) --- diff --git a/tools/cli/installers/lib/modules/manager.js b/tools/cli/installers/lib/modules/manager.js index 7ac85678b..9bc027d85 100644 --- a/tools/cli/installers/lib/modules/manager.js +++ b/tools/cli/installers/lib/modules/manager.js @@ -1077,7 +1077,7 @@ class ModuleManager { const installWorkflowPath = item['workflow-install']; // Where to copy TO // Parse SOURCE workflow path - // Example: {project-root}/_bmad/bmm/workflows/4-implementation/create-story/workflow.md + // Example: {project-root}/_bmad/bmm/workflows/4-implementation/bmad-create-story/workflow.md const sourceMatch = sourceWorkflowPath.match(/\{project-root\}\/(?:_bmad)\/([^/]+)\/workflows\/(.+)/); if (!sourceMatch) { await prompts.log.warn(` Could not parse workflow path: ${sourceWorkflowPath}`);