fix: 修复 TUI 侧边栏配置布局问题和打包图标路径

1. TUI 配置面板布局修复: 移除嵌套 Vertical 容器, 统一使用 admin-section 类

2. 打包脚本修复: 修正 trulymem.spec 中图标路径为绝对路径

3. 代码清理: 移除 embedded_db.py 末尾的测试代码

Generated with CodeArts Agent
This commit is contained in:
JianFeeeee
2026-04-29 23:24:25 +08:00
parent 3a13753d36
commit 0f9001beef
5 changed files with 81 additions and 113 deletions

View File

@ -768,29 +768,3 @@ class EmbeddedGraphDB:
# 兼容性别名
Neo4jGraph = EmbeddedGraphDB
if __name__ == '__main__':
# 测试
print("Testing Embedded Graph Database...")
with EmbeddedGraphDB("test.db") as db:
# 写入测试
result = db.commit(
triplets=[
{"subject": "用户", "relation": "喜欢", "object": "Python"},
{"subject": "用户", "relation": "学习", "object": "AI"}
],
session_id="test-session",
turn_id=1
)
print(f"Commit: {result}")
# 检索测试
result = db.recall("Python,AI")
print(f"Recall: {result}")
# 状态测试
result = db.introspect()
print(f"Introspect: {result}")
print("\nTest completed!")

View File

@ -784,7 +784,6 @@ def get_graph():
SELECT id, name, type, mention_count
FROM entities
ORDER BY mention_count DESC
LIMIT 200
""")
nodes = []