Commit Graph

9 Commits

Author SHA1 Message Date
bf1595c168 chore(MCH-016): Complete Sprint 4 - Entregas a Domicilio
Backend:
- Implement delivery module with zones and tracking
- Add DeliveryZone entity (radius/polygon types)
- Add Delivery entity with full status machine
- Implement coverage check with Haversine formula

WhatsApp Service:
- Add delivery API integration methods
- Support coverage check and delivery creation

Database:
- Add delivery schema with zones, deliveries, status_history, drivers tables
- Create triggers for updated_at and status history logging

Documentation:
- Mark MCH-016 as Completado
- Update _MAP.md progress to 60%

Sprint 4 Complete: MCH-015, MCH-016, MCH-017

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:43:09 -06:00
62bf0cf0c1 feat: Sprint 3 - Notificaciones y Pedidos WhatsApp (MCH-015, MCH-017)
MCH-017 - Notificaciones:
- Módulo notifications en backend
- Entities: Notification, Template, Preference, DeviceToken
- Service con multi-canal (push, WhatsApp, SMS)
- DDL schema con templates por defecto

MCH-015 - Pedidos WhatsApp:
- BackendApiService para integración
- Flujo de creación de pedidos real
- Integración datos: ventas, inventario, fiados

Progreso: 51% → 57%

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:32:51 -06:00
8621db1b91 feat: Complete Sprint 2 - Chat LLM (MCH-012 + MCH-013)
- MCH-012: Chat LLM Dueño - Role-based owner chat with full access
- MCH-013: Chat LLM Cliente - Role-based customer chat with limited access
- Update épicas to Completado status
- Update _MAP.md: 51% progress, Sprint 2 complete

Implemented features:
- Role detection (owner vs customer)
- Role-based system prompts
- Owner functions: sales, inventory, fiados, metrics
- Customer functions: products, prices, orders, fiado balance
- Permission validation per tool

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:08:36 -06:00
65e0042f73 docs(MCH-011): Mark WhatsApp Service epic as completed - Sprint 1
Epic MCH-011 completed with:
- NestJS service (4 modules, 5 services)
- Webhook handler with HMAC verification
- Multi-tenant credential management
- LLM integration (OpenAI/OpenRouter)
- Interactive messages (buttons/lists)

Updates:
- MCH-011-whatsapp-service.md: Status -> Completado
- _MAP.md: Progress 43% -> 46%, both blockers resolved

Sprint 1 COMPLETED - All critical blockers resolved:
- MCH-010 MCP Server ✓
- MCH-011 WhatsApp Service ✓

Unblocks: MCH-012, MCH-013, MCH-015, MCH-017

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:54:47 -06:00
d2130250f1 docs(MCH-010): Mark MCP Server epic as completed - Sprint 1
Epic MCH-010 completed with:
- 24 MCP tools across 6 categories
- StdioServerTransport implementation
- Backend API integration with mock fallbacks

Updates:
- MCH-010-mcp-server.md: Status -> Completado
- _MAP.md: Progress 40% -> 43%, MCH-010 no longer blocker

This unblocks MCH-012 and MCH-013 (pending MCH-011)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 05:57:01 -06:00
848324e8e8 [MCH-DOC] docs: Corregir estado real de épicas y crear roadmap
Cambios realizados:
- Corregido estado de 10 épicas que estaban mal documentadas
- MCH-010, MCH-011: Pendiente (submodulos vacíos, BLOQUEANTES)
- MCH-012, MCH-013: Pendiente (bloqueados por dependencias)
- MCH-006, MCH-007: Pendiente (sin implementación)
- MCH-022, MCH-026: Pendiente (sin implementación)
- MCH-024, MCH-027: Parcial/Mock (requieren integración real)

Documentos nuevos:
- ESTADO-REAL-EPICAS.md: Estado validado vs código
- ROADMAP-CORREGIDO.md: Plan de desarrollo respetando dependencias

Estadísticas reales:
- Completadas: 14 (40%)
- Parciales/Mock: 4 (11%)
- Pendientes: 10 (29%)
- Planificadas: 7 (20%)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 05:47:22 -06:00
5a49ad0185 [INTEGRATION] feat: Integrate template-saas scopes and database objects
## Documentation
- Align MCH-029 to MCH-032 with template-saas modules (SAAS-008 to SAAS-015)
- Create MCH-034 (Analytics) and MCH-035 (Reports) from SAAS-016/017
- Update PLAN-DESARROLLO.md with Phase 7 and 8
- Update _MAP.md indexes (35 total epics)

## Database (5 new schemas, 14 tables)
- Add storage schema: buckets, files, signed_urls
- Add webhooks schema: endpoints, deliveries
- Add audit schema: logs, retention_policies
- Add features schema: flags, tenant_flags (14 seeds)
- Add analytics schema: metrics, events, reports, report_schedules
- Add auth.oauth_connections for MCH-030
- Add timestamptz_to_date() IMMUTABLE function
- Update EXPECTED_SCHEMAS in recreate-database.sh

## Analysis Reports
- ANALISIS-INTEGRACION-TEMPLATE-SAAS-2026-01-13.md
- VALIDACION-COHERENCIA-2026-01-13.md
- GAP-ANALYSIS-BD-2026-01-13.md
- REPORTE-EJECUCION-2026-01-13.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 07:10:55 -06:00
2c916e75e5 [SIMCO-V4] feat: Agregar documentación SaaS, ADRs e integraciones
Nuevas Épicas (MCH-029 a MCH-033):
- Infraestructura SaaS multi-tenant
- Auth Social (OAuth2)
- Auditoría Empresarial
- Feature Flags
- Onboarding Wizard

Nuevas Integraciones (INT-010 a INT-014):
- Email Providers (SendGrid, Mailgun, SES)
- Storage Cloud (S3, GCS, Azure)
- OAuth Social
- Redis Cache
- Webhooks Outbound

Nuevos ADRs (0004 a 0011):
- Notifications Realtime
- Feature Flags Strategy
- Storage Abstraction
- Webhook Retry Strategy
- Audit Log Retention
- Rate Limiting
- OAuth Social Implementation
- Email Multi-provider

Actualizados:
- MASTER_INVENTORY.yml
- CONTEXT-MAP.yml
- HERENCIA-SIMCO.md
- Mapas de documentación

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 01:43:15 -06:00
97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00