MCPcopy Create free account
hub / github.com/garrytan/gstack / loadResult

Function loadResult

scripts/eval-compare.ts:24–32  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

22const EVAL_DIR = getProjectEvalDir();
23
24function loadResult(filepath: string): EvalResult {
25 // Resolve relative to EVAL_DIR if not absolute
26 const resolved = path.isAbsolute(filepath) ? filepath : path.join(EVAL_DIR, filepath);
27 if (!fs.existsSync(resolved)) {
28 console.error(`File not found: ${resolved}`);
29 process.exit(1);
30 }
31 return JSON.parse(fs.readFileSync(resolved, 'utf-8'));
32}
33
34const args = process.argv.slice(2);
35

Callers 1

eval-compare.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected