Commit Graph

133 Commits (1f4d9e83ffaa5b068d7e2cfdfa46ee1fa20cc165)

Author SHA1 Message Date
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
Peter Steinberger 9623bd7763 fix: route agent CLI via gateway 11 months ago
Peter Steinberger 216a23ed08 fix: auto-migrate legacy config on CLI 11 months ago
Peter Steinberger 00370139a5 docs: clarify derived port mapping 11 months ago
Peter Steinberger c6de1b1f7d feat: add --dev/--profile CLI profiles 11 months ago
Peter Steinberger 2110cac5d6 fix(cli): add config alias and reduce probe noise 11 months ago
Peter Steinberger 734bb6b4fd feat: add models scan and fallbacks 11 months ago
Peter Steinberger 246adaa119 chore: rename project to clawdbot 11 months ago
Shadow 8c38a7fee8
Slack: add some fixes and connect it all up 11 months ago
Peter Steinberger e17c038d18 fix: add gif playback for WhatsApp sends 11 months ago
Peter Steinberger f47c7ac369 feat: support configurable gateway port 11 months ago
Peter Steinberger 08ce608ae7 feat: add gateway TUI 11 months ago
Peter Steinberger 314164fb8a chore: fix lint and add gateway auth tests 11 months ago
Peter Steinberger 16420e5b31 refactor: auto-migrate legacy config in gateway 11 months ago
Peter Steinberger 0766c5e3cb refactor: move whatsapp allowFrom config 11 months ago
Peter Steinberger cbac34347b feat: add imessage rpc adapter 11 months ago
Peter Steinberger bd7cd33b02 feat: add remote gateway client config 11 months ago
Peter Steinberger a72fdf7c26 feat: expand wizard setup flow 11 months ago
Peter Steinberger 8ea27968d7 style: apply biome formatting 11 months ago
Peter Steinberger 3eb3f38adf test: add onboarding e2e harness 11 months ago
Peter Steinberger 35b66e5ad1 feat: add onboarding wizard 11 months ago
Peter Steinberger 596770942a feat: add Signal provider support 11 months ago
Shadow ac659ff5a7 feat(discord): Discord transport 11 months ago
Peter Steinberger 523d9ec3c2 feat: add gmail hooks wizard 11 months ago
Peter Steinberger 364a6a9444 feat: add per-session model selection 11 months ago
Peter Steinberger 8421ef7b4a feat(gateway): add gateway-daemon command 11 months ago
Peter Steinberger fa54950d2e feat(browser): add MCP tool dispatch 11 months ago
Peter Steinberger 7f3be083c1 feat: add node screen recording across apps 11 months ago
Peter Steinberger 875cf9a054 refactor(webchat): SwiftUI-only WebChat UI
# Conflicts:
#	apps/macos/Package.swift
11 months ago
Peter Steinberger e9ae10e569 Gateway: wide-area Bonjour via clawdis.internal 11 months ago
Peter Steinberger fece42ce0a feat: embed pi agent runtime 11 months ago
Peter Steinberger cf3becfb2e refactor(macos)!: remove clawdis-mac ui; host PeekabooBridge 11 months ago
Peter Steinberger ba22890205 feat(browser): add ai snapshot refs + click 11 months ago
Peter Steinberger 7b675864a8 feat(browser): add DOM inspection commands 11 months ago
Peter Steinberger 3b283f3167 fix(cli): improve ui arg passthrough 11 months ago
Peter Steinberger 86ed3de1c1 feat(browser): add clawdis-mac browser controls 11 months ago
Peter Steinberger 208ba02a4a feat(browser): add clawd browser control 11 months ago
Peter Steinberger eace21dcae feat(discovery): gateway bonjour + node pairing bridge 12 months ago
Peter Steinberger f9409cbe43 Cron: add scheduler, wakeups, and run history 12 months ago
Peter Steinberger d5d80f4247 feat(gateway)!: switch handshake to req:connect (protocol v2) 12 months ago
Peter Steinberger 8fb3aef917 fix(gateway): handle SIGTERM shutdown cleanly 12 months ago
Peter Steinberger 47a1f757a9 lint: format and stabilize gateway health 12 months ago
Peter Steinberger 93a5784c58 feat(gateway): allow webchat port override 12 months ago
Peter Steinberger 55772eec5a gateway: force ws-only clients 12 months ago
Peter Steinberger cf8b00890f fix: stabilize health probe and gateway handshake 12 months ago
Peter Steinberger 1dd5c97ae0 feat: add ws chat attachments 12 months ago
Peter Steinberger 6129924eb2 chore: remove legacy rpc command 12 months ago
Peter Steinberger be3326d0d9 chore(webchat): log url on gateway start 12 months ago
Peter Steinberger bd41cf377a feat(webchat): auto-start at root 12 months ago
Peter Steinberger e84ed61339 cli: gateway subcommands, drop ipc probes 12 months ago