#13671: fix(memory-lancedb): ship @lancedb/lancedb for bundled extension
scripts
agents
stale
Cluster:
Plugin Fixes and Enhancements
## Problem
Bundled extensions under `extensions/*` ship in the npm package, but their dependency graphs are not guaranteed to be installed for end users.
This caused the bundled `memory-lancedb` extension to break in fresh installs (e.g. `openclaw ltm stats`) when required deps were missing or only available via transitive hoisting.
Additionally, workspace-generated `extensions/*/node_modules/.bin/*` artifacts can end up in the packed tarball, and those scripts contain absolute paths from the build machine.
## Fix
- Declare `@lancedb/lancedb` at the root as an `optionalDependency` so installs can succeed even on platforms where LanceDB native bindings may not be available.
- Declare `openai` at the root so `memory-lancedb` does not rely on transitive hoisting/version drift.
- Add a regression test asserting the root declares all `extensions/memory-lancedb` runtime deps.
- Add `extensions/.npmignore` to exclude workspace-installed `node_modules` artifacts from the published package.
- Minor lint cleanup (remove redundant cast).
## Verification
- `pnpm lint`
- `pnpm test`
- `npm pack --dry-run --json` shows `node_modules entries 0`
Most Similar PRs
#22692: fix(memory-lancedb): [P1] add missing runtime deps — plugin broken ...
by mahsumaktas · 2026-02-21
78.5%
#19502: Docker: install extension workspace deps for memory-lancedb
by Hua688 · 2026-02-17
67.5%
#20577: Add versioning and time-travel to memory-lancedb
by jzhuge · 2026-02-19
66.0%
#20415: fix(extensions): use dist/ import paths for bundled extensions
by 88plug · 2026-02-18
65.6%
#12844: fix(llm-task): use correct import path for built/npm installs
by scout-wolfe · 2026-02-09
65.5%
#11113: fix(memory-lancedb): preserve error cause in LanceDB load failure
by marezgui · 2026-02-07
64.3%
#13176: fix: resolve llm-task module import for global installs
by striking · 2026-02-10
64.2%
#4881: docs(plugin): clarify memory-lancedb is bundled (no npm install nee...
by AverageSuami · 2026-01-30
64.1%
#12103: fix: add missing zod dependency to 7 extensions
by mcaxtr · 2026-02-08
63.5%
#11454: fix(plugins): remove workspace:* from extension dependencies
by AnonO6 · 2026-02-07
63.0%