MCPcopy Create free account
hub / github.com/SethGammon/Citadel / gateStatus

Function gateStatus

scripts/stack-plan.js:66–75  ·  view source on GitHub ↗
(content, gateLabel)

Source from the content-addressed store, hash-verified

64}
65
66function gateStatus(content, gateLabel) {
67 const escaped = gateLabel.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
68 const pattern = new RegExp(`^\\|\\s*${escaped}\\s*\\|\\s*([^|]+?)\\s*\\|\\s*([^|]+?)\\s*\\|`, 'm');
69 const match = content.match(pattern);
70 if (!match) return { pass: false, detail: 'missing gate' };
71 return {
72 pass: match[1].trim() === 'pass',
73 detail: match[2].trim(),
74 };
75}
76
77function parseReadinessReport(projectRoot, filePath) {
78 const content = readText(filePath);

Callers 1

parseReadinessReportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected