import { join } from 'node:path';
export class InMemoryReviewLogFileGateway {
    files = new Map();
    async listLogFiles(projectPath) {
        const prefix = this.getLogsDirectory(projectPath) + '/';
        const logFiles = [];
        for (const [filePath, entry] of this.files.entries()) {
            if (!filePath.startsWith(prefix))
                continue;
            const filename = filePath.slice(prefix.length);
            logFiles.push({
                filename,
                path: filePath,
                mtime: entry.mtime,
                size: entry.size,
            });
        }
        return logFiles;
    }
    async deleteLogFile(projectPath, filename) {
        const filePath = join(this.getLogsDirectory(projectPath), filename);
        return this.files.delete(filePath);
    }
    getLogsDirectory(projectPath) {
        return join(projectPath, '.claude', 'reviews', 'logs');
    }
    addLogFile(projectPath, filename, entry) {
        const filePath = join(this.getLogsDirectory(projectPath), filename);
        this.files.set(filePath, entry);
    }
    clear() {
        this.files.clear();
    }
}
//# sourceMappingURL=reviewLogFile.stub.js.map