diff --git a/src/mind_reader/app_context.py b/src/mind_reader/app_context.py new file mode 100644 index 0000000..cf21e59 --- /dev/null +++ b/src/mind_reader/app_context.py @@ -0,0 +1,20 @@ +from dataclasses import dataclass +from typing import Optional + +from .input import SessionInput +from .network import SessionNetworkController +from .state import SessionState +from .ui.views import SessionPanel + + +@dataclass(frozen=True) +class SessionContext: + input: SessionInput + network: SessionNetworkController + state: SessionState + view: SessionPanel + + +@dataclass +class AppContext: + session: Optional[SessionContext] = None