Skip to content

Function: executeMarkdownFrontmatterSource() ​

ts
function executeMarkdownFrontmatterSource<T>(
   node, 
   _input, 
   _ctx
): Promise<ResolvedSourceArtifact<T>>;

Defined in: markdown/src/executors/markdown-source-executors.ts:33

Executes a MarkdownFrontmatterSourceNode<T> against the immutable host repository root (SPEC.md §3.4, §4.5).

Parses YAML frontmatter and Markdown bodies, translates frontmatter globs into passive FsGlobMatcherNode descriptors, validates rule schemas, and returns { content, digest }.

Type Parameters ​

Type ParameterDefault typeDescription
TunknownResolved rule, skill, or frontmatter payload type.

Parameters ​

ParameterTypeDescription
nodeMarkdownFrontmatterSourceNode<T>Passive frontmatter source AST node.
_inputunknownUnused executor input parameter.
_ctxResolutionContextActive source resolution context.

Returns ​

Promise<ResolvedSourceArtifact<T>>

Resolved payload and SHA-256 hex digest.

Released under the MIT License.