@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.
- package/index.mjs +5 -5
- 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.1',
|
|
596
596
|
status,
|
|
597
597
|
};
|
|
598
598
|
|