appiq-solution 1.7.3 → 1.7.4

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.3",
3
+ "version": "1.7.4",
4
4
  "description": "APPIQ SOLUTION: Flutter Mobile Development Extension for BMAD Method",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -176,18 +176,9 @@ class IdeSetup extends BaseIdeSetup {
176
176
  }
177
177
 
178
178
  async setupClaudeCodeForPackage(installDir, packageName, slashPrefix, agentIds, taskIds, rootPath) {
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");
179
+ // Claude CLI expects agents directly in .claude/agents/ directory
180
+ const agentsDir = path.join(installDir, ".claude", "agents");
181
+ const tasksDir = path.join(installDir, ".claude", "tasks");
191
182
 
192
183
  // Ensure directories exist
193
184
  await fileManager.ensureDirectory(agentsDir);
@@ -199,7 +190,12 @@ class IdeSetup extends BaseIdeSetup {
199
190
  let agentPath;
200
191
  if (packageName !== "core") {
201
192
  // For expansion packs, first try to find the agent in the expansion pack directory
202
- const expansionPackPath = path.join(installDir, rootPath, "agents", `${agentId}.md`);
193
+ const expansionPackPath = path.join(
194
+ installDir,
195
+ rootPath,
196
+ "agents",
197
+ `${agentId}.md`
198
+ );
203
199
  if (await fileManager.pathExists(expansionPackPath)) {
204
200
  agentPath = expansionPackPath;
205
201
  } else {
@@ -210,13 +206,13 @@ class IdeSetup extends BaseIdeSetup {
210
206
  // For core, use the normal search
211
207
  agentPath = await this.findAgentPath(agentId, installDir);
212
208
  }
213
-
209
+
214
210
  const commandPath = path.join(agentsDir, `${agentId}.md`);
215
211
 
216
212
  if (agentPath) {
217
213
  // Create command file with agent content
218
214
  let agentContent = await fileManager.readFile(agentPath);
219
-
215
+
220
216
  // Replace {root} placeholder with the appropriate root path for this context
221
217
  agentContent = agentContent.replace(/{root}/g, rootPath);
222
218
 
@@ -236,7 +232,12 @@ class IdeSetup extends BaseIdeSetup {
236
232
  let taskPath;
237
233
  if (packageName !== "core") {
238
234
  // For expansion packs, first try to find the task in the expansion pack directory
239
- const expansionPackPath = path.join(installDir, rootPath, "tasks", `${taskId}.md`);
235
+ const expansionPackPath = path.join(
236
+ installDir,
237
+ rootPath,
238
+ "tasks",
239
+ `${taskId}.md`
240
+ );
240
241
  if (await fileManager.pathExists(expansionPackPath)) {
241
242
  taskPath = expansionPackPath;
242
243
  } else {
@@ -247,13 +248,13 @@ class IdeSetup extends BaseIdeSetup {
247
248
  // For core, use the normal search
248
249
  taskPath = await this.findTaskPath(taskId, installDir);
249
250
  }
250
-
251
+
251
252
  const commandPath = path.join(tasksDir, `${taskId}.md`);
252
253
 
253
254
  if (taskPath) {
254
255
  // Create command file with task content
255
256
  let taskContent = await fileManager.readFile(taskPath);
256
-
257
+
257
258
  // Replace {root} placeholder with the appropriate root path for this context
258
259
  taskContent = taskContent.replace(/{root}/g, rootPath);
259
260
 
@@ -267,7 +268,11 @@ class IdeSetup extends BaseIdeSetup {
267
268
  }
268
269
  }
269
270
 
270
- console.log(chalk.green(`\n✓ Created Claude Code commands for ${packageName} in ${commandsBaseDir}`));
271
+ console.log(
272
+ chalk.green(
273
+ `\n✓ Created Claude agents for ${packageName} in ${agentsDir}`
274
+ )
275
+ );
271
276
  console.log(chalk.dim(` - Agents in: ${agentsDir}`));
272
277
  console.log(chalk.dim(` - Tasks in: ${tasksDir}`));
273
278
  }