()
| 33 | } |
| 34 | |
| 35 | async function metricsFile(): Promise<string> { |
| 36 | const { QODEX_HOME } = await import('../../config/defaults.js'); |
| 37 | const path = await import('path'); |
| 38 | return path.join(QODEX_HOME, 'cache', 'web', 'extract-metrics.jsonl'); |
| 39 | } |
| 40 | |
| 41 | /** Append one extract event. Only the truncation modes are recorded (whole pages aren't interesting). Best-effort. */ |
| 42 | export async function recordExtract(mode: ExtractMode): Promise<void> { |
no outgoing calls
no test coverage detected