Files
openclaw/extensions/memory-core/cli-metadata.ts
T
Peter Steinberger 9809375fda refactor(plugins)!: remove the plugin state lease API (#121140)
* refactor(plugins)!: remove plugin state lease API

* docs(plugins): document state lease removal
2026-08-09 11:16:07 -07:00

31 lines
962 B
TypeScript

// 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: <T>(options: OpenKeyedStoreOptions) =>
api.runtime.state.openKeyedStore<T>(options),
});
},
{
descriptors: [
{
name: "memory",
description: "Search, inspect, and reindex memory files",
hasSubcommands: true,
},
],
},
);
},
});