MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getAnalysisSession

Function getAnalysisSession

packages/node-runtime/src/services/session-service.ts:102–110  ·  view source on GitHub ↗
(
  adapter: SessionRuntimeAdapter,
  sessionId: string,
  options?: ListSessionsOptions
)

Source from the content-addressed store, hash-verified

100 * Get a single session by ID.
101 */
102export function getAnalysisSession(
103 adapter: SessionRuntimeAdapter,
104 sessionId: string,
105 options?: ListSessionsOptions
106): AnalysisSessionDTO | null {
107 const db = adapter.openReadonly(sessionId)
108 if (!db) return null
109 return buildSession(db, sessionId, adapter.getDbPath(sessionId), options)
110}
111
112/**
113 * Rename a session (updates meta.name).

Callers

nothing calls this directly

Calls 3

buildSessionFunction · 0.85
openReadonlyMethod · 0.80
getDbPathMethod · 0.65

Tested by

no test coverage detected