"""TrustMem — Zero Trust Memory for AI Agents."""

__version__ = "0.9.5"

from trustmem.sdk import TrustMem

__all__ = [
    "__version__",
    "TrustMem",
    "TrustMemError",
    "NotFoundError",
    "ValidationError",
    "PermissionDeniedError",
    "ConfigurationError",
]

# Lazy imports for exceptions (populated after exceptions.py is created)
def __getattr__(name: str):
    if name in (
        "TrustMemError",
        "NotFoundError",
        "ValidationError",
        "PermissionDeniedError",
        "ConfigurationError",
    ):
        from trustmem.exceptions import (
            TrustMemError,
            NotFoundError,
            ValidationError,
            PermissionDeniedError,
            ConfigurationError,
        )
        globals().update({
            "TrustMemError": TrustMemError,
            "NotFoundError": NotFoundError,
            "ValidationError": ValidationError,
            "PermissionDeniedError": PermissionDeniedError,
            "ConfigurationError": ConfigurationError,
        })
        return globals()[name]
    raise AttributeError(f"module 'trustmem' has no attribute {name!r}")
