appiq-solution 1.7.0 → 1.7.2

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.0",
3
+ "version": "1.7.2",
4
4
  "description": "APPIQ SOLUTION: Flutter Mobile Development Extension for BMAD Method",
5
5
  "main": "tools/cli.js",
6
6
  "bin": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "keywords": [
49
49
  "ai-agents",
50
- "development-workflow",
50
+ "development-workflow",
51
51
  "project-management",
52
52
  "greenfield",
53
53
  "brownfield",
@@ -83,4 +83,4 @@
83
83
  "prettier --write"
84
84
  ]
85
85
  }
86
- }
86
+ }
@@ -21,7 +21,7 @@ ide-configurations:
21
21
  # 3. The agent will adopt that persona for the conversation
22
22
  claude-code:
23
23
  name: Claude Code
24
- rule-dir: .claude/commands/BMad/
24
+ rule-dir: .claude/agents/
25
25
  format: multi-file
26
26
  command-suffix: .md
27
27
  instructions: |
@@ -85,6 +85,15 @@ class IdeSetup extends BaseIdeSetup {
85
85
  }
86
86
 
87
87
  async setupClaudeCode(installDir, selectedAgent) {
88
+ // First try Claude IDE native format
89
+ const claudeNativeSuccess = await this.setupClaudeIdeNative(installDir);
90
+ if (claudeNativeSuccess) {
91
+ return true;
92
+ }
93
+
94
+ // Fallback to legacy format
95
+ console.log(chalk.yellow("⚠️ Claude IDE native agents not found, using legacy format"));
96
+
88
97
  // Setup bmad-core commands
89
98
  const coreSlashPrefix = await this.getCoreSlashPrefix(installDir);
90
99
  const coreAgents = selectedAgent ? [selectedAgent] : await this.getCoreAgentIds(installDir);
@@ -119,6 +128,53 @@ class IdeSetup extends BaseIdeSetup {
119
128
  return true;
120
129
  }
121
130
 
131
+ async setupClaudeIdeNative(installDir) {
132
+ const claudeDir = path.join(installDir, ".claude");
133
+ const agentsDir = path.join(claudeDir, "agents");
134
+
135
+ // Check if we have the converted agents - look in the source directory (where this installer is located)
136
+ const installerDir = path.dirname(path.dirname(path.dirname(__dirname))); // Go up from tools/installer/lib to project root
137
+ const sourceAgentsDir = path.join(installerDir, ".claude", "agents");
138
+
139
+ if (!(await fileManager.pathExists(sourceAgentsDir))) {
140
+ return false; // No native agents found
141
+ }
142
+
143
+ // Ensure .claude/agents directory exists (Claude IDE native format)
144
+ await fileManager.ensureDirectory(claudeDir);
145
+ await fileManager.ensureDirectory(agentsDir);
146
+
147
+ console.log(chalk.blue("🚀 Installing Claude IDE native agents..."));
148
+
149
+ // Copy all converted agents
150
+ const fs = require('fs-extra');
151
+ const agentFiles = await fs.readdir(sourceAgentsDir);
152
+ let installedCount = 0;
153
+
154
+ for (const agentFile of agentFiles) {
155
+ // Skip directories and hidden files, only copy agent files (without .md extension)
156
+ if (agentFile.startsWith('.') || agentFile.includes('.')) {
157
+ continue;
158
+ }
159
+
160
+ const sourcePath = path.join(sourceAgentsDir, agentFile);
161
+ const stats = await fs.stat(sourcePath);
162
+
163
+ if (stats.isFile()) {
164
+ const targetPath = path.join(agentsDir, agentFile);
165
+
166
+ const agentContent = await fileManager.readFile(sourcePath);
167
+ await fileManager.writeFile(targetPath, agentContent);
168
+
169
+ console.log(chalk.green(`✓ Installed Claude IDE agent: ${agentFile}`));
170
+ installedCount++;
171
+ }
172
+ }
173
+
174
+ console.log(chalk.green(`✅ Claude IDE native setup completed (${installedCount} agents installed)`));
175
+ return true;
176
+ }
177
+
122
178
  async setupClaudeCodeForPackage(installDir, packageName, slashPrefix, agentIds, taskIds, rootPath) {
123
179
  const commandsBaseDir = path.join(installDir, ".claude", "commands", slashPrefix);
124
180
  const agentsDir = path.join(commandsBaseDir, "agents");
@@ -558,7 +558,7 @@ class V3ToV4Upgrader {
558
558
  try {
559
559
  const ideMessages = {
560
560
  cursor: "Rules created in .cursor/rules/",
561
- "claude-code": "Commands created in .claude/commands/BMad/",
561
+ "claude-code": "Agents installed in .claude/agents/",
562
562
  windsurf: "Rules created in .windsurf/rules/",
563
563
  trae: "Rules created in.trae/rules/",
564
564
  roo: "Custom modes created in .roomodes",