appiq-solution 1.7.2 → 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.2",
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,9 +176,9 @@ 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
+ // 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");
182
182
 
183
183
  // Ensure directories exist
184
184
  await fileManager.ensureDirectory(agentsDir);
@@ -190,7 +190,12 @@ class IdeSetup extends BaseIdeSetup {
190
190
  let agentPath;
191
191
  if (packageName !== "core") {
192
192
  // For expansion packs, first try to find the agent in the expansion pack directory
193
- const expansionPackPath = path.join(installDir, rootPath, "agents", `${agentId}.md`);
193
+ const expansionPackPath = path.join(
194
+ installDir,
195
+ rootPath,
196
+ "agents",
197
+ `${agentId}.md`
198
+ );
194
199
  if (await fileManager.pathExists(expansionPackPath)) {
195
200
  agentPath = expansionPackPath;
196
201
  } else {
@@ -201,13 +206,13 @@ class IdeSetup extends BaseIdeSetup {
201
206
  // For core, use the normal search
202
207
  agentPath = await this.findAgentPath(agentId, installDir);
203
208
  }
204
-
209
+
205
210
  const commandPath = path.join(agentsDir, `${agentId}.md`);
206
211
 
207
212
  if (agentPath) {
208
213
  // Create command file with agent content
209
214
  let agentContent = await fileManager.readFile(agentPath);
210
-
215
+
211
216
  // Replace {root} placeholder with the appropriate root path for this context
212
217
  agentContent = agentContent.replace(/{root}/g, rootPath);
213
218
 
@@ -227,7 +232,12 @@ class IdeSetup extends BaseIdeSetup {
227
232
  let taskPath;
228
233
  if (packageName !== "core") {
229
234
  // For expansion packs, first try to find the task in the expansion pack directory
230
- const expansionPackPath = path.join(installDir, rootPath, "tasks", `${taskId}.md`);
235
+ const expansionPackPath = path.join(
236
+ installDir,
237
+ rootPath,
238
+ "tasks",
239
+ `${taskId}.md`
240
+ );
231
241
  if (await fileManager.pathExists(expansionPackPath)) {
232
242
  taskPath = expansionPackPath;
233
243
  } else {
@@ -238,13 +248,13 @@ class IdeSetup extends BaseIdeSetup {
238
248
  // For core, use the normal search
239
249
  taskPath = await this.findTaskPath(taskId, installDir);
240
250
  }
241
-
251
+
242
252
  const commandPath = path.join(tasksDir, `${taskId}.md`);
243
253
 
244
254
  if (taskPath) {
245
255
  // Create command file with task content
246
256
  let taskContent = await fileManager.readFile(taskPath);
247
-
257
+
248
258
  // Replace {root} placeholder with the appropriate root path for this context
249
259
  taskContent = taskContent.replace(/{root}/g, rootPath);
250
260
 
@@ -258,7 +268,11 @@ class IdeSetup extends BaseIdeSetup {
258
268
  }
259
269
  }
260
270
 
261
- 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
+ );
262
276
  console.log(chalk.dim(` - Agents in: ${agentsDir}`));
263
277
  console.log(chalk.dim(` - Tasks in: ${tasksDir}`));
264
278
  }