/** * Run log reader for the dashboard. * * Reads and parses all `run-*.json` files from the telemetry logs directory. * Returns typed {@link RunLog} arrays sorted by start time (newest first). * * @module */ import type { RunLog } from '../ai/types.js'; /** * Read all run log files from the telemetry logs directory. * * Parses each `run-*.json` file and returns a typed array sorted by * start time descending (newest first). Invalid or unreadable files * are silently skipped. * * @param projectRoot - Absolute path to the project root directory * @returns Array of parsed RunLog objects, newest first */ export declare function readAllRunLogs(projectRoot: string): Promise; /** * Read a single run log by matching its run ID prefix. * * The `runId` parameter can be a partial match (e.g., "2026-02-14" matches * any run from that date). Returns the first match sorted by start time. * * @param projectRoot - Absolute path to the project root directory * @param runId - Full or partial run ID to match * @returns The matching RunLog, or null if not found */ export declare function readRunLog(projectRoot: string, runId: string): Promise; /** * Extract a short display ID from a run log filename or runId. * * Converts "2026-02-14T18:21:08.512Z" to "2026-02-14 18:21". */ export declare function shortRunId(runId: string): string; //# sourceMappingURL=log-reader.d.ts.map