MCPcopy
hub / github.com/Fission-AI/OpenSpec / parseSpecFromFile

Function parseSpecFromFile

src/commands/spec.ts:23–27  ·  view source on GitHub ↗
(specPath: string, specId: string)

Source from the content-addressed store, hash-verified

21}
22
23function parseSpecFromFile(specPath: string, specId: string): Spec {
24 const content = readFileSync(specPath, 'utf-8');
25 const parser = new MarkdownParser(content);
26 return parser.parseSpec(specId);
27}
28
29function validateRequirementIndex(spec: Spec, requirementOpt?: string): number | undefined {
30 if (!requirementOpt) return undefined;

Callers 2

showMethod · 0.85
registerSpecCommandFunction · 0.85

Calls 1

parseSpecMethod · 0.95

Tested by

no test coverage detected