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

Function recordFiredForSession

hooks_src/session-end.js:60–67  ·  view source on GitHub ↗
(sessionId)

Source from the content-addressed store, hash-verified

58 }
59}
60
61function recordFiredForSession(sessionId) {
62 if (!sessionId) return;
63 try {
64 const telemetryDir = path.join(PROJECT_ROOT, '.planning', 'telemetry');
65 if (!fs.existsSync(telemetryDir)) fs.mkdirSync(telemetryDir, { recursive: true });
66 fs.writeFileSync(path.join(telemetryDir, 'session-end.lock'), sessionId, 'utf8');
67 } catch { /* non-critical */ }
68}
69
70function main() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected