Commit Graph

71 Commits

Author SHA1 Message Date
Mahmoud Ibrahim
db8026b989 Style: format contact label helper 2026-01-10 01:00:00 +01:00
Mahmoud Ibrahim
8348c95654 WhatsApp: include numbers in contact cards 2026-01-10 01:00:00 +01:00
Peter Steinberger
1a7ea05878 refactor: extract vcard parsing helper 2026-01-10 00:12:53 +01:00
Peter Steinberger
1183039e54 fix: prefer FN for WhatsApp contact cards (#622) (thanks @mahmoudashraf93) 2026-01-10 00:08:30 +01:00
Mahmoud Ibrahim
cb1fde042c WhatsApp: handle contact cards inbound 2026-01-10 00:07:04 +01:00
Peter Steinberger
9374401cb7 fix: cap pairing requests and suppress outbound pairing replies 2026-01-09 22:58:18 +00:00
Peter Steinberger
a10f65f26e fix(whatsapp): resolve lid mappings for inbound 2026-01-09 21:46:18 +01:00
Peter Steinberger
8cb359dd11 fix: align WhatsApp activity account id (#537) (thanks @Nachx639) 2026-01-09 20:42:35 +01:00
Tu Nombre Real
4491e9c8d5 fix(web): pass accountId in WhatsApp provider activity tracking
Recent changes added recordProviderActivity calls with accountId, but
the type definition and usage didn't include accountId in ActiveWebSendOptions.
This fix adds the optional accountId field and uses optional chaining
when accessing it to handle cases where options is undefined.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 20:40:03 +01:00
Peter Steinberger
07310951d4 fix: honor whatsapp mediaMaxMb (#505) (thanks @koala73) 2026-01-09 19:51:35 +01:00
Elie Habib
c31ade92b2 feat(whatsapp): add configurable media max size
- Add whatsapp.mediaMaxMb config option (default: 50MB)
- Increases default from previous 5MB hardcoded limit
- Allows receiving larger documents/media files
- Per-account override via whatsapp.accounts.*.mediaMaxMb

Fixes #<issue-number> (if applicable)
2026-01-09 19:40:21 +01:00
Peter Steinberger
fbb596e2df fix: clarify WhatsApp owner number prompts 2026-01-09 13:32:52 +01:00
Peter Steinberger
500ab54f57 fix: sort imports for lint 2026-01-09 00:57:17 +01:00
Peter Steinberger
8c46b44cf1 fix: align discord monitor + whatsapp activity 2026-01-09 00:33:09 +01:00
Peter Steinberger
a5b4f1d680 refactor(pairing): centralize reply formatting 2026-01-08 23:29:23 +00:00
Peter Steinberger
c623bcffa4 feat(pairing): show sender ids across providers 2026-01-08 23:19:13 +00:00
Peter Steinberger
9ff79bc33a feat(providers): improve doctor + status probes 2026-01-08 23:48:37 +01:00
Peter Steinberger
873b582586 fix: resolve WhatsApp LID inbound mapping 2026-01-08 22:08:54 +01:00
Peter Steinberger
e79bd88945 fix: suppress whatsapp pairing in self-phone mode 2026-01-07 20:49:58 +01:00
Peter Steinberger
316e3c02a9 fix: harden pairing flow 2026-01-07 05:06:04 +01:00
Peter Steinberger
b2e4b69db1 fix: clean up reaction tooling 2026-01-07 04:16:39 +01:00
Peter Steinberger
997bac3c34 feat: unify provider reaction tools 2026-01-07 04:16:39 +01:00
Sash Zats
f34532c87d Add WhatsApp reactions support
Summary:

Test Plan:
2026-01-07 04:16:39 +01:00
Peter Steinberger
1a993ddf5c style: format whatsapp inbound allowlist 2026-01-06 18:33:37 +00:00
Peter Steinberger
882bcaf414 feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
Peter Steinberger
2574b99370 fix(security): lock down inbound DMs by default 2026-01-06 17:51:56 +01:00
Peter Steinberger
b1558f28e2 feat: unify group policy allowlists 2026-01-06 06:40:42 +00:00
Shadow
2f57696bd7 fix: allow optional reply body 2026-01-05 23:47:33 -06:00
Peter Steinberger
11a373685b feat(providers): normalize location parsing 2026-01-06 06:31:09 +01:00
Peter Steinberger
68a01a105d fix: clean up poll merge 2026-01-06 04:51:05 +00:00
Peter Steinberger
3a1b077c3f feat: unify poll support
Co-authored-by: DBH <5251425+dbhurley@users.noreply.github.com>
2026-01-06 04:51:05 +00:00
DBH
03e8e191ca feat: Add WhatsApp poll support (#248)
Implements issue #123 - WhatsApp Poll Support

## Gateway Protocol
- Add `poll` RPC method with params: to, question, options (2-12), selectableCount

## ActiveWebListener
- Add `sendPoll(to, poll)` method to interface
- Implementation uses Baileys poll message type

## CLI Command
- `clawdbot poll --to <jid> -q <question> -o <opt1> -o <opt2> [-s count]`
- Supports --dry-run, --json, --verbose flags
- Validates 2-12 options

## Changes
- src/gateway/protocol/schema.ts: Add PollParamsSchema
- src/gateway/protocol/index.ts: Export validator and types
- src/web/active-listener.ts: Add sendPoll to interface
- src/web/inbound.ts: Implement sendPoll using Baileys
- src/web/outbound.ts: Add sendPollWhatsApp function
- src/gateway/server-methods/send.ts: Add poll handler
- src/commands/poll.ts: New CLI command
- src/cli/program.ts: Register poll command

Closes #123
2026-01-06 04:44:15 +00:00
Marcus Neves
13752bb361 feat(whatsapp,telegram): add groupPolicy config option (#216)
Co-authored-by: Marcus Neves <conhecendo.contato@gmail.com>
Co-authored-by: Shadow <hi@shadowing.dev>
2026-01-05 22:41:19 -06:00
Xin
03b592f42f fix(whatsapp): populate senderE164 for direct chats to enable owner commands (#247) 2026-01-05 23:54:35 +00:00
Jake
4b1d10c97e WhatsApp: mark offline/history messages as read 2026-01-05 01:36:29 +01:00
Peter Steinberger
660eeb5ea1 fix: add gif playback for WhatsApp sends 2026-01-03 23:56:40 +00:00
Peter Steinberger
5e550e6abf chore: fix lint formatting 2026-01-03 14:57:49 +00:00
Peter Steinberger
3d22afea6f fix(logging): decouple file logs from console verbose 2026-01-03 12:32:14 +00:00
Peter Steinberger
e98d9a8a98 refactor: move whatsapp allowFrom config 2026-01-02 13:00:29 +01:00
Peter Steinberger
4a81346e7a fix: force web reconnect on stalled close 2025-12-28 12:04:20 +00:00
Peter Steinberger
52242801fe fix: align pi model discovery with auth storage 2025-12-26 11:49:13 +01:00
Peter Steinberger
e8d40fe20d style: format web inbound 2025-12-26 11:39:48 +01:00
Peter Steinberger
12928f8002 fix: extract quoted WhatsApp reply text 2025-12-26 10:51:08 +01:00
Peter Steinberger
a251ffe0fa fix: clean up web inbox listeners on close 2025-12-26 09:27:06 +00:00
Peter Steinberger
7daf09ef90 fix: avoid threaded replies for agent output 2025-12-24 22:36:42 +01:00
Peter Steinberger
d980ce77f2 refactor: move inbound config 2025-12-24 00:22:52 +00:00
Peter Steinberger
a24d541abc fix: suppress thinking stream + typing 2025-12-23 14:17:18 +00:00
Peter Steinberger
5d1e92e95d fix: preserve whatsapp group JIDs 2025-12-23 03:05:59 +01:00
Peter Steinberger
715e4ba45d style: apply biome formatting 2025-12-23 02:49:49 +01:00
Peter Steinberger
317d4ddbac fix: add whatsapp reply context 2025-12-23 02:30:21 +01:00