4a67916cb5b9fb756baf809df1c9d3bd0316b598
openclaw-zhiyi-plugin/: - cli.ts: migrate/status/test-zhiyi commands, LanceDB reader (NOTE: LanceDB reader requires OpenClaw environment — SDK path bug means it must be run ON the OpenClaw machine where DB is accessible) - client.ts: ZhiYiClient wrapper - index.ts: plugin hooks (memory:commit/recall/graphNavigate/searchNotes) - TypeScript compiled to dist/ (required for direct deployment) - tsconfig.json with node types scripts/migrate_lancedb_to_zhiyi.py: - Python fallback migration script using curl for ZhiYi API - Node.js LanceDB reader via memory-lancedb-pro node_modules - LanceDB path fallback (parent dir for v2 format) - batch commit with individual fallback - test-zhiyi/status/migrate commands Namespace: openclaw-main (isolated from hermes-main)
织忆 (MemoryWeave) — 独立记忆基础设施
Go + Rust 双二进制架构 | port 7821 | 版本 v0.1.0-dev
织忆是多 Agent 系统的共享记忆层。
zhiyid (Go daemon, port 7821)
├── REST API / WebSocket
├── 蒸馏引擎 / 冲突治理
├── Redis 事件流
└── 调用 zhiyi-consolidate
zhiyi-consolidate (Rust binary, systemd timer)
├── LanceDB 原生读写
├── DBSCAN 聚类 / 衰减回归
├── Embedding + Rerank 管线
└── → 结果写回 LanceDB
快速开始
# 构建
make build
# 安装
sudo make install
# 验证
curl http://localhost:7821/health
文档
语言分工
| 组件 | 语言 | 原因 |
|---|---|---|
| HTTP API + 业务逻辑 | Go | goroutine 高并发,单二进制 |
| LanceDB + 向量管线 | Rust | 原生 lancedb crate,零 FFI |
| Embedding/Rerank | Rust | Candle/ort 推理 |
仓库
Languages
Python
62.3%
Go
31.9%
Rust
2.7%
TypeScript
1.1%
Shell
1.1%
Other
0.9%