/**
 * types/workflowTypes.ts
 * Core type definitions for the Workflow Engine
 *
 * Testing Phase: Focuses on original output + evaluation metrics for AB testing
 */
/**
 * Workflow execution error class
 */
export class WorkflowError extends Error {
    details;
    constructor(message, details) {
        super(message);
        this.name = "WorkflowError";
        this.details = details;
        // Maintain proper stack trace for V8 engines
        if ("captureStackTrace" in Error &&
            typeof Error.captureStackTrace === "function") {
            Error.captureStackTrace(this, WorkflowError);
        }
    }
}
