"""Red Hat Oracle — AI-powered knowledge assistant for Red Hat engineering teams."""

from pathlib import Path


def _read_version() -> str:
    version_file = Path(__file__).resolve().parent.parent.parent / "version"
    try:
        for line in version_file.read_text().splitlines():
            if line.startswith("version="):
                return line.split("=", 1)[1].strip()
    except FileNotFoundError:
        pass
    return "0.1.0"


__version__ = _read_version()
