export class RunService {
    state;
    constructor(state) {
        this.state = state;
    }
    recent(limit = 20) {
        return this.state.listRuns(limit);
    }
    latest() {
        return this.recent(1)[0];
    }
    trace(runId) {
        return this.state.traceRun(runId);
    }
}
