@deinossrl/dgp-agent 1.5.13 → 1.5.15
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 +21 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog - DGP Agent
|
|
2
2
|
|
|
3
|
+
## [1.5.15] - 2026-01-13
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- **Logs más limpios**: Eliminado prefijo `pg_dump:` y traducidos mensajes comunes al español (`reading` -> `Leyendo`, `saving` -> `Guardando`, etc.) para una experiencia de consola más profesional.
|
|
7
|
+
- Feedback visual consistente en color cyan `[INFO]` para eventos importantes.
|
|
8
|
+
|
|
3
9
|
## [1.5.13] - 2026-01-13
|
|
4
10
|
|
|
5
11
|
### Changed
|
package/index.mjs
CHANGED
|
@@ -1838,7 +1838,19 @@ async function executePgDump(command) {
|
|
|
1838
1838
|
const now = Date.now();
|
|
1839
1839
|
|
|
1840
1840
|
if (!isLoopMessage || now - lastLogTime > 2000) {
|
|
1841
|
-
|
|
1841
|
+
// Limpiar el mensaje raw de pg_dump para que se vea mejor
|
|
1842
|
+
let cleanMsg = trimmed;
|
|
1843
|
+
if (cleanMsg.startsWith('pg_dump: ')) {
|
|
1844
|
+
cleanMsg = cleanMsg.substring(9);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
// Traducir mensajes comunes para mejor UX
|
|
1848
|
+
if (cleanMsg.includes('reading')) cleanMsg = cleanMsg.replace('reading', 'Leyendo');
|
|
1849
|
+
if (cleanMsg.includes('saving')) cleanMsg = cleanMsg.replace('saving', 'Guardando');
|
|
1850
|
+
if (cleanMsg.includes('dumping data for table')) cleanMsg = cleanMsg.replace('dumping data for table', 'Exportando datos de tabla');
|
|
1851
|
+
|
|
1852
|
+
console.log(`${colors.cyan}[INFO]${colors.reset} ${cleanMsg}`);
|
|
1853
|
+
|
|
1842
1854
|
if (isLoopMessage) lastLogTime = now;
|
|
1843
1855
|
}
|
|
1844
1856
|
|
|
@@ -2348,7 +2360,14 @@ async function executePgRestore(command) {
|
|
|
2348
2360
|
const now = Date.now();
|
|
2349
2361
|
|
|
2350
2362
|
if (!isLoopMessage || now - lastLogTime > 2000) {
|
|
2351
|
-
|
|
2363
|
+
// Limpiar y traducir mensaje
|
|
2364
|
+
let cleanMsg = trimmed;
|
|
2365
|
+
if (cleanMsg.includes('processing item')) cleanMsg = cleanMsg.replace('processing item', 'Procesando item');
|
|
2366
|
+
if (cleanMsg.includes('entering main parallel loop')) cleanMsg = 'Iniciando loop paralelo principal';
|
|
2367
|
+
if (cleanMsg.includes('finished main parallel loop')) cleanMsg = 'Finalizado loop paralelo principal';
|
|
2368
|
+
|
|
2369
|
+
console.log(`${colors.cyan}[INFO]${colors.reset} ${cleanMsg}`);
|
|
2370
|
+
|
|
2352
2371
|
if (isLoopMessage) lastLogTime = now;
|
|
2353
2372
|
}
|
|
2354
2373
|
|