MCPcopy Create free account
hub / github.com/SethGammon/Citadel / writeReadinessReport

Function writeReadinessReport

core/worktree/readiness.js:307–312  ·  view source on GitHub ↗
(projectRoot, report)

Source from the content-addressed store, hash-verified

305 const base = branch ? safeName(branch) : safeName(path.basename(worktreePath));
306 return path.join(dir, `${base}.json`);
307}
308
309function writeReadinessReport(projectRoot, report) {
310 const target = readinessFile(projectRoot, report.worktreePath, report.branch);
311 fs.mkdirSync(path.dirname(target), { recursive: true });
312 fs.writeFileSync(target, `${JSON.stringify(report, null, 2)}\n`, 'utf8');
313 return target;
314}
315

Callers 1

checkWorktreeReadinessFunction · 0.85

Calls 1

readinessFileFunction · 0.85

Tested by

no test coverage detected