appiq-solution 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appiq-solution",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "APPIQ SOLUTION: Flutter Mobile Development Extension for BMAD Method",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -176,9 +176,18 @@ class IdeSetup extends BaseIdeSetup {
176
176
  }
177
177
 
178
178
  async setupClaudeCodeForPackage(installDir, packageName, slashPrefix, agentIds, taskIds, rootPath) {
179
- const commandsBaseDir = path.join(installDir, ".claude", "commands", slashPrefix);
180
- const agentsDir = path.join(commandsBaseDir, "agents");
181
- const tasksDir = path.join(commandsBaseDir, "tasks");
179
+ // Load IDE configuration to get the correct rule directory
180
+ const ConfigLoader = require('./config-loader');
181
+ const configLoader = new ConfigLoader();
182
+ const config = await configLoader.load();
183
+ const ideConfigs = config['ide-configurations'] || {};
184
+ const claudeConfig = ideConfigs['claude-code'] || {};
185
+ const ruleDir = claudeConfig['rule-dir'] || '.claude/commands/BMad/';
186
+
187
+ // Use the configured rule directory instead of hardcoded path
188
+ const commandsBaseDir = path.join(installDir, ruleDir);
189
+ const agentsDir = packageName === "core" ? commandsBaseDir : path.join(commandsBaseDir, "agents");
190
+ const tasksDir = packageName === "core" ? commandsBaseDir : path.join(commandsBaseDir, "tasks");
182
191
 
183
192
  // Ensure directories exist
184
193
  await fileManager.ensureDirectory(agentsDir);