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

Function readText

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

Source from the content-addressed store, hash-verified

186 );
187
188const readText = (file: string): string | undefined =>
189 tryOrElse(() => fs.readFileSync(file, "utf-8"), undefined);
190
191const isReadableFile = (file: string): boolean =>
192 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