borja
1c7a7ffdbe
refactor: rename 't configurar' command to 't alarma' with 't recordatorio' as alias
...
- Rename configurar.ts -> alarma.ts, function handleConfigurar -> handleAlarma
- Add 'alarma' and 'recordatorio' aliases in shared.ts; keep 'configurar'/'config' for backward compat
- Update all help text, usage messages, onboarding, docs, and tests
- t alarma, t recordatorio, t configurar, t config all route to the same handler
1 month ago
borja
600bb46b09
resuelve un problema que hacía que no se pudiesen soltar tareas para algunos usuarios y crea tests que vigilan esa posible regresión
1 month ago
borja
fcaafc4600
fix: accept uppercase T/Tarea command prefixes from mobile keyboards
...
Make isTaskCommand in webhook-handler case-insensitive so that 'T ' and
'Tarea ' are recognized as task commands (mobile keyboards auto-capitalize
the first character). Add tests for both variants.
1 month ago
borja
5c1d2f2251
fix: prevent user DMs from being treated as groups in gating
...
handleGroupDiscovery and handleGroupEnforcement lacked isGroupId()
guards, causing user JIDs (e.g. 1234567890@s.whatsapp.net ) to be
incorrectly registered as 'pending' groups in discover mode, and
silently blocked in enforce mode.
Added isGroupId() bail-out at the top of both functions, matching the
existing pattern in ensureGroupActive(). Added 5 regression tests
covering both modes for DMs and preserving correct group behavior.
1 month ago
borja
b7ed1ad013
refactor: webhook handler, group sync, command handlers, tests
...
- Refactor webhook handler with improved error handling and auto-ensure
- Break group-sync into modular services (changes, deactivation, membership, scheduler)
- Add startup.ts bootstrap with health checks and metrics
- Refactor command handlers (nueva, completar, tomar, soltar, ver) for gating/resilience
- Remove unused Svelte UI components (Badge, Skeleton, GroupCard, etc.)
- Add ICS helpers, task helpers, preferences helpers to web lib
- Remove legacy help.ts message service
- Restructure tests: split monolithic server.test.ts into focused files
- Add server test harness and coverage/conformance tests
- Update docs (commands inventory, user guide, operational docs)
- Command trigger simplified to 't' and task name (no slash)
- Add .gitignore entries for fallow, sift, sq artifacts
1 month ago
brobert
94d0378f40
cambia un test para ser en 2028 y que no falle según pasa el tiempo
4 months ago
borja
ecff2a5643
feat: añadir reintentos en fondo para webhook y tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
15c7d638aa
actualiza un test
7 months ago
borja
de9bfba9aa
feat: añadir tests de health-check y documentar métricas/ENV
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
138eaa7238
test: configurar DB en pruebas y resetear al terminar
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
c241ffbc79
test: inicializar BD en memoria y configurar DB global en command.help
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
ac680ac467
refactor: mantener única DB por suite y limpiar tablas en beforeEach
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
dce88e3874
fix: esperar a server.stop() y resetear DB en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
b429053ee2
feat: aislar DB por contexto en tests con AsyncLocalStorage
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
a153163b5e
test: inicializar DB en memoria para pruebas de CommandService
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
5cd8f77b56
test: usa setDb(memdb) para configurar DB en gating
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
c7c960619f
test: configurar DB en tests con setDb y resetDb
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
500018c129
test: configurar BD de pruebas con setDb y resetDb
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
63f330a065
test: usar setDb y resetDb para configurar y limpiar BD en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
39b6251b7b
test: usar setDb y resetDb para gestionar DB en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
2ea389cf7d
fix: configurar DB global en pruebas para evitar DbNotConfiguredError
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
f743fd892b
test: usar setDb y resetDb para configurar DB global en pruebas
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
e8ceec1aff
fix: configurar DB global en tests con setDb y eliminar dbInstance
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
e6c7e6e61e
fix: corregir import '../../../src/db' en el test
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
e315899728
test: usar setDb(memdb) en admin.test.ts
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
ecc0cc6fd8
refactor: usar locator para inyectar DB en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
b0e33385b4
test: añade prueba de fallback del locator y actualiza la documentación
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
9222242eda
feat: añadir locator de DB con setDb/getDb/withDb y tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
240406aace
feat: centralizar helpers de tests (ymdUTC/addDays) y marcar Lote 2
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
1ad36ee898
refactor: centralizar SimulatedResponseQueue y actualizar TaskItem
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
8a7c8b7a5f
actualiza algunas llamadas a getQueue para que sean get que es el helper que he creado
7 months ago
brobert
77e318e677
refactor: centralizar pruebas de crypto/fechas y alias toIsoSql
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
a0f35b8138
fix: evitar columnas created_at/updated_at al insertar usuarios y ajustar tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
df27161216
test: agregar pruebas de datetime, mantenimiento y API de completar
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
e9c2885433
fix: limpiar puntuación en tokens @ y añadir tests de autoasignación
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
b6aab7fa1b
feat: permitir autoasignación con yo/@yo en /t nueva y añadir tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
a2fed2277c
feat: actualizar last_command_at al detectar cualquier /t
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
d4a998cdf1
fix: adaptar respuestas de listing a 'No respondo en grupos.'
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
4ea186dff1
fix: actualizar textos de ayuda y respuestas de comandos al formato
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
borja
ab832e208b
corrige tests para adaptarlos a que ahora no se escribe sin responsable en las respuestas sobre tareas, solo se deja el emoji
8 months ago
brobert
226e1bc01f
test: usar display_code en /t y validar no encontrada tras completar
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
fb7cc90b77
fix: usar display_code activo en comandos y DMs; eliminar fallback al PK
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
9c4498c5cb
test: eliminar imports duplicados y cargar handler dinámicamente
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
d7bf328db5
test: usar imports dinámicos y afterEach asíncrono en pruebas
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
01c274a8ca
fix: usar bun:sqlite en tests y exponer closeDb para reiniciar BD
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
60cb5877d8
test: agregar tests para encolar reacciones y payload de respuesta
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
671d105f23
test: tolerar ausencia de migrations.log en tests de migrador
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
5b78be0eff
test: evita trigger migración v15 ajustando limpieza en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
cef3238de6
test: añade verificación de key.participant en metadata de reaction
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
215f242a0d
feat: precalentar métricas de reacciones y añadir tests E2E
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago