Add output folder customization to installer

- Add 3rd question: Output folder name (default: design-process)
- Users can customize to docs/, deliverables/, etc.
- Update config.yaml to use dynamic root_folder
- Update template placeholders to use config.root_folder

Balances simplification (3 questions vs 7+) with useful customization.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Mårten Angner 2026-02-24 10:48:56 +01:00
parent e955b5b212
commit 24e47375d5
2 changed files with 10 additions and 5 deletions

View File

@ -176,7 +176,7 @@ class Installer {
starting_point: config.starting_point || 'brief', starting_point: config.starting_point || 'brief',
communication_language: 'en', communication_language: 'en',
document_output_language: 'en', document_output_language: 'en',
output_folder: 'design-process', output_folder: config.root_folder || 'design-process',
wds_folder: config.wdsFolder, wds_folder: config.wdsFolder,
}; };
@ -291,7 +291,7 @@ class Installer {
'{{user_name}}': config.user_name || 'Designer', '{{user_name}}': config.user_name || 'Designer',
'{{communication_language}}': 'en', '{{communication_language}}': 'en',
'{{document_output_language}}': 'en', '{{document_output_language}}': 'en',
'{{output_folder}}': 'design-process', '{{output_folder}}': config.root_folder || 'design-process',
'{{wds_folder}}': config.wdsFolder || '_wds', '{{wds_folder}}': config.wdsFolder || '_wds',
}; };
@ -351,7 +351,7 @@ class Installer {
'{{user_name}}': config.user_name || 'Designer', '{{user_name}}': config.user_name || 'Designer',
'{{communication_language}}': 'en', '{{communication_language}}': 'en',
'{{document_output_language}}': 'en', '{{document_output_language}}': 'en',
'{{output_folder}}': 'design-process', '{{output_folder}}': config.root_folder || 'design-process',
'{{wds_folder}}': config.wdsFolder || '_wds', '{{wds_folder}}': config.wdsFolder || '_wds',
}; };

View File

@ -34,7 +34,7 @@ class UI {
console.log(chalk.white(` Target: ${chalk.cyan(projectDir)}`)); console.log(chalk.white(` Target: ${chalk.cyan(projectDir)}`));
console.log(chalk.dim(` Agents and workflows will be installed in ${chalk.white('_wds/')}\n`)); console.log(chalk.dim(` Agents and workflows will be installed in ${chalk.white('_wds/')}\n`));
// Minimal 2-question installer // Minimal 3-question installer
const answers = await inquirer.prompt([ const answers = await inquirer.prompt([
{ {
type: 'input', type: 'input',
@ -52,13 +52,18 @@ class UI {
], ],
default: 'brief', default: 'brief',
}, },
{
type: 'input',
name: 'root_folder',
message: 'Output folder name:',
default: 'design-process',
},
]); ]);
return { return {
projectDir, projectDir,
...answers, ...answers,
wdsFolder: '_wds', wdsFolder: '_wds',
root_folder: 'design-process',
cancelled: false, cancelled: false,
}; };
} }