fix: update dependency resolver to support both yml and yaml code blocks

- Fix regex pattern to match both yml and yaml in agent markdown files
- This resolves validation failures after yaml-format standardized to 'yaml'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Brian Madison
2025-06-15 14:23:25 -05:00
parent c5fe28e76b
commit ba1e5ceb36

View File

@@ -14,7 +14,7 @@ class DependencyResolver {
const agentContent = await fs.readFile(agentPath, 'utf8');
// Extract YAML from markdown content
const yamlMatch = agentContent.match(/```yml\n([\s\S]*?)\n```/);
const yamlMatch = agentContent.match(/```ya?ml\n([\s\S]*?)\n```/);
if (!yamlMatch) {
throw new Error(`No YAML configuration found in agent ${agentId}`);
}