// Memory Core plugin module implements cli metadata behavior. import { definePluginEntry } from "openclaw/plugin-sdk/core"; import type { OpenKeyedStoreOptions } from "openclaw/plugin-sdk/plugin-state-runtime"; export default definePluginEntry({ id: "memory-core", name: "OpenClaw Memory", description: "File-backed memory search tools and CLI", register(api) { api.registerCli( async ({ program }) => { const { registerMemoryCli } = await import("./cli.js"); registerMemoryCli(program, { acquireLocalService: api.runtime.llm?.acquireLocalService, openKeyedStore: (options: OpenKeyedStoreOptions) => api.runtime.state.openKeyedStore(options), }); }, { descriptors: [ { name: "memory", description: "Search, inspect, and reindex memory files", hasSubcommands: true, }, ], }, ); }, });