consolidate and remove some duplication

This commit is contained in:
Brian Madison
2025-12-22 10:13:56 +08:00
parent 9c268f8190
commit 1e721f7fd0
18 changed files with 196 additions and 1293 deletions

View File

@@ -2,9 +2,9 @@ const path = require('node:path');
const fs = require('fs-extra');
const yaml = require('yaml');
const chalk = require('chalk');
const { XmlHandler } = require('../../../lib/xml-handler');
const { XmlHandler } = require('../../../lib/agent/xml-handler');
const { getProjectRoot, getSourcePath, getModulePath } = require('../../../lib/project-root');
const { filterCustomizationData } = require('../../../lib/agent/compiler');
const { filterCustomizationData } = require('../../../lib/agent/yaml-xml-builder');
/**
* Manages the installation, updating, and removal of BMAD modules.
@@ -757,7 +757,7 @@ class ModuleManager {
// Read and compile the YAML
try {
const yamlContent = await fs.readFile(sourceYamlPath, 'utf8');
const { compileAgent } = require('../../../lib/agent/compiler');
const { compileAgent } = require('../../../lib/agent/yaml-xml-builder');
// Create customize template if it doesn't exist
if (!(await fs.pathExists(customizePath))) {