@deinossrl/dgp-agent 1.5.2 → 1.5.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.5.3] - 2026-01-12
4
+
5
+ ### Changed
6
+ - Status simplificado: En lugar del bloque grande cada ciclo, ahora muestra una línea breve cada 10 minutos
7
+ - Formato: `[timestamp] version | commit_hash | branch`
8
+ - Reportes a la plataforma son silenciosos (sin logs innecesarios)
9
+ - El comando `dgp-agent status` sigue mostrando el detalle completo
10
+
3
11
  ## [1.5.2] - 2026-01-12
4
12
 
5
13
  ### Fixed
package/index.mjs CHANGED
@@ -2795,7 +2795,7 @@ async function executeGitCommitPush(command, useAI = false) {
2795
2795
  }
2796
2796
 
2797
2797
  /**
2798
- * Muestra el estado en consola
2798
+ * Muestra el estado en consola (formato completo)
2799
2799
  */
2800
2800
  function printStatus(status) {
2801
2801
  console.log('');
@@ -2820,6 +2820,14 @@ function printStatus(status) {
2820
2820
  console.log('');
2821
2821
  }
2822
2822
 
2823
+ /**
2824
+ * Muestra una línea breve con el estado (versión, commit, fecha)
2825
+ */
2826
+ function printBriefStatus(status) {
2827
+ const now = new Date().toISOString().replace('T', ' ').substring(0, 19);
2828
+ console.log(`${colors.gray}[${now}] v${AGENT_VERSION} | ${status.last_commit.hash} | ${status.branch}${colors.reset}`);
2829
+ }
2830
+
2823
2831
  /**
2824
2832
  * Loop principal del agente - SIEMPRE inteligente
2825
2833
  */
@@ -2913,17 +2921,25 @@ async function runAgent() {
2913
2921
  logInfo('Presiona Ctrl+C para detener');
2914
2922
  console.log('');
2915
2923
 
2924
+ // Contador para mostrar status breve cada 10 minutos
2925
+ let statusCycleCount = 0;
2926
+ const CYCLES_PER_10_MIN = Math.floor(600 / CONFIG.interval); // 600s = 10 min
2927
+
2916
2928
  // Status reporting cycle
2917
2929
  const runStatusCycle = async () => {
2918
2930
  try {
2919
2931
  const status = getRepoStatus();
2920
- printStatus(status);
2921
2932
 
2922
- logInfo('Reporting to platform...');
2923
- const result = await reportStatus(status);
2924
- logSuccess(`Reported successfully. Session: ${result.session_id || 'N/A'}`);
2933
+ // Mostrar status breve cada 10 minutos (no cada ciclo)
2934
+ if (statusCycleCount % CYCLES_PER_10_MIN === 0) {
2935
+ printBriefStatus(status);
2936
+ }
2937
+ statusCycleCount++;
2938
+
2939
+ // Reportar silenciosamente a la plataforma
2940
+ await reportStatus(status);
2925
2941
  } catch (error) {
2926
- logError(error.message);
2942
+ // Silent fail - no spam logs
2927
2943
  }
2928
2944
  };
2929
2945
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
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": {