MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / writeFile

Function writeFile

apps/desktop/src/main/reported-fingerprints.ts:115–123  ·  view source on GitHub ↗
(filePath: string, data: ReportedFingerprintsFile)

Source from the content-addressed store, hash-verified

113}
114
115function writeFile(filePath: string, data: ReportedFingerprintsFile): void {
116 try {
117 mkdirSync(dirname(filePath), { recursive: true });
118 writeAtomic(filePath, JSON.stringify(data, null, 2));
119 } catch {
120 // Best-effort — a missing dedup file just reverts us to "show the
121 // warning never" behavior. Not worth crashing the report flow.
122 }
123}
124
125export function recordReported(
126 filePath: string,

Callers 15

writeAtomicMethod · 0.85
runScaffoldFunction · 0.85
writeSkillFunction · 0.85
loader.test.tsFile · 0.85
runPreviewFunction · 0.85
writePersistedFunction · 0.85
writeZipFunction · 0.85
makeRuntimeVerifierFunction · 0.85
writePersistedFunction · 0.85

Calls 1

writeAtomicFunction · 0.70

Tested by 8

writeSkillFunction · 0.68
writeZipFunction · 0.68
writeTestLogFunction · 0.68
writeConfigFunction · 0.68
writeWorkspaceFileFunction · 0.68
writeAuthFunction · 0.68
writeConfigFunction · 0.68
touchFunction · 0.68