MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readDaemon

Function readDaemon

scripts/local-daemon.js:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61function readDaemon() {
62 if (!fs.existsSync(DAEMON_PATH)) return null;
63 try { return JSON.parse(fs.readFileSync(DAEMON_PATH, 'utf8')); }
64 catch (e) { log(`daemon.json parse error: ${e.message}`); return null; }
65}
66
67function runSession() {
68 return new Promise((resolve) => {

Callers 1

mainFunction · 0.70

Calls 1

logFunction · 0.85

Tested by

no test coverage detected