openclaw/extensions/memory-core/cli-metadata.ts
Peter Steinberger 2e02e440c2
refactor: simplify runtime adapters and remove obsolete code (#152277)
* refactor: consolidate runtime adapters and retire obsolete code

* style(plugins): remove redundant filename headers

* refactor(sessions): keep shared mutation contracts in a leaf module

* test: remove startup timing and source sentinel coupling

* test(memory): target queued-sync publication failures
2026-09-18 19:35:45 -07:00

29 lines
899 B
TypeScript

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,
},
],
},
);
},
});