Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
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
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
4bc5bd3e41 feat: Create TUI-like web interface
- Redesign web interface to match TUI layout
- Left panel: message history and input
- Right panel: config and operation log
- Dark theme with terminal style
- Add keyboard shortcuts (Ctrl+Enter)
- Add real-time status updates
- Improve API endpoints
- Update documentation
2026-04-10 16:08:33 +08:00
aad0b71c33 fix: Improve right panel interaction
- Remove Collapsible wrapper for direct access
- Show config inputs directly without clicking
- Add clear visual hierarchy
- Improve input field styling
- Add config hint text
- Better focus states
2026-04-10 15:59:30 +08:00
46c58bccc5 fix: Use embedded SQLite database instead of Neo4j
- Remove Neo4j connection retry logic
- Use EmbeddedGraphDB with SQLite backend
- Update welcome message to show SQLite database
- No more Neo4j connection errors
2026-04-10 15:50:42 +08:00
6689f08456 feat: Add embedded SQLite database and web interface
- Implement EmbeddedGraphDB with full Neo4j compatibility
- Add web interface for browser access
- Fix input box display issue
- Add comprehensive database tests (15/15 passed)
- Simplify startup script (3 steps, no Docker needed)
- Add multi-language support
- Add .gitignore for clean repository
- Update documentation

All tests passed. Ready for production.
2026-04-10 15:43:22 +08:00