From fe89243c3b24ed529973e9cdc3a5d602c61ff83e Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 14 May 2026 12:50:22 +0800 Subject: [PATCH] fix(plugin-sdk): restore memory core alias --- CHANGELOG.md | 1 + docs/.generated/plugin-sdk-api-baseline.sha256 | 4 ++-- package.json | 4 ++++ scripts/lib/plugin-sdk-deprecated-public-subpaths.json | 1 + scripts/lib/plugin-sdk-entrypoints.json | 1 + src/plugin-sdk/memory-core.ts | 5 +++++ src/plugin-sdk/memory-host-core.test.ts | 6 ++++++ 7 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/plugin-sdk/memory-core.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 59fc9f276b1..21676fe5a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Docs: https://docs.openclaw.ai - Codex app-server: project bundle and user MCP servers into Codex threads, rotate threads when an MCP server is disabled, scope bundle MCP injection to bundled servers, and resend user MCP config on resume so MCP changes take effect mid-session without restarting the agent. (#81551) Thanks @jalehman. - Codex migration: invoke the managed Codex binary instead of a stale system `codex` for source-config migration plans, so users running the bundled Codex runtime get plan output that matches the binary the gateway will actually use. (#81582) Thanks @fuller-stack-dev. - Subagents/maintenance: preserve pending subagent registry sessions during session-store cleanup, pruning, and disk-budget enforcement so in-flight subagent runs are not deleted by background maintenance before they complete. (#81498) Thanks @ai-hpc. +- Plugin SDK: restore the deprecated `openclaw/plugin-sdk/memory-core` package subpath as an alias of `memory-host-core`, so published memory companion plugins that still import it resolve on current hosts. - Control UI/chat: reconcile terminal and reconnect run cleanup with cached session activity, stale compaction/fallback indicators, and a compact composer run-status chip so completed or interrupted turns do not leave Stop active. Fixes #76874 and #64220; refs #71630. Thanks @BunsDev. - Maintainer tooling: clarify which pnpm test/check commands are safe locally versus inside Codex worktrees, routing linked-worktree gates through node wrappers and Crabbox/Testbox. - Auto-reply: preserve same-key ordering when debounced inbound work falls back to immediate flushes, so follow-up turns cannot overtake an active buffered flush. diff --git a/docs/.generated/plugin-sdk-api-baseline.sha256 b/docs/.generated/plugin-sdk-api-baseline.sha256 index dd092b1697f..b28b72d572f 100644 --- a/docs/.generated/plugin-sdk-api-baseline.sha256 +++ b/docs/.generated/plugin-sdk-api-baseline.sha256 @@ -1,2 +1,2 @@ -3468877af0d3fe749812abc6d4852194b07f3468533fd0fee2772dd26c4e62fe plugin-sdk-api-baseline.json -2b880b2509bd9a02566b003a4cded1c556245f3625aa13fb3013fa16114ab75a plugin-sdk-api-baseline.jsonl +78463c11b4045fa1308df0a73f9dbdc1cba613fb33890facf42355a57092f039 plugin-sdk-api-baseline.json +4fd677ccad0738831e75f70c704d7092346bb32117d872c6c927d341fcab7b7b plugin-sdk-api-baseline.jsonl diff --git a/package.json b/package.json index 267464646d6..3be49557448 100644 --- a/package.json +++ b/package.json @@ -1019,6 +1019,10 @@ "types": "./dist/plugin-sdk/qa-runner-runtime.d.ts", "default": "./dist/plugin-sdk/qa-runner-runtime.js" }, + "./plugin-sdk/memory-core": { + "types": "./dist/plugin-sdk/memory-core.d.ts", + "default": "./dist/plugin-sdk/memory-core.js" + }, "./plugin-sdk/memory-core-engine-runtime": { "types": "./dist/plugin-sdk/memory-core-engine-runtime.d.ts", "default": "./dist/plugin-sdk/memory-core-engine-runtime.js" diff --git a/scripts/lib/plugin-sdk-deprecated-public-subpaths.json b/scripts/lib/plugin-sdk-deprecated-public-subpaths.json index 3cb396e419c..b53b2956f91 100644 --- a/scripts/lib/plugin-sdk-deprecated-public-subpaths.json +++ b/scripts/lib/plugin-sdk-deprecated-public-subpaths.json @@ -19,6 +19,7 @@ "matrix", "mattermost", "media-generation-runtime-shared", + "memory-core", "memory-core-engine-runtime", "memory-core-host-events", "memory-core-host-multimodal", diff --git a/scripts/lib/plugin-sdk-entrypoints.json b/scripts/lib/plugin-sdk-entrypoints.json index 3905724768e..42c251bbe70 100644 --- a/scripts/lib/plugin-sdk-entrypoints.json +++ b/scripts/lib/plugin-sdk-entrypoints.json @@ -231,6 +231,7 @@ "persistent-dedupe", "keyed-async-queue", "qa-runner-runtime", + "memory-core", "memory-core-engine-runtime", "memory-core-host-engine-embeddings", "memory-core-host-engine-foundation", diff --git a/src/plugin-sdk/memory-core.ts b/src/plugin-sdk/memory-core.ts new file mode 100644 index 00000000000..b018742a58b --- /dev/null +++ b/src/plugin-sdk/memory-core.ts @@ -0,0 +1,5 @@ +/** + * @deprecated Use `openclaw/plugin-sdk/memory-host-core` for vendor-neutral + * memory host helpers. + */ +export * from "./memory-host-core.js"; diff --git a/src/plugin-sdk/memory-host-core.test.ts b/src/plugin-sdk/memory-host-core.test.ts index d5b07d8fed9..57821de389e 100644 --- a/src/plugin-sdk/memory-host-core.test.ts +++ b/src/plugin-sdk/memory-host-core.test.ts @@ -8,6 +8,7 @@ import { buildActiveMemoryPromptSection, listActiveMemoryPublicArtifacts, } from "./memory-host-core.js"; +import * as memoryCoreAlias from "./memory-core.js"; describe("memory-host-core helpers", () => { afterEach(() => { @@ -58,4 +59,9 @@ describe("memory-host-core helpers", () => { }, ]); }); + + it("keeps the deprecated memory-core alias wired to memory-host-core", () => { + expect(memoryCoreAlias.buildActiveMemoryPromptSection).toBe(buildActiveMemoryPromptSection); + expect(memoryCoreAlias.listActiveMemoryPublicArtifacts).toBe(listActiveMemoryPublicArtifacts); + }); });