donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
18 lines • 729 B
TypeScript
import type { FlowHandle } from '../models/FlowHandle';
import type { FlowMetadata } from '../models/FlowMetadata';
/**
* Tracks active Donobu flows and their associated metadata.
*
* This class is intentionally tiny: it is the single source of truth for
* in-memory flow state so consumers don't need to juggle multiple maps or
* embed lifecycle bookkeeping in higher-level managers.
*/
export declare class FlowRuntime {
private readonly activeFlows;
register(flowHandle: FlowHandle): void;
get(flowId: string): FlowHandle | undefined;
remove(flowId: string): void;
metadataFor(flowId: string): FlowMetadata | undefined;
handles(): Iterable<FlowHandle>;
}
//# sourceMappingURL=FlowRuntime.d.ts.map