Commit Graph

11 Commits

Author SHA1 Message Date
xiaowei 506f76bd00 fix(hermes-plugin): memory_feedback 闭环 — prefetch/memory_search 输出带 memory_id,system prompt 引导标记有用/无用 2026-09-05 21:44:08 +08:00
xiaowei 28a3d4f6b8 fix(hermes-plugin): 在正本基础上加 conflicts 解析(保留 prefetch/social 功能,勿用部署副本整体覆盖)
前一版 6fa2d9b 误用旧部署副本覆盖正本(41469B→35801B),丢了 _is_social_close/_prefetch_cache/prefetch()。已恢复正本(checkout HEAD~1)后重新应用:
- ZhiYiClient.__init__ 加 _last_conflicts
- commit() 成功时捕获 conflicts
- _tool_memory_write 检出冲突返回 warning(不静默)
2026-09-04 01:35:31 +08:00
xiaowei 6fa2d9b892 fix(hermes-plugin): commit 解析 conflicts 字段返回 warning(同步部署副本 d520a9091)
zhiyid DetectContradiction 检出矛盾后 conflicts 只放响应,插件 commit() 只取 id 忽略
→ 冲突记忆静默进 episodes→蒸馏→污染长期记忆
现在:_last_conflicts 记录 + _tool_memory_write 返回 conflicts/warning 给 agent 感知
2026-09-04 01:33:41 +08:00
小唯 1970fb4f06 feat: 织忆+rag-skill深度检索模式 + 07-Wiki全目录索引
Phase 3: Hermes 插件深度检索
- prefetch() 新增 depth='deep' 参数
- depth=deep: 织忆语义搜索后,异步触发本地文件渐进检索
- 结果标记 [rag-skill File — local Wiki evidence]
- 缓存 TTL 60s,支持双轮(第一轮触发,第二轮拿缓存)
- depth='fast' 默认行为完全不变

Phase 4: 07-Wiki 目录索引补全
- docs/07-Wiki-index/: 织忆同步(1039files)、织忆图谱(299files)、经证同步(29files)
- docs/memory-index/: 记忆顶层 + 织忆进度快照
2026-07-08 12:42:17 +08:00
小唯 7fabc58bf3 feat: P3 CREATIVE.md isolation + P4 Ground Truth prompt + P5 Wiki curator
P3: Created ~/.hermes/CREATIVE.md for 织忆 working memory.
Updated plugin system_prompt_block() to load CREATIVE.md as [织忆 工作记忆].

P4: Added Ground Truth hierarchy (4 levels), Context injection convention,
and Memory feedback rule to SOUL.md. Injected [织忆] memory now
explicitly takes priority level 2.

P5: Created wiki_curator.py — scans .md files, extracts concepts/entities/
relations via heuristic, writes to 织忆 via /commit + /graph/edge APIs.
Includes dry-run, force, state tracking, skip rules.
2026-07-02 00:29:47 +08:00
小唯 5e24646600 feat: P1 auto-injection hook with social close detection
- queue_prefetch now caches next-turn recall results asynchronously
- Social closer detection skips trivial messages (ok, thanks, emoji)
- prefetch uses cached queue results when available (TTL 30s)
- Output header changed to [织忆 Memory] for source clarity
2026-07-02 00:22:43 +08:00
小唯 79b994ce4b feat: add memory_graph_navigate and memory_graph_stats tools (v1.1.0)
- Add graph_navigate() and graph_stats() to ZhiYiClient
- Add memory_graph_navigate tool: N-hop knowledge graph navigation
- Add memory_graph_stats tool: graph statistics (nodes/edges/density)
- Update system prompt to list all available tools
- Bump version 1.0.0 -> 1.1.0
2026-06-15 17:28:16 +08:00
xiaowei 2d6981d4fb E5.1 织忆插件 v1.1: 记忆展开详情+分类过滤+质量分条+写记忆入口+设置持久化+图谱边标签+实体列表侧边栏 2026-06-03 20:25:53 +08:00
xiaowei abef38cb05 E5.1 Obsidian 插件: CORS中间件 + 记忆面板 + 图谱视图 + 搜索模态框
- 新增 CORS 中间件 (middleware/cors.go): 支持 app://obsidian.md 跨域
- 新增 Obsidian 插件: MemoryView(分页记忆列表) + GraphView(D3力导向图) + SearchModal(语义搜索)
- Go API CORS: Access-Control-Allow-Origin: app://obsidian.md
- Makefile 新增 build-obsidian / install-obsidian 目标
- 插件安装至 ~/.obsidian/plugins/zhiyi-memory/
2026-06-02 15:42:54 +08:00
xiaowei c5835def8f feat: 双插件推送 — Hermes + OpenClaw zhiyi 插件同步
Hermes 插件 (~/.hermes/plugins/memory/zhiyi/__init__.py):
  - 新增 memory_feedback 工具(useful/not-useful → VProp + Dashboard)
  - 新增 memory_metrics 工具(7项自优化指标)
  - recall 结果含 quality_score/v_value 字段
  - system_prompt 新增 feedback/metrics 使用引导

OpenClaw 插件 (openclaw-zhiyi-plugin/):
  - v0.5.0 — 3项修改由小雪完成
  - types.ts: RecallResult 加 quality_score/v_value
  - client.ts: navigate 改 GET+params; 加 metrics()/gaps()
  - index.ts: 注册 memory_feedback/memory_metrics/memory_gaps 工具
2026-05-30 15:00:33 +08:00
xiaowei 2464689c32 feat: 集成 Hermes + OpenClaw 记忆插件到仓库
- plugins/hermes-zhiyi: 530行 Python 插件, 含 key 自检/重试/调试日志
- plugins/openclaw-zhiyi: v0.2.0 CJS, 修复 agent_id/namespace/register 同步
- Hermes 插件改动: commit 失败自动重试, key_prefix 调试日志, health 自检
- OpenClaw 插件改动: register 改为同步, 使用 registerService 做异步初始化
2026-05-30 04:46:42 +08:00