( opts: SessionChatStoreOptions, designId: string, )
| 306 | } |
| 307 | |
| 308 | export function listSessionChatMessages( |
| 309 | opts: SessionChatStoreOptions, |
| 310 | designId: string, |
| 311 | ): ChatMessageRow[] { |
| 312 | const cwd = resolveSessionCwd(opts, designId); |
| 313 | const file = sessionFileForDesign(opts.sessionDir, designId); |
| 314 | if (!existsSync(file)) return []; |
| 315 | const manager = SessionManager.open(file, opts.sessionDir, cwd); |
| 316 | return replayEntries(designId, manager.getEntries()); |
| 317 | } |
| 318 | |
| 319 | function replayCommentEvents(designId: string, entries: unknown[]): CommentRow[] { |
| 320 | const rows = new Map<string, CommentRow>(); |
no test coverage detected