doc and text cleanup
This commit is contained in:
@@ -93,7 +93,7 @@ class ConfigLoader {
|
||||
description: config['short-title'] || config.description || 'No description available',
|
||||
fullDescription: config.description || config['short-title'] || 'No description available',
|
||||
version: config.version || '1.0.0',
|
||||
author: config.author || 'BMAD Team',
|
||||
author: config.author || 'BMad Team',
|
||||
packPath: packPath,
|
||||
dependencies: config.dependencies?.agents || []
|
||||
});
|
||||
@@ -113,7 +113,7 @@ class ConfigLoader {
|
||||
description: 'No description available',
|
||||
fullDescription: 'No description available',
|
||||
version: '1.0.0',
|
||||
author: 'BMAD Team',
|
||||
author: 'BMad Team',
|
||||
packPath: packPath,
|
||||
dependencies: []
|
||||
});
|
||||
|
||||
@@ -560,7 +560,7 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
||||
}
|
||||
|
||||
console.log(chalk.green(`\n✓ VS Code Copilot setup complete!`));
|
||||
console.log(chalk.dim(`You can now find the BMAD agents in the Chat view's mode selector.`));
|
||||
console.log(chalk.dim(`You can now find the BMad agents in the Chat view's mode selector.`));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -578,7 +578,7 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
||||
try {
|
||||
const existingContent = await fileManager.readFile(settingsPath);
|
||||
existingSettings = JSON.parse(existingContent);
|
||||
console.log(chalk.yellow("Found existing .vscode/settings.json. Merging BMAD settings..."));
|
||||
console.log(chalk.yellow("Found existing .vscode/settings.json. Merging BMad settings..."));
|
||||
} catch (error) {
|
||||
console.warn(chalk.yellow("Could not parse existing settings.json. Creating new one."));
|
||||
existingSettings = {};
|
||||
@@ -588,7 +588,7 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
||||
// Clear any previous output and add spacing to avoid conflicts with loaders
|
||||
console.log('\n'.repeat(2));
|
||||
console.log(chalk.blue("🔧 VS Code Copilot Agent Settings Configuration"));
|
||||
console.log(chalk.dim("BMAD works best with specific VS Code settings for optimal agent experience."));
|
||||
console.log(chalk.dim("BMad works best with specific VS Code settings for optimal agent experience."));
|
||||
console.log(''); // Add extra spacing
|
||||
|
||||
const { configChoice } = await inquirer.prompt([
|
||||
@@ -638,7 +638,7 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
||||
"github.copilot.chat.agent.autoFix": true,
|
||||
"chat.tools.autoApprove": false
|
||||
};
|
||||
console.log(chalk.green("✓ Using recommended BMAD defaults for VS Code Copilot settings"));
|
||||
console.log(chalk.green("✓ Using recommended BMad defaults for VS Code Copilot settings"));
|
||||
} else {
|
||||
// Manual configuration
|
||||
console.log(chalk.blue("\n📋 Let's configure each setting for your preferences:"));
|
||||
@@ -696,7 +696,7 @@ tools: ['changes', 'codebase', 'fetch', 'findTestFiles', 'githubRepo', 'problems
|
||||
}
|
||||
|
||||
bmadSettings = {
|
||||
"chat.agent.enabled": true, // Always enabled - required for BMAD agents
|
||||
"chat.agent.enabled": true, // Always enabled - required for BMad agents
|
||||
"chat.agent.maxRequests": parseInt(manualSettings.maxRequests),
|
||||
"github.copilot.chat.agent.runTasks": manualSettings.runTasks,
|
||||
"chat.mcp.discovery.enabled": manualSettings.mcpDiscovery,
|
||||
|
||||
@@ -220,7 +220,7 @@ class Installer {
|
||||
});
|
||||
|
||||
if (files.length > 0) {
|
||||
// Directory has other files, but no BMAD installation.
|
||||
// Directory has other files, but no BMad installation.
|
||||
// Treat as clean install but record that it isn't empty.
|
||||
state.hasOtherFiles = true;
|
||||
}
|
||||
@@ -235,7 +235,7 @@ class Installer {
|
||||
async performFreshInstall(config, installDir, spinner, options = {}) {
|
||||
// Ensure modules are initialized
|
||||
await initializeModules();
|
||||
spinner.text = "Installing BMAD Method...";
|
||||
spinner.text = "Installing BMad Method...";
|
||||
|
||||
let files = [];
|
||||
|
||||
@@ -396,7 +396,7 @@ class Installer {
|
||||
const newVersion = await this.getCoreVersion();
|
||||
const versionCompare = this.compareVersions(currentVersion, newVersion);
|
||||
|
||||
console.log(chalk.yellow("\n🔍 Found existing BMAD v4 installation"));
|
||||
console.log(chalk.yellow("\n🔍 Found existing BMad v4 installation"));
|
||||
console.log(` Directory: ${installDir}`);
|
||||
console.log(` Current version: ${currentVersion}`);
|
||||
console.log(` Available version: ${newVersion}`);
|
||||
@@ -446,8 +446,8 @@ class Installer {
|
||||
let choices = [];
|
||||
|
||||
if (versionCompare < 0) {
|
||||
console.log(chalk.cyan("\n⬆️ Upgrade available for BMAD core"));
|
||||
choices.push({ name: `Upgrade BMAD core (v${currentVersion} → v${newVersion})`, value: "upgrade" });
|
||||
console.log(chalk.cyan("\n⬆️ Upgrade available for BMad core"));
|
||||
choices.push({ name: `Upgrade BMad core (v${currentVersion} → v${newVersion})`, value: "upgrade" });
|
||||
} else if (versionCompare === 0) {
|
||||
if (hasIntegrityIssues) {
|
||||
// Offer repair option when files are missing or modified
|
||||
@@ -457,10 +457,10 @@ class Installer {
|
||||
});
|
||||
}
|
||||
console.log(chalk.yellow("\n⚠️ Same version already installed"));
|
||||
choices.push({ name: `Force reinstall BMAD core (v${currentVersion} - reinstall)`, value: "reinstall" });
|
||||
choices.push({ name: `Force reinstall BMad core (v${currentVersion} - reinstall)`, value: "reinstall" });
|
||||
} else {
|
||||
console.log(chalk.yellow("\n⬇️ Installed version is newer than available"));
|
||||
choices.push({ name: `Downgrade BMAD core (v${currentVersion} → v${newVersion})`, value: "reinstall" });
|
||||
choices.push({ name: `Downgrade BMad core (v${currentVersion} → v${newVersion})`, value: "reinstall" });
|
||||
}
|
||||
|
||||
choices.push(
|
||||
@@ -535,7 +535,7 @@ class Installer {
|
||||
spinner.stop();
|
||||
|
||||
console.log(
|
||||
chalk.yellow("\n🔍 Found BMAD v3 installation (bmad-agent/ directory)")
|
||||
chalk.yellow("\n🔍 Found BMad v3 installation (bmad-agent/ directory)")
|
||||
);
|
||||
console.log(` Directory: ${installDir}`);
|
||||
|
||||
@@ -768,7 +768,7 @@ class Installer {
|
||||
}
|
||||
|
||||
async performReinstall(config, installDir, spinner) {
|
||||
spinner.start("Preparing to reinstall BMAD Method...");
|
||||
spinner.start("Preparing to reinstall BMad Method...");
|
||||
|
||||
// Remove existing .bmad-core
|
||||
const bmadCorePath = path.join(installDir, ".bmad-core");
|
||||
@@ -782,7 +782,7 @@ class Installer {
|
||||
}
|
||||
|
||||
showSuccessMessage(config, installDir, options = {}) {
|
||||
console.log(chalk.green("\n✓ BMAD Method installed successfully!\n"));
|
||||
console.log(chalk.green("\n✓ BMad Method installed successfully!\n"));
|
||||
|
||||
const ides = config.ides || (config.ide ? [config.ide] : []);
|
||||
if (ides.length > 0) {
|
||||
@@ -790,7 +790,7 @@ class Installer {
|
||||
const ideConfig = configLoader.getIdeConfiguration(ide);
|
||||
if (ideConfig?.instructions) {
|
||||
console.log(
|
||||
chalk.bold(`To use BMAD agents in ${ideConfig.name}:`)
|
||||
chalk.bold(`To use BMad agents in ${ideConfig.name}:`)
|
||||
);
|
||||
console.log(ideConfig.instructions);
|
||||
}
|
||||
@@ -879,7 +879,7 @@ class Installer {
|
||||
};
|
||||
return await this.install(config);
|
||||
}
|
||||
console.log(chalk.red("No BMAD installation found."));
|
||||
console.log(chalk.red("No BMad installation found."));
|
||||
}
|
||||
|
||||
async listAgents() {
|
||||
@@ -887,7 +887,7 @@ class Installer {
|
||||
await initializeModules();
|
||||
const agents = await configLoader.getAvailableAgents();
|
||||
|
||||
console.log(chalk.bold("\nAvailable BMAD Agents:\n"));
|
||||
console.log(chalk.bold("\nAvailable BMad Agents:\n"));
|
||||
|
||||
for (const agent of agents) {
|
||||
console.log(chalk.cyan(` ${agent.id.padEnd(20)}`), agent.description);
|
||||
@@ -903,7 +903,7 @@ class Installer {
|
||||
await initializeModules();
|
||||
const expansionPacks = await this.getAvailableExpansionPacks();
|
||||
|
||||
console.log(chalk.bold("\nAvailable BMAD Expansion Packs:\n"));
|
||||
console.log(chalk.bold("\nAvailable BMad Expansion Packs:\n"));
|
||||
|
||||
if (expansionPacks.length === 0) {
|
||||
console.log(chalk.yellow("No expansion packs found."));
|
||||
@@ -932,7 +932,7 @@ class Installer {
|
||||
|
||||
if (!installDir) {
|
||||
console.log(
|
||||
chalk.yellow("No BMAD installation found in current directory tree")
|
||||
chalk.yellow("No BMad installation found in current directory tree")
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -944,7 +944,7 @@ class Installer {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(chalk.bold("\nBMAD Installation Status:\n"));
|
||||
console.log(chalk.bold("\nBMad Installation Status:\n"));
|
||||
console.log(` Directory: ${installDir}`);
|
||||
console.log(` Version: ${manifest.version}`);
|
||||
console.log(
|
||||
@@ -1399,7 +1399,7 @@ class Installer {
|
||||
await initializeModules();
|
||||
|
||||
try {
|
||||
// Find the dist directory in the BMAD installation
|
||||
// Find the dist directory in the BMad installation
|
||||
const distDir = configLoader.getDistPath();
|
||||
|
||||
if (!(await fileManager.pathExists(distDir))) {
|
||||
|
||||
Reference in New Issue
Block a user