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:
@@ -14,7 +14,7 @@ class DependencyResolver {
|
|||||||
const agentContent = await fs.readFile(agentPath, 'utf8');
|
const agentContent = await fs.readFile(agentPath, 'utf8');
|
||||||
|
|
||||||
// Extract YAML from markdown content
|
// 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) {
|
if (!yamlMatch) {
|
||||||
throw new Error(`No YAML configuration found in agent ${agentId}`);
|
throw new Error(`No YAML configuration found in agent ${agentId}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user