@deinossrl/dgp-agent 1.4.42 → 1.4.43

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,12 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.4.43] - 2026-01-12
4
+
5
+ ### Fixed
6
+ - Mejorados logs de debug en command polling
7
+ - Ahora muestra errores detallados si no puede leer comandos
8
+ - Log cuando no hay comandos pendientes para facilitar troubleshooting
9
+
3
10
  ## [1.4.42] - 2026-01-12
4
11
 
5
12
  ### Added
package/index.mjs CHANGED
@@ -2224,12 +2224,16 @@ async function runAgent() {
2224
2224
  });
2225
2225
 
2226
2226
  if (!response.ok) {
2227
- log(`[Poll] Error: ${response.status}`, 'gray');
2227
+ const errorText = await response.text();
2228
+ logError(`[Poll] Error ${response.status}: ${errorText}`);
2228
2229
  return;
2229
2230
  }
2230
2231
 
2231
2232
  const commands = await response.json();
2232
- if (commands.length === 0) return;
2233
+ if (commands.length === 0) {
2234
+ log(`[Poll] No hay comandos pendientes`, 'gray');
2235
+ return;
2236
+ }
2233
2237
 
2234
2238
  const command = commands[0];
2235
2239
  isProcessingCommand = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.4.42",
3
+ "version": "1.4.43",
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": {