MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / isDataFile

Function isDataFile

graph-ui/src/browser-ai/file-kind.ts:20–20  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

18
19/** Configuration, data and text files: what they say is read from them, not guessed by a model (K12). */
20export const isDataFile = (path: string): boolean => /not program code/.test(fileKind(path) ?? '');
21
22/** A GitHub Actions workflow, by where GitHub reads it from. */
23export const isGithubWorkflow = (path: string): boolean => /(?:^|\/)\.github\/workflows\/[^/]+\.ya?ml$/i.test(path);

Callers 7

fileFactLinesFunction · 0.90
readerFactsFunction · 0.90
file-facts.test.tsFile · 0.85
echoedAnswerFunction · 0.85
explainFunction · 0.85
sendFunction · 0.85

Calls 1

fileKindFunction · 0.85

Tested by

no test coverage detected