BMAD-METHOD/tools/cli/installers
hunter6028 4fd7bba8f0 Fix: Support custom module agent compilation in rebuildAgentFiles()
- Check module's own agents directory first for custom modules
- Fall back to installer source for built-in modules
- Fixes custom module agent compilation issue in alpha versions

This change enables rebuildAgentFiles() to properly compile agents
from custom modules by first checking the module's own agents/
directory for .agent.yaml files. If found, it uses those files
directly. Otherwise, it falls back to the installer source directory
for built-in modules (core, bmm, bmb, etc.).

Tested with custom module 'po' (Prompt Optimizer) - agents compile
successfully and slash commands are generated correctly.
2025-11-24 19:24:00 +08:00
..
lib Fix: Support custom module agent compilation in rebuildAgentFiles() 2025-11-24 19:24:00 +08:00