MCPcopy
hub / github.com/openclaw/clawsweeper / readText

Function readText

src/repair/lib.ts:47–49  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

45const PROMPT_STRING_MAX_CHARS = Number(process.env.CLAWSWEEPER_PROMPT_STRING_MAX_CHARS ?? 700);
46
47export function readText(relativePath: string) {
48 return fs.readFileSync(path.join(repoRoot(), relativePath), "utf8");
49}
50
51export function resolveJobPath(filePath: string) {
52 return path.resolve(filePath);

Callers 1

renderPromptFunction · 0.85

Calls 1

repoRootFunction · 0.70

Tested by

no test coverage detected