export function buildWorkflowDiscoveryConfig(workflow) {
    return {
        name: workflow.name,
        description: workflow.description,
        subworkflow: workflow.subworkflow,
    };
}
export function loadValidatedWorkflowDiscoveryEntry(entry, cwd, deps) {
    const workflow = deps.loadWorkflowForDiscovery(entry, cwd);
    deps.validateWorkflowCallContracts(workflow, cwd, {
        lookupCwd: cwd,
        allowPathBasedCalls: false,
    });
    return buildWorkflowDiscoveryConfig(workflow);
}
//# sourceMappingURL=workflowDiscoveryLoader.js.map