This commit is contained in:
2026-05-30 00:08:59 +05:00
commit d3afd698b6
52 changed files with 8150 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Глобальные ссылки на живые компоненты (заполняются в lifespan)."""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .config import Config
from .db import Database
from .recorder.indexer import Indexer
from .recorder.supervisor import Supervisor
from .services.retention import Retention
from .api.ws import ConnectionManager
class Runtime:
config: "Config"
db: "Database"
supervisor: "Supervisor"
indexer: "Indexer"
retention: "Retention"
ws: "ConnectionManager"
runtime = Runtime()