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

Function getSessionInfo

packages/core/src/query/session-queries.ts:85–91  ·  view source on GitHub ↗
(db: DatabaseAdapter)

Source from the content-addressed store, hash-verified

83 * Convenience: read meta + overview from DB and return flat CoreSessionInfo.
84 */
85export function getSessionInfo(db: DatabaseAdapter): CoreSessionInfo | null {
86 const meta = getSessionMeta(db)
87 if (!meta) return null
88 const overview = getSessionOverview(db)
89 const sc = getSummaryCount(db)
90 return buildSessionInfo(meta, overview, sc)
91}
92
93/**
94 * Count of chat sessions that have an AI-generated summary.

Callers 4

buildSessionFunction · 0.90

Calls 4

getSessionMetaFunction · 0.85
getSessionOverviewFunction · 0.85
getSummaryCountFunction · 0.85
buildSessionInfoFunction · 0.85

Tested by

no test coverage detected