(sessionId: string, limit: number)
| 103 | } |
| 104 | |
| 105 | async getRecent(sessionId: string, limit: number): Promise<ChatSessionItem[]> { |
| 106 | return getDataAdapter().pluginQuery<ChatSessionItem>( |
| 107 | sessionId, |
| 108 | `SELECT id, start_ts as startTs, end_ts as endTs, message_count as messageCount, summary, ${FIRST_MESSAGE_ID_SUBQUERY} |
| 109 | FROM segment ORDER BY start_ts DESC LIMIT ?`, |
| 110 | [limit] |
| 111 | ) |
| 112 | } |
| 113 | |
| 114 | async generateSummary( |
| 115 | dbSessionId: string, |
nothing calls this directly
no test coverage detected