/**
 * Mutable in-memory recorder for one trace-producing run.
 *
 * This class owns event accumulation only. Projection, summaries, and
 * user-facing review views belong in observability or review domains.
 */
export class TraceRecorder {
    events = [];
    record(event) {
        this.events.push(event);
    }
    getTrace() {
        return [...this.events];
    }
    toJSON() {
        return JSON.stringify(this.events, null, 2);
    }
}
//# sourceMappingURL=recorder.js.map