@deinossrl/dgp-agent 1.4.54 → 1.4.55

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,11 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.4.55] - 2026-01-12
4
+
5
+ ### Fixed
6
+ - Ahora se copia `pg_restore.exe` junto con `pg_dump.exe` al instalar PostgreSQL
7
+ - Resuelve error ENOENT al ejecutar comando de restore
8
+
3
9
  ## [1.4.54] - 2026-01-12
4
10
 
5
11
  ### Added
package/index.mjs CHANGED
@@ -1519,12 +1519,19 @@ async function findOrInstallPgDump() {
1519
1519
  const extractedPgDump = join(BIN_DIR, 'pgsql', 'bin', 'pg_dump.exe');
1520
1520
 
1521
1521
  if (existsSync(extractedPgDump)) {
1522
- // Copiar pg_dump.exe y TODAS las DLLs al BIN_DIR raíz
1522
+ // Copiar pg_dump.exe, pg_restore.exe y TODAS las DLLs al BIN_DIR raíz
1523
1523
  const binSrcDir = join(BIN_DIR, 'pgsql', 'bin');
1524
1524
 
1525
1525
  // Copiar pg_dump.exe
1526
1526
  execSync(`copy "${extractedPgDump}" "${localPgDump}"`, { shell: 'cmd.exe' });
1527
1527
 
1528
+ // Copiar pg_restore.exe
1529
+ const extractedPgRestore = join(BIN_DIR, 'pgsql', 'bin', 'pg_restore.exe');
1530
+ const localPgRestore = join(BIN_DIR, 'pg_restore.exe');
1531
+ if (existsSync(extractedPgRestore)) {
1532
+ execSync(`copy "${extractedPgRestore}" "${localPgRestore}"`, { shell: 'cmd.exe' });
1533
+ }
1534
+
1528
1535
  // Copiar TODAS las DLLs (no solo algunas específicas)
1529
1536
  execSync(`copy "${binSrcDir}\\*.dll" "${BIN_DIR}\\"`, { shell: 'cmd.exe' });
1530
1537
 
@@ -1568,6 +1575,13 @@ async function findOrInstallPgDump() {
1568
1575
  // Copiar pg_dump.exe
1569
1576
  execSync(`copy "${extractedPgDump}" "${localPgDump}"`, { shell: 'cmd.exe' });
1570
1577
 
1578
+ // Copiar pg_restore.exe
1579
+ const extractedPgRestore = join(BIN_DIR, 'pgsql', 'bin', 'pg_restore.exe');
1580
+ const localPgRestore = join(BIN_DIR, 'pg_restore.exe');
1581
+ if (existsSync(extractedPgRestore)) {
1582
+ execSync(`copy "${extractedPgRestore}" "${localPgRestore}"`, { shell: 'cmd.exe' });
1583
+ }
1584
+
1571
1585
  // Copiar TODAS las DLLs
1572
1586
  execSync(`copy "${binSrcDir}\\*.dll" "${BIN_DIR}\\"`, { shell: 'cmd.exe' });
1573
1587
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.4.54",
3
+ "version": "1.4.55",
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": {