@deinossrl/dgp-agent 1.4.0 → 1.4.1

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 +5 -5
  2. 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 output = await shellAsync(cmd);
337
+ const { stdout } = await shellAsync(cmd);
338
338
  logSuccess('✓ Completado');
339
- if (output.trim()) {
340
- console.log(colors.gray + output + colors.reset);
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.0',
595
+ agent_version: '1.4.1',
596
596
  status,
597
597
  };
598
598
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
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": {