| 21 | } |
| 22 | |
| 23 | export interface WorkspaceStore { |
| 24 | createSession(input: { |
| 25 | id: string; |
| 26 | root: string; |
| 27 | mode?: WorkspaceMode; |
| 28 | sourceRoot?: string; |
| 29 | baseRef?: string; |
| 30 | baseSha?: string; |
| 31 | managed?: boolean; |
| 32 | }): WorkspaceSession; |
| 33 | getSession(id: string): WorkspaceSession | undefined; |
| 34 | touchSession(id: string): void; |
| 35 | close?(): void; |
| 36 | } |
| 37 | |
| 38 | export class SqliteWorkspaceStore implements WorkspaceStore { |
| 39 | private readonly database: DatabaseHandle; |
no outgoing calls
no test coverage detected