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

@@ -269,7 +269,7 @@ The validation is integrated into the GitHub Actions workflow:
## Dependencies
- **zod**: Schema validation library
- **js-yaml**: YAML parsing
- **yaml**: YAML parsing
- **glob**: File pattern matching
- **c8**: Code coverage reporting

View File

@@ -10,7 +10,7 @@
const fs = require('node:fs');
const path = require('node:path');
const yaml = require('js-yaml');
const yaml = require('yaml');
const { validateAgentFile } = require('../tools/schema/agent.js');
const { glob } = require('glob');
@@ -182,7 +182,7 @@ function runTest(filePath) {
let agentData;
try {
agentData = yaml.load(fileContent);
agentData = yaml.parse(fileContent);
} catch (parseError) {
// YAML parse error
if (shouldPass) {