Skip to content

feat(channels): add Facebook Messenger and Pancake channel integrations#731

Open
nguyennguyenit wants to merge 3 commits intodevfrom
feat/facebook-pancake-channels
Open

feat(channels): add Facebook Messenger and Pancake channel integrations#731
nguyennguyenit wants to merge 3 commits intodevfrom
feat/facebook-pancake-channels

Conversation

@nguyennguyenit
Copy link
Copy Markdown
Contributor

Summary

  • Add Facebook Messenger channel integration with Graph API, Messenger handler, comment handler, post fetcher, webhook handler, and HTML-to-text formatter
  • Add Pancake channel integration with API client, message/media handlers, webhook handler, and formatter
  • Register both channel types (TypeFacebook, TypePancake) in the channel manager constants
  • Register factories in gateway startup alongside existing channels (Telegram, Discord, Slack, etc.)
  • Add facebook and pancake to valid channel types in HTTP API handler
  • Update frontend: channel type constants, config schemas, and HTTP client

Test Plan

  • go test ./internal/channels/facebook/... passes
  • go test ./internal/channels/pancake/... passes
  • go build ./... compiles successfully
  • Manual: create Facebook channel instance via API and verify webhook delivery
  • Manual: create Pancake channel instance via API and verify message flow

viettranx and others added 2 commits April 6, 2026 13:18
- Add absolute path exemption for dataDir/skills-store/ (fixes skill
  scripts using absolute paths like /app/data/skills-store/ being denied)
- Strip surrounding quotes before prefix matching (LLMs often quote paths)
- Reject path traversal ("..") in exempt fields to prevent escape
- Switch from "any field exempt → skip" to per-field matching: only exempt
  if ALL fields that match the deny pattern are individually exempt
- Closes pipe/comment bypass vectors where an exempt path in one argument
  would exempt the entire command including non-exempt paths

Includes 27 test cases covering: legitimate access, quoted paths,
path traversal, unicode bypass, pipe/comment bypass, mixed args.
- Implement Facebook channel with Graph API, Messenger handler, comment handler, post fetcher, webhook handler, and formatter
- Implement Pancake channel with API client, message handler, media handler, webhook handler, and formatter
- Register TypeFacebook and TypePancake channel types in channel manager
- Register Facebook and Pancake factories in gateway startup
- Add facebook and pancake to valid channel types in HTTP handler
- Add frontend support: channel type constants, schemas, and API client updates
@nguyennguyenit nguyennguyenit changed the base branch from main to dev April 7, 2026 06:12
Keep whatsapp bridge_url + facebook + pancake entries from feature branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants