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

Function loadScenarioSpecs

harness/src/specs.mjs:94–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94export async function loadScenarioSpecs() {
95 const files = await listMarkdownFiles(path.join(SPEC_ROOT, 'scenarios'));
96 const specs = [];
97 for (const file of files) {
98 const spec = await loadSpec(path.relative(ROOT, file));
99 specs.push(spec);
100 }
101 return specs;
102}
103
104export async function loadRuleSpecs() {
105 const files = await listMarkdownFiles(path.join(SPEC_ROOT, 'rules'));

Callers 2

findScenarioFunction · 0.90
listFunction · 0.90

Calls 2

listMarkdownFilesFunction · 0.85
loadSpecFunction · 0.85

Tested by

no test coverage detected