we only need one yaml lib

This commit is contained in:
Brian Madison
2025-12-13 18:35:07 +08:00
parent ce42d56fdd
commit 8642553bd7
27 changed files with 130 additions and 96 deletions

View File

@@ -12,7 +12,7 @@
*/
const { glob } = require('glob');
const yaml = require('js-yaml');
const yaml = require('yaml');
const fs = require('node:fs');
const path = require('node:path');
const { validateAgentFile } = require('./schema/agent.js');
@@ -49,7 +49,7 @@ async function main(customProjectRoot) {
try {
const fileContent = fs.readFileSync(filePath, 'utf8');
const agentData = yaml.load(fileContent);
const agentData = yaml.parse(fileContent);
// Convert absolute path to relative src/ path for module detection
const srcRelativePath = relativePath.startsWith('src/') ? relativePath : path.relative(project_root, filePath).replaceAll('\\', '/');