Skip to content

fix: add /opt/homebrew extensionAPI fallback#242

Merged
rwmjhb merged 1 commit intoCortexReach:masterfrom
stanleeyY:fix/add-opt-homebrew-extensionapi-fallback
Mar 18, 2026
Merged

fix: add /opt/homebrew extensionAPI fallback#242
rwmjhb merged 1 commit intoCortexReach:masterfrom
stanleeyY:fix/add-opt-homebrew-extensionapi-fallback

Conversation

@stanleeyY
Copy link
Copy Markdown

Summary

  • add /opt/homebrew/lib/node_modules/openclaw/dist/extensionAPI.js to the dynamic import fallback list
  • preserve compatibility with Apple Silicon macOS installs where OpenClaw is installed via Homebrew

Why

The plugin already tries common global install locations such as /usr/lib/... and /usr/local/..., but Homebrew on Apple Silicon uses /opt/homebrew/....

Without this fallback, the plugin can fail to resolve openclaw/dist/extensionAPI.js in some Homebrew-based deployments even though the file exists on disk.

Validation

  • npm test
  • verified local Homebrew install path exists on macOS Apple Silicon ✅

Copy link
Copy Markdown
Collaborator

@rwmjhb rwmjhb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 补全了 Apple Silicon Homebrew 安装路径。

@rwmjhb rwmjhb merged commit 858d7c5 into CortexReach:master Mar 18, 2026
5 checks passed
Papyrus0 pushed a commit to Papyrus0/memory-lancedb-pro-fork that referenced this pull request Mar 20, 2026
…w-extensionapi-fallback

fix: add /opt/homebrew extensionAPI fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants