MCPcopy
hub / github.com/ValueCell-ai/ClawX / loadSpec

Function loadSpec

harness/src/specs.mjs:74–81  ·  view source on GitHub ↗
(specPath)

Source from the content-addressed store, hash-verified

72}
73
74export async function loadSpec(specPath) {
75 const fullPath = path.resolve(ROOT, specPath);
76 const markdown = await readFile(fullPath, 'utf8');
77 return {
78 path: path.relative(ROOT, fullPath),
79 ...parseFrontmatter(markdown),
80 };
81}
82
83async function listMarkdownFiles(dir) {
84 try {

Callers 3

validateFunction · 0.90
loadScenarioSpecsFunction · 0.85
loadRuleSpecsFunction · 0.85

Calls 2

resolveMethod · 0.80
parseFrontmatterFunction · 0.70

Tested by

no test coverage detected