@deinossrl/dgp-agent 1.4.29 → 1.4.30

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.
Files changed (2) hide show
  1. package/index.mjs +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -321,7 +321,7 @@ function getPlinkPath() {
321
321
  }
322
322
 
323
323
  // Versión del agente
324
- const AGENT_VERSION = '1.4.29';
324
+ const AGENT_VERSION = '1.4.30';
325
325
  let AGENT_MODE = 'smart'; // Siempre inteligente
326
326
 
327
327
  // Configuración (prioridad: env vars > archivo config > platform config > defaults)
@@ -1482,7 +1482,8 @@ async function executeTestConnection(command) {
1482
1482
  }
1483
1483
  }
1484
1484
  await addCommandLog('info', `Usando plink: ${plinkPath}`);
1485
- sshCmd = `"${plinkPath}" -batch -ssh -pw "${sshPassword}" ${user}@${server_host} "echo SSH_OK && hostname && whoami"`;
1485
+ // Usar echo y para auto-aceptar host key
1486
+ sshCmd = `echo y | "${plinkPath}" -ssh -pw "${sshPassword}" ${user}@${server_host} "echo SSH_OK && hostname && whoami"`;
1486
1487
  } else {
1487
1488
  // En Linux/Mac usar sshpass
1488
1489
  await addCommandLog('info', 'Usando sshpass (Linux/Mac)');
@@ -1510,7 +1511,7 @@ async function executeTestConnection(command) {
1510
1511
  throw new Error('No se pudo descargar plink. Instalá PuTTY manualmente o usá SSH Key.');
1511
1512
  }
1512
1513
  }
1513
- sshCmd = `"${plinkPath}" -batch -ssh -pw "${sshPassword}" ${user}@${server_host} "echo SSH_OK && hostname && whoami"`;
1514
+ sshCmd = `echo y | "${plinkPath}" -ssh -pw "${sshPassword}" ${user}@${server_host} "echo SSH_OK && hostname && whoami"`;
1514
1515
  } else {
1515
1516
  sshCmd = `sshpass -p "${sshPassword}" ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 ${user}@${server_host} "echo 'SSH_OK' && hostname && whoami"`;
1516
1517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
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": {