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

Function pluginDescription

tests/legacy-cleanup.test.ts:27–34  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

25}
26
27async function pluginDescription(relativePath: string): Promise<string> {
28 const raw = await fs.readFile(path.join(import.meta.dir, "..", relativePath), "utf8")
29 const { data } = parseFrontmatter(raw, relativePath)
30 if (typeof data.description !== "string") {
31 throw new Error(`Missing description in ${relativePath}`)
32 }
33 return data.description
34}
35
36const HISTORICAL_AGENT_DESCRIPTIONS: Record<string, string> = {
37 "ce-adversarial-reviewer":

Callers 1

Calls 1

parseFrontmatterFunction · 0.90

Tested by

no test coverage detected