from astrbot.api import logger


class EnvManager:
    """
    Stub kept for API compatibility. Playwright has been removed;
    local rendering now uses Pillow with no additional setup required.
    """

    def __init__(self, data_dir: str) -> None:
        self.data_dir = data_dir

    def is_installed(self) -> bool:
        """Always returns True — no external renderer needs to be installed."""
        return True

    async def install_dependencies(self) -> None:
        logger.info("[+] Pillow renderer: no additional dependencies to install.")
