(baseUrl: string, remoteSessionId: string)
| 37 | } |
| 38 | |
| 39 | export function deriveLocalSessionId(baseUrl: string, remoteSessionId: string): string { |
| 40 | const hash = crypto.createHash('sha256').update(`${baseUrl}\0${remoteSessionId}`).digest('hex').slice(0, 12) |
| 41 | return `remote_${hash}` |
| 42 | } |
| 43 | |
| 44 | export function parseSyncFromFile(filePath: string): SyncMeta | null { |
| 45 | try { |
no test coverage detected