fix(whatsapp-bridge): add missing link-preview-js dependency - #82547
Open
withzombies wants to merge 1 commit into
Open
fix(whatsapp-bridge): add missing link-preview-js dependency#82547withzombies wants to merge 1 commit into
withzombies wants to merge 1 commit into
Conversation
Baileys declares link-preview-js as an optional peer dependency and uses it to build outbound link-preview cards. Without it installed, outbound messages containing URLs silently skip preview generation. Declare it explicitly so previews work out of the box. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Baileys declares
link-preview-jsas an optional peer dependency and calls it to build outbound link-preview cards. The bridge'spackage.jsondoesn't include it, so outbound messages containing URLs silently skip preview generation (Baileys logs a module-not-found and falls back to plain text). Declaring the dependency makes link previews work out of the box.Changes Made
scripts/whatsapp-bridge/package.json: add"link-preview-js": "^3.2.0"(dependencies re-sorted alphabetically).scripts/whatsapp-bridge/package-lock.json: regenerated entries forlink-preview-jsand its transitive deps (cheerio et al.), lockfileVersion 3.How to Test
cd scripts/whatsapp-bridge && npm ci— installs cleanly.Cannot find module 'link-preview-js'at debug level.Duplicate search
gh search prs --repo NousResearch/hermes-agent "link-preview"→ hits are Telegram/Slack/desktop preview PRs (#61022, #42403, #63171, #34302); none touch the WhatsApp bridge dependency. No matching issues found.Checklist notes
🤖 Generated with Claude Code