From 3a676619130cefa31312997f0bc3ee2df2fa4de0 Mon Sep 17 00:00:00 2001 From: mq-bot Date: Mon, 24 Nov 2025 14:56:30 +0000 Subject: [PATCH] Ensure workflow launcher loads core workflow --- .../installers/lib/ide/shared/workflow-command-generator.js | 3 +++ .../installers/lib/ide/templates/workflow-command-template.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cli/installers/lib/ide/shared/workflow-command-generator.js b/tools/cli/installers/lib/ide/shared/workflow-command-generator.js index e7a2fe9a..03718a3a 100644 --- a/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +++ b/tools/cli/installers/lib/ide/shared/workflow-command-generator.js @@ -120,12 +120,15 @@ class WorkflowCommandGenerator { } } + const coreWorkflowPath = `${this.bmadFolderName}/core/tasks/workflow.xml`; + // Replace template variables return template .replaceAll('{{name}}', workflow.name) .replaceAll('{{module}}', workflow.module) .replaceAll('{{description}}', workflow.description) .replaceAll('{{workflow_path}}', workflowPath) + .replaceAll('{{core_workflow_path}}', coreWorkflowPath) .replaceAll('{bmad_folder}', this.bmadFolderName) .replaceAll('{*bmad_folder*}', '{bmad_folder}') .replaceAll('{{interactive}}', workflow.interactive) diff --git a/tools/cli/installers/lib/ide/templates/workflow-command-template.md b/tools/cli/installers/lib/ide/templates/workflow-command-template.md index 27b55e03..8ea24d64 100644 --- a/tools/cli/installers/lib/ide/templates/workflow-command-template.md +++ b/tools/cli/installers/lib/ide/templates/workflow-command-template.md @@ -5,7 +5,7 @@ description: '{{description}}' IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded: -1. Always LOAD the FULL @{bmad_folder}/core/tasks/workflow.xml +1. Always LOAD the FULL @{{core_workflow_path}} 2. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @{{workflow_path}} 3. Pass the yaml path {{workflow_path}} as 'workflow-config' parameter to the workflow.xml instructions 4. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions