diff --git a/CHANGELOG.md b/CHANGELOG.md index eeca9a510df..0c4a046f5c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ Docs: https://docs.openclaw.ai - Hooks/workspace: keep repo-local `/hooks` disabled until explicitly enabled, block workspace hook name collisions from shadowing bundled/managed/plugin hooks, and treat `hooks.internal.load.extraDirs` as trusted managed hook sources. - Web tools/Exa: add Exa as a bundled web-search plugin with Exa-native date filters, search-mode selection, and optional content extraction under `plugins.entries.exa.config.webSearch.*`. Thanks @V-Gutierrez and @vincentkoc. - CLI/hooks: route hook-pack install and update through `openclaw plugins`, keep `openclaw hooks` focused on hook visibility and per-hook controls, and show plugin-managed hook details in CLI output. +- Build/memory tools: emit `dist/cli/memory-cli.js` as a stable core entry so runtime `memory_search` loading no longer depends on hashed `memory-cli-*` bundle names. (#51759) Thanks @oliviareid-svg. ### Fixes diff --git a/src/infra/tsdown-config.test.ts b/src/infra/tsdown-config.test.ts index c47bbcb2192..8abe152d4ad 100644 --- a/src/infra/tsdown-config.test.ts +++ b/src/infra/tsdown-config.test.ts @@ -35,6 +35,7 @@ describe("tsdown config", () => { expect(entryKeys(distGraphs[0])).toEqual( expect.arrayContaining([ "index", + "cli/memory-cli", "plugins/runtime/index", "plugin-sdk/compat", "plugin-sdk/index", diff --git a/tsdown.config.ts b/tsdown.config.ts index 2bd5b9d2b1d..a12bbfc4eb6 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -169,6 +169,10 @@ function buildCoreDistEntries(): Record { entry: "src/entry.ts", // Ensure this module is bundled as an entry so legacy CLI shims can resolve its exports. "cli/daemon-cli": "src/cli/daemon-cli.ts", + // Ensure memory-cli is a stable entry so the runtime tools plugin can import + // it by a deterministic path instead of a content-hashed chunk name. + // See https://github.com/openclaw/openclaw/issues/51676 + "cli/memory-cli": "src/cli/memory-cli.ts", extensionAPI: "src/extensionAPI.ts", "infra/warning-filter": "src/infra/warning-filter.ts", "telegram/audit": "extensions/telegram/src/audit.ts",