bmad-method 4.42.1 → 4.43.0
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/README.md +0 -16
- package/bmad-core/data/bmad-kb.md +1 -0
- package/dist/agents/analyst.txt +1 -0
- package/dist/agents/bmad-master.txt +1 -0
- package/dist/agents/bmad-orchestrator.txt +1 -0
- package/dist/teams/team-all.txt +1 -0
- package/dist/teams/team-fullstack.txt +1 -0
- package/dist/teams/team-ide-minimal.txt +1 -0
- package/dist/teams/team-no-ui.txt +1 -0
- package/docs/expansion-packs.md +3 -83
- package/package.json +1 -1
- package/release_notes.md +7 -2
- package/tools/installer/bin/bmad.js +36 -1
- package/tools/installer/config/install.config.yaml +19 -0
- package/tools/installer/lib/ide-setup.js +93 -0
- package/tools/installer/lib/installer.js +6 -1
- package/tools/installer/package.json +1 -1
package/README.md
CHANGED
|
@@ -243,19 +243,3 @@ BMAD™ and BMAD-METHOD™ are trademarks of BMad Code, LLC. All rights reserved
|
|
|
243
243
|
[](https://github.com/bmadcode/bmad-method/graphs/contributors)
|
|
244
244
|
|
|
245
245
|
<sub>Built with ❤️ for the AI-assisted development community</sub>
|
|
246
|
-
|
|
247
|
-
#### Codex (CLI & Web)
|
|
248
|
-
|
|
249
|
-
- Two modes are supported:
|
|
250
|
-
- Codex (local only): `npx bmad-method install -f -i codex -d .` — keeps `.bmad-core/` ignored via `.gitignore` for local development.
|
|
251
|
-
- Codex Web Enabled: `npx bmad-method install -f -i codex-web -d .` — ensures `.bmad-core/` is tracked (not ignored) so it can be committed for Codex Web.
|
|
252
|
-
- For Codex Web, commit both `.bmad-core/` and `AGENTS.md` to the repository.
|
|
253
|
-
- Codex CLI: run `codex` at your project root; reference agents naturally, e.g., “As dev, implement …”.
|
|
254
|
-
- Codex Web: open your repo in Codex and prompt the same way — it reads `AGENTS.md` automatically.
|
|
255
|
-
- Refresh after changes: rerun the appropriate install command (`codex` or `codex-web`) to regenerate the BMAD section inside `AGENTS.md`.
|
|
256
|
-
|
|
257
|
-
If a `package.json` exists in your project, the installer will add helpful scripts:
|
|
258
|
-
|
|
259
|
-
- `bmad:refresh` → `bmad-method install -f -i codex`
|
|
260
|
-
- `bmad:list` → `bmad-method list:agents`
|
|
261
|
-
- `bmad:validate` → `bmad-method validate`
|
|
@@ -102,6 +102,7 @@ npx bmad-method install
|
|
|
102
102
|
- **Cline**: VS Code extension with AI features
|
|
103
103
|
- **Roo Code**: Web-based IDE with agent support
|
|
104
104
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
105
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
105
106
|
|
|
106
107
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
107
108
|
|
package/dist/agents/analyst.txt
CHANGED
|
@@ -2158,6 +2158,7 @@ npx bmad-method install
|
|
|
2158
2158
|
- **Cline**: VS Code extension with AI features
|
|
2159
2159
|
- **Roo Code**: Web-based IDE with agent support
|
|
2160
2160
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
2161
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
2161
2162
|
|
|
2162
2163
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
2163
2164
|
|
|
@@ -7912,6 +7912,7 @@ npx bmad-method install
|
|
|
7912
7912
|
- **Cline**: VS Code extension with AI features
|
|
7913
7913
|
- **Roo Code**: Web-based IDE with agent support
|
|
7914
7914
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
7915
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
7915
7916
|
|
|
7916
7917
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
7917
7918
|
|
|
@@ -579,6 +579,7 @@ npx bmad-method install
|
|
|
579
579
|
- **Cline**: VS Code extension with AI features
|
|
580
580
|
- **Roo Code**: Web-based IDE with agent support
|
|
581
581
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
582
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
582
583
|
|
|
583
584
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
584
585
|
|
package/dist/teams/team-all.txt
CHANGED
|
@@ -1068,6 +1068,7 @@ npx bmad-method install
|
|
|
1068
1068
|
- **Cline**: VS Code extension with AI features
|
|
1069
1069
|
- **Roo Code**: Web-based IDE with agent support
|
|
1070
1070
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
1071
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
1071
1072
|
|
|
1072
1073
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
1073
1074
|
|
|
@@ -902,6 +902,7 @@ npx bmad-method install
|
|
|
902
902
|
- **Cline**: VS Code extension with AI features
|
|
903
903
|
- **Roo Code**: Web-based IDE with agent support
|
|
904
904
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
905
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
905
906
|
|
|
906
907
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
907
908
|
|
|
@@ -822,6 +822,7 @@ npx bmad-method install
|
|
|
822
822
|
- **Cline**: VS Code extension with AI features
|
|
823
823
|
- **Roo Code**: Web-based IDE with agent support
|
|
824
824
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
825
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
825
826
|
|
|
826
827
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
827
828
|
|
|
@@ -848,6 +848,7 @@ npx bmad-method install
|
|
|
848
848
|
- **Cline**: VS Code extension with AI features
|
|
849
849
|
- **Roo Code**: Web-based IDE with agent support
|
|
850
850
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
|
851
|
+
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
|
851
852
|
|
|
852
853
|
**Note for VS Code Users**: BMAD-METHOD™ assumes when you mention "VS Code" that you're using it with an AI-powered extension like GitHub Copilot, Cline, or Roo. Standard VS Code without AI capabilities cannot run BMad agents. The installer includes built-in support for Cline and Roo.
|
|
853
854
|
|
package/docs/expansion-packs.md
CHANGED
|
@@ -18,7 +18,7 @@ Each expansion pack provides deep, specialized knowledge without bloating the co
|
|
|
18
18
|
|
|
19
19
|
Anyone can create and share expansion packs, fostering a ecosystem of AI-powered solutions across all industries and interests.
|
|
20
20
|
|
|
21
|
-
## Technical Expansion Packs
|
|
21
|
+
## Technical Expansion Packs (Examples of possible expansions to come)
|
|
22
22
|
|
|
23
23
|
### Game Development Pack
|
|
24
24
|
|
|
@@ -191,90 +191,10 @@ Research acceleration tools:
|
|
|
191
191
|
|
|
192
192
|
## Creating Your Own Expansion Pack
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
What expertise are you capturing? What problems will it solve?
|
|
197
|
-
|
|
198
|
-
### Step 2: Design Your Agents
|
|
199
|
-
|
|
200
|
-
Each agent should have:
|
|
201
|
-
|
|
202
|
-
- Clear expertise area
|
|
203
|
-
- Specific personality traits
|
|
204
|
-
- Defined capabilities
|
|
205
|
-
- Knowledge boundaries
|
|
206
|
-
|
|
207
|
-
### Step 3: Create Tasks
|
|
208
|
-
|
|
209
|
-
Tasks should be:
|
|
210
|
-
|
|
211
|
-
- Step-by-step procedures
|
|
212
|
-
- Reusable across scenarios
|
|
213
|
-
- Clear and actionable
|
|
214
|
-
- Domain-specific
|
|
215
|
-
|
|
216
|
-
### Step 4: Build Templates
|
|
217
|
-
|
|
218
|
-
Templates need:
|
|
219
|
-
|
|
220
|
-
- Structured output format
|
|
221
|
-
- Embedded LLM instructions
|
|
222
|
-
- Placeholders for customization
|
|
223
|
-
- Professional formatting
|
|
224
|
-
|
|
225
|
-
### Step 5: Test & Iterate
|
|
226
|
-
|
|
227
|
-
- Use with real scenarios
|
|
228
|
-
- Gather user feedback
|
|
229
|
-
- Refine agent responses
|
|
230
|
-
- Improve task clarity
|
|
231
|
-
|
|
232
|
-
### Step 6: Package & Share
|
|
233
|
-
|
|
234
|
-
- Create clear documentation
|
|
235
|
-
- Include usage examples
|
|
236
|
-
- Add to expansion-packs directory
|
|
237
|
-
- Share with community
|
|
238
|
-
|
|
239
|
-
## The Future of Expansion Packs
|
|
240
|
-
|
|
241
|
-
### Marketplace Potential
|
|
242
|
-
|
|
243
|
-
Imagine a future where:
|
|
244
|
-
|
|
245
|
-
- Professional expansion packs are sold
|
|
246
|
-
- Certified packs for regulated industries
|
|
247
|
-
- Community ratings and reviews
|
|
248
|
-
- Automatic updates and improvements
|
|
249
|
-
|
|
250
|
-
### AI Agent Ecosystems
|
|
251
|
-
|
|
252
|
-
Expansion packs could enable:
|
|
253
|
-
|
|
254
|
-
- Cross-pack agent collaboration
|
|
255
|
-
- Industry-standard agent protocols
|
|
256
|
-
- Interoperable AI workflows
|
|
257
|
-
- Universal agent languages
|
|
258
|
-
|
|
259
|
-
### Democratizing Expertise
|
|
260
|
-
|
|
261
|
-
Every expansion pack:
|
|
262
|
-
|
|
263
|
-
- Makes expert knowledge accessible
|
|
264
|
-
- Reduces barriers to entry
|
|
265
|
-
- Enables solo entrepreneurs
|
|
266
|
-
- Empowers small teams
|
|
267
|
-
|
|
268
|
-
## Getting Started
|
|
269
|
-
|
|
270
|
-
1. **Browse existing packs**: Check `expansion-packs/` directory
|
|
271
|
-
2. **Install what you need**: Use the installer's expansion pack option
|
|
272
|
-
3. **Create your own**: Use the expansion-creator pack
|
|
273
|
-
4. **Share with others**: Submit PRs with new packs
|
|
274
|
-
5. **Build the future**: Help shape AI-assisted work
|
|
194
|
+
The next major release will include a new agent and expansion pack builder and a new expansion format.
|
|
275
195
|
|
|
276
196
|
## Remember
|
|
277
197
|
|
|
278
|
-
The BMad Method is more than a
|
|
198
|
+
The BMad Method is more than a Software Development Agile Framework! Every expansion pack makes specialized knowledge and workflows more accessible to everyone.
|
|
279
199
|
|
|
280
200
|
**What expertise will you share with the world?**
|
package/package.json
CHANGED
package/release_notes.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
## 🚀 What's New in v4.
|
|
1
|
+
## 🚀 What's New in v4.43.0
|
|
2
2
|
|
|
3
3
|
### ✨ New Features
|
|
4
4
|
- feat: implement fork-friendly CI/CD with opt-in mechanism (#476)
|
|
5
5
|
- feat(installer): add Codex CLI + Codex Web modes, generate AGENTS.md, inject npm scripts, and docs (#529)
|
|
6
6
|
- feat: add PR validation workflow and contribution checks
|
|
7
|
+
- feat: Add Auggie CLI (Augment Code) Integration (#520)
|
|
7
8
|
|
|
8
9
|
### 🐛 Bug Fixes
|
|
9
10
|
- fix: update installer version display to show 4.39.0
|
|
@@ -12,17 +13,21 @@
|
|
|
12
13
|
- fix: documentation and trademark updates
|
|
13
14
|
- fix: remove incorrect else branch causing flatten command regression (#452)
|
|
14
15
|
- fix: correct dependency path format in bmad-master agent (#495)
|
|
16
|
+
- fix: Codex options missing from the IDE selection menu (#535)
|
|
15
17
|
|
|
16
18
|
### 📦 Other Changes
|
|
17
19
|
- patch: move script to tools folder
|
|
18
20
|
- typo in README.md (#515)
|
|
19
21
|
- Update dev.md (#491)
|
|
20
22
|
- test: trigger PR validation (#533)
|
|
23
|
+
- docs: remove misplaced Codex section from README
|
|
24
|
+
- Expansion pack doc correction
|
|
21
25
|
|
|
22
26
|
### 🔧 Maintenance
|
|
23
27
|
- chore: bump to 4.39.1 to fix installer version display
|
|
24
28
|
- chore: update project dependencies and development tooling (#508)
|
|
25
29
|
- chore: bump version to 4.42.0 for release
|
|
30
|
+
- chore: sync version to 4.42.1 after release
|
|
26
31
|
|
|
27
32
|
|
|
28
33
|
## 📦 Installation
|
|
@@ -31,4 +36,4 @@
|
|
|
31
36
|
npx bmad-method install
|
|
32
37
|
```
|
|
33
38
|
|
|
34
|
-
**Full Changelog**: https://github.com/bmadcode/BMAD-METHOD/compare/v4.39.0...v4.
|
|
39
|
+
**Full Changelog**: https://github.com/bmadcode/BMAD-METHOD/compare/v4.39.0...v4.43.0
|
|
@@ -49,7 +49,7 @@ program
|
|
|
49
49
|
.option('-d, --directory <path>', 'Installation directory')
|
|
50
50
|
.option(
|
|
51
51
|
'-i, --ide <ide...>',
|
|
52
|
-
'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, trae, roo, kilo, cline, gemini, qwen-code, github-copilot, codex, codex-web, other)',
|
|
52
|
+
'Configure for specific IDE(s) - can specify multiple (cursor, claude-code, windsurf, trae, roo, kilo, cline, gemini, qwen-code, github-copilot, codex, codex-web, auggie-cli, other)',
|
|
53
53
|
)
|
|
54
54
|
.option(
|
|
55
55
|
'-e, --expansion-packs <packs...>',
|
|
@@ -406,6 +406,9 @@ async function promptInstallation() {
|
|
|
406
406
|
{ name: 'Qwen Code', value: 'qwen-code' },
|
|
407
407
|
{ name: 'Crush', value: 'crush' },
|
|
408
408
|
{ name: 'Github Copilot', value: 'github-copilot' },
|
|
409
|
+
{ name: 'Auggie CLI (Augment Code)', value: 'auggie-cli' },
|
|
410
|
+
{ name: 'Codex CLI', value: 'codex' },
|
|
411
|
+
{ name: 'Codex Web', value: 'codex-web' },
|
|
409
412
|
],
|
|
410
413
|
},
|
|
411
414
|
]);
|
|
@@ -474,6 +477,38 @@ async function promptInstallation() {
|
|
|
474
477
|
answers.githubCopilotConfig = { configChoice };
|
|
475
478
|
}
|
|
476
479
|
|
|
480
|
+
// Configure Auggie CLI (Augment Code) immediately if selected
|
|
481
|
+
if (ides.includes('auggie-cli')) {
|
|
482
|
+
console.log(chalk.cyan('\n📍 Auggie CLI Location Configuration'));
|
|
483
|
+
console.log(chalk.dim('Choose where to install BMad agents for Auggie CLI access.\n'));
|
|
484
|
+
|
|
485
|
+
const { selectedLocations } = await inquirer.prompt([
|
|
486
|
+
{
|
|
487
|
+
type: 'checkbox',
|
|
488
|
+
name: 'selectedLocations',
|
|
489
|
+
message: 'Select Auggie CLI command locations:',
|
|
490
|
+
choices: [
|
|
491
|
+
{
|
|
492
|
+
name: 'User Commands (Global): Available across all your projects (user-wide)',
|
|
493
|
+
value: 'user',
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
name: 'Workspace Commands (Project): Stored in repository, shared with team',
|
|
497
|
+
value: 'workspace',
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
validate: (selected) => {
|
|
501
|
+
if (selected.length === 0) {
|
|
502
|
+
return 'Please select at least one location';
|
|
503
|
+
}
|
|
504
|
+
return true;
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
]);
|
|
508
|
+
|
|
509
|
+
answers.augmentCodeConfig = { selectedLocations };
|
|
510
|
+
}
|
|
511
|
+
|
|
477
512
|
// Ask for web bundles installation
|
|
478
513
|
const { includeWebBundles } = await inquirer.prompt([
|
|
479
514
|
{
|
|
@@ -122,6 +122,25 @@ ide-configurations:
|
|
|
122
122
|
# 3. Simply mention the agent in your prompt (e.g., "As *dev, ...").
|
|
123
123
|
# 4. The Qwen Code CLI will automatically have the context for that agent.
|
|
124
124
|
|
|
125
|
+
auggie-cli:
|
|
126
|
+
name: Auggie CLI (Augment Code)
|
|
127
|
+
format: multi-location
|
|
128
|
+
locations:
|
|
129
|
+
user:
|
|
130
|
+
name: User Commands (Global)
|
|
131
|
+
rule-dir: ~/.augment/commands/bmad/
|
|
132
|
+
description: Available across all your projects (user-wide)
|
|
133
|
+
workspace:
|
|
134
|
+
name: Workspace Commands (Project)
|
|
135
|
+
rule-dir: ./.augment/commands/bmad/
|
|
136
|
+
description: Stored in your repository and shared with your team
|
|
137
|
+
command-suffix: .md
|
|
138
|
+
instructions: |
|
|
139
|
+
# To use BMad agents in Auggie CLI (Augment Code):
|
|
140
|
+
# 1. Type /bmad:agent-name (e.g., "/bmad:dev", "/bmad:pm", "/bmad:architect")
|
|
141
|
+
# 2. The agent will adopt that persona for the conversation
|
|
142
|
+
# 3. Commands are available based on your selected location(s)
|
|
143
|
+
|
|
125
144
|
codex:
|
|
126
145
|
name: Codex CLI
|
|
127
146
|
format: project-memory
|
|
@@ -74,6 +74,9 @@ class IdeSetup extends BaseIdeSetup {
|
|
|
74
74
|
case 'qwen-code': {
|
|
75
75
|
return this.setupQwenCode(installDir, selectedAgent);
|
|
76
76
|
}
|
|
77
|
+
case 'auggie-cli': {
|
|
78
|
+
return this.setupAuggieCLI(installDir, selectedAgent, spinner, preConfiguredSettings);
|
|
79
|
+
}
|
|
77
80
|
case 'codex': {
|
|
78
81
|
return this.setupCodex(installDir, selectedAgent, { webEnabled: false });
|
|
79
82
|
}
|
|
@@ -1611,6 +1614,96 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
|
|
1611
1614
|
console.log(chalk.dim(''));
|
|
1612
1615
|
console.log(chalk.dim('You can modify these settings anytime in .vscode/settings.json'));
|
|
1613
1616
|
}
|
|
1617
|
+
|
|
1618
|
+
async setupAuggieCLI(installDir, selectedAgent, spinner = null, preConfiguredSettings = null) {
|
|
1619
|
+
const os = require('node:os');
|
|
1620
|
+
const inquirer = require('inquirer');
|
|
1621
|
+
const agents = selectedAgent ? [selectedAgent] : await this.getAllAgentIds(installDir);
|
|
1622
|
+
|
|
1623
|
+
// Get the IDE configuration to access location options
|
|
1624
|
+
const ideConfig = await configLoader.getIdeConfiguration('auggie-cli');
|
|
1625
|
+
const locations = ideConfig.locations;
|
|
1626
|
+
|
|
1627
|
+
// Use pre-configured settings if provided, otherwise prompt
|
|
1628
|
+
let selectedLocations;
|
|
1629
|
+
if (preConfiguredSettings && preConfiguredSettings.selectedLocations) {
|
|
1630
|
+
selectedLocations = preConfiguredSettings.selectedLocations;
|
|
1631
|
+
console.log(
|
|
1632
|
+
chalk.dim(
|
|
1633
|
+
`Using pre-configured Auggie CLI (Augment Code) locations: ${selectedLocations.join(', ')}`,
|
|
1634
|
+
),
|
|
1635
|
+
);
|
|
1636
|
+
} else {
|
|
1637
|
+
// Pause spinner during location selection to avoid UI conflicts
|
|
1638
|
+
let spinnerWasActive = false;
|
|
1639
|
+
if (spinner && spinner.isSpinning) {
|
|
1640
|
+
spinner.stop();
|
|
1641
|
+
spinnerWasActive = true;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
// Clear any previous output and add spacing to avoid conflicts with loaders
|
|
1645
|
+
console.log('\n'.repeat(2));
|
|
1646
|
+
console.log(chalk.blue('📍 Auggie CLI Location Configuration'));
|
|
1647
|
+
console.log(chalk.dim('Choose where to install BMad agents for Auggie CLI access.'));
|
|
1648
|
+
console.log(''); // Add extra spacing
|
|
1649
|
+
|
|
1650
|
+
const response = await inquirer.prompt([
|
|
1651
|
+
{
|
|
1652
|
+
type: 'checkbox',
|
|
1653
|
+
name: 'selectedLocations',
|
|
1654
|
+
message: 'Select Auggie CLI command locations:',
|
|
1655
|
+
choices: Object.entries(locations).map(([key, location]) => ({
|
|
1656
|
+
name: `${location.name}: ${location.description}`,
|
|
1657
|
+
value: key,
|
|
1658
|
+
})),
|
|
1659
|
+
validate: (selected) => {
|
|
1660
|
+
if (selected.length === 0) {
|
|
1661
|
+
return 'Please select at least one location';
|
|
1662
|
+
}
|
|
1663
|
+
return true;
|
|
1664
|
+
},
|
|
1665
|
+
},
|
|
1666
|
+
]);
|
|
1667
|
+
selectedLocations = response.selectedLocations;
|
|
1668
|
+
|
|
1669
|
+
// Restart spinner if it was active before prompts
|
|
1670
|
+
if (spinner && spinnerWasActive) {
|
|
1671
|
+
spinner.start();
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
// Install to each selected location
|
|
1676
|
+
for (const locationKey of selectedLocations) {
|
|
1677
|
+
const location = locations[locationKey];
|
|
1678
|
+
let commandsDir = location['rule-dir'];
|
|
1679
|
+
|
|
1680
|
+
// Handle tilde expansion for user directory
|
|
1681
|
+
if (commandsDir.startsWith('~/')) {
|
|
1682
|
+
commandsDir = path.join(os.homedir(), commandsDir.slice(2));
|
|
1683
|
+
} else if (commandsDir.startsWith('./')) {
|
|
1684
|
+
commandsDir = path.join(installDir, commandsDir.slice(2));
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
await fileManager.ensureDirectory(commandsDir);
|
|
1688
|
+
|
|
1689
|
+
for (const agentId of agents) {
|
|
1690
|
+
// Find the agent file
|
|
1691
|
+
const agentPath = await this.findAgentPath(agentId, installDir);
|
|
1692
|
+
|
|
1693
|
+
if (agentPath) {
|
|
1694
|
+
const agentContent = await fileManager.readFile(agentPath);
|
|
1695
|
+
const mdPath = path.join(commandsDir, `${agentId}.md`);
|
|
1696
|
+
await fileManager.writeFile(mdPath, agentContent);
|
|
1697
|
+
console.log(chalk.green(`✓ Created command: ${agentId}.md in ${location.name}`));
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
console.log(chalk.green(`\n✓ Created Auggie CLI commands in ${commandsDir}`));
|
|
1702
|
+
console.log(chalk.dim(` Location: ${location.name} - ${location.description}`));
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
return true;
|
|
1706
|
+
}
|
|
1614
1707
|
}
|
|
1615
1708
|
|
|
1616
1709
|
module.exports = new IdeSetup();
|
|
@@ -408,7 +408,12 @@ class Installer {
|
|
|
408
408
|
if (ides.length > 0) {
|
|
409
409
|
for (const ide of ides) {
|
|
410
410
|
spinner.text = `Setting up ${ide} integration...`;
|
|
411
|
-
|
|
411
|
+
let preConfiguredSettings = null;
|
|
412
|
+
if (ide === 'github-copilot') {
|
|
413
|
+
preConfiguredSettings = config.githubCopilotConfig;
|
|
414
|
+
} else if (ide === 'auggie-cli') {
|
|
415
|
+
preConfiguredSettings = config.augmentCodeConfig;
|
|
416
|
+
}
|
|
412
417
|
await ideSetup.setup(ide, installDir, config.agent, spinner, preConfiguredSettings);
|
|
413
418
|
}
|
|
414
419
|
}
|