MCPcopy Create free account
hub / github.com/EvoMap/evolver / writeState

Function writeState

src/gep/issueReporter.js:70–76  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

68}
69
70function writeState(state) {
71 try {
72 const dir = getEvolutionDir();
73 if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
74 fs.writeFileSync(getStatePath(), JSON.stringify(state, null, 2) + '\n');
75 } catch (_) {}
76}
77
78function truncateNodeId(nodeId) {
79 if (!nodeId || typeof nodeId !== 'string') return 'unknown';

Callers 2

recordSuppressionFunction · 0.70
maybeReportIssueFunction · 0.70

Calls 2

getEvolutionDirFunction · 0.85
getStatePathFunction · 0.70

Tested by

no test coverage detected