@deinossrl/dgp-agent 1.5.21 → 1.5.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.5.22] - 2026-01-13
4
+
5
+ ### Fixed
6
+ - Improved progress detection for `pg_restore` by including 'dropping' and 'from TOC entry' log lines usage.
7
+
3
8
  ## [1.5.21] - 2026-01-13
4
9
 
5
10
  ### Fixed
package/index.mjs CHANGED
@@ -2382,7 +2382,9 @@ async function executePgRestore(command) {
2382
2382
  const now = Date.now();
2383
2383
 
2384
2384
  // LOGICA: Filtrar, calcular y MOSTRAR PROGRESO (Consola y Web)
2385
- if (trimmed.includes('processing') || trimmed.includes('creating') || trimmed.includes('restoring') || trimmed.includes('creando') || trimmed.includes('procesando')) {
2385
+ // "from TOC entry" es clave para objetos metadata
2386
+ // "dropping" es para actividad de limpieza (si --clean)
2387
+ if (trimmed.includes('processing') || trimmed.includes('creating') || trimmed.includes('restoring') || trimmed.includes('creando') || trimmed.includes('procesando') || trimmed.includes('from TOC entry') || trimmed.includes('dropping')) {
2386
2388
  processedObjects++;
2387
2389
 
2388
2390
  // Si es un item procesado, mostrar progreso en consola
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.5.21",
3
+ "version": "1.5.22",
4
4
  "description": "Agente local para Despliegue-GPT - Reporta el estado del repositorio Git a la plataforma TenMinute IA",
5
5
  "main": "index.mjs",
6
6
  "bin": {