BMAD-METHOD/tools/cli/installers/lib/core
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
..
config-collector.js fix: lint and formatting issues in non-interactive installation PR 2025-12-18 12:25:01 +02:00
custom-module-cache.js default accepted for installer quesitons 2025-12-15 12:55:57 +08:00
dependency-resolver.js we only need one yaml lib 2025-12-13 18:35:07 +08:00
detector.js _cfg -> _config 2025-12-13 19:41:09 +08:00
env-resolver.js fix: lint and formatting issues in non-interactive installation PR 2025-12-18 12:25:01 +02:00
ide-config-manager.js default accepted for installer quesitons 2025-12-15 12:55:57 +08:00
installer.js Merge branch 'main' into main 2025-12-18 01:52:00 -07:00
manifest-generator.js fix: lint and formatting issues in non-interactive installation PR 2025-12-18 12:25:01 +02:00
manifest.js core and custom modules all install through the same flow now 2025-12-15 19:16:03 +08:00
options-parser.js fix: wrap string profile values in arrays for consistency 2025-12-18 12:36:30 +02:00