mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 10:16:07 +00:00
* feat(memory-wiki): isolate per-agent vaults Refs #63829. Co-authored-by: SunnyShu <shu.zongyu@xydigit.com> * fix(memory-wiki): scope agent status metadata Refs #103088 and #103196. Co-authored-by: SunnyShu <shu.zongyu@xydigit.com> --------- Co-authored-by: SunnyShu <shu.zongyu@xydigit.com>
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
// Memory Wiki plugin module implements cli metadata behavior.
|
|
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 }, { resolveMemoryWikiAgentConfig, resolveMemoryWikiConfig }] =
|
|
await Promise.all([import("./src/cli.js"), import("./src/config.js")]);
|
|
const pluginConfig = appConfig.plugins?.entries?.["memory-wiki"]?.config;
|
|
const config = resolveMemoryWikiConfig(pluginConfig);
|
|
registerWikiCli(program, {
|
|
config,
|
|
getAppConfig: () => appConfig,
|
|
resolveConfig: (agentId, currentAppConfig) =>
|
|
resolveMemoryWikiAgentConfig({
|
|
config,
|
|
appConfig: currentAppConfig ?? appConfig,
|
|
...(agentId ? { agentId } : {}),
|
|
}),
|
|
});
|
|
},
|
|
{
|
|
descriptors: [
|
|
{
|
|
name: "wiki",
|
|
description: "Inspect and initialize the memory wiki vault",
|
|
hasSubcommands: true,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
},
|
|
});
|