From 6f95e04df7619039d779df17983d50875b1c2972 Mon Sep 17 00:00:00 2001 From: Paul Preibisch Date: Sun, 7 Dec 2025 15:39:17 -0700 Subject: [PATCH] feat: Add --with-audio flag for first-time AgentVibes installations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically includes --with-audio parameter when installing AgentVibes for the first time (detects by checking if .agentvibes directory exists). This ensures new users get audio tracks downloaded automatically. Updates skip --with-audio to avoid re-downloading existing audio files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- tools/cli/commands/install.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/cli/commands/install.js b/tools/cli/commands/install.js index 76bbde0b..9b403478 100644 --- a/tools/cli/commands/install.js +++ b/tools/cli/commands/install.js @@ -84,6 +84,9 @@ module.exports = { // Run AgentVibes installer const { execSync } = require('node:child_process'); + const fs = require('node:fs'); + const path = require('node:path'); + try { // Clear ALL npm config env vars to prevent inheritance issues // when BMAD is invoked with --prefix flag @@ -92,7 +95,12 @@ module.exports = { Object.entries(process.env).filter(([key]) => !key.startsWith('npm_config_') && !key.startsWith('npm_package_')), ); - execSync('npx agentvibes@latest install', { + // Check if this is first-time AgentVibes installation + const agentvibesDir = path.join(result.projectDir, '.agentvibes'); + const isFirstTime = !fs.existsSync(agentvibesDir); + const installCmd = isFirstTime ? 'npx agentvibes@latest install --with-audio' : 'npx agentvibes@latest install'; + + execSync(installCmd, { cwd: result.projectDir, stdio: 'inherit', shell: true,