basalt / ai/src / ProjectReader
Interface: ProjectReader
Defined in: ai/src/context/project.ts:8
Reads project files relative to a root. Injectable so the whole detection layer is unit-testable with an in-memory map (no disk).
Methods
exists()
> exists(relPath): boolean
Defined in: ai/src/context/project.ts:10
Parameters
relPath
string
Returns
boolean
read()
> read(relPath): string | null
Defined in: ai/src/context/project.ts:9
Parameters
relPath
string
Returns
string | null