MCPcopy Create free account
hub / github.com/benjitaylor/agentation / getEventsSince

Function getEventsSince

mcp/src/server/sqlite.ts:549–558  ·  view source on GitHub ↗
(sessionId: string, sequence: number)

Source from the content-addressed store, hash-verified

547
548 // Events
549 getEventsSince(sessionId: string, sequence: number): AFSEvent[] {
550 const rows = stmts.getEventsSince.all(sessionId, sequence) as Record<string, unknown>[];
551 return rows.map((row) => ({
552 type: row.type as AFSEventType,
553 timestamp: row.timestamp as string,
554 sessionId: row.session_id as string,
555 sequence: row.sequence as number,
556 payload: JSON.parse(row.payload as string),
557 }));
558 },
559
560 // Lifecycle
561 close(): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…