ltcai 0.5.0 → 0.6.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 +10 -8
- package/docs/CHANGELOG.md +59 -0
- package/kg_schema.py +179 -518
- package/knowledge_graph.py +183 -80
- package/latticeai/core/agent.py +2 -2
- package/latticeai/core/agent_prompts.py +101 -0
- package/latticeai/core/tool_registry.py +288 -0
- package/latticeai/server_app.py +5806 -0
- package/package.json +2 -2
- package/server.py +13 -6259
- package/tools.py +6 -5
package/README.md
CHANGED
|
@@ -266,14 +266,16 @@ Supported routes include OpenAI-compatible APIs, OpenRouter, Groq, Together, xAI
|
|
|
266
266
|
|
|
267
267
|
## Current release
|
|
268
268
|
|
|
269
|
-
**0.
|
|
270
|
-
|
|
271
|
-
-
|
|
272
|
-
`
|
|
273
|
-
-
|
|
274
|
-
|
|
275
|
-
-
|
|
276
|
-
|
|
269
|
+
**0.6.0** completes the runtime / registry / config extraction sprint:
|
|
270
|
+
|
|
271
|
+
- `server.py` is now a thin compatibility entrypoint; FastAPI app assembly lives
|
|
272
|
+
in `latticeai.server_app`
|
|
273
|
+
- tool dispatch, governance, permission views, MCP descriptions, and prompt
|
|
274
|
+
catalog metadata are centralized in `ToolRegistry`
|
|
275
|
+
- agent role prompts are split into `latticeai.core.agent_prompts`, while
|
|
276
|
+
`AgentRuntime` remains the injected state-machine core
|
|
277
|
+
- Python package, npm package, VS Code extension, FastAPI app, and `/health`
|
|
278
|
+
version metadata are aligned at `0.6.0`
|
|
277
279
|
|
|
278
280
|
See the full [changelog](docs/CHANGELOG.md).
|
|
279
281
|
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0] - 2026-05-31
|
|
4
|
+
|
|
5
|
+
> Runtime / registry / config extraction release.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **server.py thin entrypoint** — moved FastAPI app assembly and route wiring to
|
|
10
|
+
`latticeai.server_app`; `server.py` now preserves the historical `server:app`
|
|
11
|
+
import path for uvicorn, Docker, CLI scripts, and tests.
|
|
12
|
+
- **ToolRegistry ownership** — centralized tool dispatch, governance policies,
|
|
13
|
+
permission views, MCP descriptions, prompt catalog text, and file-create
|
|
14
|
+
metadata in `latticeai.core.tool_registry`. `tools.execute_tool()` delegates
|
|
15
|
+
through the registry.
|
|
16
|
+
- **Agent prompts separated** — moved planner / executor / critic / memory
|
|
17
|
+
updater prompts to `latticeai.core.agent_prompts`; `AgentRuntime` remains the
|
|
18
|
+
injected state-machine core in `latticeai.core.agent`.
|
|
19
|
+
- **Release metadata** — bumped Python package, npm package, VS Code extension,
|
|
20
|
+
FastAPI app, and `/health` version to `0.6.0`.
|
|
21
|
+
|
|
22
|
+
### Validation
|
|
23
|
+
|
|
24
|
+
- Full test suite: 202 passed.
|
|
25
|
+
- Python package build, `twine check`, npm pack, and VSIX package build verified.
|
|
26
|
+
|
|
27
|
+
## [0.5.1] - 2026-05-31
|
|
28
|
+
|
|
29
|
+
> KGStoreV2 정규화 스키마 + 마이그레이션 하드닝 + native API 정리(릴리스).
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **KGStoreV2 정규화 스키마** — `attrs._kg` 패스스루 제거. legacy 자유문자열
|
|
34
|
+
노드/엣지 타입을 무손실 `NodeType`/`EdgeType` superset으로 정규화해 `type`에
|
|
35
|
+
저장하고 원본은 신규 `legacy_type` 칼럼에 보존. summary/metadata는 1급 칼럼으로
|
|
36
|
+
승격. 엣지 정체성은 `(source,target,legacy_type)`로 키잉해 정규화 충돌로 인한
|
|
37
|
+
엣지 소실 방지. `kgv2_*` 재구성 뷰가 legacy read를 byte-identical하게 유지.
|
|
38
|
+
- **마이그레이션 하드닝** — `_init_v2_schema`의 DROP→CREATE→VIEWS→BACKFILL→
|
|
39
|
+
version-stamp 전 과정을 단일 트랜잭션(`BEGIN` + statement 단위 `_exec_script`)으로
|
|
40
|
+
원자화. 중간 실패 시 전부 롤백되어 이전 프로젝션·`projection_version` 보존, 다음
|
|
41
|
+
기동에서 재시도. 마이그레이션은 권위적 legacy `nodes`/`edges`를 절대 건드리지
|
|
42
|
+
않음. 프로젝션은 legacy `title`/`summary`/`metadata_json`을 verbatim 저장해
|
|
43
|
+
byte-faithful(절단·키 재정렬 제거, NULL summary round-trip).
|
|
44
|
+
- **KGStoreV2 native API 정리** — production 미사용인 native 데이터 API
|
|
45
|
+
(`upsert_node`/`upsert_edge`/`get_node`/`list_nodes`/`neighbors`/`search_similar`)와
|
|
46
|
+
`Node`/`Edge`/`Visibility` 모델, 관련 헬퍼(`validate_endpoints`,
|
|
47
|
+
`EDGE_ENDPOINT_RULES`, `encode/decode_embedding`, `cosine`, row→model 변환)를
|
|
48
|
+
제거. `KGStoreV2`는 스키마/초기화/heal/stats 지원 역할만 유지. `kg_schema.py`
|
|
49
|
+
~870→475줄. `test_document_generation`의 직접 `KGStoreV2` 의존을 제거하고
|
|
50
|
+
스키마/production 경로 검증으로 전환.
|
|
51
|
+
|
|
52
|
+
### Removed
|
|
53
|
+
|
|
54
|
+
- dead code: `migrate_legacy_to_v2()` 및 관련 헬퍼/CLI `migrate` 서브커맨드,
|
|
55
|
+
native KGStoreV2 데이터 API 및 모델, 미사용 import(`struct`/`uuid`/`dataclasses`
|
|
56
|
+
/`datetime` 등).
|
|
57
|
+
|
|
58
|
+
### Internal
|
|
59
|
+
|
|
60
|
+
- dual-write 불변식 런타임 진단 `_v2_sync_report()` 추가. 단위 테스트 192 통과.
|
|
61
|
+
|
|
3
62
|
## [0.5.0] - 2026-05-31
|
|
4
63
|
|
|
5
64
|
> MLX 샘플링 API 호환성 버그 수정 + 릴리스 워크플로 build-only 전환.
|