MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / readFile

Function readFile

src/orchestration/context-injection.ts:50–54  ·  view source on GitHub ↗
(deps: SlicerDeps, rel: string)

Source from the content-addressed store, hash-verified

48}
49
50async function readFile(deps: SlicerDeps, rel: string): Promise<string | null> {
51 const abs = path.join(deps.cwd, rel);
52 if (deps.read) return deps.read(abs);
53 try { return await fs.readFile(abs, 'utf-8'); } catch { return null; }
54}
55
56/** Is this chunk a type-like declaration worth pulling as a dependency? */
57function isTypeChunk(symbol: string | undefined, file: string): boolean {

Callers 4

sendPhotoMethod · 0.85
buildTaskContextFunction · 0.85
buildImportGraphForFilesFunction · 0.85
estimateNaiveTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected