(agentName, content, agentPath)
| 87 | } |
| 88 | |
| 89 | if (!parsedAgent.body) { |
| 90 | errors.push('missing agent instructions body'); |
| 91 | } |
| 92 | |
| 93 | return errors; |
| 94 | } |
| 95 | |
| 96 | function parseAgentContent(agentName, content, agentPath) { |
| 97 | const frontmatter = parseAgentFrontmatter(content); |
| 98 | const body = extractAgentBody(content); |
| 99 | const parsedAgent = { |
| 100 | name: agentName, |
| 101 | path: agentPath || null, |
| 102 | content, |
| 103 | frontmatter, |
| 104 | body, |
| 105 | }; |
| 106 | |
| 107 | return { |
no test coverage detected