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

Function getSessionMeta

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

Source from the content-addressed store, hash-verified

128 * 读取会话元信息
129 */
130export function getSessionMeta(db: DatabaseAdapter): SessionMeta | null {
131 const row = db.prepare('SELECT * FROM meta LIMIT 1').get() as Record<string, unknown> | undefined
132 if (!row) return null
133
134 return {
135 name: row.name as string,
136 platform: row.platform as string,
137 type: row.type as string,
138 importedAt: row.imported_at as number,
139 groupId: (row.group_id as string) || null,
140 groupAvatar: (row.group_avatar as string) || null,
141 ownerId: (row.owner_id as string) || null,
142 }
143}
144
145/**
146 * 查询会话基础统计(消息数、成员数、时间范围)

Callers 15

handlerFunction · 0.90
handlerFunction · 0.90
buildSessionFunction · 0.90
ownerOfMethod · 0.90
tryApplyOwnerProfileFunction · 0.90
setOwnerAndApplyProfileFunction · 0.90
computeSessionFactsFunction · 0.90
computeSessionFactsFunction · 0.90
registerResourcesFunction · 0.90
getAllSessionsFunction · 0.90

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by 1

ownerOfMethod · 0.72