import type { ValidationIssue } from "../graph/types"; import type { ExecutionLogEntry } from "./logs"; export type ExecutionEventType = "graph:start" | "graph:validate" | "graph:error" | "graph:success" | "graph:cancel" | "node:queued" | "node:start" | "node:retry" | "node:success" | "node:error" | "node:skipped" | "edge:data"; export type ExecutionFailureCode = "EXECUTION_TIMEOUT" | "NODE_EXECUTION_FAILED" | "EXECUTION_CANCELLED"; export interface ExecutionLifecycleEvent { type: ExecutionEventType; timestamp: string; nodeId?: string; nodeType?: string; edgeId?: string; attempt?: number; maxAttempts?: number; durationMs?: number; code?: ExecutionFailureCode; issues?: ValidationIssue[]; error?: unknown; data?: unknown; log?: ExecutionLogEntry; } export type ExecutionEventListener = (event: ExecutionLifecycleEvent) => void; //# sourceMappingURL=events.d.ts.map