/**
 * Convert a ValidationRule to a ValidationRuleExecution for the FB form pipeline.
 * Shared between use_llm_run (backoffice) and front_office_view (immediate validation).
 */
export function rule_to_fb_execution(rule) {
    return {
        rule_id: rule.rule_id,
        name: rule.name,
        prompt: rule.prompt,
        target_field_id: '__document',
        target_label: rule.name,
        clarification_type: rule.clarification_type,
        custom_issue_description: rule.custom_issue_description,
        custom_action_description: rule.custom_action_description,
        custom_response_options: rule.custom_response_options,
    };
}
//# sourceMappingURL=rule_to_execution.js.map