mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-15 22:03:18 +02:00
* fix(memory-wiki): pass config into cli metadata registrar * fix(memory-wiki): use cli context config for metadata registrar * docs(changelog): note memory-wiki cli metadata fix --------- Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
29 lines
904 B
TypeScript
29 lines
904 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
|
export default definePluginEntry({
|
|
id: "memory-wiki",
|
|
name: "Memory Wiki",
|
|
description: "Persistent wiki compiler and Obsidian-friendly knowledge vault for OpenClaw.",
|
|
register(api) {
|
|
api.registerCli(
|
|
async ({ program, config: appConfig }) => {
|
|
const [{ registerWikiCli }, { resolveMemoryWikiConfig }] = await Promise.all([
|
|
import("./src/cli.js"),
|
|
import("./src/config.js"),
|
|
]);
|
|
const pluginConfig = appConfig.plugins?.entries?.["memory-wiki"]?.config;
|
|
registerWikiCli(program, resolveMemoryWikiConfig(pluginConfig), appConfig);
|
|
},
|
|
{
|
|
descriptors: [
|
|
{
|
|
name: "wiki",
|
|
description: "Inspect and initialize the memory wiki vault",
|
|
hasSubcommands: true,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
},
|
|
});
|