from __future__ import annotations _SERVICE_MODULES = { "control-api": "services.runtime.control_api", "worker": "services.runtime.worker", "dataplane-router": "services.runtime.dataplane", "web": "services.runtime.web", "connector-knowledge": "services.runtime.connector_knowledge", "connector-ingestion": "services.runtime.connector_ingestion", "connector-gitea": "services.runtime.connector_gitea", "connector-unraid": "services.runtime.connector_unraid", "connector-mobilityops": "services.runtime.connector_mobilityops", "connector-projectbrain": "services.runtime.connector_projectbrain", "connector-appops": "services.runtime.connector_appops", "connector-stitch": "services.runtime.connector_stitch", "database-migrate": "services.runtime.migrate", } def service_module(service_name: str) -> str: try: return _SERVICE_MODULES[service_name] except KeyError as exc: raise ValueError("unsupported production service") from exc