You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/src/gateway
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
..
protocol feat: Add WhatsApp poll support (#248) 11 months ago
server-methods feat: Add WhatsApp poll support (#248) 11 months ago
auth.test.ts fix(gateway): avoid crash in handshake auth 11 months ago
auth.ts chore: rename project to clawdbot 11 months ago
call.test.ts fix: stage sandbox media for inbound attachments 11 months ago
call.ts fix: prefer tailnet IP for local gateway calls 11 months ago
chat-attachments.test.ts test: cover chat attachments 12 months ago
chat-attachments.ts test: cover chat attachments 12 months ago
client.maxpayload.test.ts Gateway: enable canvas host + inject action bridge 11 months ago
client.test.ts refactor: lint cleanups and helpers 11 months ago
client.ts fix(cli): add config alias and reduce probe noise 11 months ago
config-reload.test.ts feat(gateway): add config hot reload 11 months ago
config-reload.ts chore: rename project to clawdbot 11 months ago
control-ui.ts chore: rename project to clawdbot 11 months ago
hooks-mapping.test.ts chore: rename project to clawdbot 11 months ago
hooks-mapping.ts chore: rename project to clawdbot 11 months ago
hooks.test.ts chore: rename project to clawdbot 11 months ago
hooks.ts chore: rename project to clawdbot 11 months ago
net.ts refactor: split gateway server helpers and tests 11 months ago
server-bridge-subscriptions.test.ts test(gateway): cover helper registries 11 months ago
server-bridge-subscriptions.ts refactor(gateway): split server helpers 11 months ago
server-bridge.ts style: satisfy lint 11 months ago
server-browser.ts chore: rename project to clawdbot 11 months ago
server-chat-registry.test.ts test(gateway): cover helper registries 11 months ago
server-chat.ts refactor: align agent lifecycle 11 months ago
server-constants.ts refactor: split gateway server methods 11 months ago
server-discovery.ts chore: rename project to clawdbot 11 months ago
server-http.ts Slack: add some fixes and connect it all up 11 months ago
server-methods.ts chore: align rebase with main 11 months ago
server-providers.ts chore: rename project to clawdbot 11 months ago
server-shared.ts refactor(gateway): split server helpers 11 months ago
server-utils.test.ts refactor: split gateway server methods 11 months ago
server-utils.ts fix(gateway): format status/code errors 11 months ago
server.agent.test.ts refactor: align agent lifecycle 11 months ago
server.auth.test.ts chore: rename project to clawdbot 11 months ago
server.chat.test.ts refactor: centralize agent timeout defaults 11 months ago
server.cron.test.ts Cron: normalize cron.add inputs + align channels (#256) 11 months ago
server.health.test.ts refactor: align agent lifecycle 11 months ago
server.hooks.test.ts chore: rename project to clawdbot 11 months ago
server.misc.test.ts style: fix linting order and formatting 11 months ago
server.models-voicewake.test.ts style: format tests and helpers 11 months ago
server.node-bridge.test.ts refactor: align agent lifecycle 11 months ago
server.providers.test.ts feat: add per-session agent sandbox 11 months ago
server.reload.test.ts chore: rename project to clawdbot 11 months ago
server.sessions-send.test.ts refactor: align agent lifecycle 11 months ago
server.sessions.test.ts chore: rename project to clawdbot 11 months ago
server.ts feat: add --dev/--profile CLI profiles 11 months ago
session-utils.test.ts refactor: split gateway server helpers and tests 11 months ago
session-utils.ts chore: rename project to clawdbot 11 months ago
test-helpers.ts refactor: centralize agent timeout defaults 11 months ago
ws-log.test.ts refactor: split gateway server helpers and tests 11 months ago
ws-log.ts refactor: align agent lifecycle 11 months ago
ws-logging.ts Gateway: optimize ws logs in normal mode 11 months ago