Commit Graph

134 Commits

Author SHA1 Message Date
33a2b8c749 fix: 修复 ESM 模块导入路径,添加 .js 后缀兼容 Node.js ESM 加载
- 所有内部模块导入添加 .js 后缀
- types.ts 添加 __types 导出标记
- 确保运行时模块能被正确加载
2026-04-24 16:02:24 +08:00
c930b20e84 chore: 添加 task_archive 到 .gitignore 2026-04-24 15:47:15 +08:00
9e067ac23a P2: 高级功能开发 - context_rewrite + TaskNode链 + 人设强制查询Skill
- context_rewrite: 压缩上下文,提取关键三元组,支持偏好/决策/目标检测
- TaskNodeStore: 新表结构 + next链式关系 + 原始文本存档
- MemoryService: 集成TaskNode链操作,workingMemoryChain增强
- GraphMemoryTool: 新增 task_node_create/get_recent/get_chain 3个action
- graph-memory-persona-force Skill: 指导AI主动查询人设图
- 新增测试: task_node_store.test.ts (6测试) + memory_service_p2.test.ts (7测试)
- 全部138个测试通过
2026-04-24 15:44:45 +08:00
7314d85ac6 P1: 完善 skill 文档 - 强调增强而非替换
- 更新 graph-memory/SKILL.md:添加与 memory-core 关系对比表
- 更新 graph-memory-persona/SKILL.md:添加定位声明和使用建议
- 更新 graph-memory-task/SKILL.md:添加定位声明和使用建议
- 更新 bundled-skills/ 下对应文件
2026-04-24 14:06:22 +08:00
a4a904f66b P1: 完整参数验证 + 错误处理/日志 + 测试覆盖
- 为所有 action 实现参数验证函数
- 添加 GraphMemoryLogger 日志系统(info/warn/error/action)
- 敏感数据脱敏:attributes 只记录属性名,triplets 只记录数量
- 顶层 action 参数空值检查
- 参数验证错误返回 validation_error 类型
- 添加 11 个参数验证测试用例
- 全部 118 个测试通过
2026-04-24 13:56:14 +08:00
135041e8b0 fix: update plugin entry to OpenClaw SDK format and improve installation docs
- Change plugin-entry.ts export to SDK-compliant object format
- Add explicit id, name, description fields
- Use register(api) method for tool registration
- Update README with correct installation steps
- Document plugin enable and gateway restart commands
2026-04-23 21:34:34 +08:00
3d58ff7766 fix: OpenClaw compliance audit fixes - refactor tool interface to AnyAgentTool, restructure skill directories 2026-04-17 09:36:22 +08:00
192179a986 docs: add AI-friendly installation guide to README 2026-04-16 20:41:46 +08:00
85c3431b52 feat: complete OpenClaw plugin migration with SQLite persistence
- Migrate to OpenClaw Plugin SDK with definePluginEntry and api.registerTool
- Rewrite GraphDatabase with better-sqlite3 for persistent storage
- Implement recall depth traversal, timeRange filtering, supersede mode
- Add archive and cleanup data management features
- Fix SKILL.md frontmatter to OpenClaw single-line format (kebab-case names)
- Add ToolLimiter for per-turn rate limiting
- Add TypeBox parameter schemas for OpenClaw tool registration
- Add 110 tests across 4 test files (GraphDatabase, MemoryService, Tool, Limiter)
- Update README for OpenClaw plugin installation and usage
2026-04-16 18:26:19 +08:00
4caf115ec9 docs: update README for OpenClaw with AI install guide 2026-04-15 16:29:25 +08:00
e8c275c8f8 docs: expand usage instructions with detailed steps 2026-04-15 16:15:35 +08:00
931617624e chore: add TypeScript build artifacts to gitignore 2026-04-15 16:11:10 +08:00
ee2fd18fec docs: add separate bilingual README files with cross-links 2026-04-15 16:09:15 +08:00
aa18c1c8b1 docs: add bilingual README with WaterFlow usage instructions 2026-04-15 15:51:54 +08:00
d05bb5507f restore: add README and pic files
- Add README.md with WaterFlow usage instructions
- Restore pic/ folder with icons
2026-04-15 15:49:09 +08:00
904661d73f feat: migrate to TypeScript for WaterFlow framework
- Add TypeScript graph memory module (GraphDatabase, MemoryService)
- Add GraphMemoryTool for WaterFlow Tool interface
- Add bundled-skills for graph_memory, persona, task
- Remove Python code (core/, ui/, tests/, etc.)
- Remove redundant docs and build files
- Keep only ts/, docs/integration/, .gitignore, LICENSE
2026-04-15 15:45:12 +08:00
43172e257a docs: add TrulyMEM → WaterFlow migration design document
- TypeScript reimplementation of graph memory system
- Include: GraphDatabase, MemoryService, GraphMemoryTool
- Directory structure and implementation patterns
- Test plan with 50+ test cases
2026-04-15 14:25:51 +08:00
f9b57bfa73 build: 添加 AppImage 打包脚本
- 新增 build_appimage.sh 脚本,支持先构建二进制再打包为 AppImage
- 二进制输出到 dist/ 目录
- AppDir 结构支持跨发行版兼容
2026-04-15 13:22:54 +08:00
09a45c52e7 docs: 修正 API 文档响应结构描述 + 添加缺失测试
- 修正 PROCESS_MESSAGE 响应数据访问路径 (result['content'] -> result['data']['content'])
- 添加 CLEAR_HISTORY 文档说明 (基于 SAVE_HISTORY 空消息实现)
- 添加 test_clear_history 和 test_send_message_is_alias 测试用例
- 优化 BackendClient 历史相关方法的返回值处理
2026-04-15 12:09:48 +08:00
a8dc24e7f3 fix: 修复UI层导入问题和历史加载逻辑 2026-04-15 11:15:51 +08:00
a282ec1a58 fix: 简化清空逻辑 - 空消息列表即清空 2026-04-15 11:10:29 +08:00
b86610d445 feat: 添加数据库迁移、清空聊天记录按钮 - 复用SAVE_HISTORY接口 2026-04-15 11:07:06 +08:00
adc7857344 test: 添加UI层历史加载测试,更新方法名称 2026-04-15 10:53:30 +08:00
b1db660d70 refactor: 合并配置相关Packet类型为GET_SETTINGS/SET_SETTINGS 2026-04-15 10:50:27 +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
fe4fe7c777 chore: 恢复build文件夹下的打包脚本
恢复在提交 87196fd 中误删的打包脚本文件:build_linux.sh, build_macos.sh, build_windows.bat, trulymem.spec

🤖 Generated with CodeArts Agent
2026-04-15 06:49:49 +08:00
bf6a14caa1 Merge branch 'main' of gitcode.com:JianFeeeee/TrulyMEM-TrueHumanMEM 2026-04-14 23:55:02 +08:00
76070f2854 feat:添加绘图代码 2026-04-14 23:54:46 +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
8d15624b56 docs: fix startup flow to match backend-config-managed architecture 2026-04-14 16:41:22 +08:00
558eee4f58 docs: fix garbled text, sync architecture with code, add tool limits API 2026-04-14 16:28:17 +08:00
8a243dee2d docs: add language switch links to root README files 2026-04-14 13:51:03 +08:00
e3aceed825 fix: 修正语言切换链接文本 2026-04-14 13:27:45 +08:00
8b1663b1c9 docs: 添加中英文切换链接
- docs/zh/README.md 添加切换到英文版链接
- docs/en/README.md 添加切换到中文版链接
2026-04-14 13:27:01 +08:00
29d15707f5 docs: 重构为 docs/zh/ + docs/en/ 子文件夹结构
- 拆分为 docs/zh/(中文) 和 docs/en/(英文)
- README 索引对应语言子文件夹
- 保留所有文档内容
2026-04-14 13:25:53 +08:00
dd685485b5 docs: 重构为双语文档结构,添加人设图机制
- 拆分为 docs/(CN) 和 docs_en/(EN) 两个文件夹
- 主 README 索引对应语言文档
- 新增 persona.md (人设图机制详细说明)
- 文件重命名为英文名
2026-04-14 13:20:24 +08:00
44c332bfe1 docs: 添加双语文档与记忆机制说明
新增文件:
- README_EN.md (English README)
- docs/记忆机制.md + _EN.md (记忆工作机制)
- docs/架构_EN.md
- docs/一键启动指南_EN.md
- docs/工作记忆链_EN.md
- docs/api_EN.md
- docs/prompts.md + _EN.md

docs/README.md 更新为双语文档索引
2026-04-14 13:15:37 +08:00
f65f1ca3c1 docs: 精简 README,添加项目背景故事,文档外链到 docs/
- 精简主 README(231行 → 104行)
- 核心叙事:添加故事的开头章节
- 移除技术细节,链接到 docs/ 目录
- 修正用词:参数量→海量参数,正向传播→前向传播
2026-04-14 12:15:00 +08:00
9873d91224 docs: 修正文档与代码实现一致,添加 model 参数描述,区分源码/打包运行模式 2026-04-14 12:00:57 +08:00
974b92fc45 revert: 提示词保持打包进二进制,不支持用户修改 2026-04-14 11:51:32 +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
2a76fc6477 fix: 修复Linux和macOS打包脚本,添加虚拟环境支持
- 在打包过程中自动创建和激活虚拟环境
- 在虚拟环境中安装依赖,避免系统环境污染
- 打包完成后自动清理虚拟环境
- 统一使用python命令而非python3

🤖 Generated with CodeArts Agent
2026-04-14 07:12:51 +08:00
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