BMAD-METHOD/tools/cli/lib
fxomo f38905628a
Fix: Add prompts and memories merging from customize.yaml (#889)
- Add merging logic for customizeYaml.prompts and customizeYaml.memories in loadAndMergeAgent()
- Implement buildMemoriesXml() method to output memories XML section
- Update buildPromptsXml() to use <content> wrapper instead of CDATA for better compatibility
- Integrate memories output into convertToXml() between persona and prompts sections

Changes:
1. Line 123-131: Added prompts and memories append logic in loadAndMergeAgent()
2. Line 215-218: Added memories XML output in convertToXml()
3. Line 286-301: New buildMemoriesXml() method
4. Line 312-315: Updated prompts to use <content> wrapper for consistency

This allows users to customize agents via bmad/_cfg/agents/*.customize.yaml with:
- prompts: Array of {id, content} objects for action handlers
- memories: Array of strings for persistent agent memories
2025-11-16 00:36:32 -06:00
..
activation-builder.js minor dev agent updates 2025-10-11 19:45:25 -05:00
agent-analyzer.js agent updates 2025-10-02 21:45:59 -05:00
agent-party-generator.js installer for bmm includes option to include game assets or not when adding to a project. 2025-10-27 22:38:34 -05:00
cli-utils.js Major Enhancements: 2025-11-09 17:39:05 -06:00
config.js fix: ensure POSIX-compliant newlines in generated files (#856) 2025-11-04 20:18:12 -06:00
file-ops.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
platform-codes.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
project-root.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
replace-project-root.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
ui.js installer update to quick install and agent rebuild 2025-11-12 22:40:45 -06:00
xml-handler.js feat: Add ide-only and web-only menu item filtering for platform-specific commands 2025-11-15 19:39:53 -06:00
xml-to-markdown.js feat: v6.0.0-alpha.0 - the future is now 2025-09-28 23:17:07 -05:00
yaml-format.js fix: ensure POSIX-compliant newlines in generated files (#856) 2025-11-04 20:18:12 -06:00
yaml-xml-builder.js Fix: Add prompts and memories merging from customize.yaml (#889) 2025-11-16 00:36:32 -06:00