()
| 239 | } |
| 240 | |
| 241 | async readAll(): Promise<SessionEntry[]> { |
| 242 | return this.entries.filter( |
| 243 | (e) => e.type === 'user' || e.type === 'assistant' || e.type === 'system', |
| 244 | ) |
| 245 | } |
| 246 | |
| 247 | async readActive(): Promise<SessionEntry[]> { |
| 248 | return getActiveEntries(await this.readAll()) |