Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const memoryPlugin = {
kind: "memory" as const,
configSchema: powerMemConfigSchema,

async register(api: OpenClawPluginApi) {
register(api: OpenClawPluginApi) {
const gw = api as GatewayApi;
const raw = api.pluginConfig;
const toParse =
Expand Down
4 changes: 2 additions & 2 deletions src/openclaw-plugin-sdk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ declare module "openclaw/plugin-sdk/memory-core" {
}) => void;
};

/** Memory plugin entry; `register` may be async when using dynamic imports (e.g. dual-write). */
/** Memory plugin entry; `register` must be synchronous (OpenClaw loads CLI metadata before awaiting). */
export type OpenClawMemoryPlugin = {
id: string;
name: string;
description: string;
kind: "memory";
configSchema: unknown;
register: (api: OpenClawPluginApi) => void | Promise<void>;
register: (api: OpenClawPluginApi) => void;
};
}

Expand Down
Loading