From 3d61531a16a33931ef5277318c7ec4895b9df5bf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:00:51 +0000 Subject: [PATCH] This commit fixes a bug in the IDE setup script that prevented expansion packs not prefixed with "bmad-" from being discovered. The `getInstalledExpansionPacks` function in `tools/installer/lib/ide-setup.js` was using a glob pattern `.bmad-*` to find installed expansion packs. This was too specific and did not match the newly created `wechat-mini-game-dev` expansion pack, which is installed as `.wechat-mini-game-dev`. The glob pattern has been changed to `.*` and an ignore list has been added to exclude common dot-prefixed directories like `.git` and `.vscode`. This ensures that all installed expansion packs are correctly identified and configured for the user's IDE. --- tools/installer/lib/ide-setup.js | 34 +++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/tools/installer/lib/ide-setup.js b/tools/installer/lib/ide-setup.js index b6944ad1..6e78dd10 100644 --- a/tools/installer/lib/ide-setup.js +++ b/tools/installer/lib/ide-setup.js @@ -683,17 +683,33 @@ class IdeSetup extends BaseIdeSetup { // Check for dot-prefixed expansion packs in install directory const glob = require('glob'); - const dotExpansions = glob.sync('.bmad-*', { cwd: installDir }); + const dotExpansions = glob.sync('.*', { + cwd: installDir, + ignore: [ + '.bmad-core', + '.git', + '.github', + '.vscode', + '.cursor', + '.claude', + '.crush', + '.windsurf', + '.trae', + '.roo', + '.cline', + '.kilo', + '.gemini', + '.qwen', + ], + }); for (const dotExpansion of dotExpansions) { - if (dotExpansion !== '.bmad-core') { - const packPath = path.join(installDir, dotExpansion); - const packName = dotExpansion.slice(1); // remove the dot - expansionPacks.push({ - name: packName, - path: packPath, - }); - } + const packPath = path.join(installDir, dotExpansion); + const packName = dotExpansion.slice(1); // remove the dot + expansionPacks.push({ + name: packName, + path: packPath, + }); } // Check for expansion-packs directory style