MCPcopy Index your code
hub / github.com/cobusgreyling/loop-engineering / readFileIfExists

Function readFileIfExists

tools/mcp-server/src/resolver.ts:43–49  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

41}
42
43export async function readFileIfExists(filePath: string): Promise<string | null> {
44 try {
45 return await readFile(filePath, 'utf8');
46 } catch {
47 return null;
48 }
49}
50
51export interface PatternInfo {
52 id: string;

Callers 8

loadRegistryFunction · 0.85
loadPatternDocFunction · 0.85
listSkillsFunction · 0.85
loadStateFunction · 0.85
loadLoopConfigFunction · 0.85
loadBudgetFunction · 0.85
loadRunLogFunction · 0.85
loadSafetyDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected