MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readText

Function readText

packages/plugins/mcp/src/sdk/codex-plugins.ts:189–190  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

187 );
188
189const readText = (file: string): string | undefined =>
190 tryOrElse(() => fs.readFileSync(file, "utf-8"), undefined);
191
192const isReadableFile = (file: string): boolean =>
193 tryOrElse(() => fs.statSync(file).isFile(), false);

Callers 2

curatedDisplayMetadataFunction · 0.85
scanCachedPluginFunction · 0.85

Calls 1

tryOrElseFunction · 0.85

Tested by

no test coverage detected