b4456a9c5b
多用户系统 + Admin 角色权限 + Web/TUI 同步 + 构建集成
...
本轮实现功能:
1. 多用户隔离:每个用户独立 config.json + graph.db
2. TUI 登录页 + 旧版自动迁移(core/migrate.py)
3. Admin/User 角色体系(core/embedded_db.py)
4. Web 后台管理 API(userinfo + admin CRUD)
5. Web 设置页用户管理区(仅 admin 可见)
6. TUI 侧栏配置区权限同步(非 admin 隐藏 Web 服务设置)
7. Web 服务打包为独立二进制(trulymem-web)
8. 双入口 PyInstaller 构建脚本(TUI + Web)
9. 活动记录器(core/activity_recorder.py)
10. 静态页面模板(登录/设置/首次引导)
2026-04-28 10:37:57 +08:00
2aa6e9240f
feat: 添加 context_rewrite 工具并清理工具限制器死配置
...
- 新增 context_rewrite 工具:允许 AI 在单轮内压缩工具调用上下文
- 清理 persona_query_max 和 task_query_max 死配置(commit 9be60ba 引入)
- 同步全栈:后端/前端/文档/测试 18 个文件
- 测试:70/70 通过
2026-04-16 14:33:21 +08:00
a8dc24e7f3
fix: 修复UI层导入问题和历史加载逻辑
2026-04-15 11:15:51 +08:00
b86610d445
feat: 添加数据库迁移、清空聊天记录按钮 - 复用SAVE_HISTORY接口
2026-04-15 11:07:06 +08:00
a8165874ad
feat: 添加聊天记录持久化功能 - 启动时从数据库加载历史,消息处理后自动保存
2026-04-15 10:49:53 +08:00
195ca87577
feat: 改进输入框支持多行文本和发送按钮
...
1. 将Input组件替换为TextArea,支持多行文本输入和粘贴
2. 添加发送按钮,点击即可发送消息
3. Enter键用于换行,支持多行编辑
4. 在帮助信息中显示配置文件和数据库路径
5. 优化输入框样式和布局
🤖 Generated with CodeArts Agent
2026-04-15 08:12:24 +08:00
ddc84382fd
fix: 修复 TUI 界面 API Key 配置和消息处理问题
...
1. 修复配置保存问题:config_section.py 现在正确发送 API 配置和工具限制两个消息
2. 修复代理环境变量问题:graph_client.py 自动修正缺少 scheme 前缀的代理 URL
3. 修复响应解析问题:app.py 正确从 data 字段获取 content 和 tool_calls
4. 添加操作日志更新:app.py 处理工具调用信息并更新操作日志
🤖 Generated with CodeArts Agent
2026-04-14 23:46:21 +08:00
dd685485b5
docs: 重构为双语文档结构,添加人设图机制
...
- 拆分为 docs/(CN) 和 docs_en/(EN) 两个文件夹
- 主 README 索引对应语言文档
- 新增 persona.md (人设图机制详细说明)
- 文件重命名为英文名
2026-04-14 13:20:24 +08:00
c742a30e1b
refactor: 统一 Packet 通信协议 + 后端配置管理 + UI 清理
...
- 合并 server.py 到 core/__init__.py,使用统一 Packet 协议
- 后端管理配置持久化 (~/.trulymem/config.json)
- 前端移除 ConfigService,通过 BackendClient 与后端通信
- 删除 UI 中冗余的 AI 推理逻辑 (chat_service, tool_service, message_handler)
- 删除 core/tools 重复文件 (tool_executor, tool_limiter)
- 提示词管理器支持用户自定义 (~/.trulyemem/system_prompt.md)
- 启动入口优化配置路径逻辑
- 更新测试覆盖 (42 tests)
- 更新文档
2026-04-14 11:49:39 +08:00
759168cab5
fix: 配置持久化 - 启动时加载并保存到本地文件
...
- 修复配置无法持久化的问题,之前配置只保存在内存中
- 启动时从应用根目录加载 config.json
- 配置变更时自动保存到本地文件
- 配置文件位置:源码运行时在项目根目录,打包后exe同级目录
- 修复 model 字段在保存时丢失的问题
2026-04-13 08:13:22 +08:00
82903a3fa7
fix: multiple UI and API issues
...
- Fix tool calls format for DeepSeek API (add type field)
- Fix config event handler name
- Fix message history display (preserve all messages)
- Fix right panel width and scrolling
- Add async config update to prevent UI freeze
- Add prompt caching with singleton pattern
- Update build scripts with complete hidden imports
2026-04-12 23:41:19 +08:00
5c76b19624
refactor: packet-based IPC with core/ui separation
...
- All logic in core layer (BackendServer runs independently)
- Packet protocol: {id, type, body} for all communications
- UI simplified: just input→backend→display
- Config, history, tools all handled by core
- BackendServer can run standalone without UI
2026-04-12 20:47:07 +08:00
83906a6985
refactor: restructure to core/ + ui/ with multi-threaded backend
2026-04-12 18:15:55 +08:00