refactor: clone config at install() entry to prevent mutation

This commit is contained in:
Alex Verkhovsky 2025-12-08 10:51:20 -07:00
parent 053840d755
commit 3170c7aa7e
1 changed files with 4 additions and 1 deletions

View File

@ -408,7 +408,10 @@ If AgentVibes party mode is enabled, immediately trigger TTS with agent's voice:
* @param {string[]} config.ides - IDEs to configure
* @param {boolean} config.skipIde - Skip IDE configuration
*/
async install(config) {
async install(originalConfig) {
// Clone config to avoid mutating the caller's object
const config = { ...originalConfig };
// Display BMAD logo
CLIUtils.displayLogo();