@deinossrl/dgp-agent 1.4.8 → 1.4.9
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 +8 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -203,7 +203,7 @@ async function fetchPlatformConfig() {
|
|
|
203
203
|
let platformConfig = null;
|
|
204
204
|
|
|
205
205
|
// Versión y modo del agente
|
|
206
|
-
const AGENT_VERSION = '1.4.
|
|
206
|
+
const AGENT_VERSION = '1.4.9';
|
|
207
207
|
let AGENT_MODE = 'status'; // 'status' | 'deploy' | 'ai'
|
|
208
208
|
|
|
209
209
|
// Configuración (prioridad: env vars > archivo config > platform config > defaults)
|
|
@@ -616,17 +616,18 @@ async function runAIMode() {
|
|
|
616
616
|
setInterval(pollAITasks, CONFIG.commandPollInterval * 1000);
|
|
617
617
|
|
|
618
618
|
// También reportar status periódicamente
|
|
619
|
-
const
|
|
619
|
+
const doReportStatus = async () => {
|
|
620
620
|
try {
|
|
621
621
|
const status = getRepoStatus();
|
|
622
|
-
await
|
|
622
|
+
await reportStatus(status);
|
|
623
623
|
} catch (e) {
|
|
624
|
-
//
|
|
624
|
+
// Log error para debug
|
|
625
|
+
console.error(`${colors.red}[Error reportando status]${colors.reset}`, e.message);
|
|
625
626
|
}
|
|
626
627
|
};
|
|
627
628
|
|
|
628
|
-
await
|
|
629
|
-
setInterval(
|
|
629
|
+
await doReportStatus();
|
|
630
|
+
setInterval(doReportStatus, CONFIG.interval * 1000);
|
|
630
631
|
}
|
|
631
632
|
|
|
632
633
|
// ============================================
|
|
@@ -1268,6 +1269,7 @@ ${colors.bold}REQUISITOS PARA DEPLOY${colors.reset}
|
|
|
1268
1269
|
- Permisos sudo para reload nginx (vía sudoers sin password)
|
|
1269
1270
|
|
|
1270
1271
|
${colors.bold}CHANGELOG${colors.reset}
|
|
1272
|
+
${colors.cyan}v1.4.9${colors.reset} - Fix: AI Mode no reportaba status a la plataforma
|
|
1271
1273
|
${colors.cyan}v1.4.8${colors.reset} - Banner dinámico con padding automático
|
|
1272
1274
|
${colors.cyan}v1.4.7${colors.reset} - Modo AI visible en web, auto-kill agente anterior
|
|
1273
1275
|
${colors.cyan}v1.4.6${colors.reset} - Fix: versión en banner AI Mode
|