fix: install auggie commands to augment directory (#683)
This commit is contained in:
@@ -6,8 +6,8 @@ BMAD agents can be installed in multiple locations based on your setup.
|
|||||||
|
|
||||||
### Common Locations
|
### Common Locations
|
||||||
|
|
||||||
- User Home: `~/.auggie/commands/`
|
- User Home: `~/.augment/commands/`
|
||||||
- Project: `.auggie/commands/`
|
- Project: `.augment/commands/`
|
||||||
- Custom paths you selected
|
- Custom paths you selected
|
||||||
|
|
||||||
### How to Use
|
### How to Use
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ class AuggieSetup extends BaseIdeSetup {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super('auggie', 'Auggie CLI');
|
super('auggie', 'Auggie CLI');
|
||||||
this.defaultLocations = [
|
this.defaultLocations = [
|
||||||
{ name: 'Project Directory (.auggie/commands)', value: '.auggie/commands', checked: true },
|
{ name: 'Project Directory (.augment/commands)', value: '.augment/commands', checked: true },
|
||||||
{ name: 'User Home (~/.auggie/commands)', value: path.join(os.homedir(), '.auggie', 'commands') },
|
{ name: 'User Home (~/.augment/commands)', value: path.join(os.homedir(), '.augment', 'commands') },
|
||||||
{ name: 'Custom Location', value: 'custom' },
|
{ name: 'Custom Location', value: 'custom' },
|
||||||
];
|
];
|
||||||
this.detectionPaths = ['.auggie'];
|
this.detectionPaths = ['.augment'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -141,7 +141,7 @@ class AuggieSetup extends BaseIdeSetup {
|
|||||||
// Process the pre-collected locations to resolve relative paths
|
// Process the pre-collected locations to resolve relative paths
|
||||||
const processedLocations = [];
|
const processedLocations = [];
|
||||||
for (const loc of options.auggieLocations) {
|
for (const loc of options.auggieLocations) {
|
||||||
if (loc === '.auggie/commands') {
|
if (loc === '.augment/commands') {
|
||||||
// Relative to project directory
|
// Relative to project directory
|
||||||
processedLocations.push(path.join(projectDir, loc));
|
processedLocations.push(path.join(projectDir, loc));
|
||||||
} else {
|
} else {
|
||||||
@@ -183,7 +183,7 @@ class AuggieSetup extends BaseIdeSetup {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
locations.push(custom.path);
|
locations.push(custom.path);
|
||||||
} else if (loc.startsWith('.auggie')) {
|
} else if (loc.startsWith('.augment')) {
|
||||||
// Relative to project directory
|
// Relative to project directory
|
||||||
locations.push(path.join(projectDir, loc));
|
locations.push(path.join(projectDir, loc));
|
||||||
} else {
|
} else {
|
||||||
@@ -239,7 +239,7 @@ BMAD ${task.module.toUpperCase()} module
|
|||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
|
|
||||||
// Check common locations
|
// Check common locations
|
||||||
const locations = [path.join(os.homedir(), '.auggie', 'commands'), path.join(projectDir, '.auggie', 'commands')];
|
const locations = [path.join(os.homedir(), '.augment', 'commands'), path.join(projectDir, '.augment', 'commands')];
|
||||||
|
|
||||||
for (const location of locations) {
|
for (const location of locations) {
|
||||||
const agentsDir = path.join(location, 'agents');
|
const agentsDir = path.join(location, 'agents');
|
||||||
|
|||||||
Reference in New Issue
Block a user