Spaces:
Running
Running
Commit History
-
Fix: Save bot token first, graceful degradation if webhook setup fails
2b2e573
-
feat: add DELETE /meta/whatsapp/disconnect endpoint
axeronis2eb43c8 -
fix: add whatsapp_connected field and /meta/whatsapp/status endpoint
axeronis678b361
-
refactor: Frontend + Backend modular AI Core
axeronisFrontend: - Extract types to frontend/types/index.ts - Decompose ChatWindow into sub-components - Decompose Sidebar with NavItem component Backend: - Remove Evolution API (deprecated) - Modularize ai_core.py into ai_core/ package: - base.py: AICore facade - response_generator.py: Response generation - lead_analyzer.py: Lead analysis + heat scoring - context_manager.py: RAG, booking, orders - prompt_builder.py: System prompts526e04d -
fix: production readiness (ffmpeg, gemini sdk, whatsapp cloud)
axeronis0ce5872
-
Fix: Smart handling of TELEGRAM_WEBHOOK_URL to prevent double /api/v1
axeroniseaae5c4 -
Fix: Add /api/v1 prefix to Telegram webhook URL
axeronisbe18586
-
fix: Restore missing imports in channels.py including Optional
axeronisac6b5b5 -
feat: LinkedIn Cookie Auth & Unified Brain UI
axeronis- Implemented LinkedIn 'grey' authentication (li_at + JSESSIONID) - Added Voyager API verification logic - Unified Knowledge Base UI (Brain/Products/Booking tabs) - Refactored ProductSettings component - Added booking_settings support in Backend6915fff
-
fix(backend): force instance cleanup on QR refresh to prevent stale codes
axeronisf233de2
-
fix: properly regenerate QR codes and delete old sessions
axeronis764772f -
fix: Add back whatsapp_qr_service import
axeronis99299b2 -
feat: Add QR refresh endpoint for auto-refresh UI
axeronis7368ae3 -
feat: Add WhatsApp Cloud API integration - no QR codes needed!
axeronise07475a
-
feat: Add Meta WhatsApp alias endpoint and improve QR service error handling
axeronis- Add /api/v1/channels/meta/whatsapp/status alias for backward compatibility - Add Evolution API configuration validation before making requests - Improve error messages when Evolution API is not configured - Fix 404 errors for Meta WhatsApp status endpoint - Fix 500 errors for WhatsApp QR generation with better validation Resolves frontend 404/500 errors for WhatsApp integration90c8644
-
Refactor Sidebar and Landing Page with premium design
axeronisca13047
-
feat: WhatsApp QR подключение без внешних зависимостей (простое для пользователей)
axeronisca3fae4 -
fix: Temporarily disable WhatsApp QR endpoints to fix deployment
axeronis05ec6f9 -
feat: Backend для WhatsApp QR + LinkedIn полностью работает
axeronisBACKEND WhatsApp QR: - Добавлен whatsapp_qr.py сервис - QR генерация через qrcode библиотеку - API endpoints: /whatsapp/qr/generate, /status, /disconnect - Подготовка к интеграции whatsapp-web.py FRONTEND: - LinkedIn вкладка полностью восстановлена - WhatsApp QR UI готов (нужно обновить onClick) - API методы добавлены в lib/api.ts DEPENDENCIES: - qrcode[pil]==7.4.2 - Pillow==10.2.0 - whatsapp-web.py==0.1.0 (для будущей интеграции) ИТОГО: 3 канала готовы (Telegram ✅, LinkedIn ✅, WhatsApp QR 🔄)f0311eb
-
feat: Замена Instagram на LinkedIn + WhatsApp через QR
axeronis✅ ЧТО СДЕЛАНО: BACKEND: - Удалён instagram_config, добавлен linkedin_config в Tenant - Обновлены endpoints: * POST /api/v1/channels/linkedin/connect * GET /api/v1/channels/linkedin/status * DELETE /api/v1/channels/linkedin/disconnect - Убрана поддержка Instagram из meta channels API - Добавлен LinkedInConnectRequest schema FRONTEND: - Заменён Instagram tab на LinkedIn в /channels - Обновлены API calls (channelsApi.getLinkedInStatus и т.д.) - Удалена валидация Instagram токенов - LinkedIn state: liAccessToken, liOrgId, liVerifyToken - Mutations: connectLinkedInMutation, disconnectLinkedInMutation - getWebhookUrl теперь поддерживает whatsapp | linkedin АРХИТЕКТУРА: - Telegram: прямая интеграция (работает) ✅ - WhatsApp: через QR код (скоро) ⏳ - LinkedIn: Messaging API ⏳ ЗАЧЕМ: - Instagram App Review слишком сложный - LinkedIn = B2B аудитория (наша ЦА) - WhatsApp QR = нет зависимости от Meta API TODO: - Добавить WhatsApp QR code генерацию - LinkedIn webhook handler - Обновить UI…28a640e
-
fix: Backend тоже убирает /api/v1 из webhook URL
axeronisПРОБЛЕМА: - Backend channels.py использовал TELEGRAM_WEBHOOK_URL напрямую - TELEGRAM_WEBHOOK_URL содержал /api/v1 в конце - Webhook URL получался с дублированием /api/v1/api/v1 РЕШЕНИЕ: ✅ Backend теперь удаляет trailing /api/v1 из webhook_base ✅ Применено в 2 местах: connect и status endpoints ✅ Webhook URL всегда формируется правильно ТЕПЕРЬ: - Переподключение Instagram даст правильный URL - Нет дублирования в базе данных7ce6b9a -
Production-ready: Refactored codebase with Railway + Vercel config
MicroFunnelcd61bf7