openclaw/extensions/whatsapp/src
scoootscooob 16505718e8
refactor: move WhatsApp channel implementation to extensions/ (#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
2026-03-14 02:44:55 -07:00
..
auto-reply refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
inbound refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
accounts.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
accounts.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
accounts.whatsapp-auth.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
active-listener.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
agent-tools-login.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auth-store.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.broadcast-groups.combined.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.broadcast-groups.test-harness.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.impl.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.test-harness.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.web-auto-reply.compresses-common-formats-jpeg-cap.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.web-auto-reply.connection-and-logging.e2e.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
auto-reply.web-auto-reply.last-route.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
channel.outbound.test.ts test: share whatsapp outbound poll fixtures 2026-03-14 01:41:17 +00:00
channel.test.ts fix(extensions): synthesize mediaLocalRoots propagation across sendMedia adapters 2026-03-03 21:30:41 -06:00
channel.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
inbound.media.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
inbound.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
inbound.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
login-qr.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
login-qr.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
login.coverage.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
login.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
login.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
logout.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
media.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
media.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
monitor-inbox.allows-messages-from-senders-allowfrom-list.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
monitor-inbox.blocks-messages-from-unauthorized-senders-not-allowfrom.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
monitor-inbox.captures-media-path-image-messages.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
monitor-inbox.streams-inbound-messages.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
monitor-inbox.test-harness.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
normalize.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
onboarding.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
onboarding.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
outbound-adapter.poll.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
outbound-adapter.sendpayload.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
outbound-adapter.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
qr-image.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
reconnect.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
reconnect.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
resolve-target.test.ts plugin-sdk: add channel subpaths and migrate bundled plugins 2026-03-03 22:07:03 -05:00
runtime.ts refactor: harden browser runtime profile handling 2026-03-09 00:25:43 +00:00
send.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
send.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
session.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
session.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
status-issues.test.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
status-issues.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
test-helpers.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00
vcard.ts refactor: move WhatsApp channel implementation to extensions/ (#45725) 2026-03-14 02:44:55 -07:00