import { resolveWorkflowCallTarget } from '../../../infra/config/index.js';
import { getWorkflowSourcePath } from '../../../infra/config/loaders/workflowSourceMetadata.js';
import { getWorkflowTrustInfo } from '../../../infra/config/loaders/workflowTrustSource.js';
export function createWorkflowExecutionContext(workflowConfig, projectCwd) {
    return {
        sourcePath: getWorkflowSourcePath(workflowConfig),
        trustInfo: getWorkflowTrustInfo(workflowConfig, projectCwd),
    };
}
export function createWorkflowCallResolver(workflowContext) {
    return ({ parentWorkflow, identifier, stepName, projectCwd, lookupCwd, }) => resolveWorkflowCallTarget(parentWorkflow, identifier, stepName, projectCwd, lookupCwd, workflowContext);
}
//# sourceMappingURL=workflowExecutionContext.js.map