Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ebef6ae0c | ||
|
|
155f9591ea | ||
|
|
6919049eae | ||
|
|
fbd8f1fd73 | ||
|
|
384e17ff2b | ||
|
|
b9bc196e7f |
16
README.md
16
README.md
@@ -243,19 +243,3 @@ BMAD™ and BMAD-METHOD™ are trademarks of BMad Code, LLC. All rights reserved
|
|||||||
[](https://github.com/bmadcode/bmad-method/graphs/contributors)
|
[](https://github.com/bmadcode/bmad-method/graphs/contributors)
|
||||||
|
|
||||||
<sub>Built with ❤️ for the AI-assisted development community</sub>
|
<sub>Built with ❤️ for the AI-assisted development community</sub>
|
||||||
|
|
||||||
#### Codex (CLI & Web)
|
|
||||||
|
|
||||||
- Two modes are supported:
|
|
||||||
- Codex (local only): `npx bmad-method install -f -i codex -d .` — keeps `.bmad-core/` ignored via `.gitignore` for local development.
|
|
||||||
- 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.
|
|
||||||
- For Codex Web, commit both `.bmad-core/` and `AGENTS.md` to the repository.
|
|
||||||
- Codex CLI: run `codex` at your project root; reference agents naturally, e.g., “As dev, implement …”.
|
|
||||||
- Codex Web: open your repo in Codex and prompt the same way — it reads `AGENTS.md` automatically.
|
|
||||||
- Refresh after changes: rerun the appropriate install command (`codex` or `codex-web`) to regenerate the BMAD section inside `AGENTS.md`.
|
|
||||||
|
|
||||||
If a `package.json` exists in your project, the installer will add helpful scripts:
|
|
||||||
|
|
||||||
- `bmad:refresh` → `bmad-method install -f -i codex`
|
|
||||||
- `bmad:list` → `bmad-method list:agents`
|
|
||||||
- `bmad:validate` → `bmad-method validate`
|
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/agents/analyst.txt
vendored
1
dist/agents/analyst.txt
vendored
@@ -2158,6 +2158,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/agents/bmad-master.txt
vendored
1
dist/agents/bmad-master.txt
vendored
@@ -7912,6 +7912,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/agents/bmad-orchestrator.txt
vendored
1
dist/agents/bmad-orchestrator.txt
vendored
@@ -579,6 +579,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/teams/team-all.txt
vendored
1
dist/teams/team-all.txt
vendored
@@ -1068,6 +1068,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/teams/team-fullstack.txt
vendored
1
dist/teams/team-fullstack.txt
vendored
@@ -902,6 +902,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/teams/team-ide-minimal.txt
vendored
1
dist/teams/team-ide-minimal.txt
vendored
@@ -822,6 +822,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
1
dist/teams/team-no-ui.txt
vendored
1
dist/teams/team-no-ui.txt
vendored
@@ -848,6 +848,7 @@ npx bmad-method install
|
|||||||
- **Cline**: VS Code extension with AI features
|
- **Cline**: VS Code extension with AI features
|
||||||
- **Roo Code**: Web-based IDE with agent support
|
- **Roo Code**: Web-based IDE with agent support
|
||||||
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
- **GitHub Copilot**: VS Code extension with AI peer programming assistant
|
||||||
|
- **Auggie CLI (Augment Code)**: AI-powered development environment
|
||||||
|
|
||||||
**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.
|
**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.
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Each expansion pack provides deep, specialized knowledge without bloating the co
|
|||||||
|
|
||||||
Anyone can create and share expansion packs, fostering a ecosystem of AI-powered solutions across all industries and interests.
|
Anyone can create and share expansion packs, fostering a ecosystem of AI-powered solutions across all industries and interests.
|
||||||
|
|
||||||
## Technical Expansion Packs
|
## Technical Expansion Packs (Examples of possible expansions to come)
|
||||||
|
|
||||||
### Game Development Pack
|
### Game Development Pack
|
||||||
|
|
||||||
@@ -191,90 +191,10 @@ Research acceleration tools:
|
|||||||
|
|
||||||
## Creating Your Own Expansion Pack
|
## Creating Your Own Expansion Pack
|
||||||
|
|
||||||
### Step 1: Define Your Domain
|
The next major release will include a new agent and expansion pack builder and a new expansion format.
|
||||||
|
|
||||||
What expertise are you capturing? What problems will it solve?
|
|
||||||
|
|
||||||
### Step 2: Design Your Agents
|
|
||||||
|
|
||||||
Each agent should have:
|
|
||||||
|
|
||||||
- Clear expertise area
|
|
||||||
- Specific personality traits
|
|
||||||
- Defined capabilities
|
|
||||||
- Knowledge boundaries
|
|
||||||
|
|
||||||
### Step 3: Create Tasks
|
|
||||||
|
|
||||||
Tasks should be:
|
|
||||||
|
|
||||||
- Step-by-step procedures
|
|
||||||
- Reusable across scenarios
|
|
||||||
- Clear and actionable
|
|
||||||
- Domain-specific
|
|
||||||
|
|
||||||
### Step 4: Build Templates
|
|
||||||
|
|
||||||
Templates need:
|
|
||||||
|
|
||||||
- Structured output format
|
|
||||||
- Embedded LLM instructions
|
|
||||||
- Placeholders for customization
|
|
||||||
- Professional formatting
|
|
||||||
|
|
||||||
### Step 5: Test & Iterate
|
|
||||||
|
|
||||||
- Use with real scenarios
|
|
||||||
- Gather user feedback
|
|
||||||
- Refine agent responses
|
|
||||||
- Improve task clarity
|
|
||||||
|
|
||||||
### Step 6: Package & Share
|
|
||||||
|
|
||||||
- Create clear documentation
|
|
||||||
- Include usage examples
|
|
||||||
- Add to expansion-packs directory
|
|
||||||
- Share with community
|
|
||||||
|
|
||||||
## The Future of Expansion Packs
|
|
||||||
|
|
||||||
### Marketplace Potential
|
|
||||||
|
|
||||||
Imagine a future where:
|
|
||||||
|
|
||||||
- Professional expansion packs are sold
|
|
||||||
- Certified packs for regulated industries
|
|
||||||
- Community ratings and reviews
|
|
||||||
- Automatic updates and improvements
|
|
||||||
|
|
||||||
### AI Agent Ecosystems
|
|
||||||
|
|
||||||
Expansion packs could enable:
|
|
||||||
|
|
||||||
- Cross-pack agent collaboration
|
|
||||||
- Industry-standard agent protocols
|
|
||||||
- Interoperable AI workflows
|
|
||||||
- Universal agent languages
|
|
||||||
|
|
||||||
### Democratizing Expertise
|
|
||||||
|
|
||||||
Every expansion pack:
|
|
||||||
|
|
||||||
- Makes expert knowledge accessible
|
|
||||||
- Reduces barriers to entry
|
|
||||||
- Enables solo entrepreneurs
|
|
||||||
- Empowers small teams
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
1. **Browse existing packs**: Check `expansion-packs/` directory
|
|
||||||
2. **Install what you need**: Use the installer's expansion pack option
|
|
||||||
3. **Create your own**: Use the expansion-creator pack
|
|
||||||
4. **Share with others**: Submit PRs with new packs
|
|
||||||
5. **Build the future**: Help shape AI-assisted work
|
|
||||||
|
|
||||||
## Remember
|
## Remember
|
||||||
|
|
||||||
The BMad Method is more than a development framework - it's a platform for structuring human expertise into AI-accessible formats. Every expansion pack you create makes specialized knowledge more accessible to everyone.
|
The BMad Method is more than a Software Development Agile Framework! Every expansion pack makes specialized knowledge and workflows more accessible to everyone.
|
||||||
|
|
||||||
**What expertise will you share with the world?**
|
**What expertise will you share with the world?**
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.40.1",
|
"version": "4.42.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.40.1",
|
"version": "4.42.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kayvan/markdown-tree-parser": "^1.6.1",
|
"@kayvan/markdown-tree-parser": "^1.6.1",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.42.1",
|
"version": "4.43.0",
|
||||||
"description": "Breakthrough Method of Agile AI-driven Development",
|
"description": "Breakthrough Method of Agile AI-driven Development",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"agile",
|
"agile",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ program
|
|||||||
.option('-d, --directory <path>', 'Installation directory')
|
.option('-d, --directory <path>', 'Installation directory')
|
||||||
.option(
|
.option(
|
||||||
'-i, --ide <ide...>',
|
'-i, --ide <ide...>',
|
||||||
'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)',
|
'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)',
|
||||||
)
|
)
|
||||||
.option(
|
.option(
|
||||||
'-e, --expansion-packs <packs...>',
|
'-e, --expansion-packs <packs...>',
|
||||||
@@ -406,6 +406,9 @@ async function promptInstallation() {
|
|||||||
{ name: 'Qwen Code', value: 'qwen-code' },
|
{ name: 'Qwen Code', value: 'qwen-code' },
|
||||||
{ name: 'Crush', value: 'crush' },
|
{ name: 'Crush', value: 'crush' },
|
||||||
{ name: 'Github Copilot', value: 'github-copilot' },
|
{ name: 'Github Copilot', value: 'github-copilot' },
|
||||||
|
{ name: 'Auggie CLI (Augment Code)', value: 'auggie-cli' },
|
||||||
|
{ name: 'Codex CLI', value: 'codex' },
|
||||||
|
{ name: 'Codex Web', value: 'codex-web' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -474,6 +477,38 @@ async function promptInstallation() {
|
|||||||
answers.githubCopilotConfig = { configChoice };
|
answers.githubCopilotConfig = { configChoice };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Configure Auggie CLI (Augment Code) immediately if selected
|
||||||
|
if (ides.includes('auggie-cli')) {
|
||||||
|
console.log(chalk.cyan('\n📍 Auggie CLI Location Configuration'));
|
||||||
|
console.log(chalk.dim('Choose where to install BMad agents for Auggie CLI access.\n'));
|
||||||
|
|
||||||
|
const { selectedLocations } = await inquirer.prompt([
|
||||||
|
{
|
||||||
|
type: 'checkbox',
|
||||||
|
name: 'selectedLocations',
|
||||||
|
message: 'Select Auggie CLI command locations:',
|
||||||
|
choices: [
|
||||||
|
{
|
||||||
|
name: 'User Commands (Global): Available across all your projects (user-wide)',
|
||||||
|
value: 'user',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Workspace Commands (Project): Stored in repository, shared with team',
|
||||||
|
value: 'workspace',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
validate: (selected) => {
|
||||||
|
if (selected.length === 0) {
|
||||||
|
return 'Please select at least one location';
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
answers.augmentCodeConfig = { selectedLocations };
|
||||||
|
}
|
||||||
|
|
||||||
// Ask for web bundles installation
|
// Ask for web bundles installation
|
||||||
const { includeWebBundles } = await inquirer.prompt([
|
const { includeWebBundles } = await inquirer.prompt([
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,6 +122,25 @@ ide-configurations:
|
|||||||
# 3. Simply mention the agent in your prompt (e.g., "As *dev, ...").
|
# 3. Simply mention the agent in your prompt (e.g., "As *dev, ...").
|
||||||
# 4. The Qwen Code CLI will automatically have the context for that agent.
|
# 4. The Qwen Code CLI will automatically have the context for that agent.
|
||||||
|
|
||||||
|
auggie-cli:
|
||||||
|
name: Auggie CLI (Augment Code)
|
||||||
|
format: multi-location
|
||||||
|
locations:
|
||||||
|
user:
|
||||||
|
name: User Commands (Global)
|
||||||
|
rule-dir: ~/.augment/commands/bmad/
|
||||||
|
description: Available across all your projects (user-wide)
|
||||||
|
workspace:
|
||||||
|
name: Workspace Commands (Project)
|
||||||
|
rule-dir: ./.augment/commands/bmad/
|
||||||
|
description: Stored in your repository and shared with your team
|
||||||
|
command-suffix: .md
|
||||||
|
instructions: |
|
||||||
|
# To use BMad agents in Auggie CLI (Augment Code):
|
||||||
|
# 1. Type /bmad:agent-name (e.g., "/bmad:dev", "/bmad:pm", "/bmad:architect")
|
||||||
|
# 2. The agent will adopt that persona for the conversation
|
||||||
|
# 3. Commands are available based on your selected location(s)
|
||||||
|
|
||||||
codex:
|
codex:
|
||||||
name: Codex CLI
|
name: Codex CLI
|
||||||
format: project-memory
|
format: project-memory
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ class IdeSetup extends BaseIdeSetup {
|
|||||||
case 'qwen-code': {
|
case 'qwen-code': {
|
||||||
return this.setupQwenCode(installDir, selectedAgent);
|
return this.setupQwenCode(installDir, selectedAgent);
|
||||||
}
|
}
|
||||||
|
case 'auggie-cli': {
|
||||||
|
return this.setupAuggieCLI(installDir, selectedAgent, spinner, preConfiguredSettings);
|
||||||
|
}
|
||||||
case 'codex': {
|
case 'codex': {
|
||||||
return this.setupCodex(installDir, selectedAgent, { webEnabled: false });
|
return this.setupCodex(installDir, selectedAgent, { webEnabled: false });
|
||||||
}
|
}
|
||||||
@@ -1611,6 +1614,96 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
|||||||
console.log(chalk.dim(''));
|
console.log(chalk.dim(''));
|
||||||
console.log(chalk.dim('You can modify these settings anytime in .vscode/settings.json'));
|
console.log(chalk.dim('You can modify these settings anytime in .vscode/settings.json'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async setupAuggieCLI(installDir, selectedAgent, spinner = null, preConfiguredSettings = null) {
|
||||||
|
const os = require('node:os');
|
||||||
|
const inquirer = require('inquirer');
|
||||||
|
const agents = selectedAgent ? [selectedAgent] : await this.getAllAgentIds(installDir);
|
||||||
|
|
||||||
|
// Get the IDE configuration to access location options
|
||||||
|
const ideConfig = await configLoader.getIdeConfiguration('auggie-cli');
|
||||||
|
const locations = ideConfig.locations;
|
||||||
|
|
||||||
|
// Use pre-configured settings if provided, otherwise prompt
|
||||||
|
let selectedLocations;
|
||||||
|
if (preConfiguredSettings && preConfiguredSettings.selectedLocations) {
|
||||||
|
selectedLocations = preConfiguredSettings.selectedLocations;
|
||||||
|
console.log(
|
||||||
|
chalk.dim(
|
||||||
|
`Using pre-configured Auggie CLI (Augment Code) locations: ${selectedLocations.join(', ')}`,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// Pause spinner during location selection to avoid UI conflicts
|
||||||
|
let spinnerWasActive = false;
|
||||||
|
if (spinner && spinner.isSpinning) {
|
||||||
|
spinner.stop();
|
||||||
|
spinnerWasActive = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear any previous output and add spacing to avoid conflicts with loaders
|
||||||
|
console.log('\n'.repeat(2));
|
||||||
|
console.log(chalk.blue('📍 Auggie CLI Location Configuration'));
|
||||||
|
console.log(chalk.dim('Choose where to install BMad agents for Auggie CLI access.'));
|
||||||
|
console.log(''); // Add extra spacing
|
||||||
|
|
||||||
|
const response = await inquirer.prompt([
|
||||||
|
{
|
||||||
|
type: 'checkbox',
|
||||||
|
name: 'selectedLocations',
|
||||||
|
message: 'Select Auggie CLI command locations:',
|
||||||
|
choices: Object.entries(locations).map(([key, location]) => ({
|
||||||
|
name: `${location.name}: ${location.description}`,
|
||||||
|
value: key,
|
||||||
|
})),
|
||||||
|
validate: (selected) => {
|
||||||
|
if (selected.length === 0) {
|
||||||
|
return 'Please select at least one location';
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
selectedLocations = response.selectedLocations;
|
||||||
|
|
||||||
|
// Restart spinner if it was active before prompts
|
||||||
|
if (spinner && spinnerWasActive) {
|
||||||
|
spinner.start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Install to each selected location
|
||||||
|
for (const locationKey of selectedLocations) {
|
||||||
|
const location = locations[locationKey];
|
||||||
|
let commandsDir = location['rule-dir'];
|
||||||
|
|
||||||
|
// Handle tilde expansion for user directory
|
||||||
|
if (commandsDir.startsWith('~/')) {
|
||||||
|
commandsDir = path.join(os.homedir(), commandsDir.slice(2));
|
||||||
|
} else if (commandsDir.startsWith('./')) {
|
||||||
|
commandsDir = path.join(installDir, commandsDir.slice(2));
|
||||||
|
}
|
||||||
|
|
||||||
|
await fileManager.ensureDirectory(commandsDir);
|
||||||
|
|
||||||
|
for (const agentId of agents) {
|
||||||
|
// Find the agent file
|
||||||
|
const agentPath = await this.findAgentPath(agentId, installDir);
|
||||||
|
|
||||||
|
if (agentPath) {
|
||||||
|
const agentContent = await fileManager.readFile(agentPath);
|
||||||
|
const mdPath = path.join(commandsDir, `${agentId}.md`);
|
||||||
|
await fileManager.writeFile(mdPath, agentContent);
|
||||||
|
console.log(chalk.green(`✓ Created command: ${agentId}.md in ${location.name}`));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(chalk.green(`\n✓ Created Auggie CLI commands in ${commandsDir}`));
|
||||||
|
console.log(chalk.dim(` Location: ${location.name} - ${location.description}`));
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = new IdeSetup();
|
module.exports = new IdeSetup();
|
||||||
|
|||||||
@@ -408,7 +408,12 @@ class Installer {
|
|||||||
if (ides.length > 0) {
|
if (ides.length > 0) {
|
||||||
for (const ide of ides) {
|
for (const ide of ides) {
|
||||||
spinner.text = `Setting up ${ide} integration...`;
|
spinner.text = `Setting up ${ide} integration...`;
|
||||||
const preConfiguredSettings = ide === 'github-copilot' ? config.githubCopilotConfig : null;
|
let preConfiguredSettings = null;
|
||||||
|
if (ide === 'github-copilot') {
|
||||||
|
preConfiguredSettings = config.githubCopilotConfig;
|
||||||
|
} else if (ide === 'auggie-cli') {
|
||||||
|
preConfiguredSettings = config.augmentCodeConfig;
|
||||||
|
}
|
||||||
await ideSetup.setup(ide, installDir, config.agent, spinner, preConfiguredSettings);
|
await ideSetup.setup(ide, installDir, config.agent, spinner, preConfiguredSettings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
tools/installer/package-lock.json
generated
4
tools/installer/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.37.0-beta.4",
|
"version": "4.42.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.37.0-beta.4",
|
"version": "4.42.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bmad-method",
|
"name": "bmad-method",
|
||||||
"version": "4.42.1",
|
"version": "4.43.0",
|
||||||
"description": "BMad Method installer - AI-powered Agile development framework",
|
"description": "BMad Method installer - AI-powered Agile development framework",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bmad",
|
"bmad",
|
||||||
|
|||||||
Reference in New Issue
Block a user