@deinossrl/dgp-agent 1.5.17 → 1.5.19

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,9 +1,16 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
- ## [1.5.17] - 2026-01-13
3
+ ## [1.5.19] - 2026-01-13
4
4
 
5
5
  ### Fixed
6
- - **Hotfix**: Corregido error de sintaxis en el bucle de progreso de `pg_restore` introducido en 1.5.16.
6
+ - Force `LC_ALL=C` on pg_dump execution to ensure English output and reliable progress parsing on non-English systems.
7
+ - Added fallback detection for Spanish keywords ('extrayendo contenus') just in case.
8
+
9
+ ## [1.5.18] - 2026-01-13
10
+
11
+ ### Fixed
12
+ - Fixed regex matching for 'processing' messages in recent pg_dump versions to ensure progress percentage is displayed.
13
+ - Fixed syntax error in pg_restore loop structure.
7
14
 
8
15
  ## [1.5.16] - 2026-01-13
9
16
 
package/index.mjs CHANGED
@@ -1803,7 +1803,7 @@ async function executePgDump(command) {
1803
1803
  // Usar spawn asíncrono para capturar progreso
1804
1804
  await new Promise((resolve, reject) => {
1805
1805
  const pgDumpProcess = spawn(pgDumpCmd, pgDumpArgs, {
1806
- env: process.env,
1806
+ env: { ...process.env, LC_ALL: 'C' },
1807
1807
  stdio: ['ignore', 'pipe', 'pipe'],
1808
1808
  });
1809
1809
 
@@ -1834,11 +1834,12 @@ async function executePgDump(command) {
1834
1834
 
1835
1835
  // LOGICA LOCAL: Mostrar actividad en consola
1836
1836
  // Si es un mensaje de "loop" (procesando datos), solo mostrar si pasó tiempo
1837
- const isLoopMessage = trimmed.includes('dumping data') || trimmed.includes('processing data');
1837
+ const isLoopMessage = trimmed.includes('dumping data') || trimmed.includes('processing data') || trimmed.includes('dumping contents') || trimmed.includes('extrayendo');
1838
1838
  const now = Date.now();
1839
1839
 
1840
1840
  // LOGICA: Filtrar, calcular y MOSTRAR PROGRESO (Consola y Web)
1841
- if (trimmed.includes('processing') || trimmed.includes('dumping data for table') || trimmed.includes('creating') || trimmed.includes('setting owner')) {
1841
+
1842
+ if (trimmed.includes('processing') || trimmed.includes('dumping data') || trimmed.includes('dumping contents') || trimmed.includes('extrayendo') || trimmed.includes('creating') || trimmed.includes('setting owner')) {
1842
1843
  objectCount++;
1843
1844
  }
1844
1845
 
@@ -1859,6 +1860,7 @@ async function executePgDump(command) {
1859
1860
  let detail = trimmed;
1860
1861
  if (detail.startsWith('pg_dump: ')) detail = detail.substring(9);
1861
1862
  if (detail.includes('dumping data for table')) detail = detail.replace('dumping data for table', 'exportando datos');
1863
+ if (detail.includes('dumping contents of table')) detail = detail.replace('dumping contents of table', 'exportando tabla');
1862
1864
 
1863
1865
  progressMsg += ` - ${detail.substring(0, 50)}`;
1864
1866
  console.log(`${colors.cyan}[INFO] ${progressMsg}${colors.reset}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.5.17",
3
+ "version": "1.5.19",
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": {