/**
 * Converts a RuleActionsConfig (JSON file schema) into a PromptEditorConfig
 * that the validation rule editor's prompt editor understands.
 */
/**
 * Transform a rule actions config (from config/app_config_rule_actions.json)
 * into the PromptEditorConfig used by the prompt editor component.
 *
 * - action  → `/Action_Name` slash command trigger
 * - variable → `@Variable_Name` variable trigger
 */
export function parse_rule_actions_config(config) {
    const commands = (config.actions ?? []).map(a => ({
        trigger: `/${a.action}`,
        label: a.action_label,
        description: a.action_description,
        template: `/${a.action}`,
    }));
    const variables = (config.variables ?? []).map(v => ({
        trigger: `@${v.variable}`,
        label: v.variable_label,
        description: v.variable_description,
    }));
    return { commands, variables };
}
//# sourceMappingURL=parse_rule_actions_config.js.map