@deinossrl/dgp-agent 1.5.21 → 1.5.23

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,14 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.5.23] - 2026-01-13
4
+ ### Fixed
5
+ - **Critical**: Lógica invertida en flags `include_owner` e `include_privileges`. Ahora se respeta correctamente la exclusión con `--no-owner` y `--no-privileges` cuando el usuario desmarca las opciones.
6
+
7
+ ## [1.5.22] - 2026-01-13
8
+
9
+ ### Fixed
10
+ - Improved progress detection for `pg_restore` by including 'dropping' and 'from TOC entry' log lines usage.
11
+
3
12
  ## [1.5.21] - 2026-01-13
4
13
 
5
14
  ### Fixed
package/index.mjs CHANGED
@@ -1746,10 +1746,12 @@ async function executePgDump(command) {
1746
1746
  }
1747
1747
 
1748
1748
  // Incluir opciones adicionales
1749
- if (params.include_privileges) {
1749
+ // NOTA: pg_dump incluye owner y privilegios por defecto.
1750
+ // Usamos --no-owner y --no-privileges para excluirlos.
1751
+ if (!params.include_privileges) {
1750
1752
  pgDumpArgs.push('--no-privileges');
1751
1753
  }
1752
- if (params.include_owner) {
1754
+ if (!params.include_owner) {
1753
1755
  pgDumpArgs.push('--no-owner');
1754
1756
  }
1755
1757
 
@@ -2382,7 +2384,9 @@ async function executePgRestore(command) {
2382
2384
  const now = Date.now();
2383
2385
 
2384
2386
  // 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')) {
2387
+ // "from TOC entry" es clave para objetos metadata
2388
+ // "dropping" es para actividad de limpieza (si --clean)
2389
+ 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
2390
  processedObjects++;
2387
2391
 
2388
2392
  // 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.23",
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": {