MCPcopy Create free account
hub / github.com/github/gh-aw / extractIncludedFrontmatter

Function extractIncludedFrontmatter

pkg/parser/include_processor.go:212–217  ·  view source on GitHub ↗
(filePath string, content []byte)

Source from the content-addressed store, hash-verified

210}
211
212func 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
219func validateIncludedFrontmatterWithFallback(filePath string, frontmatter map[string]any, isWorkflowFile, isAgentFile bool) error {
220 if isAgentFile || strings.HasPrefix(filePath, BuiltinPathPrefix) {

Callers 1

Tested by

no test coverage detected