refactor: move memory plugin state into plugin host

This commit is contained in:
Peter Steinberger
2026-03-26 22:14:33 +00:00
parent 00aedb3414
commit 1619090693
13 changed files with 211 additions and 229 deletions

View File

@@ -1407,12 +1407,10 @@ export type OpenClawPluginApi = {
) => void;
/** Register the system prompt section builder for this memory plugin (exclusive slot). */
registerMemoryPromptSection: (
builder: import("../memory/prompt-section.js").MemoryPromptSectionBuilder,
builder: import("./memory-state.js").MemoryPromptSectionBuilder,
) => void;
/** Register the pre-compaction flush plan resolver for this memory plugin (exclusive slot). */
registerMemoryFlushPlan: (
resolver: import("../memory/flush-plan.js").MemoryFlushPlanResolver,
) => void;
registerMemoryFlushPlan: (resolver: import("./memory-state.js").MemoryFlushPlanResolver) => void;
resolvePath: (input: string) => string;
/** Register a lifecycle hook handler */
on: <K extends PluginHookName>(