mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-12 04:14:59 +03:00
Conversations domain (ADR-HUB-0002/0003/0006): Contact, ConnectionIdentity, Conversation (lifecycle/control_mode/expected_responder + assigned_operator) and Message. Bind a messenger Integration to a Channel (+ poll_marker). MAX transport does long-poll /updates and POST /messages (defensive parsing, raw update logged). Worker now polls MAX connections every 3s and ingests inbound idempotently (InboxEvent): contact/conversation/message, and when the dialog is AI-controlled runs run_channel_turn and replies back to MAX. Verified inbound polling against the live edevs MAX bot (received bot_started). Operator takeover UI is M2b. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
264 B
Python
9 lines
264 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class ConversationsConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
label = "conversations"
|
|
name = "hub_platform.conversations"
|
|
verbose_name = "Conversations (contacts, dialogs, messages)"
|