MCPcopy Create free account
hub / github.com/cortexkit/magic-context / buildRunnerPaths

Function buildRunnerPaths

packages/plugin/scripts/longmemeval/config.ts:62–81  ·  view source on GitHub ↗
(datasetPath: string, outputDirArg?: string)

Source from the content-addressed store, hash-verified

60}
61
62function buildRunnerPaths(datasetPath: string, outputDirArg?: string): RunnerPaths {
63 const datasetBaseName = datasetPath
64 .split(/[\\/]/)
65 .pop()
66 ?.replace(/\.[^.]+$/, "")
67 .replace(/[^a-zA-Z0-9_-]+/g, "-")
68 .toLowerCase();
69
70 const outputDir = outputDirArg
71 ? resolve(outputDirArg)
72 : resolve(dirname(datasetPath), `${datasetBaseName ?? "longmemeval"}-run`);
73
74 return {
75 outputDir,
76 stateFile: join(outputDir, "runner-state.json"),
77 resultsFile: join(outputDir, "results.jsonl"),
78 summaryFile: join(outputDir, "summary.json"),
79 logFile: join(outputDir, "runner.log"),
80 };
81}
82
83function buildSelectionSignature(config: {
84 datasetPath: string;

Callers 1

parseRunnerConfigFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected