(id: string)
| 31 | |
| 32 | /** On-disk path of a session's transcript, also passed to hooks. */ |
| 33 | export function getSessionFilePath(id: string): string { |
| 34 | return path.join(getSessionsDir(), `${id}.json`) |
| 35 | } |
| 36 | |
| 37 | export function saveSession(data: SessionData): void { |
| 38 | const dir = getSessionsDir() |
no test coverage detected