(filePath string, content []byte)
| 210 | } |
| 211 | |
| 212 | func extractIncludedFrontmatter(filePath string, content []byte) (*FrontmatterResult, error) { |
| 213 | if strings.HasPrefix(filePath, BuiltinPathPrefix) { |
| 214 | return ExtractFrontmatterFromBuiltinFile(filePath, content) |
| 215 | } |
| 216 | return ExtractFrontmatterFromContent(string(content)) |
| 217 | } |
| 218 | |
| 219 | func validateIncludedFrontmatterWithFallback(filePath string, frontmatter map[string]any, isWorkflowFile, isAgentFile bool) error { |
| 220 | if isAgentFile || strings.HasPrefix(filePath, BuiltinPathPrefix) { |
no test coverage detected