@deinossrl/dgp-agent 1.4.41 → 1.4.42
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 +10 -0
- package/index.mjs +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog - DGP Agent
|
|
2
2
|
|
|
3
|
+
## [1.4.42] - 2026-01-12
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- El agente ahora muestra su versión al iniciar
|
|
7
|
+
- Versión leída automáticamente desde package.json (no hardcoded)
|
|
8
|
+
- Versión visible en comando `dgp-agent status`
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Mejorado display de información de versión en startup y status
|
|
12
|
+
|
|
3
13
|
## [1.4.41] - 2026-01-12
|
|
4
14
|
|
|
5
15
|
### Added
|
package/index.mjs
CHANGED
|
@@ -27,9 +27,16 @@ import { execSync, spawn, spawnSync } from 'child_process';
|
|
|
27
27
|
import { hostname, homedir } from 'os';
|
|
28
28
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, chmodSync, createWriteStream, statSync, unlinkSync } from 'fs';
|
|
29
29
|
import { join, dirname } from 'path';
|
|
30
|
+
import { fileURLToPath } from 'url';
|
|
30
31
|
import https from 'https';
|
|
31
32
|
import { createClient } from '@supabase/supabase-js';
|
|
32
33
|
|
|
34
|
+
// Get version from package.json
|
|
35
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
36
|
+
const __dirname = dirname(__filename);
|
|
37
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf-8'));
|
|
38
|
+
const AGENT_VERSION = packageJson.version;
|
|
39
|
+
|
|
33
40
|
// ============================================
|
|
34
41
|
// CONFIG FILE MANAGEMENT
|
|
35
42
|
// ============================================
|
|
@@ -352,8 +359,6 @@ function getPlinkPath() {
|
|
|
352
359
|
}
|
|
353
360
|
}
|
|
354
361
|
|
|
355
|
-
// Versión del agente
|
|
356
|
-
const AGENT_VERSION = '1.4.41';
|
|
357
362
|
let AGENT_MODE = 'smart'; // Siempre inteligente
|
|
358
363
|
|
|
359
364
|
// Configuración (prioridad: env vars > archivo config > platform config > defaults)
|
|
@@ -2124,7 +2129,7 @@ async function executeGitCommitPush(command, useAI = false) {
|
|
|
2124
2129
|
function printStatus(status) {
|
|
2125
2130
|
console.log('');
|
|
2126
2131
|
console.log(`${colors.blue}═══════════════════════════════════════════════════════${colors.reset}`);
|
|
2127
|
-
console.log(`${colors.blue} DGP Agent Status${colors.reset}`);
|
|
2132
|
+
console.log(`${colors.blue} DGP Agent Status v${AGENT_VERSION}${colors.reset}`);
|
|
2128
2133
|
console.log(`${colors.blue}═══════════════════════════════════════════════════════${colors.reset}`);
|
|
2129
2134
|
console.log(` Machine: ${colors.yellow}${CONFIG.machineId}${colors.reset}`);
|
|
2130
2135
|
console.log(` Branch: ${colors.green}${status.branch}${colors.reset}`);
|
|
@@ -2177,6 +2182,7 @@ async function runAgent() {
|
|
|
2177
2182
|
}
|
|
2178
2183
|
}
|
|
2179
2184
|
|
|
2185
|
+
logInfo(`DGP Agent v${AGENT_VERSION}`);
|
|
2180
2186
|
logInfo(`Machine ID: ${CONFIG.machineId}`);
|
|
2181
2187
|
logInfo(`IA: ${CONFIG.anthropicApiKey ? '✓ Habilitada' : '✗ No configurada'}`);
|
|
2182
2188
|
logInfo(`Reporta cada ${CONFIG.interval}s | Escucha cada ${CONFIG.commandPollInterval}s`);
|