Skip to content

Commit c24821b

Browse files
Brian MadisonBrian Madison
authored andcommitted
menu wording updates
1 parent 2c4c2d9 commit c24821b

File tree

2 files changed

+4
-75
lines changed

2 files changed

+4
-75
lines changed

tools/cli/commands/install.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ module.exports = {
2121
return;
2222
}
2323

24-
// Handle agent compilation separately
25-
if (config.actionType === 'compile') {
26-
const result = await installer.compileAgents(config);
27-
console.log(chalk.green('\n✨ Agent compilation complete!'));
28-
console.log(chalk.cyan(`Rebuilt ${result.agentCount} agents and ${result.taskCount} tasks`));
29-
process.exit(0);
30-
return;
31-
}
32-
3324
// Handle quick update separately
3425
if (config.actionType === 'quick-update') {
3526
const result = await installer.quickUpdate(config);

tools/cli/lib/ui.js

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,7 @@ class UI {
195195
}
196196

197197
// Common actions
198-
choices.push(
199-
{ name: 'Modify BMAD Installation', value: 'update' },
200-
{ name: 'Add / Update Custom Content', value: 'add-custom' },
201-
{ name: 'Rebuild Agents', value: 'compile' },
202-
);
198+
choices.push({ name: 'Modify BMAD Installation', value: 'update' });
203199

204200
const promptResult = await inquirer.prompt([
205201
{
@@ -224,64 +220,6 @@ class UI {
224220
};
225221
}
226222

227-
// Handle add custom content separately
228-
if (actionType === 'add-custom') {
229-
customContentConfig = await this.promptCustomContentSource();
230-
// After adding custom content, continue to select additional modules
231-
const { installedModuleIds } = await this.getExistingInstallation(confirmedDirectory);
232-
233-
// Ask if user wants to add additional modules
234-
const { wantsMoreModules } = await inquirer.prompt([
235-
{
236-
type: 'confirm',
237-
name: 'wantsMoreModules',
238-
message: 'Do you want to add any additional modules?',
239-
default: false,
240-
},
241-
]);
242-
243-
let selectedModules = [];
244-
if (wantsMoreModules) {
245-
const moduleChoices = await this.getModuleChoices(installedModuleIds, customContentConfig);
246-
selectedModules = await this.selectModules(moduleChoices);
247-
248-
// Process custom content selection
249-
const selectedCustomContent = selectedModules.filter((mod) => mod.startsWith('__CUSTOM_CONTENT__'));
250-
251-
if (selectedCustomContent.length > 0) {
252-
customContentConfig.selected = true;
253-
customContentConfig.selectedFiles = selectedCustomContent.map((mod) => mod.replace('__CUSTOM_CONTENT__', ''));
254-
255-
// Convert to module IDs
256-
const customContentModuleIds = [];
257-
const customHandler = new CustomHandler();
258-
for (const customFile of customContentConfig.selectedFiles) {
259-
const customInfo = await customHandler.getCustomInfo(customFile);
260-
if (customInfo) {
261-
customContentModuleIds.push(customInfo.id);
262-
}
263-
}
264-
selectedModules = [...selectedModules.filter((mod) => !mod.startsWith('__CUSTOM_CONTENT__')), ...customContentModuleIds];
265-
}
266-
}
267-
268-
return {
269-
actionType: 'update',
270-
directory: confirmedDirectory,
271-
installCore: false, // Don't reinstall core
272-
modules: selectedModules,
273-
customContent: customContentConfig,
274-
};
275-
}
276-
277-
// Handle agent compilation separately
278-
if (actionType === 'compile') {
279-
return {
280-
actionType: 'compile',
281-
directory: confirmedDirectory,
282-
};
283-
}
284-
285223
// If actionType === 'update', handle it with the new flow
286224
// Return early with modify configuration
287225
if (actionType === 'update') {
@@ -293,7 +231,7 @@ class UI {
293231
{
294232
type: 'confirm',
295233
name: 'changeModuleSelection',
296-
message: 'Change which modules are installed?',
234+
message: 'Modify official module selection (BMad Method, BMad Builder, Creative Innovation Suite)?',
297235
default: false,
298236
},
299237
]);
@@ -360,7 +298,7 @@ class UI {
360298
{
361299
type: 'confirm',
362300
name: 'wantsOfficialModules',
363-
message: 'Will you be installing any official modules (BMad Method, BMad Builder, Creative Innovation Suite)?',
301+
message: 'Will you be installing any official BMad modules (BMad Method, BMad Builder, Creative Innovation Suite)?',
364302
default: true,
365303
},
366304
]);
@@ -376,7 +314,7 @@ class UI {
376314
{
377315
type: 'confirm',
378316
name: 'wantsCustomContent',
379-
message: 'Will you be installing any locally stored custom content?',
317+
message: 'Would you like to install a local custom module (this includes custom agents and workflows also)?',
380318
default: false,
381319
},
382320
]);

0 commit comments

Comments
 (0)