Function
listTranscriptEvents
(
session_id: string,
opts: { sinceSeq?: number; limit?: number } = {},
)
Source from the content-addressed store, hash-verified
| 153 | } |
| 154 | |
| 155 | export 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
Tested by
no test coverage detected