export class TranscriptStore {
    entries = [];
    flushed = false;
    append(entry) {
        this.entries.push(entry);
        this.flushed = false;
    }
    compact(keepLast = 10) {
        if (this.entries.length > keepLast) {
            this.entries = this.entries.slice(-keepLast);
        }
    }
    replay() {
        return [...this.entries];
    }
    flush() {
        this.flushed = true;
    }
}
