MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getRecent

Method getRecent

src/services/session-index/fetch.ts:105–112  ·  view source on GitHub ↗
(sessionId: string, limit: number)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

getDataAdapterFunction · 0.70
pluginQueryMethod · 0.65

Tested by

no test coverage detected