"""
Core business logic for the Graph API server.

Note: Engine and Repository are available from robosystems.graph_api.core.ladybug
but are not imported here to avoid circular imports with middleware.graph.
"""

from .ladybug import (
  LadybugConnectionPool,
  LadybugDatabaseManager,
  LadybugService,
  get_ladybug_service,
  init_ladybug_service,
  initialize_connection_pool,
)
from .metrics_collector import LadybugMetricsCollector
from .utils import validate_database_name, validate_query_parameters

# Legacy naming alias — do not rename (used by main.py and tests)
init_cluster_service = init_ladybug_service

__all__ = [
  "LadybugConnectionPool",
  "LadybugDatabaseManager",
  "LadybugMetricsCollector",
  "LadybugService",
  "get_ladybug_service",
  "init_cluster_service",
  "init_ladybug_service",
  "initialize_connection_pool",
  "validate_database_name",
  "validate_query_parameters",
]
