Cambios incluidos: - INDICE-DIRECTIVAS-WORKSPACE.yml actualizado - Perfiles de agentes: PERFIL-ML.md, PERFIL-SECURITY.md - Directivas SIMCO actualizadas: - SIMCO-ASIGNACION-PERFILES.md - SIMCO-CCA-SUBAGENTE.md - SIMCO-CONTEXT-ENGINEERING.md - SIMCO-CONTEXT-RESOLUTION.md - SIMCO-DELEGACION-PARALELA.md - Inventarios actualizados: DEVENV-MASTER, DEVENV-PORTS - Documentos de analisis agregados: - Analisis y planes de fix student portal - Analisis scripts BD - Analisis achievements, duplicados, gamification - Auditoria documentacion gamilit - Backlog discrepancias NEXUS - Planes maestros de resolucion - Reportes de ejecucion agregados - Knowledge base gamilit README actualizado - Referencia submodulo gamilit actualizada (commit beb94f7) Validaciones: - Plan validado contra directivas SIMCO-GIT - Dependencias verificadas - Build gamilit: EXITOSO
511 lines
16 KiB
YAML
511 lines
16 KiB
YAML
# =============================================================================
|
|
# DEVENV-PORTS-INVENTORY.yml
|
|
# =============================================================================
|
|
# Inventario COMPLETO de puertos para todo el workspace
|
|
# Generado por: Architecture-Analyst + DevEnv
|
|
# Fecha: 2025-12-08
|
|
# Version: 3.1.0
|
|
# =============================================================================
|
|
#
|
|
# DIRECTIVA OBLIGATORIA:
|
|
# TODO agente que necesite asignar puertos DEBE:
|
|
# 1. Consultar este inventario primero
|
|
# 2. Solicitar asignacion al agente DevEnv
|
|
# 3. NUNCA asignar puertos arbitrariamente
|
|
#
|
|
# ESTANDAR NUEVO (v3.0.0):
|
|
# - Frontend: base
|
|
# - Backend: base + 1
|
|
# - Patron: 1 numero de diferencia, todos en rango 3000
|
|
# - Referencia: gamilit (3005/3006)
|
|
#
|
|
# =============================================================================
|
|
|
|
version: "3.3.0"
|
|
updated: "2026-01-04"
|
|
maintainer: "Architecture-Analyst + DevEnv Agent"
|
|
workspace: "/home/isem/workspace-v1"
|
|
|
|
# =============================================================================
|
|
# RESUMEN EJECUTIVO
|
|
# =============================================================================
|
|
summary:
|
|
total_projects: 15
|
|
standard: "FE=base, BE=base+1 (1 numero de diferencia)"
|
|
port_range: "3000-3199"
|
|
status: "IMPLEMENTADO"
|
|
conflicts_resolved: 5
|
|
|
|
# =============================================================================
|
|
# ASIGNACION OFICIAL DE PUERTOS (NUEVO ESTANDAR)
|
|
# =============================================================================
|
|
# Formato: proyecto -> base -> FE=base, BE=base+1
|
|
|
|
port_assignments:
|
|
|
|
gamilit:
|
|
base: 3005
|
|
frontend: 3005
|
|
backend: 3006
|
|
status: "production"
|
|
env_ports_file: "N/A (ecosystem.config.js)"
|
|
|
|
erp-core:
|
|
base: 3010
|
|
frontend: 3010
|
|
backend: 3011
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
construccion:
|
|
base: 3020
|
|
frontend: 3020
|
|
backend: 3021
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
vidrio-templado:
|
|
base: 3030
|
|
frontend: 3030
|
|
backend: 3031
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
mecanicas-diesel:
|
|
base: 3040
|
|
frontend: 3040
|
|
backend: 3041
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
retail:
|
|
base: 3050
|
|
frontend: 3050
|
|
backend: 3051
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
clinicas:
|
|
base: 3060
|
|
frontend: 3060
|
|
backend: 3061
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
pos-micro:
|
|
base: 3070
|
|
frontend: 3070
|
|
backend: 3071
|
|
status: "active"
|
|
env_ports_file: "projects/erp-suite/.env.ports"
|
|
|
|
trading-platform:
|
|
base: 3080
|
|
frontend: 3080
|
|
backend: 3081
|
|
websocket: 3082
|
|
ml_engine: 3083
|
|
data_service: 3084
|
|
llm_agent: 3085
|
|
trading_agents: 3086
|
|
ollama_webui: 3087
|
|
ollama: 11434
|
|
status: "active"
|
|
env_ports_file: "projects/trading-platform/.env.ports"
|
|
note: "Todos los servicios Python ahora en rango 3083-3086"
|
|
|
|
betting-analytics:
|
|
base: 3090
|
|
frontend: 3090
|
|
backend: 3091
|
|
status: "reserved"
|
|
env_ports_file: "projects/betting-analytics/.env.ports"
|
|
|
|
inmobiliaria-analytics:
|
|
base: 3100
|
|
frontend: 3100
|
|
backend: 3101
|
|
status: "reserved"
|
|
env_ports_file: "projects/inmobiliaria-analytics/.env.ports"
|
|
|
|
platform_marketing_content:
|
|
base: 3110
|
|
frontend: 3110
|
|
backend: 3111
|
|
status: "active"
|
|
env_ports_file: "projects/platform_marketing_content/.env.ports"
|
|
|
|
clinica-veterinaria:
|
|
base: 3120
|
|
frontend: 3120
|
|
backend: 3121
|
|
status: "active"
|
|
env_ports_file: "projects/clinica-veterinaria/.env.ports"
|
|
note: "Especializacion de erp-clinicas para veterinarias"
|
|
|
|
clinica-dental:
|
|
base: 3130
|
|
frontend: 3130
|
|
backend: 3131
|
|
status: "active"
|
|
env_ports_file: "projects/clinica-dental/.env.ports"
|
|
note: "Especializacion de erp-clinicas para odontologia"
|
|
|
|
michangarrito:
|
|
base: 3140
|
|
web: 3140
|
|
backend: 3141
|
|
mcp_server: 3142
|
|
whatsapp_service: 3143
|
|
mobile_metro: 8081
|
|
status: "active"
|
|
env_ports_file: "projects/michangarrito/.env.ports"
|
|
note: "POS inteligente con LLM via WhatsApp para micro-negocios"
|
|
|
|
# =============================================================================
|
|
# MAPA VISUAL DE PUERTOS
|
|
# =============================================================================
|
|
#
|
|
# 3005-3006 gamilit (PRODUCCION)
|
|
# 3010-3011 erp-core
|
|
# 3020-3021 construccion
|
|
# 3030-3031 vidrio-templado
|
|
# 3040-3041 mecanicas-diesel
|
|
# 3050-3051 retail
|
|
# 3060-3061 clinicas (base para clinicas)
|
|
# 3070-3071 pos-micro
|
|
# 3080-3087 trading-platform (FE/BE/WS/ML/Data/LLM/Agents/WebUI)
|
|
# 3090-3091 betting-analytics (RESERVADO)
|
|
# 3100-3101 inmobiliaria (RESERVADO)
|
|
# 3110-3111 pmc
|
|
# 3120-3121 clinica-veterinaria (especializacion clinicas)
|
|
# 3130-3131 clinica-dental (especializacion clinicas)
|
|
# 3140-3143 michangarrito (Web/BE/MCP/WhatsApp)
|
|
#
|
|
# Gap disponible: 3144-3199 para futuros proyectos
|
|
#
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
# SERVICIOS ADICIONALES (NO AFECTADOS POR ESTANDAR FE/BE)
|
|
# =============================================================================
|
|
|
|
additional_services:
|
|
|
|
# Python Services (trading-platform) - ACTUALIZADO v3.1.0
|
|
trading_python:
|
|
ml_engine: 3083
|
|
data_service: 3084
|
|
llm_agent: 3085
|
|
trading_agents: 3086
|
|
ollama_webui: 3087
|
|
ollama: 11434
|
|
|
|
# ComfyUI (pmc)
|
|
comfyui:
|
|
api: 8188
|
|
websocket: 8188
|
|
|
|
# =============================================================================
|
|
# BASES DE DATOS - ARQUITECTURA CORRECTA
|
|
# =============================================================================
|
|
# IMPORTANTE: Solo existe UNA instancia de PostgreSQL (5432) y UNA de Redis (6379)
|
|
# Los proyectos se separan por DATABASE + USER, NO por puerto
|
|
# =============================================================================
|
|
|
|
databases:
|
|
postgresql:
|
|
arquitectura:
|
|
tipo: "instancia_unica_compartida"
|
|
puerto: 5432
|
|
version: "15"
|
|
instalacion: "nativo"
|
|
separacion: "database + user por proyecto"
|
|
nota: |
|
|
Todos los proyectos usan el MISMO puerto 5432.
|
|
La separacion es por nombre de base de datos y usuario.
|
|
NO crear instancias adicionales de PostgreSQL.
|
|
|
|
redis:
|
|
arquitectura:
|
|
tipo: "instancia_unica_compartida"
|
|
puerto: 6379
|
|
version: "7"
|
|
instalacion: "nativo"
|
|
separacion: "database number (0-15) por proyecto"
|
|
nota: |
|
|
Todos los proyectos usan el MISMO puerto 6379.
|
|
La separacion es por numero de database (0-15).
|
|
NO crear instancias adicionales de Redis.
|
|
|
|
# =============================================================================
|
|
# CREDENCIALES DE BASE DE DATOS (DESARROLLO)
|
|
# =============================================================================
|
|
# IMPORTANTE: Estas son credenciales de DESARROLLO
|
|
# En produccion usar variables de entorno seguras
|
|
# Todos los proyectos usan puerto 5432 (instancia unica)
|
|
# =============================================================================
|
|
|
|
credentials:
|
|
gamilit:
|
|
port: 5432
|
|
database: gamilit_platform
|
|
user: gamilit_user
|
|
redis_db: 0
|
|
password: "ver .env del proyecto"
|
|
status: "activo"
|
|
|
|
trading-platform:
|
|
port: 5432
|
|
database: trading_platform
|
|
user: trading_user
|
|
redis_db: 1
|
|
password: "ver .env del proyecto"
|
|
status: "activo"
|
|
note: "Nombres homologados 2026-01-07 (antes: orbiquant_*)"
|
|
|
|
erp-suite:
|
|
port: 5432
|
|
database: erp_generic
|
|
user: erp_admin
|
|
redis_db: 2
|
|
password: "ver .env del proyecto"
|
|
status: "activo"
|
|
|
|
platform_marketing_content:
|
|
port: 5432
|
|
database: pmc_dev
|
|
user: pmc_user
|
|
redis_db: 3
|
|
password: "ver .env del proyecto"
|
|
status: "activo"
|
|
|
|
betting-analytics:
|
|
port: 5432
|
|
database: "betting_dev"
|
|
user: "betting_dev"
|
|
redis_db: 4
|
|
status: "reservado"
|
|
|
|
inmobiliaria-analytics:
|
|
port: 5432
|
|
database: "inmobiliaria_dev"
|
|
user: "inmobiliaria_dev"
|
|
redis_db: 5
|
|
status: "reservado"
|
|
|
|
clinica-veterinaria:
|
|
port: 5432
|
|
database: "clinica_veterinaria"
|
|
user: "veterinaria_dev"
|
|
redis_db: 6
|
|
password: "ver .env del proyecto"
|
|
status: "desarrollo"
|
|
|
|
clinica-dental:
|
|
port: 5432
|
|
database: "clinica_dental"
|
|
user: "dental_dev"
|
|
redis_db: 7
|
|
password: "ver .env del proyecto"
|
|
status: "desarrollo"
|
|
|
|
michangarrito:
|
|
port: 5432
|
|
database: "michangarrito_dev"
|
|
user: "michangarrito_dev"
|
|
redis_db: 8
|
|
password: "ver .env del proyecto"
|
|
status: "desarrollo"
|
|
note: "Multi-tenant con RLS, 9 schemas"
|
|
|
|
# =============================================================================
|
|
# HERRAMIENTAS DE DESARROLLO
|
|
# =============================================================================
|
|
|
|
dev_tools:
|
|
pgadmin: 5050
|
|
adminer: 8080
|
|
mailhog_smtp: 1025
|
|
mailhog_web: 8025
|
|
minio_api: 9000
|
|
minio_console: 9001
|
|
minio_construccion_api: 9100
|
|
minio_construccion_console: 9101
|
|
|
|
# =============================================================================
|
|
# ARCHIVOS ACTUALIZADOS
|
|
# =============================================================================
|
|
|
|
updated_files:
|
|
- path: "projects/erp-suite/apps/erp-core/.env"
|
|
ports: {backend: 3011}
|
|
- path: "projects/erp-suite/apps/erp-core/.env.example"
|
|
ports: {backend: 3011}
|
|
- path: "projects/erp-suite/apps/erp-core/backend/.env.example"
|
|
ports: {backend: 3011}
|
|
- path: "projects/erp-suite/apps/verticales/construccion/backend/.env.example"
|
|
ports: {backend: 3021, frontend: 3020}
|
|
- path: "projects/erp-suite/apps/verticales/vidrio-templado/.env.example"
|
|
ports: {backend: 3031, frontend: 3030}
|
|
- path: "projects/erp-suite/apps/verticales/mecanicas-diesel/.env.example"
|
|
ports: {backend: 3041, frontend: 3040}
|
|
- path: "projects/erp-suite/apps/verticales/mecanicas-diesel/docker-compose.yml"
|
|
ports: {backend: 3041}
|
|
- path: "projects/erp-suite/apps/verticales/retail/.env.example"
|
|
ports: {backend: 3051, frontend: 3050}
|
|
- path: "projects/erp-suite/apps/verticales/clinicas/.env.example"
|
|
ports: {backend: 3061, frontend: 3060}
|
|
- path: "projects/erp-suite/apps/products/pos-micro/backend/.env.example"
|
|
ports: {backend: 3071}
|
|
- path: "projects/erp-suite/apps/products/pos-micro/frontend/.env.example"
|
|
ports: {api: 3071}
|
|
- path: "projects/erp-suite/apps/products/pos-micro/docker-compose.yml"
|
|
ports: {backend: 3071, frontend: 5173}
|
|
- path: "projects/trading-platform/apps/backend/.env.example"
|
|
ports: {backend: 3081, frontend: 3080}
|
|
- path: "projects/trading-platform/apps/frontend/.env.example"
|
|
ports: {api: 3081}
|
|
- path: "projects/trading-platform/docker-compose.yml"
|
|
ports: {backend: 3081, frontend: 3080, websocket: 3082}
|
|
- path: "projects/platform_marketing_content/apps/backend/.env.example"
|
|
ports: {backend: 3111}
|
|
|
|
env_ports_files:
|
|
- "projects/erp-suite/.env.ports"
|
|
- "projects/trading-platform/.env.ports"
|
|
- "projects/betting-analytics/.env.ports"
|
|
- "projects/inmobiliaria-analytics/.env.ports"
|
|
- "projects/platform_marketing_content/.env.ports"
|
|
|
|
# =============================================================================
|
|
# CHANGELOG
|
|
# =============================================================================
|
|
|
|
changelog:
|
|
- date: "2026-01-07"
|
|
version: "3.5.0"
|
|
action: "CORRECCION: Arquitectura de Instancia Unica Compartida"
|
|
author: "@PERFIL_DEVENV"
|
|
details: |
|
|
- CORRECCION CRITICA: El workspace usa UNA instancia de PostgreSQL (5432) y UNA de Redis (6379)
|
|
- Los proyectos se separan por DATABASE + USER, NO por puertos diferentes
|
|
- Revertidos todos los puertos a: PostgreSQL 5432, Redis 6379
|
|
- MiChangarrito corregido: DB 5432 (era 5442), Redis 6379/DB8 (era 6389)
|
|
- Actualizada directiva SIMCO-CREAR.md con fase obligatoria de consulta DevEnv
|
|
- Actualizado DEVENV-PORT-STANDARDS.md con arquitectura correcta
|
|
|
|
- date: "2026-01-04"
|
|
version: "3.4.0"
|
|
action: "Agregado proyecto MiChangarrito (POS inteligente)"
|
|
author: "DevEnv Agent"
|
|
details: |
|
|
- michangarrito: Web 3140, BE 3141, MCP 3142, WhatsApp 3143
|
|
- DB PostgreSQL 5432 (michangarrito_dev) [CORREGIDO 2026-01-07]
|
|
- Redis 6379/DB8 [CORREGIDO 2026-01-07]
|
|
- Proyecto SaaS standalone con:
|
|
- React Native mobile app
|
|
- Web dashboard (React)
|
|
- MCP Server para LLM
|
|
- WhatsApp Business service
|
|
- Integraciones: Stripe, Mercado Pago, Clip, CoDi, OpenRouter
|
|
- Total proyectos: 15
|
|
- Gap disponible: 3144-3199
|
|
|
|
- date: "2026-01-04"
|
|
version: "3.3.0"
|
|
action: "Agregados proyectos clinica-veterinaria y clinica-dental"
|
|
author: "DevEnv Agent"
|
|
details: |
|
|
- clinica-veterinaria: FE 3120, BE 3121, DB 5440, Redis 6387
|
|
- clinica-dental: FE 3130, BE 3131, DB 5441, Redis 6388
|
|
- Especializaciones de erp-clinicas (vertical clinicas)
|
|
- Total proyectos: 14
|
|
- Gap disponible: 3132-3199
|
|
|
|
- date: "2025-12-12"
|
|
version: "3.2.0"
|
|
action: "Validacion DevEnv - Credenciales BD y alineacion documentacion"
|
|
author: "DevEnv Agent"
|
|
details: |
|
|
BASES DE DATOS CREADAS (PostgreSQL nativo 5432):
|
|
- erp_generic / erp_admin (erp-suite)
|
|
- pmc_dev / pmc_user (platform_marketing_content)
|
|
|
|
ARCHIVOS CORREGIDOS:
|
|
- trading-platform/apps/backend/.env.example: BD corregida a trading_platform/trading_user
|
|
- trading-platform/README.md: Tabla de puertos actualizada (3080-3087)
|
|
- platform_marketing_content/apps/backend/.env: Creado
|
|
- platform_marketing_content/apps/frontend/.env: Creado
|
|
- platform_marketing_content/apps/frontend/.env.example: Creado
|
|
- platform_marketing_content/README.md: Creado
|
|
|
|
SECCION CREDENCIALES AGREGADA:
|
|
- Documentacion centralizada de BD/usuarios por proyecto
|
|
|
|
ESTADO FINAL PostgreSQL (5432):
|
|
- gamilit_platform (gamilit_user) - ACTIVO
|
|
- trading_platform (trading_user) - ACTIVO
|
|
- trading_data (trading_user) - ACTIVO
|
|
- erp_generic (erp_admin) - ACTIVO
|
|
- pmc_dev (pmc_user) - ACTIVO
|
|
|
|
- date: "2025-12-08"
|
|
version: "3.1.0"
|
|
action: "Trading-platform Python services actualizados al rango 3080"
|
|
author: "DevEnv Agent"
|
|
details: |
|
|
- Servicios Python de trading-platform migrados a rango 3083-3087
|
|
- Conflicto resuelto: llm-agent y trading-agents ambos usaban 8003
|
|
- Conflicto resuelto: ollama-webui usaba puerto 3000 (prohibido)
|
|
|
|
Trading-platform puertos completos:
|
|
frontend: 3080
|
|
backend: 3081
|
|
websocket: 3082
|
|
ml_engine: 3083
|
|
data_service: 3084
|
|
llm_agent: 3085
|
|
trading_agents: 3086
|
|
ollama_webui: 3087
|
|
ollama: 11434 (sin cambio)
|
|
|
|
- date: "2025-12-08"
|
|
version: "3.0.0"
|
|
action: "Nuevo estandar implementado: FE=base, BE=base+1"
|
|
author: "DevEnv Agent"
|
|
details: |
|
|
- NUEVO ESTANDAR: Frontend y Backend con 1 numero de diferencia
|
|
- Todos los puertos en rango 3000s
|
|
- Actualizados 15+ archivos de configuracion
|
|
- Creados/actualizados 5 archivos .env.ports
|
|
- Conflictos resueltos: 5/5
|
|
|
|
Asignaciones nuevas:
|
|
gamilit: 3005/3006 (sin cambios - referencia)
|
|
erp-core: 3010/3011
|
|
construccion: 3020/3021
|
|
vidrio-templado: 3030/3031
|
|
mecanicas-diesel: 3040/3041
|
|
retail: 3050/3051
|
|
clinicas: 3060/3061
|
|
pos-micro: 3070/3071
|
|
trading-platform: 3080/3081
|
|
betting-analytics: 3090/3091 (reservado)
|
|
inmobiliaria: 3100/3101 (reservado)
|
|
pmc: 3110/3111
|
|
|
|
- date: "2025-12-08"
|
|
version: "2.0.0"
|
|
action: "Auditoria completa por Architecture-Analyst + DevEnv"
|
|
author: "Architecture-Analyst"
|
|
details: |
|
|
- Escaneados 6 proyectos y 40+ archivos de configuracion
|
|
- Detectados 5 conflictos (2 P0, 2 P1, 1 P2)
|
|
|
|
- date: "2025-12-08"
|
|
version: "1.0.0"
|
|
action: "Creacion inicial"
|
|
author: "DevEnv Agent"
|
|
details: "Inventario inicial basado en estandar gamilit"
|