ltcai 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ """Application dependency context for router assembly.
2
+
3
+ The concrete FastAPI app is still assembled in ``server_app``. This dataclass
4
+ documents the shared dependency boundary for routers and services so future
5
+ extractions can receive a typed context instead of importing the app module.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ from dataclasses import dataclass
11
+ from pathlib import Path
12
+ from typing import Any, Callable
13
+
14
+
15
+ @dataclass(frozen=True)
16
+ class AppContext:
17
+ config: Any
18
+ data_dir: Path
19
+ static_dir: Path
20
+ model_router: Any
21
+ workspace_store: Any
22
+ workspace_service: Any
23
+ knowledge_graph: Any
24
+ local_kg_watcher: Any
25
+ require_user: Callable[..., str]
26
+ require_admin: Callable[..., tuple]
27
+