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
package/README.md
CHANGED
|
@@ -36,17 +36,23 @@ Automatic knowledge graph
|
|
|
36
36
|
Graph-aware chat, snapshots, memory, agents, workflows, skills, and timeline
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
### New in 1.
|
|
40
|
-
|
|
41
|
-
- **server_app.py decomposition** —
|
|
42
|
-
|
|
43
|
-
(~5,
|
|
44
|
-
- **
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- **
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
### New in 1.4.0: Server App Final Decomposition
|
|
40
|
+
|
|
41
|
+
- **server_app.py final decomposition** — the app shell is now FastAPI assembly,
|
|
42
|
+
lifespan, middleware, static mounting, and router wiring only
|
|
43
|
+
(~5,381 → 1,303 lines)
|
|
44
|
+
- **Chat / model / tools extraction** — chat/history/agent, model runtime and
|
|
45
|
+
provider helpers, tools, local files, computer-use, permissions, upload,
|
|
46
|
+
garden/setup/static UI, MCP, and KG glue now live in API routers and services
|
|
47
|
+
- **AppContext and dependency cleanup** — routers receive explicit dependencies
|
|
48
|
+
and do not import the FastAPI app; service modules own runtime and dispatch
|
|
49
|
+
business logic
|
|
50
|
+
- **Safety validation suite** — route compatibility, import/startup, streaming,
|
|
51
|
+
model endpoint, tools/local/CU, release-artifact, and documentation stale
|
|
52
|
+
checks guard the split
|
|
53
|
+
- **Compatibility preserved** — all public API paths, request/response schemas,
|
|
54
|
+
`server:app`, CLI, UI, Knowledge Graph, Admin/Security, Workspace OS, and
|
|
55
|
+
VS Code expectations remain unchanged
|
|
50
56
|
|
|
51
57
|
### New in 1.2.0: Server App Modularization
|
|
52
58
|
|
|
@@ -327,16 +333,18 @@ Supported routes include OpenAI-compatible APIs, OpenRouter, Groq, Together, xAI
|
|
|
327
333
|
|
|
328
334
|
## Current release
|
|
329
335
|
|
|
330
|
-
**
|
|
336
|
+
**1.4.0** completes the Server App Final Decomposition release:
|
|
331
337
|
|
|
332
|
-
- `server.py`
|
|
333
|
-
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
- `server.py` remains the thin compatibility entrypoint and
|
|
339
|
+
`latticeai/server_app.py` is now a compact app assembly shell
|
|
340
|
+
- chat/history/agent, model runtime/provider helpers, tools/local/CU/
|
|
341
|
+
permissions/upload, garden/setup/static pages, MCP, and KG router wiring are
|
|
342
|
+
extracted into `latticeai/api/*` and `latticeai/services/*`
|
|
343
|
+
- route compatibility, streaming, model endpoint, tools/local/CU,
|
|
344
|
+
import/startup, build, packaging, and documentation stale-reference checks
|
|
345
|
+
are part of the release validation
|
|
338
346
|
- Python package, npm package, VS Code extension, FastAPI app, and `/health`
|
|
339
|
-
version metadata are aligned at `
|
|
347
|
+
version metadata are aligned at `1.4.0`
|
|
340
348
|
|
|
341
349
|
See the full [changelog](docs/CHANGELOG.md).
|
|
342
350
|
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.0] - 2026-05-31
|
|
4
|
+
|
|
5
|
+
> Server App Final Decomposition — chat, model runtime, tools/local/CU,
|
|
6
|
+
> permissions/upload, garden/setup/static, MCP, and KG glue extracted while
|
|
7
|
+
> preserving the public route contract.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Final decomposition guard** —
|
|
12
|
+
`tests/unit/test_server_app_v14_decomposition.py` asserts
|
|
13
|
+
`latticeai/server_app.py` stays under the 1,500-line target, new routers and
|
|
14
|
+
services import independently, and version metadata is aligned.
|
|
15
|
+
- **New routers** — `latticeai/api/chat.py`, `latticeai/api/tools.py`,
|
|
16
|
+
`latticeai/api/computer_use.py`, `latticeai/api/local_files.py`,
|
|
17
|
+
`latticeai/api/permissions.py`, `latticeai/api/garden.py`,
|
|
18
|
+
`latticeai/api/setup.py`, `latticeai/api/static_routes.py`, plus
|
|
19
|
+
`latticeai/api/deps.py`.
|
|
20
|
+
- **New service seams** — `latticeai/services/model_runtime.py`,
|
|
21
|
+
`latticeai/services/tool_dispatch.py`, `latticeai/services/upload_service.py`,
|
|
22
|
+
and
|
|
23
|
+
`latticeai/services/app_context.py`.
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **server_app.py final decomposition** — reduced from 5,381 lines to 1,303
|
|
28
|
+
lines. The file now owns FastAPI construction, lifespan, middleware, static
|
|
29
|
+
mount, router wiring, and compatibility globals only.
|
|
30
|
+
- **Chat/history/agent extracted** — `/chat`, `/history*`, `/agent*`, streaming
|
|
31
|
+
generator, document-generation session handling, Graph RAG trace recording,
|
|
32
|
+
and AgentRuntime wiring moved to `latticeai/api/chat.py` with behavior and
|
|
33
|
+
SSE chunk format preserved.
|
|
34
|
+
- **Model runtime/provider extracted** — provider catalogs, engine aliases,
|
|
35
|
+
install/download/pull/load/unload helpers, prepare-model streaming,
|
|
36
|
+
compatibility smoke tests, runtime feature payloads, and cloud verification
|
|
37
|
+
moved to `latticeai/services/model_runtime.py`.
|
|
38
|
+
- **Tools/local/CU/permissions/upload extracted** — `/tools/*` moved to
|
|
39
|
+
`latticeai/api/tools.py`, `/local/*` and KG/local-knowledge router glue moved
|
|
40
|
+
to `latticeai/api/local_files.py`, `/cu/*` moved to
|
|
41
|
+
`latticeai/api/computer_use.py`, `/permissions/*` moved to
|
|
42
|
+
`latticeai/api/permissions.py`, and `/upload/document` now delegates to
|
|
43
|
+
`latticeai/services/upload_service.py`.
|
|
44
|
+
- **Garden/setup/static routes extracted** — `/garden*`, `/setup*`,
|
|
45
|
+
`/permissions/open/*`, `/`, `/account`, `/chat`, `/admin`, `/status`,
|
|
46
|
+
`/manifest.json`, `/sw.js`, and `/local/sysinfo` moved to dedicated routers.
|
|
47
|
+
- **Docs and release metadata aligned** — README current release conflict fixed,
|
|
48
|
+
SECURITY supported versions updated, package metadata bumped to `1.4.0`, and
|
|
49
|
+
publish docs avoid unsafe `dist/*` upload commands.
|
|
50
|
+
|
|
51
|
+
### Validation
|
|
52
|
+
|
|
53
|
+
- Route compatibility snapshot, import/startup checks, chat streaming contract,
|
|
54
|
+
model endpoint presence, MCP/KG presence, v1.4 line-count/import/version
|
|
55
|
+
guard, unit/integration suites, Python build, VSIX package, npm pack, twine
|
|
56
|
+
check, and release artifact validation all pass for `1.4.0`.
|
|
57
|
+
|
|
3
58
|
## [1.3.0] - 2026-05-31
|
|
4
59
|
|
|
5
60
|
> Server app decomposition (phase 3) — safety-net suite first, then model & MCP router extraction.
|
package/latticeai/__init__.py
CHANGED