feat: v6.0.0-alpha.0 - the future is now

This commit is contained in:
Brian Madison
2025-09-28 23:17:07 -05:00
parent 52f6889089
commit 0a6a3f3015
747 changed files with 52759 additions and 235199 deletions

View File

@@ -0,0 +1,47 @@
const chalk = require('chalk');
const { Installer } = require('../installers/lib/core/installer');
const installer = new Installer();
module.exports = {
command: 'status',
description: 'Show installation status',
options: [['-d, --directory <path>', 'Installation directory', '.']],
action: async (options) => {
try {
const status = await installer.getStatus(options.directory);
if (!status.installed) {
console.log(chalk.yellow('\n⚠ No BMAD installation found in:'), options.directory);
console.log(chalk.dim('Run "bmad install" to set up BMAD Method'));
process.exit(0);
}
console.log(chalk.cyan('\n📊 BMAD Installation Status\n'));
console.log(chalk.bold('Location:'), status.path);
console.log(chalk.bold('Version:'), status.version);
console.log(chalk.bold('Core:'), status.hasCore ? chalk.green('✓ Installed') : chalk.red('✗ Not installed'));
if (status.modules.length > 0) {
console.log(chalk.bold('\nModules:'));
for (const mod of status.modules) {
console.log(` ${chalk.green('✓')} ${mod.id} (v${mod.version})`);
}
} else {
console.log(chalk.bold('\nModules:'), chalk.dim('None installed'));
}
if (status.ides.length > 0) {
console.log(chalk.bold('\nConfigured IDEs:'));
for (const ide of status.ides) {
console.log(` ${chalk.green('✓')} ${ide}`);
}
}
process.exit(0);
} catch (error) {
console.error(chalk.red('Error:'), error.message);
process.exit(1);
}
},
};