export class DiagnosticTracker {
    records = [];
    record(kind, message, metadata) {
        this.records.push({ kind, message, metadata, createdAtMs: Date.now() });
        if (this.records.length > 300)
            this.records.shift();
    }
    list(limit = 50) {
        return this.records.slice(-limit);
    }
}
export const diagnosticTracker = new DiagnosticTracker();
