TypeScript plugin that bridges OpenClaw to ZhiYi MemoryWeave: - ZhiYiClient: REST API wrapper (commit/recall/searchNotes/navigate) - Plugin hooks: memory:recall, memory:commit, memory:graphNavigate, memory:searchNotes - CLI: LanceDB migration tool (placeholder — needs OpenClaw LanceDB reader) - package.json with axios + TypeScript deps - README with install instructions Namespace: openclaw-main (isolated from hermes-main) TODO: implement LanceDB reader for migration
7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
'use strict';
|
|
|
|
export default function parseProtocol(url) {
|
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
return (match && match[1]) || '';
|
|
}
|