MCPcopy Create free account
hub / github.com/allocnode/oh-my-sage / getSessionMeta

Method getSessionMeta

src/server/session/store.ts:156–159  ·  view source on GitHub ↗

* 获取 session 元数据

(sessionId: string)

Source from the content-addressed store, hash-verified

154 * 获取 Session 元数据
155 */
156 async getSessionMeta(sessionId: string): Promise<SessionMeta | null> {
157 const index = this.readIndex();
158 return index.sessions.find(s => s.id === sessionId) || null;
159 }
160
161 /**
162 * 获取 Session 消息历史

Callers 2

GETFunction · 0.80
PATCHFunction · 0.80

Calls 1

readIndexMethod · 0.95

Tested by

no test coverage detected