export class OutputBuffer {
    maxChunks;
    chunks = [];
    constructor(maxChunks = 500) {
        this.maxChunks = maxChunks;
    }
    push(chunk) {
        this.chunks.push(chunk);
        if (this.chunks.length > this.maxChunks) {
            this.chunks.shift();
        }
    }
    snapshot() {
        return [...this.chunks];
    }
}
//# sourceMappingURL=outputBuffer.js.map