From 718975618247b790e2b3f0d2793715cf1d9dc9db Mon Sep 17 00:00:00 2001 From: brobert Date: Mon, 10 Nov 2025 14:47:22 +0100 Subject: [PATCH] feat: integrar utilidades de WhatsApp y servicios en server.ts Co-authored-by: aider (openrouter/openai/gpt-5) --- src/server.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index ab2a21a..c7a5183 100644 --- a/src/server.ts +++ b/src/server.ts @@ -5,10 +5,17 @@ import { ContactsService } from './services/contacts'; import { Migrator } from './db/migrator'; import { Metrics } from './services/metrics'; import { AllowedGroups } from './services/allowed-groups'; -import { db } from './db'; +import { db, ensureUserExists } from './db'; import { handleMetricsRequest } from './http/metrics'; import { handleHealthRequest } from './http/health'; import { startServices } from './http/bootstrap'; +import { normalizeWhatsAppId, isGroupId } from './utils/whatsapp'; +import { IdentityService } from './services/identity'; +import { ResponseQueue } from './services/response-queue'; +import { AdminService } from './services/admin'; +import { CommandService } from './services/command'; +import { TaskService } from './tasks/service'; +import { RateLimiter } from './services/rate-limit'; // Bun is available globally when running under Bun runtime declare global {