mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-18 02:05:30 +00:00
menu wording updates
This commit is contained in:
parent
2c4c2d9717
commit
c24821b6ed
@ -21,15 +21,6 @@ module.exports = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle agent compilation separately
|
|
||||||
if (config.actionType === 'compile') {
|
|
||||||
const result = await installer.compileAgents(config);
|
|
||||||
console.log(chalk.green('\n✨ Agent compilation complete!'));
|
|
||||||
console.log(chalk.cyan(`Rebuilt ${result.agentCount} agents and ${result.taskCount} tasks`));
|
|
||||||
process.exit(0);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle quick update separately
|
// Handle quick update separately
|
||||||
if (config.actionType === 'quick-update') {
|
if (config.actionType === 'quick-update') {
|
||||||
const result = await installer.quickUpdate(config);
|
const result = await installer.quickUpdate(config);
|
||||||
|
|||||||
@ -195,11 +195,7 @@ class UI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Common actions
|
// Common actions
|
||||||
choices.push(
|
choices.push({ name: 'Modify BMAD Installation', value: 'update' });
|
||||||
{ name: 'Modify BMAD Installation', value: 'update' },
|
|
||||||
{ name: 'Add / Update Custom Content', value: 'add-custom' },
|
|
||||||
{ name: 'Rebuild Agents', value: 'compile' },
|
|
||||||
);
|
|
||||||
|
|
||||||
const promptResult = await inquirer.prompt([
|
const promptResult = await inquirer.prompt([
|
||||||
{
|
{
|
||||||
@ -224,64 +220,6 @@ class UI {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle add custom content separately
|
|
||||||
if (actionType === 'add-custom') {
|
|
||||||
customContentConfig = await this.promptCustomContentSource();
|
|
||||||
// After adding custom content, continue to select additional modules
|
|
||||||
const { installedModuleIds } = await this.getExistingInstallation(confirmedDirectory);
|
|
||||||
|
|
||||||
// Ask if user wants to add additional modules
|
|
||||||
const { wantsMoreModules } = await inquirer.prompt([
|
|
||||||
{
|
|
||||||
type: 'confirm',
|
|
||||||
name: 'wantsMoreModules',
|
|
||||||
message: 'Do you want to add any additional modules?',
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
let selectedModules = [];
|
|
||||||
if (wantsMoreModules) {
|
|
||||||
const moduleChoices = await this.getModuleChoices(installedModuleIds, customContentConfig);
|
|
||||||
selectedModules = await this.selectModules(moduleChoices);
|
|
||||||
|
|
||||||
// Process custom content selection
|
|
||||||
const selectedCustomContent = selectedModules.filter((mod) => mod.startsWith('__CUSTOM_CONTENT__'));
|
|
||||||
|
|
||||||
if (selectedCustomContent.length > 0) {
|
|
||||||
customContentConfig.selected = true;
|
|
||||||
customContentConfig.selectedFiles = selectedCustomContent.map((mod) => mod.replace('__CUSTOM_CONTENT__', ''));
|
|
||||||
|
|
||||||
// Convert to module IDs
|
|
||||||
const customContentModuleIds = [];
|
|
||||||
const customHandler = new CustomHandler();
|
|
||||||
for (const customFile of customContentConfig.selectedFiles) {
|
|
||||||
const customInfo = await customHandler.getCustomInfo(customFile);
|
|
||||||
if (customInfo) {
|
|
||||||
customContentModuleIds.push(customInfo.id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
selectedModules = [...selectedModules.filter((mod) => !mod.startsWith('__CUSTOM_CONTENT__')), ...customContentModuleIds];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
actionType: 'update',
|
|
||||||
directory: confirmedDirectory,
|
|
||||||
installCore: false, // Don't reinstall core
|
|
||||||
modules: selectedModules,
|
|
||||||
customContent: customContentConfig,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle agent compilation separately
|
|
||||||
if (actionType === 'compile') {
|
|
||||||
return {
|
|
||||||
actionType: 'compile',
|
|
||||||
directory: confirmedDirectory,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// If actionType === 'update', handle it with the new flow
|
// If actionType === 'update', handle it with the new flow
|
||||||
// Return early with modify configuration
|
// Return early with modify configuration
|
||||||
if (actionType === 'update') {
|
if (actionType === 'update') {
|
||||||
@ -293,7 +231,7 @@ class UI {
|
|||||||
{
|
{
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'changeModuleSelection',
|
name: 'changeModuleSelection',
|
||||||
message: 'Change which modules are installed?',
|
message: 'Modify official module selection (BMad Method, BMad Builder, Creative Innovation Suite)?',
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@ -360,7 +298,7 @@ class UI {
|
|||||||
{
|
{
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'wantsOfficialModules',
|
name: 'wantsOfficialModules',
|
||||||
message: 'Will you be installing any official modules (BMad Method, BMad Builder, Creative Innovation Suite)?',
|
message: 'Will you be installing any official BMad modules (BMad Method, BMad Builder, Creative Innovation Suite)?',
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@ -376,7 +314,7 @@ class UI {
|
|||||||
{
|
{
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'wantsCustomContent',
|
name: 'wantsCustomContent',
|
||||||
message: 'Will you be installing any locally stored custom content?',
|
message: 'Would you like to install a local custom module (this includes custom agents and workflows also)?',
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user