Cherry-pick 16505718e8: move WhatsApp channel to extensions/#2032
Merged
alexey-pelykh merged 1 commit intomainfrom Mar 28, 2026
Merged
Cherry-pick 16505718e8: move WhatsApp channel to extensions/#2032alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
…aw#45725) * refactor: move WhatsApp channel from src/web/ to extensions/whatsapp/ Move all WhatsApp implementation code (77 source/test files + 9 channel plugin files) from src/web/ and src/channels/plugins/*/whatsapp* to extensions/whatsapp/src/. - Leave thin re-export shims at all original locations so cross-cutting imports continue to resolve - Update plugin-sdk/whatsapp.ts to only re-export generic framework utilities; channel-specific functions imported locally by the extension - Update vi.mock paths in 15 cross-cutting test files - Rename outbound.ts -> send.ts to match extension naming conventions and avoid false positive in cfg-threading guard test - Widen tsconfig.plugin-sdk.dts.json rootDir to support shim->extension cross-directory references Part of the core-channels-to-extensions migration (PR 6/10). * style: format WhatsApp extension files * fix: correct stale import paths in WhatsApp extension tests Fix vi.importActual, test mock, and hardcoded source paths that weren't updated during the file move: - media.test.ts: vi.importActual path - onboarding.test.ts: vi.importActual path - test-helpers.ts: test/mocks/baileys.js path - monitor-inbox.test-harness.ts: incomplete media/store mock - login.test.ts: hardcoded source file path - message-action-runner.media.test.ts: vi.mock/importActual path (cherry picked from commit 1650571)
This was referenced Mar 28, 2026
alexey-pelykh
added a commit
that referenced
this pull request
Mar 28, 2026
Moves WhatsApp adapter from src/web/ to extensions/whatsapp/src/, converting src/web/ files into thin re-export shims. Completes the structural move that #2032 left incomplete (43 src/web/ files not converted to shims, 63 extensions/whatsapp/src/ files missing). Cherry-picked-from: openclaw/openclaw@1650571 Co-authored-by: scoootscooob <[email protected]>
alexey-pelykh
added a commit
that referenced
this pull request
Mar 28, 2026
Moves WhatsApp adapter from src/web/ to extensions/whatsapp/src/, converting src/web/ files into thin re-export shims. Completes the structural move that #2032 left incomplete (43 src/web/ files not converted to shims, 63 extensions/whatsapp/src/ files missing). Cherry-picked-from: openclaw/openclaw@1650571 Co-authored-by: scoootscooob <[email protected]>
alexey-pelykh
added a commit
that referenced
this pull request
Mar 28, 2026
* Cherry-pick 1650571: complete WhatsApp extensions-move Moves WhatsApp adapter from src/web/ to extensions/whatsapp/src/, converting src/web/ files into thin re-export shims. Completes the structural move that #2032 left incomplete (43 src/web/ files not converted to shims, 63 extensions/whatsapp/src/ files missing). Cherry-picked-from: openclaw/openclaw@1650571 Co-authored-by: scoootscooob <[email protected]> * fix: resolve typecheck errors from WhatsApp extensions-move rebase - Restore auto-reply.test-harness.ts exports lost in conflict resolution - Adapt heartbeat-runner.ts to fork's heartbeat API (no ackMaxChars) - Remove onHeartbeatStrip from process-message.ts (not in fork's types) - Restore WebChannelHealthState type in auto-reply/types.ts - Delete 3 src/web/ test files referencing deleted modules (moved to extensions/) - Revert subpaths.test.ts changes (upstream API additions not in fork) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: scoootscooob <[email protected]> Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
This was referenced Mar 29, 2026
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.
Cherry-pick from upstream
Upstream commit:
16505718e8Author: scoootscooob
Tier: AUTO-PICK
Closes #2031
Conflict Resolution
38 files conflicted. Resolved in 4 categories:
extensions/whatsapp/src/RemoteClawConfig,remoteclawCLI names, etc.)build:docker), discord tests (accepted deletion — already moved to extension), plugin-sdk (kept fork'sRemoteClawConfigexport, removedResolvedWhatsAppAccountnow in extension), channel plugins (took upstream shims)OpenClawConfig→RemoteClawConfigacross all non-conflicted extension files, adapted heartbeat runner to fork's asyncresolveHeartbeatPromptAPI (noHEARTBEAT_PROMPTfallback), removedonHeartbeatStripcallback (not in fork's dispatcher), added missingWebChannelHealthStatetype, created test harness shimsFiles
127 files changed, 4764 insertions(+), 7977 deletions(-)
🤖 Generated with Claude Code