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

Function finish

src/adapters/scripts/evolver-task-recall.js:76–82  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

74// Single-writer latch: exactly one stdout write, exactly one exit. Mirrors the
75// proven pattern in evolver-signal-detect.js / evolver-session-end.js.
76function finish(obj) {
77 if (handled) return;
78 handled = true;
79 if (watchdog) { try { clearTimeout(watchdog); } catch (_) {} }
80 try { process.stdout.write(JSON.stringify(obj || {})); } catch (_) {}
81 process.exit(0);
82}
83
84function main() {
85 const mode = getMode();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected