MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isApproved

Function isApproved

tools/spec-loop/hooks/gate.ts:162–166  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

160}
161
162function isApproved(text: string): boolean {
163 const match = FRONTMATTER_RE.exec(text);
164 const haystack = match?.[1] ?? text;
165 return APPROVAL_RE.test(haystack);
166}
167
168function emit(decision: "approve" | "block", reason?: string): never {
169 const out: { decision: string; reason?: string } = { decision };

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected