eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
1 lines • 439 B
JavaScript
import{normalizeLogicalPath,stripLogicalPathExtension}from"#discover/filesystem.js";import{createPathDerivedSourceId}from"#discover/manifest.js";async function discoverMarkdownSource(e){let t=normalizeLogicalPath(e.logicalPath);return{definition:e.lower(await e.source.readTextFile(e.sourcePath),{name:stripLogicalPathExtension(t)}),sourceKind:`markdown`,logicalPath:t,sourceId:createPathDerivedSourceId(t)}}export{discoverMarkdownSource};