()
| 41 | |
| 42 | // Get the project-specific data directory |
| 43 | export function getProjectDataDir(): string { |
| 44 | const root = getProjectRoot() |
| 45 | if (!root) { |
| 46 | throw new Error('Project root not set') |
| 47 | } |
| 48 | |
| 49 | const baseName = path.basename(root) |
| 50 | const baseDir = path.join(getConfigDir(), 'projects', baseName) |
| 51 | |
| 52 | return baseDir |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Find the most recent chat directory based on modification time |
no test coverage detected