(cwd: string)
| 47 | } |
| 48 | |
| 49 | function projectTitle(cwd: string): string { |
| 50 | try { return getSessionStore().getProject(cwd)?.name || path.basename(cwd); } |
| 51 | catch { return path.basename(cwd); } |
| 52 | } |
| 53 | |
| 54 | /** DB → MD: regenerate both memory files from the store. Best-effort; never throws. */ |
| 55 | export async function exportMemory(cwd: string): Promise<{ user: string; project: string }> { |
no test coverage detected