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

Function makeRunDir

src/repair/lib.ts:470–475  ·  view source on GitHub ↗
(job: ParsedJob | LooseRecord, mode: string)

Source from the content-addressed store, hash-verified

468}
469
470export function makeRunDir(job: ParsedJob | LooseRecord, mode: string) {
471 const slug = `${path.basename(job.path, ".md")}-${mode}-${new Date().toISOString().replace(/[:.]/g, "-")}`;
472 const dir = path.join(repoRoot(), ".clawsweeper-repair", "runs", slug);
473 fs.mkdirSync(dir, { recursive: true });
474 return dir;
475}

Callers 3

prepareFunction · 0.85
run-worker.tsFile · 0.85
plan-cluster.tsFile · 0.85

Calls 1

repoRootFunction · 0.70

Tested by

no test coverage detected