Slack Bridge demo
EPIC-16 (Multi-transport). Slack Socket Mode bot 패턴 시뮬. 사용자 메시지 → bot 이 engine.run() → thread reply. 실제 통합 = `apps/slack-bridge` 패키지 (Phase 2).
실 Slack 통합 흐름 (Phase 2)
- Slack App 생성 — workspace 마다 OAuth scope:
chat:write+app_mentions:read+im:history - Socket Mode — WebSocket connection (ngrok / public IP 안 필요)
- Event handler:
message.im— 1:1 DMapp_mention— channel 안 @brad 멘션message.channels— channel 메시지 (opt-in)
- Thread reply —
thread_ts= 원본 메시지 ts - engine.run() — 기존 telegram-worker 와 동일 패턴 → JsEngine
- State — channel 별 conversation history (Postgres)
Discord 도 동일 패턴 (EPIC-16)
Slack 의 Socket Mode = Discord 의 Gateway WebSocket. 동일 engine 으로 multi-transport 통합:
- Telegram (✅ shipped) — `apps/telegram-worker`
- Slack (Phase 2) — `apps/slack-bridge`
- Discord (Phase 2) — `apps/discord-bridge`
- Web (✅ shipped) — `apps/web/chat`