BMAD-METHOD/tools/cli/installers/lib
Nikita Levyankov e9c0aafad9 fix: wrap string profile values in arrays for consistency
The ternary operators WERE needed after all! Profile values can be:
- Arrays: ['dev', 'architect', 'pm']
- Strings: 'all' (special keyword)

Downstream code expects arrays:
- filterWorkflows() checks selectedWorkflows.includes('all')
- filterAgents() checks selectedAgents.includes('all')
- separateModifiers() iterates with for-of loop

Without wrapping strings in arrays:
- 'all' → stays as string → includes() doesn't work
- WITH fix: 'all' → becomes ['all'] → includes('all') works ✓

This fixes the profile workflow:
1. Profile defines: workflows: 'all'
2. Parser wraps: normalized.workflows = ['all']
3. Filter checks: selectedWorkflows.includes('all') → true ✓

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-18 12:36:30 +02:00
..
core fix: wrap string profile values in arrays for consistency 2025-12-18 12:36:30 +02:00
custom less verbose final output during install 2025-12-15 15:55:28 +08:00
ide roo installer had some bugs 2025-12-15 15:08:19 +08:00
modules fixed _bmad folder stutter with agent custom files 2025-12-18 03:22:46 +08:00
profiles fix: lint and formatting issues in non-interactive installation PR 2025-12-18 12:25:01 +02:00
teams fix: lint and formatting issues in non-interactive installation PR 2025-12-18 12:25:01 +02:00