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) |
||
|---|---|---|
| .. | ||
| dist | ||
| node_modules | ||
| scripts | ||
| src | ||
| README.md | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
README.md
memory-zhiyi — OpenClaw ZhiYi Memory Plugin
ZhiYi MemoryWeave plugin for OpenClaw. Replaces memory-lancedb-pro with semantic memory + knowledge graph + Obsidian integration.
Quick Start
# Install
cd ~/.openclaw/workspace/plugins/
git clone <this-repo> memory-zhiyi
cd memory-zhiyi
npm install
npm run build
# Configure in ~/.openclaw/config.yaml:
memory:
provider: zhiyi
zhiyi:
base_url: http://localhost:7821
api_key: your-key
namespace: openclaw-main
Architecture
src/client.ts— ZhiYi REST API wrappersrc/index.ts— OpenClaw plugin entry (register hooks)src/cli.ts— LanceDB → ZhiYi migration CLIsrc/types.ts— TypeScript interfaces