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

Function createRuntimeFileReader

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

* Create a FileReader for Runtime-based access (supports SSH).

(runtime: Runtime)

Source from the content-addressed store, hash-verified

60 * Create a FileReader for Runtime-based access (supports SSH).
61 */
62function createRuntimeFileReader(runtime: Runtime): FileReader {
63 return {
64 readFile: (filePath: string) => readFileString(runtime, filePath),
65 };
66}
67
68type ReadInstructionFileResult = { exists: false } | { exists: true; file: InstructionFile | null };
69

Callers 1

Calls 1

readFileStringFunction · 0.90

Tested by

no test coverage detected