__init__.py 898 B

123456789101112131415161718192021222324252627
  1. """Hermes Gateway - multi-platform messaging integration (sessions, context
  2. injection, delivery routing, platform-specific toolsets)."""
  3. from importlib import import_module
  4. # Control/status clients must not initialize config, plugins or user data.
  5. # The existing package exports remain available when actually requested.
  6. _EXPORTS = {
  7. "GatewayConfig": ".config",
  8. "PlatformConfig": ".config",
  9. "HomeChannel": ".config",
  10. "load_gateway_config": ".config",
  11. "SessionContext": ".session",
  12. "SessionStore": ".session",
  13. "build_session_context_prompt": ".session",
  14. "DeliveryRouter": ".delivery",
  15. "DeliveryTarget": ".delivery",
  16. }
  17. __all__ = list(_EXPORTS)
  18. def __getattr__(name):
  19. module = _EXPORTS.get(name)
  20. if module is None:
  21. raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
  22. return getattr(import_module(module, __name__), name)