MCPcopy
hub / github.com/coder/mux / FileReader

Interface FileReader

src/node/utils/main/instructionFiles.ts:46–48  ·  view source on GitHub ↗

* File reader abstraction for reading files from either local fs or Runtime.

Source from the content-addressed store, hash-verified

44 * File reader abstraction for reading files from either local fs or Runtime.
45 */
46interface FileReader {
47 readFile(filePath: string): Promise<string>;
48}
49
50/**
51 * Create a FileReader for local filesystem access.

Callers 8

eventStore.test.tsFile · 0.65
readMethod · 0.65
readRegularFileBytesFunction · 0.65
createLocalFileReaderFunction · 0.65
readSingleFileFunction · 0.65
readFileStringFunction · 0.65

Implementers 8

RestrictedTestRuntimesrc/node/services/streamContextBuilder
SessionUsageServicesrc/node/services/sessionUsageService.
RemotePathMappedRuntimesrc/node/services/tools/testHelpers.ts
TrueRemotePathMappedRuntimesrc/node/services/tools/testHelpers.ts
RemotePathMappedRuntimesrc/node/services/agentDefinitions/age
RemotePathMappedRuntimesrc/node/services/agentSkills/agentSki
MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t
DevcontainerRuntimesrc/node/runtime/DevcontainerRuntime.t

Calls

no outgoing calls

Tested by

no test coverage detected