@deinossrl/dgp-agent 1.4.0 → 1.4.2
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/index.mjs +9 -9
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -334,12 +334,12 @@ Devuelve los comandos necesarios en formato JSON.`;
|
|
|
334
334
|
for (const cmd of result.commands) {
|
|
335
335
|
logCommand(`$ ${cmd}`);
|
|
336
336
|
try {
|
|
337
|
-
const
|
|
337
|
+
const { stdout } = await shellAsync(cmd);
|
|
338
338
|
logSuccess('✓ Completado');
|
|
339
|
-
if (
|
|
340
|
-
console.log(colors.gray +
|
|
339
|
+
if (stdout && stdout.trim()) {
|
|
340
|
+
console.log(colors.gray + stdout + colors.reset);
|
|
341
341
|
}
|
|
342
|
-
results.push({ cmd, success: true, output });
|
|
342
|
+
results.push({ cmd, success: true, output: stdout });
|
|
343
343
|
} catch (e) {
|
|
344
344
|
logError(`✗ Falló: ${e.message}`);
|
|
345
345
|
results.push({ cmd, success: false, error: e.message });
|
|
@@ -592,7 +592,7 @@ async function reportStatus(status) {
|
|
|
592
592
|
const payload = {
|
|
593
593
|
machine_id: CONFIG.machineId,
|
|
594
594
|
timestamp: new Date().toISOString(),
|
|
595
|
-
agent_version: '1.4.
|
|
595
|
+
agent_version: '1.4.2',
|
|
596
596
|
status,
|
|
597
597
|
};
|
|
598
598
|
|
|
@@ -891,7 +891,7 @@ async function runAgent(deployMode = false) {
|
|
|
891
891
|
console.log('');
|
|
892
892
|
console.log(`${colors.green}╔═══════════════════════════════════════════════════════╗${colors.reset}`);
|
|
893
893
|
console.log(`${colors.green}║ DGP Agent - Despliegue-GPT Local Agent ║${colors.reset}`);
|
|
894
|
-
console.log(`${colors.green}║ @deinossrl/dgp-agent v1.4.
|
|
894
|
+
console.log(`${colors.green}║ @deinossrl/dgp-agent v1.4.2 ║${colors.reset}`);
|
|
895
895
|
console.log(`${colors.green}╚═══════════════════════════════════════════════════════╝${colors.reset}`);
|
|
896
896
|
console.log('');
|
|
897
897
|
|
|
@@ -1007,7 +1007,7 @@ async function showStatus() {
|
|
|
1007
1007
|
function showHelp() {
|
|
1008
1008
|
console.log(`
|
|
1009
1009
|
${colors.bold}${colors.cyan}DGP Agent - Despliegue-GPT Local Agent${colors.reset}
|
|
1010
|
-
${colors.gray}@deinossrl/dgp-agent v1.4.
|
|
1010
|
+
${colors.gray}@deinossrl/dgp-agent v1.4.2${colors.reset}
|
|
1011
1011
|
|
|
1012
1012
|
${colors.bold}DESCRIPCIÓN${colors.reset}
|
|
1013
1013
|
Agente local que reporta el estado de tu repositorio Git
|
|
@@ -1058,7 +1058,7 @@ ${colors.bold}REQUISITOS PARA DEPLOY${colors.reset}
|
|
|
1058
1058
|
- Permisos sudo para reload nginx (vía sudoers sin password)
|
|
1059
1059
|
|
|
1060
1060
|
${colors.bold}CHANGELOG${colors.reset}
|
|
1061
|
-
${colors.cyan}v1.4.
|
|
1061
|
+
${colors.cyan}v1.4.2${colors.reset} - Fix: alineación banner, config persistente
|
|
1062
1062
|
${colors.cyan}v1.3.0${colors.reset} - AI Mode: ejecuta tareas con lenguaje natural
|
|
1063
1063
|
${colors.cyan}v1.2.7${colors.reset} - Fix: update via Edge Function (401 fix)
|
|
1064
1064
|
${colors.cyan}v1.2.6${colors.reset} - Comando git_commit_push desde la UI
|
|
@@ -1223,7 +1223,7 @@ switch (command) {
|
|
|
1223
1223
|
case 'version':
|
|
1224
1224
|
case '-v':
|
|
1225
1225
|
case '--version':
|
|
1226
|
-
console.log('@deinossrl/dgp-agent v1.4.
|
|
1226
|
+
console.log('@deinossrl/dgp-agent v1.4.2');
|
|
1227
1227
|
break;
|
|
1228
1228
|
case 'ai':
|
|
1229
1229
|
case '--ai':
|