"""
Configuration utilities (Thin).
"""
import os
import yaml
from pathlib import Path

def read_xenfra_yaml(filename: str = "xenfra.yaml") -> dict:
    """Read xenfra.yaml config."""
    if not Path(filename).exists():
        return {}
    
    try:
        with open(filename, "r") as f:
            return yaml.safe_load(f) or {}
    except Exception:
        return {}
