🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
353 lines
8.7 KiB
Markdown
353 lines
8.7 KiB
Markdown
---
|
|
version: "1.1.0"
|
|
fecha: "2026-01-07"
|
|
tipo: plan-ejecucion
|
|
autor: "Claude Code (Opus 4.5)"
|
|
objetivo: "Crear repositorios, commits y actualizar referencias en todos los niveles"
|
|
estado: "COMPLETADO"
|
|
fecha_ejecucion: "2026-01-07"
|
|
---
|
|
|
|
# PLAN DE EJECUCIÓN: REPOSITORIOS Y COMMITS
|
|
|
|
## RESUMEN EJECUTIVO
|
|
|
|
Este plan cubre:
|
|
1. Creación de repositorios nuevos en Gitea
|
|
2. Inicialización de git en proyectos nuevos
|
|
3. Configuración de subrepositorios
|
|
4. Commits en todos los niveles
|
|
5. Push a servidores remotos
|
|
|
|
---
|
|
|
|
## FASE 1: CREAR REPOSITORIOS EN GITEA
|
|
|
|
### 1.1 Repositorios Principales Nuevos
|
|
|
|
| Repositorio | Descripción |
|
|
|-------------|-------------|
|
|
| `michangarrito` | Marketplace móvil para negocios locales |
|
|
| `template-saas` | Template base para proyectos SaaS |
|
|
| `clinica-dental` | ERP especializado para clínicas dentales |
|
|
| `clinica-veterinaria` | ERP especializado para clínicas veterinarias |
|
|
|
|
### 1.2 Subrepositorios por Proyecto
|
|
|
|
#### michangarrito (6 subrepositorios)
|
|
```yaml
|
|
subrepos:
|
|
- michangarrito-backend # apps/backend
|
|
- michangarrito-frontend # apps/frontend
|
|
- michangarrito-mobile # apps/mobile
|
|
- michangarrito-database # database/
|
|
- michangarrito-mcp-server # apps/mcp-server
|
|
- michangarrito-whatsapp # apps/whatsapp-service
|
|
```
|
|
|
|
#### template-saas (3 subrepositorios)
|
|
```yaml
|
|
subrepos:
|
|
- template-saas-backend # apps/backend
|
|
- template-saas-frontend # apps/frontend
|
|
- template-saas-database # apps/database
|
|
```
|
|
|
|
#### clinica-dental (1 subrepositorio)
|
|
```yaml
|
|
subrepos:
|
|
- clinica-dental-database # database/
|
|
```
|
|
|
|
#### clinica-veterinaria (1 subrepositorio)
|
|
```yaml
|
|
subrepos:
|
|
- clinica-veterinaria-database # database/
|
|
```
|
|
|
|
### 1.3 Total de Repositorios a Crear
|
|
|
|
| Tipo | Cantidad |
|
|
|------|----------|
|
|
| Principales | 4 |
|
|
| Subrepositorios | 11 |
|
|
| **Total** | **15** |
|
|
|
|
---
|
|
|
|
## FASE 2: INICIALIZAR GIT EN PROYECTOS NUEVOS
|
|
|
|
### 2.1 Para cada proyecto nuevo
|
|
|
|
```bash
|
|
# Estructura de inicialización
|
|
cd projects/[PROYECTO]
|
|
git init
|
|
git add -A
|
|
git commit -m "feat: Initial commit - [PROYECTO]"
|
|
git remote add origin http://72.60.226.4:3000/rckrdmrd/[PROYECTO].git
|
|
```
|
|
|
|
### 2.2 Orden de Ejecución
|
|
|
|
1. `michangarrito`
|
|
2. `template-saas`
|
|
3. `clinica-dental`
|
|
4. `clinica-veterinaria`
|
|
|
|
---
|
|
|
|
## FASE 3: CONFIGURAR SUBREPOSITORIOS
|
|
|
|
### 3.1 Crear .gitmodules en cada proyecto
|
|
|
|
```ini
|
|
# Ejemplo para michangarrito
|
|
[submodule "apps/backend"]
|
|
path = apps/backend
|
|
url = http://72.60.226.4:3000/rckrdmrd/michangarrito-backend.git
|
|
|
|
[submodule "apps/frontend"]
|
|
path = apps/frontend
|
|
url = http://72.60.226.4:3000/rckrdmrd/michangarrito-frontend.git
|
|
```
|
|
|
|
### 3.2 Inicializar cada subrepositorio
|
|
|
|
```bash
|
|
cd apps/[SUBPROYECTO]
|
|
git init
|
|
git add -A
|
|
git commit -m "feat: Initial commit"
|
|
git remote add origin http://72.60.226.4:3000/rckrdmrd/[PROYECTO]-[SUBPROYECTO].git
|
|
git push -u origin main
|
|
```
|
|
|
|
---
|
|
|
|
## FASE 4: ACTUALIZAR DOCUMENTACIÓN
|
|
|
|
### 4.1 Archivos a Actualizar
|
|
|
|
| Archivo | Cambio |
|
|
|---------|--------|
|
|
| `SUBREPOSITORIOS.md` | Agregar 4 proyectos nuevos |
|
|
| `control-plane/manifests/repos.manifest.yml` | Agregar nuevos repos |
|
|
| `.gitignore` | Agregar proyectos nuevos a ignorar |
|
|
|
|
### 4.2 Contenido a Agregar en SUBREPOSITORIOS.md
|
|
|
|
```markdown
|
|
## Proyectos Nuevos (2026-01-07)
|
|
|
|
### michangarrito
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Path Local** | `projects/michangarrito` |
|
|
| **Repositorio** | `http://72.60.226.4:3000/rckrdmrd/michangarrito.git` |
|
|
| **Subrepositorios** | backend, frontend, mobile, database, mcp-server, whatsapp |
|
|
|
|
### template-saas
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Path Local** | `projects/template-saas` |
|
|
| **Repositorio** | `http://72.60.226.4:3000/rckrdmrd/template-saas.git` |
|
|
| **Subrepositorios** | backend, frontend, database |
|
|
|
|
### clinica-dental
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Path Local** | `projects/clinica-dental` |
|
|
| **Repositorio** | `http://72.60.226.4:3000/rckrdmrd/clinica-dental.git` |
|
|
| **Subrepositorios** | database |
|
|
|
|
### clinica-veterinaria
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Path Local** | `projects/clinica-veterinaria` |
|
|
| **Repositorio** | `http://72.60.226.4:3000/rckrdmrd/clinica-veterinaria.git` |
|
|
| **Subrepositorios** | database |
|
|
```
|
|
|
|
---
|
|
|
|
## FASE 5: COMMITS EN TODOS LOS NIVELES
|
|
|
|
### 5.1 Orden de Commits (Bottom-Up)
|
|
|
|
```yaml
|
|
ORDEN_COMMITS:
|
|
paso_1_subrepositorios:
|
|
descripcion: "Commit y push de cada subrepositorio"
|
|
proyectos:
|
|
- michangarrito/apps/backend
|
|
- michangarrito/apps/frontend
|
|
- michangarrito/apps/mobile
|
|
- michangarrito/apps/mcp-server
|
|
- michangarrito/apps/whatsapp-service
|
|
- michangarrito/database
|
|
- template-saas/apps/backend
|
|
- template-saas/apps/frontend
|
|
- template-saas/apps/database
|
|
- clinica-dental/database
|
|
- clinica-veterinaria/database
|
|
|
|
paso_2_proyectos:
|
|
descripcion: "Commit y push de repos principales de proyectos"
|
|
proyectos:
|
|
- michangarrito
|
|
- template-saas
|
|
- clinica-dental
|
|
- clinica-veterinaria
|
|
|
|
paso_3_orchestration:
|
|
descripcion: "Commit cambios de orchestration (tokens/subagentes)"
|
|
archivos:
|
|
- orchestration/directivas/simco/SIMCO-SUBAGENTE.md
|
|
- orchestration/directivas/simco/SIMCO-CCA-SUBAGENTE.md
|
|
- orchestration/directivas/simco/SIMCO-CONTROL-TOKENS.md
|
|
- orchestration/directivas/simco/SIMCO-DELEGACION.md
|
|
- orchestration/directivas/simco/SIMCO-INICIALIZACION.md
|
|
- orchestration/directivas/simco/_INDEX.md
|
|
- orchestration/agents/perfiles/compact/*
|
|
- orchestration/checklists/CHECKLIST-PRE-DELEGACION.md
|
|
- orchestration/templates/TEMPLATE-DELEGACION-*.md
|
|
- orchestration/analisis/*TOKENS*.md
|
|
|
|
paso_4_workspace:
|
|
descripcion: "Commit del workspace principal"
|
|
archivos:
|
|
- SUBREPOSITORIOS.md
|
|
- .gitignore
|
|
- control-plane/manifests/repos.manifest.yml
|
|
- orchestration/*
|
|
```
|
|
|
|
### 5.2 Mensajes de Commit
|
|
|
|
```yaml
|
|
MENSAJES:
|
|
subrepositorios: "feat: Initial commit - {proyecto}-{subproyecto}"
|
|
proyectos: "feat: Initial setup - {proyecto}"
|
|
orchestration: |
|
|
feat(orchestration): Add subagent token management system
|
|
|
|
- Add SIMCO-SUBAGENTE.md and SIMCO-CCA-SUBAGENTE.md
|
|
- Add compact profiles for subagents (~250 tokens)
|
|
- Add tiered delegation templates
|
|
- Add CHECKLIST-PRE-DELEGACION.md
|
|
- Update _INDEX.md to v2.5.0
|
|
- ~59% token reduction per delegation
|
|
|
|
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
|
|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
|
|
workspace: |
|
|
feat(workspace): Add new projects and update orchestration
|
|
|
|
New projects:
|
|
- michangarrito (marketplace mobile)
|
|
- template-saas (SaaS template)
|
|
- clinica-dental (dental ERP)
|
|
- clinica-veterinaria (veterinary ERP)
|
|
|
|
Orchestration updates:
|
|
- Subagent token management system
|
|
- 15 new repositories configured
|
|
|
|
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
|
|
|
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
```
|
|
|
|
---
|
|
|
|
## FASE 6: PUSH A SERVIDORES
|
|
|
|
### 6.1 Destinos
|
|
|
|
| Nivel | Servidor | URL |
|
|
|-------|----------|-----|
|
|
| Subrepositorios | Gitea | `http://72.60.226.4:3000/rckrdmrd/` |
|
|
| Proyectos nuevos | Gitea | `http://72.60.226.4:3000/rckrdmrd/` |
|
|
| Workspace | Gitea | `http://72.60.226.4:3000/rckrdmrd/workspace-v1.git` |
|
|
| Gamilit | GitHub | `git@github.com:rckrdmrd/gamilit-workspace.git` |
|
|
|
|
### 6.2 Orden de Push
|
|
|
|
1. Push subrepositorios (11 repos)
|
|
2. Push proyectos principales (4 repos)
|
|
3. Push workspace-v1
|
|
4. Push gamilit (si hay cambios en submodule)
|
|
|
|
---
|
|
|
|
## REQUISITOS PREVIOS
|
|
|
|
### Token de Gitea
|
|
|
|
```bash
|
|
# Necesario para crear repositorios via API
|
|
GITEA_TOKEN="<obtener de usuario>"
|
|
|
|
# Para obtener:
|
|
# 1. Ir a http://72.60.226.4:3000/rckrdmrd
|
|
# 2. Settings -> Applications -> Generate New Token
|
|
# 3. Dar permisos: repo, write:repository
|
|
```
|
|
|
|
### Verificar Conectividad
|
|
|
|
```bash
|
|
# Verificar Gitea
|
|
curl -s http://72.60.226.4:3000/api/v1/version
|
|
|
|
# Verificar GitHub SSH
|
|
ssh -T git@github.com
|
|
```
|
|
|
|
---
|
|
|
|
## SCRIPT DE EJECUCIÓN
|
|
|
|
Se generará un script automatizado `execute-repo-setup.sh` que:
|
|
|
|
1. Crea todos los repositorios en Gitea
|
|
2. Inicializa git en proyectos nuevos
|
|
3. Configura subrepositorios
|
|
4. Hace commits en orden correcto
|
|
5. Push a todos los servidores
|
|
|
|
---
|
|
|
|
## MÉTRICAS DE ÉXITO
|
|
|
|
| Métrica | Valor Esperado |
|
|
|---------|----------------|
|
|
| Repositorios creados en Gitea | 15 |
|
|
| Proyectos inicializados | 4 |
|
|
| Subrepositorios configurados | 11 |
|
|
| Commits realizados | ~20 |
|
|
| Push exitosos | ~20 |
|
|
| Errores | 0 |
|
|
|
|
---
|
|
|
|
## ROLLBACK
|
|
|
|
Si algo falla:
|
|
|
|
```bash
|
|
# Eliminar repositorio en Gitea
|
|
curl -X DELETE "http://72.60.226.4:3000/api/v1/repos/rckrdmrd/{REPO}" \
|
|
-H "Authorization: token ${GITEA_TOKEN}"
|
|
|
|
# Deshacer git init local
|
|
rm -rf projects/{PROYECTO}/.git
|
|
```
|
|
|
|
---
|
|
|
|
**Estado:** PENDIENTE_APROBACION | **Requiere:** Token de Gitea
|