MCPcopy
hub / github.com/nowork-studio/NotFair / listTranscriptEvents

Function listTranscriptEvents

notfair-cmo/src/server/sessions/index.ts:155–166  ·  view source on GitHub ↗
(
  session_id: string,
  opts: { sinceSeq?: number; limit?: number } = {},
)

Source from the content-addressed store, hash-verified

153}
154
155export function listTranscriptEvents(
156 session_id: string,
157 opts: { sinceSeq?: number; limit?: number } = {},
158): TranscriptEvent[] {
159 const limit = opts.limit ?? 1000;
160 const since = opts.sinceSeq ?? 0;
161 return getDb()
162 .prepare(
163 "SELECT * FROM transcript_events WHERE session_id = ? AND seq > ? ORDER BY seq ASC LIMIT ?",
164 )
165 .all(session_id, since, limit) as TranscriptEvent[];
166}

Callers

nothing calls this directly

Calls 1

getDbFunction · 0.90

Tested by

no test coverage detected