90 Commits (6c4e85aa6c922c45aee1e4bce4389fc8c0f27e7e)

Author SHA1 Message Date
borja 6c4e85aa6c test: agrega pruebas de ver sin y ver todos en comandos y servidor
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 3f9280eb1a feat: añadir limpieza/retención de response_queue (borrado duro)
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 88b95847a1 test: reutilizar DB en memoria entre bloques de ResponseQueue
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 504f15d491 test: aislar DB en memoria para ResponseQueue (backoff)
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 301c521a77 test: añade tests de reintentos; docs: actualiza README/STATUS Phase 4
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja ac20558348 test: adaptar prueba para verificar columnas base de response_queue
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja a1df163db0 feat: añadir conteos de pendientes y mostrar… y X más en /t ver
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 48d750b648 fix: silenciar errores DB en webhook y actualizar pruebas de TaskService
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja fa08689ee0 test: añadir tests para alias /t, DM y cola de respuestas
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 89398d2dfd fix: añadir metadata a response_queue y unificar ack en CommandService
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 6c9f744f1f feat: habilita menciones en mensajes y limpia descripciones de tareas
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja a209c40ac3 feat: centralizar /tarea en CommandService y usar DB
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja db790064af test: sembrar grupo para satisfacer FK de tasks.group_id
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 703ea61c67 refactor: migrar a bun:sqlite y adaptar servicio/tareas y pruebas
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 7b9928937b feat: añadir TaskService con dbInstance y tests unitarios
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 49b21c6ead fix: aislar pruebas restaurando dbInstance y add de ResponseQueue
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja cbb6f4d769 test: agregar tests de ResponseQueue para persistencia
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja b80cc3ea3c feat: crear tabla response_queue, actualizar tests DB y README
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
2 months ago
borja 837a9f5cc5 test: aislar base de datos en pruebas de group-sync
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 378b3f1895 fix: incluir community_id en inserciones de tests de isGroupActive
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 9f339ad218 fix: hacer público el cache de grupos para tests
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 0c0e0f2da4 test: ajustar expectativas de pruebas para coincidir con implementación actual
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja f802edad57 fix: corregir remoteJid en pruebas de logging de comandos /tarea
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 69a5747cf9 fix: arreglar cache de grupos en tests unitarios
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 90fc363293 refactor: reduce mocks in server tests using real DB and simulated queue
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja e33fb646f1 test: actualizar tests para validación de grupos
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 3b27558eed test: actualizar expectativas de pruebas para CommandService
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja baf3590f32 fix: ajustar tests para ID normalizado y quitar test problemático
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 74b0b0d125 test: agregar tests de integración para validación de usuarios
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 048bd4f80b fix: arregla test de validación de ID de usuario inválido
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 93bbd923ae fix: inyectar base de datos de prueba en WebhookServer para tests unitarios
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 37f3594117 test: arreglar inicialización de DB en tests de servidor
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 7462e3c5bd fix: agregar mock a importaciones en server.test.ts
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja e2e9a4ccdb test: usar DB real en tests de validación de usuario
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 536076d8f9 refactor: refactorizar mocks de validación de usuario para aislamiento local
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja d898cd2500 fix: arreglar mocking en tests de validación de usuario
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 1846491c07 fix: hacer beforeEach asíncrono en tests de servidor para permitir await import
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja a4ee9155e5 test: agregar pruebas para validación de usuario en servidor
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja d97db3507d feat: integrar verificación de existencia de usuario en manejo de mensajes
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja de90e6d6c3 test: añadir pruebas para manejo de ID de remitente
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja 48af9ff07d fix: corregir test de sincronización de grupos para WHATSAPP_COMMUNITY_ID faltante
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
2 months ago
borja (aider) d3fd7f144d test: compare timestamps numerically in ensureUserExists last_seen test 6 months ago
borja (aider) fbf76036f5 feat: implement ensureUserExists, add foreign keys and tests 6 months ago
borja (aider) 3309385348 test: add unit tests for whatsapp utils 6 months ago
borja (aider) dd32a3dd11 test: use in-memory database for tests 6 months ago
borja (aider) 17437c6e28 feat: improve command parsing to handle multiple dates and invalid date formats 6 months ago
borja (aider) b0f5a83b44 fix: update test to use dynamic dates instead of hardcoded ones 6 months ago
borja (aider) 60ed1d1f82 fix: update test expectations for command logging 6 months ago
borja (aider) 0b42d5923a fix: update test to expect 3 console.log calls for command logging 6 months ago
borja (aider) a1491cdb5a test: add duplicate user ID constraint test 7 months ago