From 9b9f43fcb98bb87dd519ad72983eb078389486e9 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Thu, 22 Jan 2026 00:39:00 -0600 Subject: [PATCH] fix: reorder mergeModuleHelpCatalogs after generateManifests The mergeModuleHelpCatalogs function depends on agent-manifest.csv being populated, but was being called before generateManifests. This caused new modules' agent info to be empty in the help catalog. Fixes issue where game-dev-studio workflows weren't appearing in bmad-help.csv and IDE commands weren't being generated. --- tools/cli/installers/lib/core/installer.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/cli/installers/lib/core/installer.js b/tools/cli/installers/lib/core/installer.js index 7505fbec..9089775d 100644 --- a/tools/cli/installers/lib/core/installer.js +++ b/tools/cli/installers/lib/core/installer.js @@ -958,11 +958,6 @@ class Installer { // All content is now installed as modules - no separate custom content handling needed - // Merge all module-help.csv files into bmad-help.csv - spinner.start('Generating workflow help catalog...'); - await this.mergeModuleHelpCatalogs(bmadDir); - spinner.succeed('Workflow help catalog generated'); - // Generate clean config.yaml files for each installed module spinner.start('Generating module configurations...'); await this.generateModuleConfigs(bmadDir, moduleConfigs); @@ -980,6 +975,7 @@ class Installer { this.installedFiles.add(path.join(cfgDir, 'task-manifest.csv')); // Generate CSV manifests for workflows, agents, tasks AND ALL FILES with hashes BEFORE IDE setup + // This must happen BEFORE mergeModuleHelpCatalogs because it depends on agent-manifest.csv spinner.start('Generating workflow and agent manifests...'); const manifestGen = new ManifestGenerator(); @@ -1012,6 +1008,12 @@ class Installer { `Manifests generated: ${manifestStats.workflows} workflows, ${manifestStats.agents} agents, ${manifestStats.tasks} tasks, ${manifestStats.tools} tools, ${manifestStats.files} files`, ); + // Merge all module-help.csv files into bmad-help.csv + // This must happen AFTER generateManifests because it depends on agent-manifest.csv + spinner.start('Generating workflow help catalog...'); + await this.mergeModuleHelpCatalogs(bmadDir); + spinner.succeed('Workflow help catalog generated'); + // Configure IDEs and copy documentation if (!config.skipIde && config.ides && config.ides.length > 0) { // Filter out any undefined/null values from the IDE list