Type Alias: EngineEvent {#type-alias-engineevent}

EngineEvent = { run: Run; type: "run:start"; } | { durationMs: number; run: Run; type: "run:complete"; } | { durationMs: number; error: string; run: Run; type: "run:error"; } | { attempt: number; error: string; run: Run; type: "run:retry"; } | { error: string; run: Run; type: "run:dead"; } | { childRuns: Run[]; resumedRun: Run; type: "run:resume"; } | { durationMs: number; effectKey: string; runId: string; type: "effect:complete"; } | { durationMs: number; effectKey: string; error: string; runId: string; type: "effect:error"; } | { effectKey: string; runId: string; type: "effect:replay"; } | { run: Run; type: "lease:reclaim"; } | { context: string; error: unknown; type: "internal:error"; }

Discriminated union of all engine lifecycle events emitted via EngineOptions.onEvent.