fix: 修复 TUI 侧边栏配置布局问题和打包图标路径
1. TUI 配置面板布局修复: 移除嵌套 Vertical 容器, 统一使用 admin-section 类 2. 打包脚本修复: 修正 trulymem.spec 中图标路径为绝对路径 3. 代码清理: 移除 embedded_db.py 末尾的测试代码 Generated with CodeArts Agent
This commit is contained in:
@ -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!")
|
||||
|
||||
@ -784,7 +784,6 @@ def get_graph():
|
||||
SELECT id, name, type, mention_count
|
||||
FROM entities
|
||||
ORDER BY mention_count DESC
|
||||
LIMIT 200
|
||||
""")
|
||||
|
||||
nodes = []
|
||||
|
||||
Reference in New Issue
Block a user