feat: upgrade AgentVibes prompt to 3-option select with info panel
Replace yes/no confirm with: install now / skip / tell me more. 'Tell me more' shows description + GitHub link inline without leaving the installer flow. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3be49a5c09
commit
adb2506b7f
|
|
@ -1134,15 +1134,40 @@ class Installer {
|
||||||
// Optional AgentVibes install prompt
|
// Optional AgentVibes install prompt
|
||||||
if (!this._silentConfig) {
|
if (!this._silentConfig) {
|
||||||
try {
|
try {
|
||||||
const { default: prompts2 } = await import('@clack/prompts');
|
const agentVibesChoice = await prompts.select({
|
||||||
const installAgentVibes = await prompts2.confirm({
|
message: '🎙 Give your BMAD agents a voice? (AgentVibes TTS)',
|
||||||
message: '🎙 Install AgentVibes now for agent TTS voices?',
|
choices: [
|
||||||
initialValue: false,
|
{
|
||||||
|
name: 'Yes — install AgentVibes now',
|
||||||
|
value: 'install',
|
||||||
|
hint: 'runs npx agentvibes install',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'No — I\'ll do it later',
|
||||||
|
value: 'skip',
|
||||||
|
hint: 'npx agentvibes install',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Tell me more',
|
||||||
|
value: 'info',
|
||||||
|
hint: 'github.com/paulpreibisch/AgentVibes',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
default: 'skip',
|
||||||
});
|
});
|
||||||
if (installAgentVibes) {
|
|
||||||
const { execSync } = await import('node:child_process');
|
if (agentVibesChoice === 'install') {
|
||||||
prompts2.log.step('Running npx agentvibes install...');
|
const { execSync } = require('node:child_process');
|
||||||
|
await prompts.log.step('Running npx agentvibes install...');
|
||||||
execSync('npx agentvibes install', { stdio: 'inherit' });
|
execSync('npx agentvibes install', { stdio: 'inherit' });
|
||||||
|
} else if (agentVibesChoice === 'info') {
|
||||||
|
await prompts.log.info(
|
||||||
|
'AgentVibes gives each BMAD agent a unique TTS voice, personality, and audio effects.\n' +
|
||||||
|
' Works on Windows (SAPI + Piper), macOS, Linux, and WSL.\n' +
|
||||||
|
' Party mode agents speak with their own voice — no more silent roundtables.\n\n' +
|
||||||
|
' GitHub: https://github.com/paulpreibisch/AgentVibes\n' +
|
||||||
|
' Install: npx agentvibes install'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
// Prompt cancelled or AgentVibes install failed — non-fatal
|
// Prompt cancelled or AgentVibes install failed — non-fatal
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue