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

Function writeGraph

test/sessionStartScope.test.js:70–73  ·  view source on GitHub ↗
(file, entries)

Source from the content-addressed store, hash-verified

68
69// Build a memory graph file with the given entries (one JSON object per line).
70function writeGraph(file, entries) {
71 fs.mkdirSync(path.dirname(file), { recursive: true });
72 fs.writeFileSync(file, entries.map(e => JSON.stringify(e)).join('\n') + '\n');
73}
74
75// A "good" recent successful outcome that passes filterRelevantOutcomes
76// (status success, score >= 0.5, timestamped now), tagged with a workspace.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected