memoryweave/openclaw-zhiyi-plugin
xiaowei 4a67916cb5 feat: complete OpenClaw→ZhiYi migration with Python fallback
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)
2026-05-29 18:12:47 +08:00
..
dist feat: complete OpenClaw→ZhiYi migration with Python fallback 2026-05-29 18:12:47 +08:00
node_modules feat: OpenClaw ZhiYi memory plugin scaffold 2026-05-29 17:12:45 +08:00
scripts feat: complete OpenClaw→ZhiYi migration with Python fallback 2026-05-29 18:12:47 +08:00
src feat: complete OpenClaw→ZhiYi migration with Python fallback 2026-05-29 18:12:47 +08:00
README.md feat: OpenClaw ZhiYi memory plugin scaffold 2026-05-29 17:12:45 +08:00
package-lock.json feat: OpenClaw ZhiYi memory plugin scaffold 2026-05-29 17:12:45 +08:00
package.json feat: OpenClaw ZhiYi memory plugin scaffold 2026-05-29 17:12:45 +08:00
tsconfig.json feat: complete OpenClaw→ZhiYi migration with Python fallback 2026-05-29 18:12:47 +08:00

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 wrapper
  • src/index.ts — OpenClaw plugin entry (register hooks)
  • src/cli.ts — LanceDB → ZhiYi migration CLI
  • src/types.ts — TypeScript interfaces