MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeReport

Function writeReport

packages/migration-legacy/src/report.ts:11–17  ·  view source on GitHub ↗
(
  targetHome: string,
  report: MigrationReport,
)

Source from the content-addressed store, hash-verified

9 * mode 0700 if it does not yet exist.
10 */
11export async function writeReport(
12 targetHome: string,
13 report: MigrationReport,
14): Promise<void> {
15 await mkdir(targetHome, { recursive: true, mode: 0o700 });
16 await atomicWrite(migrationReportFile(targetHome), JSON.stringify(report, null, 2));
17}

Callers 2

report.test.tsFile · 0.85
runMigrationFunction · 0.85

Calls 3

migrationReportFileFunction · 0.85
atomicWriteFunction · 0.70
mkdirFunction · 0.50

Tested by

no test coverage detected