mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 11:56:01 +00:00
28 lines
750 B
TypeScript
28 lines
750 B
TypeScript
// Memory Core plugin module implements cli metadata behavior.
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/core";
|
|
|
|
export default definePluginEntry({
|
|
id: "memory-core",
|
|
name: "Memory (Core)",
|
|
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,
|
|
});
|
|
},
|
|
{
|
|
descriptors: [
|
|
{
|
|
name: "memory",
|
|
description: "Search, inspect, and reindex memory files",
|
|
hasSubcommands: true,
|
|
},
|
|
],
|
|
},
|
|
);
|
|
},
|
|
});
|