ltcai 1.3.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.
- package/README.md +27 -19
- package/docs/CHANGELOG.md +55 -0
- package/latticeai/__init__.py +1 -1
- package/latticeai/api/chat.py +786 -0
- package/latticeai/api/computer_use.py +294 -0
- package/latticeai/api/deps.py +15 -0
- package/latticeai/api/garden.py +34 -0
- package/latticeai/api/local_files.py +125 -0
- package/latticeai/api/permissions.py +331 -0
- package/latticeai/api/setup.py +158 -0
- package/latticeai/api/static_routes.py +166 -0
- package/latticeai/api/tools.py +579 -0
- package/latticeai/core/workspace_os.py +1 -1
- package/latticeai/server_app.py +223 -4301
- package/latticeai/services/app_context.py +27 -0
- package/latticeai/services/model_runtime.py +1973 -0
- package/latticeai/services/tool_dispatch.py +135 -0
- package/latticeai/services/upload_service.py +99 -0
- package/package.json +3 -3
- package/skills/SKILL_TEMPLATE.md +1 -1
- package/skills/code_review/SKILL.md +1 -1
- package/skills/data_analysis/SKILL.md +1 -1
- package/skills/file_edit/SKILL.md +1 -1
- package/skills/summarize_document/SKILL.md +1 -1
- package/skills/web_search/SKILL.md +1 -1
|
@@ -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
|
+
|