@deinossrl/dgp-agent 1.4.3 → 1.4.4
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 +10 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -96,9 +96,10 @@ function deleteConfigValue(key) {
|
|
|
96
96
|
const fileConfig = loadConfigFile();
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Obtiene configuración desde la plataforma (Supabase)
|
|
99
|
+
* Obtiene configuración global desde la plataforma (Supabase)
|
|
100
|
+
* La config es compartida por todos los agentes
|
|
100
101
|
*/
|
|
101
|
-
async function fetchPlatformConfig(
|
|
102
|
+
async function fetchPlatformConfig() {
|
|
102
103
|
try {
|
|
103
104
|
const url = 'https://asivayhbrqennwiwttds.supabase.co/functions/v1/dgp-agent-config';
|
|
104
105
|
const response = await fetch(url, {
|
|
@@ -107,7 +108,7 @@ async function fetchPlatformConfig(machineId) {
|
|
|
107
108
|
'Content-Type': 'application/json',
|
|
108
109
|
'apikey': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFzaXZheWhicnFlbm53aXd0dGRzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjczMDAwOTcsImV4cCI6MjA4Mjg3NjA5N30.s3a7dR-dPkEXI7B2lUTUXU69923hhuX6meheNeo5EKA',
|
|
109
110
|
},
|
|
110
|
-
body: JSON.stringify({
|
|
111
|
+
body: JSON.stringify({}),
|
|
111
112
|
});
|
|
112
113
|
|
|
113
114
|
if (!response.ok) {
|
|
@@ -399,10 +400,10 @@ async function runAIMode() {
|
|
|
399
400
|
console.log(`${colors.cyan}╚═══════════════════════════════════════════════════════╝${colors.reset}`);
|
|
400
401
|
console.log('');
|
|
401
402
|
|
|
402
|
-
// Intentar cargar config desde la plataforma si no hay API key local
|
|
403
|
+
// Intentar cargar config global desde la plataforma si no hay API key local
|
|
403
404
|
if (!CONFIG.anthropicApiKey) {
|
|
404
405
|
logInfo('Buscando configuración en la plataforma...');
|
|
405
|
-
platformConfig = await fetchPlatformConfig(
|
|
406
|
+
platformConfig = await fetchPlatformConfig();
|
|
406
407
|
|
|
407
408
|
if (platformConfig?.anthropic_api_key) {
|
|
408
409
|
CONFIG.anthropicApiKey = platformConfig.anthropic_api_key;
|
|
@@ -941,7 +942,7 @@ async function runAgent(deployMode = false) {
|
|
|
941
942
|
console.log('');
|
|
942
943
|
console.log(`${colors.green}╔═══════════════════════════════════════════════════════╗${colors.reset}`);
|
|
943
944
|
console.log(`${colors.green}║ DGP Agent - Despliegue-GPT Local Agent ║${colors.reset}`);
|
|
944
|
-
console.log(`${colors.green}║ @deinossrl/dgp-agent v1.4.
|
|
945
|
+
console.log(`${colors.green}║ @deinossrl/dgp-agent v1.4.4 ║${colors.reset}`);
|
|
945
946
|
console.log(`${colors.green}╚═══════════════════════════════════════════════════════╝${colors.reset}`);
|
|
946
947
|
console.log('');
|
|
947
948
|
|
|
@@ -1057,7 +1058,7 @@ async function showStatus() {
|
|
|
1057
1058
|
function showHelp() {
|
|
1058
1059
|
console.log(`
|
|
1059
1060
|
${colors.bold}${colors.cyan}DGP Agent - Despliegue-GPT Local Agent${colors.reset}
|
|
1060
|
-
${colors.gray}@deinossrl/dgp-agent v1.4.
|
|
1061
|
+
${colors.gray}@deinossrl/dgp-agent v1.4.4${colors.reset}
|
|
1061
1062
|
|
|
1062
1063
|
${colors.bold}DESCRIPCIÓN${colors.reset}
|
|
1063
1064
|
Agente local que reporta el estado de tu repositorio Git
|
|
@@ -1108,6 +1109,7 @@ ${colors.bold}REQUISITOS PARA DEPLOY${colors.reset}
|
|
|
1108
1109
|
- Permisos sudo para reload nginx (vía sudoers sin password)
|
|
1109
1110
|
|
|
1110
1111
|
${colors.bold}CHANGELOG${colors.reset}
|
|
1112
|
+
${colors.cyan}v1.4.4${colors.reset} - Config global (compartida por todos los agentes)
|
|
1111
1113
|
${colors.cyan}v1.4.3${colors.reset} - Config desde plataforma web (TenMinute IA)
|
|
1112
1114
|
${colors.cyan}v1.4.2${colors.reset} - Fix: alineación banner, config persistente
|
|
1113
1115
|
${colors.cyan}v1.3.0${colors.reset} - AI Mode: ejecuta tareas con lenguaje natural
|
|
@@ -1274,7 +1276,7 @@ switch (command) {
|
|
|
1274
1276
|
case 'version':
|
|
1275
1277
|
case '-v':
|
|
1276
1278
|
case '--version':
|
|
1277
|
-
console.log('@deinossrl/dgp-agent v1.4.
|
|
1279
|
+
console.log('@deinossrl/dgp-agent v1.4.4');
|
|
1278
1280
|
break;
|
|
1279
1281
|
case 'ai':
|
|
1280
1282
|
case '--ai':
|