fix(build): add stable memory-cli dist entry (#51759)

Co-authored-by: oliviareid-svg <269669958+oliviareid-svg@users.noreply.github.com>
Co-authored-by: Frank <vibespecs@gmail.com>
This commit is contained in:
oliviareid-svg
2026-03-23 13:11:06 +08:00
committed by GitHub
parent 91f2c92960
commit 5ff60cc39f
3 changed files with 6 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ Docs: https://docs.openclaw.ai
- Hooks/workspace: keep repo-local `<workspace>/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

View File

@@ -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",

View File

@@ -169,6 +169,10 @@ function buildCoreDistEntries(): Record<string, string> {
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",