Commit Graph

91 Commits

Author SHA1 Message Date
abd701fd4e feat: 添加应用图标和README Logo
- 添加 Windows ICO 图标

- 添加 macOS iconset 图标源文件

- 添加 README Logo 图片

- 更新打包脚本添加图标配置
2026-04-13 23:23:11 +08:00
7a31bb05b0 update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 12:42:55 +08:00
0e94eb30bf update: 更新文件 README.md 2026-04-13 12:04:39 +08:00
ac39c711e0 update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 10:42:53 +08:00
19c54d66cc update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 10:19:50 +08:00
15465dffb6 update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 10:02:50 +08:00
9bb7609f43 update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 10:01:59 +08:00
9a12d3ac36 update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-13 09:30:35 +08:00
d8b1ccda27 update: 更新文件 README.md
添加特别鸣谢
2026-04-13 09:19:32 +08:00
a846671c34 docs: 更新文档并修正打包脚本
- 新增 docs/api.md 后端API文档

- 修正文档中启动流程示例

- 移除不存在的F4快捷键

- 前端直接工具调用不受次数限制

- 打包脚本添加 config_service hidden-import

- Linux脚本添加python3检查
2026-04-13 08:36:41 +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
efc8182aa2 fix: complete build scripts with all required hidden imports
- Add all core and ui module hidden imports
- Add textual and its submodules
- Add openai and neo4j dependencies
- Update trulymem.spec with dynamic data collection
- Add all platform build scripts (Linux/Windows/macOS)
2026-04-12 21:06:59 +08:00
178c45c410 complete: comprehensive tests and docs update
- 37 tests covering core, ui, and integration
- TestPacketType, Packet, BackendServer, BackendClient tests
- UI component imports and functionality tests
- Integration workflow tests
- Updated README.md with new architecture
- Updated docs/架构.md with packet protocol
2026-04-12 20:54:07 +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
a820afada9 feat: add config/history management to core layer
- Add GET_CONFIG, SET_CONFIG, GET_HISTORY, SAVE_HISTORY to BackendServer
- Update BackendClient with get_config, get_message_history, save_message_history
- All API key and message history now stored in core layer
2026-04-12 18:22:07 +08:00
83906a6985 refactor: restructure to core/ + ui/ with multi-threaded backend 2026-04-12 18:15:55 +08:00
c13d3f671c 修复.gitignore: 允许build目录被追踪
- 从build忽略中移除build/
2026-04-12 17:14:20 +08:00
377102b2a0 重构构建文件: 移入build/目录
- 创建build/存放构建脚本
- 清理遗留graph_memory_tui/web引用
- 入口改为trulymem_entry.py
- 更新文档路径
2026-04-12 17:12:04 +08:00
1575a92dd8 Revert "重构构建文件: 移入build/目录"
This reverts commit 95c96a3346.
2026-04-12 17:09:06 +08:00
cb48cbe968 重构构建文件: 移入build/目录
- 创建build/目录存放构建脚本
- 清理遗留的graph_memory_tui/web引用
- 更新文档中的构建命令路径
- 入口文件改为trulymem_entry.py
2026-04-12 17:07:42 +08:00
cb3fa014cb 删除非必须文件: optimized_operations.py, start.bat
- optimized_operations.py: 重构后内容已整合到system_prompt.md
- start.bat: 可用python trulymem_entry.py直接运行
2026-04-12 17:04:38 +08:00
e8eb8ad9d0 README: add prominent GPLv3 license declaration at top 2026-04-12 16:55:19 +08:00
49b7271f83 Add SPDX license identifier for proper license detection 2026-04-12 16:48:11 +08:00
0ae8238ac8 Fix: hide CypherQueryBox in SQLite mode
- RightPanel: add use_embedded_db parameter, conditionally mount CypherQueryBox
- RightPanel.get_cypher_query_box(): return None if not exists
- RightPanel.has_cypher_query_box(): check if Cypher UI is available
- app.py: pass USE_EMBEDDED_DB to RightPanel
- app.py: action_focus_query shows notification when Cypher unavailable
- Update help text to note F4 is Neo4j-only
2026-04-12 16:44:26 +08:00
0d8a7592ad Docs: sync all docs with actual code implementation
Changes:
- README.md: Fix executable download wording (not pre-built)
- 架构.md: Remove Cypher references (no Cypher in SQLite mode), note cypher_query_box is display-only
- 一键启动指南.md: Remove deleted scripts (start.bat, install.bat), remove made-up startup timings
2026-04-12 16:42:57 +08:00
1d11ad6c9a update: 更新文件 README.md
Signed-off-by: JianFeeeee <2198972886@qq.com>
2026-04-12 16:11:19 +08:00
28aa696224 Cleanup: remove redundant files, add comprehensive tests
Deleted:
- install.bat (Windows-only, use pip directly)
- test_message_order.py (outdated, replaced by pytest)
- test_tool_call_flow.py (outdated documentation-style test)

Added tests (57 total, all passing):
- test_embedded_db.py: SQLite database operations (11 tests)
- test_tool_limiter.py: tool call limiting logic (14 tests)
- test_memory_tools.py: tool definitions validation (17 tests)
2026-04-12 16:07:39 +08:00
7fe56e8319 Docs: sync README with actual repository, remove footer 2026-04-12 16:04:14 +08:00
b4f509de50 Fix: F3 tool details toggle, sidebar width, and sync docs with code
- Fix F3 tool details: use display:none/block instead of re-compose
- Increase sidebar width from 40 to 70 for readability
- Sync 一键启动指南.md with actual entry points (trulymem_entry.py)
- Rewrite 工作记忆链机制说明.md with actual task_* tool APIs
- Rewrite 架构.md with actual file structure (38 Python files)
- Update docs/README.md with complete feature list
2026-04-12 16:01:21 +08:00
b7a6a3c1a9 Enhance: Add detailed usage examples for all memory tools
为所有记忆工具添加详细的使用示例,帮助AI理解工具的作用和使用方法:
1. memory_recall: 添加查询人设图、工作记忆链、用户偏好等示例
2. memory_commit: 添加记录用户偏好、项目信息、游戏状态等示例
3. memory_purge: 添加软删除、纠错替代等示例
4. persona_update: 添加切换角色、添加属性等示例
5. task_create: 添加创建任务节点的完整流程示例
6. task_set_state: 添加任务状态转换的完整流程示例
7. task_link_info: 添加关联信息节点的完整流程示例

更新系统提示词:
- 强化工作记忆链机制说明
- 添加完整的成语接龙游戏示例(三轮对话)
- 明确强制查询和更新场景
- 强调工作记忆链是唯一上下文载体

解决问题: AI无法通过自己写入的记忆链恢复上下文记忆

Generated with CodeArts Agent
2026-04-12 11:09:31 +08:00
410227aaf2 Fix: Correct API call with system prompt and tools 2026-04-11 23:07:45 +08:00
60f473b6bc Fix: Add explicit instruction to reply only once 2026-04-11 23:00:37 +08:00
11b808cf95 Restore: Revert prompt to full version 2026-04-11 22:55:51 +08:00
f577967489 Fix: Properly handle tool calls with results returned to API 2026-04-11 22:54:02 +08:00
57697e464b Simplify: Reduce prompt length to avoid multiple responses 2026-04-11 22:47:55 +08:00
5d2da1415c Remove .arts folder from repository 2026-04-11 17:15:04 +08:00
18b0c06cef Update: Include spec file and remove icon reference 2026-04-11 17:05:43 +08:00
facf28fc5a Clean: Remove all icon files 2026-04-11 17:05:09 +08:00
7096a1a698 Clean: Remove unused icon images 2026-04-11 16:56:31 +08:00
8910053ea0 Refactor: Modularize tools and prompts system 2026-04-11 16:50:33 +08:00
2804ec6080 feat: 添加工作记忆链机制,支持连续性任务状态跟踪 2026-04-11 12:39:25 +08:00
371d5f9ec8 chore: 清理敏感信息,完善工程结构和文档 2026-04-11 10:54:21 +08:00
b33a87d19e feat: 实现流式消息显示和界面优化 2026-04-11 09:30:56 +08:00
4075f9a30d fix: Fix import path in config_manager
- Use relative import from models.config
- Fix ModuleNotFoundError
- Application now starts correctly
2026-04-10 19:57:19 +08:00
2f99124941 feat: Add config persistence
- Create ConfigManager for save/load
- Save config to config.json
- Load config on startup
- Persist API key, model, base_url
- Fix config not saved issue
2026-04-10 19:51:20 +08:00
e0bdbc4502 fix: Fix Tab focus order
- Set tab_index for input fields
- Disable focus on Static labels
- Only inputs are focusable
- Tab cycles through 3 inputs only
2026-04-10 19:44:10 +08:00
acd6c7174f fix: Fix input text not showing
- Add global Input style with visible colors
- Ensure text color is set correctly
- Simplify component styles
- Remove conflicting styles
2026-04-10 19:37:09 +08:00
68ea1908fd fix: Fix layout issues
- Simplify CSS layout
- Remove invalid CSS properties
- Fix left panel not showing
- Use simple dock layout
2026-04-10 17:41:51 +08:00
60d2f60495 fix: Fix critical TUI issues
- Use password mode for API Key input (security)
- Fix input box display with proper CSS
- Fix message sending crash with safe handling
- Simplify message processing to avoid async issues
- Add error handling and user feedback
- Improve input field styling
2026-04-10 17:35:39 +08:00