MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / readDescription

Function readDescription

src/utils/legacy-cleanup.ts:777–785  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

775}
776
777async function readDescription(filePath: string): Promise<string | null> {
778 try {
779 const raw = await fs.readFile(filePath, "utf8")
780 const { data } = parseFrontmatter(raw, filePath)
781 return typeof data.description === "string" ? data.description : null
782 } catch {
783 return null
784 }
785}
786
787async function readYamlDescription(filePath: string): Promise<string | null> {
788 try {

Callers 2

loadLegacyFingerprintsFunction · 0.85
isLegacyPluginOwnedFunction · 0.85

Calls 1

parseFrontmatterFunction · 0.90

Tested by

no test coverage detected