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

@@ -3,7 +3,7 @@ const fs = require('fs-extra');
const chalk = require('chalk');
const yaml = require('yaml');
const { FileOps } = require('../../../lib/file-ops');
const { XmlHandler } = require('../../../lib/xml-handler');
const { XmlHandler } = require('../../../lib/agent/xml-handler');
/**
* Handler for custom content (custom.yaml)
@@ -311,7 +311,7 @@ class CustomHandler {
// Read and compile the YAML
try {
const yamlContent = await fs.readFile(agentFile, '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))) {