Commit Graph

234 Commits (491a6e02fbd025ffe2aeaef06c505dddb7d2e47f)

Author SHA1 Message Date
Peter Steinberger 3668388912 fix(routing): harden originating reply routing 11 months ago
Peter Steinberger 42ae2341aa fix: harden pairing flow 11 months ago
Peter Steinberger 073b16a3a0 fix: clean up reaction tooling 11 months ago
Peter Steinberger 3afef2d504 feat: unify provider reaction tools 11 months ago
Sash Zats 551a8d5683 Add WhatsApp reactions support
Summary:

Test Plan:
11 months ago
Peter Steinberger 7aa7fa79d0 feat: update heartbeat defaults 11 months ago
Peter Steinberger 84c8209158 fix(slack): clear assistant thread status after replies 11 months ago
Peter Steinberger 67bda21811 fix: preserve markdown fences when chunking 11 months ago
Peter Steinberger 9fb37cbf93 style: format whatsapp inbound allowlist 11 months ago
Peter Steinberger dbfa316d19 feat: multi-agent routing + multi-account providers 11 months ago
Peter Steinberger 967cef80bc fix(security): lock down inbound DMs by default 11 months ago
Peter Steinberger dbb51006cd feat: unify group policy allowlists 11 months ago
Shadow 91cb2c02a7
fix: allow optional reply body 11 months ago
Peter Steinberger b759cb6f37 feat(providers): normalize location parsing 11 months ago
Peter Steinberger 35a2140e48 fix: clean up poll merge 11 months ago
Peter Steinberger 0b27964693 feat: unify poll support
Co-authored-by: DBH <5251425+dbhurley@users.noreply.github.com>
11 months ago
DBH 2737e17c67
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
11 months ago
Marcus Neves 9ab0b88ac6
feat(whatsapp,telegram): add groupPolicy config option (#216)
Co-authored-by: Marcus Neves <conhecendo.contato@gmail.com>
Co-authored-by: Shadow <hi@shadowing.dev>
11 months ago
Peter Steinberger 13eb9c9ee9 refactor: centralize reply dispatch 11 months ago
Peter Steinberger 5946f4c341 test: extend typing idle coverage 11 months ago
Peter Steinberger ca8f66f844 refactor: unify group allowlist policy 11 months ago
Peter Steinberger 9d656f4269 style: satisfy lint 11 months ago
Peter Steinberger d5f088978a fix: stop typing after dispatcher idle 11 months ago
Peter Steinberger cc0ef4d012 fix(telegram): improve gif handling 11 months ago
Peter Steinberger 811ec8b78b fix: unify mention gating across providers 11 months ago
Peter Steinberger 291c6f3b60 test: cover WhatsApp DM senderE164 11 months ago
Xin a6a45f4b84
fix(whatsapp): populate senderE164 for direct chats to enable owner commands (#247) 11 months ago
Peter Steinberger ac3dedaa1b feat: standardize timestamps to UTC 11 months ago
Peter Steinberger f790f3f3ba
fix/heartbeat ok delivery filter (#246)
* cron: skip delivery for HEARTBEAT_OK responses

When an isolated cron job has deliver:true, skip message delivery if the
response is just HEARTBEAT_OK (or contains HEARTBEAT_OK at edges with
short remaining content <= 30 chars). This allows cron jobs to silently
ack when nothing to report but still deliver actual content when there
is something meaningful to say.

Media is still delivered even if text is HEARTBEAT_OK, since the
presence of media indicates there's something to share.

* fix(heartbeat): make ack padding configurable

* chore(deps): update to latest

---------

Co-authored-by: Josh Lehman <josh@martian.engineering>
11 months ago
Peter Steinberger c75b2a7067 refactor: unify reply dispatch across providers 11 months ago
Peter Steinberger f24fe4e9cd fix(whatsapp): reconnect on crypto unhandled rejection 11 months ago
Peter Steinberger 995f5959af fix: stage sandbox media for inbound attachments 11 months ago
Peter Steinberger 2eb78b8da7 fix: resolve qrcode ESM import for Node 25 11 months ago
Peter Steinberger 93bb0257f0 fix: include sessions in npm pack and update qrcode import 11 months ago
Peter Steinberger d92a9e351e style: fix linting order and formatting 11 months ago
Peter Steinberger e4335ea094 fix: bundle qr renderer in relay 11 months ago
Peter Steinberger 1bad96aa2b style: tidy auto-reply imports and formatting 11 months ago
Jake 65a55b97e0 WhatsApp: mark offline/history messages as read 11 months ago
Peter Steinberger 852f947b44 fix: unify control command handling 11 months ago
Peter Steinberger c6de1b1f7d feat: add --dev/--profile CLI profiles 11 months ago
Peter Steinberger c6b8235862 style: format tests and helpers 11 months ago
Peter Steinberger 246adaa119 chore: rename project to clawdbot 11 months ago
Peter Steinberger c9504a6f20 refactor: split config module 11 months ago
Shadow 3a28e3562c
Discord: tools for uploading emojis and stickers! 11 months ago
Peter Steinberger 8724c2aea8 fix: satisfy gate checks 11 months ago
Peter Steinberger e17c038d18 fix: add gif playback for WhatsApp sends 11 months ago
Shadow ce92fac983
chore: formatting 11 months ago
Peter Steinberger 591773715e fix: honor whatsapp per-group mention overrides 11 months ago
Peter Steinberger 1a00175eb7 chore: fix lint formatting 11 months ago
Peter Steinberger bb54e60179 fix(logging): decouple file logs from console verbose 11 months ago