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

Function isSource

tools/spec-loop/hooks/gate.ts:158–160  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

156}
157
158function isSource(path: string): boolean {
159 return SOURCE_EXTENSIONS.has(extname(path)) && !isAllowedBeforeApproval(path);
160}
161
162function isApproved(text: string): boolean {
163 const match = FRONTMATTER_RE.exec(text);

Callers 1

mainFunction · 0.85

Calls 2

isAllowedBeforeApprovalFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected