Commit Graph

124 Commits

Author SHA1 Message Date
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
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
e9df29a988 docs: Update README and clean up documentation
- Rewrite README with clear structure
- Remove redundant documentation files
- Update startup guide
- Add API documentation
- Add FAQ section
- Simplify project structure
2026-04-10 15:55:07 +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
e2ab83874e fix: Update .gitignore to ignore CodeArts files 2026-04-10 15:47:51 +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
14ab28e242 添加 架构.md 2026-04-09 05:57:18 +00:00
53e2e5003a chore: remove pycache 2026-04-09 08:49:04 +08:00
f5b8734f01 fix: remove all OpenClaw references from scripts 2026-04-09 08:48:43 +08:00
987768d835 refactor: rename to Graph Memory Demo, remove OpenClaw branding 2026-04-09 08:44:44 +08:00
d20870255b feat: 添加纯 Docker 一键部署版本 2026-04-09 08:35:27 +08:00
f17e3928d7 feat: 所有脚本支持远程 Neo4j 配置 2026-04-09 08:22:02 +08:00
264cac2bd5 feat: 支持远程 Neo4j 配置 - 启动时可选输入 URI 2026-04-09 08:20:01 +08:00
14392edc31 fix: 添加规则 - 回复必须用'应该'标注推断 2026-04-09 08:06:24 +08:00
82a71c6dc9 fix: recall 查询所有会话历史 + 支持逗号分隔关键词 2026-04-09 08:01:24 +08:00
3ac49bb07a fix: prompt 要求 recall 包含同义词近义词 2026-04-09 07:57:53 +08:00
e7eeb09073 fix: recall 支持多关键词搜索实体+关系+目标 2026-04-09 07:47:05 +08:00