"""Nomo E2E Agent - Control desktop app WebViews via Chrome DevTools Protocol."""

from __future__ import annotations

__version__ = "0.9.1"

from nomo_e2e.cdp import CDPClient
from nomo_e2e.controller import WebViewController
from nomo_e2e.discovery import WebViewDiscovery
from nomo_e2e.models import WebViewInfo

__all__ = [
    "CDPClient",
    "WebViewController",
    "WebViewDiscovery",
    "WebViewInfo",
    "__version__",
]

try:
    from nomo_e2e.cli import (
        CLIConfig,
        ConfigLoader,
        Session,
        SessionManager,
        SnapshotEngine,
        load_config,
        get_session_manager,
        get_snapshot_engine,
    )
    __all__.extend([
        "CLIConfig",
        "ConfigLoader",
        "Session",
        "SessionManager",
        "SnapshotEngine",
        "load_config",
        "get_session_manager",
        "get_snapshot_engine",
    ])
except ImportError:
    pass

    __all__.extend([
        "CLIConfig",
        "ConfigLoader",
        "Session",
        "SessionManager",
        "SnapshotEngine",
        "load_config",
        "get_session_manager",
        "get_snapshot_engine",
    ])
except ImportError:
    pass
