refactor: dedupe bundled plugin entrypoints

This commit is contained in:
Peter Steinberger
2026-03-17 00:14:01 -07:00
parent be4fdb9222
commit 6f795fd60e
69 changed files with 814 additions and 850 deletions

View File

@@ -1,13 +1,11 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/memory-core";
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk/memory-core";
import { definePluginEntry } from "openclaw/plugin-sdk/core";
const memoryCorePlugin = {
export default definePluginEntry({
id: "memory-core",
name: "Memory (Core)",
description: "File-backed memory search tools and CLI",
kind: "memory",
configSchema: emptyPluginConfigSchema(),
register(api: OpenClawPluginApi) {
register(api) {
api.registerTool(
(ctx) => {
const memorySearchTool = api.runtime.tools.createMemorySearchTool({
@@ -33,6 +31,4 @@ const memoryCorePlugin = {
{ commands: ["memory"] },
);
},
};
export default memoryCorePlugin;
});