export function prepareTaskForExecution(taskInfo, selectedWorkflow) {
    if (!taskInfo.data) {
        throw new Error(`Task "${taskInfo.name}" is missing required data.`);
    }
    return {
        ...taskInfo,
        data: {
            ...taskInfo.data,
            workflow: selectedWorkflow,
        },
    };
}
//# sourceMappingURL=prepareTaskForExecution.js.map