()
| 178 | } |
| 179 | |
| 180 | function getLogFilePath(): string | null { |
| 181 | const dir = getLogDir(); |
| 182 | if (!dir) return null; |
| 183 | const date = new Date().toISOString().slice(0, 10); // YYYY-MM-DD |
| 184 | return join(dir, `cursor2api-${date}.jsonl`); |
| 185 | } |
| 186 | |
| 187 | function ensureLogDir(): void { |
| 188 | const dir = getLogDir(); |
no test coverage detected