@deinossrl/dgp-agent 1.5.16 → 1.5.18
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 +6 -0
- package/index.mjs +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog - DGP Agent
|
|
2
2
|
|
|
3
|
+
## [1.5.18] - 2026-01-13
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Fixed regex matching for 'processing' messages in recent pg_dump versions to ensure progress percentage is displayed.
|
|
7
|
+
- Fixed syntax error in pg_restore loop structure.
|
|
8
|
+
|
|
3
9
|
## [1.5.16] - 2026-01-13
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* DGP Agent - Agente local para Despliegue-GPT
|
|
4
4
|
* @deinossrl/dgp-agent
|
|
@@ -1834,11 +1834,11 @@ 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');
|
|
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
|
|
1841
|
+
if (trimmed.includes('processing') || trimmed.includes('dumping data') || trimmed.includes('dumping contents') || trimmed.includes('creating') || trimmed.includes('setting owner')) {
|
|
1842
1842
|
objectCount++;
|
|
1843
1843
|
}
|
|
1844
1844
|
|
|
@@ -1859,6 +1859,7 @@ async function executePgDump(command) {
|
|
|
1859
1859
|
let detail = trimmed;
|
|
1860
1860
|
if (detail.startsWith('pg_dump: ')) detail = detail.substring(9);
|
|
1861
1861
|
if (detail.includes('dumping data for table')) detail = detail.replace('dumping data for table', 'exportando datos');
|
|
1862
|
+
if (detail.includes('dumping contents of table')) detail = detail.replace('dumping contents of table', 'exportando tabla');
|
|
1862
1863
|
|
|
1863
1864
|
progressMsg += ` - ${detail.substring(0, 50)}`;
|
|
1864
1865
|
console.log(`${colors.cyan}[INFO] ${progressMsg}${colors.reset}`);
|
|
@@ -2430,7 +2431,8 @@ async function executePgRestore(command) {
|
|
|
2430
2431
|
addCommandLog('info', progressMsg).catch(() => { });
|
|
2431
2432
|
lastLogTimeWeb = now;
|
|
2432
2433
|
}
|
|
2433
|
-
}
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2434
2436
|
|
|
2435
2437
|
// Mostrar progreso por tiempo cada 10 segundos como respaldo
|
|
2436
2438
|
progressInterval = setInterval(() => {
|