@deinossrl/dgp-agent 1.5.9 → 1.5.11
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 +48 -0
- package/index.mjs +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog - DGP Agent
|
|
2
2
|
|
|
3
|
+
## [1.5.10] - 2026-01-12
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- La opción `exclude_system_schemas` ahora aplica para TODOS los tipos de conexión (no solo Supabase)
|
|
7
|
+
- El usuario decide siempre si excluir schemas del sistema (mayor control)
|
|
8
|
+
- Mejor documentación en la UI con tooltips explicativos
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Tooltip detallado en opción "Excluir schemas del sistema" mostrando los 12 schemas que se excluyen
|
|
12
|
+
- Tooltip detallado en opción "Limpiar antes de restaurar" explicando qué borra y qué NO toca
|
|
13
|
+
|
|
14
|
+
## [1.5.9] - 2026-01-12
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Opción en UI para excluir schemas del sistema de Supabase al crear backups
|
|
18
|
+
- Checkbox "Excluir schemas del sistema" (marcado por defecto en Supabase)
|
|
19
|
+
- Excluye automáticamente: storage, auth, extensions, realtime, vault, graphql, pgsodium, etc.
|
|
20
|
+
- Previene errores de "must be owner" al restaurar
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Agente respeta el flag `exclude_system_schemas` enviado desde la UI
|
|
24
|
+
|
|
25
|
+
## [1.5.8] - 2026-01-12
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- **Progreso con porcentaje en pg_restore**: Usa `pg_restore --list` para contar objetos totales
|
|
29
|
+
- Muestra progreso preciso: "Progreso: 67% (180/268) - creating TABLE public.orders"
|
|
30
|
+
- **Progreso mejorado en pg_dump**: Conteo de objetos procesados con porcentaje estimado
|
|
31
|
+
- Log final con total de objetos exportados
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
- Cambiado de spawn bloqueante a spawn asíncrono para capturar salida en tiempo real
|
|
35
|
+
- Logs de progreso cada 2 segundos para no saturar la base de datos
|
|
36
|
+
- Mejor estimación de progreso cuando se especifican schemas/tables
|
|
37
|
+
|
|
38
|
+
## [1.5.7] - 2026-01-12
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
- **Progreso en tiempo real para pg_dump**: Ahora muestra qué tabla/schema se está procesando
|
|
42
|
+
- Flag `--verbose` agregado a pg_dump para obtener información de progreso
|
|
43
|
+
- Mensajes cada 2 segundos: "pg_dump: dumping data for table public.users"
|
|
44
|
+
- Contador de objetos procesados durante el backup
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
- Cambiado de spawnSync (bloqueante) a spawn (asíncrono) en pg_dump
|
|
48
|
+
- Captura stderr en tiempo real para mostrar progreso al usuario
|
|
49
|
+
- Mejor experiencia en backups grandes (muestra que está vivo y progresando)
|
|
50
|
+
|
|
3
51
|
## [1.5.6] - 2026-01-12
|
|
4
52
|
|
|
5
53
|
### Fixed
|
package/index.mjs
CHANGED
|
@@ -1758,9 +1758,9 @@ async function executePgDump(command) {
|
|
|
1758
1758
|
params.schemas.forEach(schema => {
|
|
1759
1759
|
pgDumpArgs.push(`--schema=${schema}`);
|
|
1760
1760
|
});
|
|
1761
|
-
} else if (params.exclude_system_schemas === true
|
|
1761
|
+
} else if (params.exclude_system_schemas === true) {
|
|
1762
1762
|
// Si el usuario marcó "excluir schemas del sistema" y NO especificó schemas manualmente
|
|
1763
|
-
const
|
|
1763
|
+
const systemSchemas = [
|
|
1764
1764
|
'storage',
|
|
1765
1765
|
'auth',
|
|
1766
1766
|
'extensions',
|
|
@@ -1775,10 +1775,10 @@ async function executePgDump(command) {
|
|
|
1775
1775
|
'supabase_migrations'
|
|
1776
1776
|
];
|
|
1777
1777
|
|
|
1778
|
-
logInfo('Excluyendo schemas del sistema
|
|
1779
|
-
await addCommandLog('info', `Excluyendo ${
|
|
1778
|
+
logInfo('Excluyendo schemas del sistema...');
|
|
1779
|
+
await addCommandLog('info', `Excluyendo ${systemSchemas.length} schemas del sistema`);
|
|
1780
1780
|
|
|
1781
|
-
|
|
1781
|
+
systemSchemas.forEach(schema => {
|
|
1782
1782
|
pgDumpArgs.push(`--exclude-schema=${schema}`);
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|