20-sep: migracion watchers (Telegram+recordatorios) a INFRAESTRUCTURA + estado/agentes/changelog
This commit is contained in:
50
estado/ESTADO_DIARIO.md
Normal file
50
estado/ESTADO_DIARIO.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# ESTADO DIARIO — INFRAESTRUCTURA
|
||||
|
||||
> Diario de cambios de infraestructura (sobremesa / portátil / VPS).
|
||||
> La entrada más reciente va ARRIBA. Para el diario de negocio, ver
|
||||
> `biblioteca_negocio_prolongo/ESTADO_DIARIO.md`.
|
||||
|
||||
---
|
||||
|
||||
## 20 septiembre 2026 (domingo) — Migración de watchers a INFRAESTRUCTURA
|
||||
|
||||
### Tareas realizadas
|
||||
- **Watchers migrados** de `biblioteca_negocio_prolongo/scripts/` a `INFRAESTRUCTURA/scripts/`:
|
||||
- `telegram_watcher.py` (chats → `estado/telegram_mensajes.log`)
|
||||
- `recordatorios_msgbox.py` (message box; datos en `estado/recordatorios_msgbox.json`)
|
||||
- `recordatorio.cmd` (comando corto `recordatorio`)
|
||||
- **Resolución de rutas** con `scripts/infra_paths.py`: estado en `INFRAESTRUCTURA/estado/`,
|
||||
datos de negocio (`pendientes.json`) y módulos aún compartidos (`idd_channel`,
|
||||
`netatmo_tool`, `alarma_twilio`) desde el repo hermano `biblioteca_negocio_prolongo`
|
||||
(override con `BIBLIOTECA_REPO`).
|
||||
- **Tareas programadas** nuevas vía `scripts/instalar_watchers.ps1`: `Telegram Watcher`
|
||||
y `Recordatorios Msgbox` (AtLogOn + reinicio si falla). Sustituyen al autostart por
|
||||
`.lnk` (que no existía en el sobremesa).
|
||||
- **Estado migrado** a `INFRAESTRUCTURA/estado/`: log, `.watcher_last_id`,
|
||||
`telegram_tracked_users.json`, `.netatmo_last_alert.json`, `recordatorios_msgbox.json`.
|
||||
- **Referencias actualizadas** en `biblioteca_negocio_prolongo`: AGENTS.md (Regla 6),
|
||||
skills `telegram-procesamiento` y `protocolo-re`, agente `telegram-agente.md`,
|
||||
`INSTALACION_OPENCODE.md`, `scripts/telegram_relogin.py`.
|
||||
- **Estructura nueva** en este repo: `AGENTS.md`, `estado/`, `.opencode/agent/`,
|
||||
`.opencode/skill/`, `.gitignore`.
|
||||
- **Registrado** en Engram (proyecto `INFRAESTRUCTURA`) y en Obsidian (`03-IT/`).
|
||||
|
||||
### Archivos modificados
|
||||
- `INFRAESTRUCTURA/scripts/{telegram_watcher.py,recordatorios_msgbox.py,recordatorio.cmd,infra_paths.py,instalar_watchers.ps1,instalar_global.ps1}`
|
||||
- `INFRAESTRUCTURA/estado/*`, `INFRAESTRUCTURA/AGENTS.md`, `INFRAESTRUCTURA/.gitignore`, `README.md`
|
||||
- `biblioteca_negocio_prolongo/{AGENTS.md,INSTALACION_OPENCODE.md,.opencode/skill/*,.opencode/agent/telegram-agente.md,scripts/telegram_relogin.py}`
|
||||
- Eliminados de biblioteca: `scripts/telegram_watcher.py`, `scripts/recordatorios_msgbox.py`, `scripts/recordatorio.cmd`
|
||||
|
||||
### Descubrimientos
|
||||
- `wmic` no existe en Windows 11 nuevo → usar CIM (PowerShell).
|
||||
- Los watchers dependen de módulos que siguen en biblioteca porque los **bots del VPS**
|
||||
los importan desde allí (`idd_channel`, `netatmo_tool`, `alarma_twilio`). Pendiente de
|
||||
centralizar en fase 2 (requiere redeploy del VPS).
|
||||
- El autostart por `.lnk` (`recordatorio_msgbox.lnk`) no existía en el sobremesa; se
|
||||
sustituye por tareas programadas, más robustas.
|
||||
|
||||
### Pendiente para el PORTÁTIL
|
||||
- Al arrancar: `git clone` de `INFRAESTRUCTURA`, ejecutar
|
||||
`scripts\instalar_global.ps1` y marcar en el changelog
|
||||
`aplicado 2026-09-20-migracion-watchers-a-infraestructura`.
|
||||
- Copiar `~/.telegram-agent` (sesión) y `~/.omniroute` (credenciales) desde el sobremesa.
|
||||
Reference in New Issue
Block a user