( adapter: SessionRuntimeAdapter, sessionId: string, options?: ListSessionsOptions )
| 100 | * Get a single session by ID. |
| 101 | */ |
| 102 | export 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). |
nothing calls this directly
no test coverage detected