MCPcopy
hub / github.com/benjitaylor/agentation / persistEvent

Function persistEvent

mcp/src/server/sqlite.ts:317–325  ·  view source on GitHub ↗
(event: AFSEvent)

Source from the content-addressed store, hash-verified

315 stmts.pruneOldEvents.run(cutoff);
316
317 function persistEvent(event: AFSEvent): void {
318 stmts.insertEvent.run({
319 type: event.type,
320 timestamp: event.timestamp,
321 sessionId: event.sessionId,
322 sequence: event.sequence,
323 payload: JSON.stringify(event.payload),
324 });
325 }
326
327 return {
328 // Sessions

Callers 6

createSessionFunction · 0.85
updateSessionStatusFunction · 0.85
addAnnotationFunction · 0.85
updateAnnotationFunction · 0.85
addThreadMessageFunction · 0.85
deleteAnnotationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…