from __future__ import annotations

from .automation_adapter import notify_managed_thread_terminal_transition
from .chat_runtime import build_chat_runtime_router
from .history_files_docs import build_history_files_docs_router
from .managed_thread_runtime import build_managed_thread_runtime_routes
from .managed_threads import build_automation_routes, build_managed_thread_crud_routes
from .meta import build_pma_meta_routes
from .publish import publish_automation_result
from .runtime_state import PmaRuntimeState
from .tail_stream import build_managed_thread_tail_routes

# Keep explicit module-level references so dead-code heuristics treat the staged
# PMA route decomposition helpers as part of the intended public route surface.
_PMA_ROUTE_DECOMPOSITION_SURFACE = (
    build_chat_runtime_router,
    build_history_files_docs_router,
    notify_managed_thread_terminal_transition,
    publish_automation_result,
    build_managed_thread_runtime_routes,
    build_pma_meta_routes,
)

__all__ = [
    "PmaRuntimeState",
    "build_automation_routes",
    "build_chat_runtime_router",
    "build_history_files_docs_router",
    "build_managed_thread_crud_routes",
    "build_managed_thread_runtime_routes",
    "build_managed_thread_tail_routes",
    "build_pma_meta_routes",
    "notify_managed_thread_terminal_transition",
    "publish_automation_result",
]
