- 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
|
||
|---|---|---|
| .. | ||
| activation-builder.js | ||
| agent-analyzer.js | ||
| agent-party-generator.js | ||
| cli-utils.js | ||
| config.js | ||
| file-ops.js | ||
| platform-codes.js | ||
| project-root.js | ||
| replace-project-root.js | ||
| ui.js | ||
| xml-handler.js | ||
| xml-to-markdown.js | ||
| yaml-format.js | ||
| yaml-xml-builder.js | ||