@workflow-manager/runner
Version:
CLI runner for in-memory and markdown workflow orchestration using ATEP-like envelopes
23 lines (22 loc) • 765 B
TypeScript
import type { RunnerLogChunk } from "../types.js";
export type TuiLogLineKind = "stdout" | "stderr" | "meta";
export interface TuiLogLine {
kind: TuiLogLineKind;
text: string;
}
export interface TuiLogStoreOptions {
maxLinesPerStep?: number;
}
export declare class TuiLogStore {
private readonly maxLinesPerStep;
private readonly buckets;
private readonly partials;
constructor(options?: TuiLogStoreOptions);
appendChunk(log: RunnerLogChunk): void;
appendMeta(stepKey: string | null | undefined, text: string): void;
flushPartialLines(): void;
tail(stepKey: string | null | undefined, count: number): TuiLogLine[];
lineCount(stepKey: string | null | undefined): number;
private bucketFor;
private pushLine;
}