(sessionId: string)
| 85 | } |
| 86 | |
| 87 | async getSessions(sessionId: string): Promise<ChatSessionItem[]> { |
| 88 | return getDataAdapter().pluginQuery<ChatSessionItem>( |
| 89 | sessionId, |
| 90 | `SELECT id, start_ts as startTs, end_ts as endTs, message_count as messageCount, summary, ${FIRST_MESSAGE_ID_SUBQUERY} |
| 91 | FROM segment ORDER BY start_ts ASC`, |
| 92 | [] |
| 93 | ) |
| 94 | } |
| 95 | |
| 96 | async getByTimeRange(sessionId: string, startTs: number, endTs: number): Promise<ChatSessionItem[]> { |
| 97 | return getDataAdapter().pluginQuery<ChatSessionItem>( |
nothing calls this directly
no test coverage detected