refactor: clone config at install() entry to prevent mutation
This commit is contained in:
parent
053840d755
commit
3170c7aa7e
|
|
@ -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 {string[]} config.ides - IDEs to configure
|
||||||
* @param {boolean} config.skipIde - Skip IDE configuration
|
* @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
|
// Display BMAD logo
|
||||||
CLIUtils.displayLogo();
|
CLIUtils.displayLogo();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue