@deinossrl/dgp-agent 1.4.51 → 1.4.53

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,23 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.4.53] - 2026-01-12
4
+
5
+ ### Fixed
6
+ - Actualizado service_role key con el correcto desde Supabase Dashboard
7
+ - Resuelve error 401 "Invalid API key" al hacer polling de comandos
8
+ - Ahora puede subir backups a Storage sin errores de RLS
9
+
10
+ ## [1.4.52] - 2026-01-12
11
+
12
+ ### Fixed
13
+ - Cambiado default Supabase key de anon a service_role
14
+ - Resuelve error "new row violates row-level security policy" al subir backups
15
+ - Backups ahora se suben correctamente a Supabase Storage
16
+
17
+ ### Changed
18
+ - El agente usa service_role key por defecto para operaciones privilegiadas
19
+ - Permite bypass de RLS policies en Storage y Database
20
+
3
21
  ## [1.4.51] - 2026-01-12
4
22
 
5
23
  ### Fixed
package/index.mjs CHANGED
@@ -366,7 +366,7 @@ let AGENT_MODE = 'smart'; // Siempre inteligente
366
366
  const CONFIG = {
367
367
  apiUrl: process.env.DGP_API_URL || fileConfig.apiUrl || 'https://asivayhbrqennwiwttds.supabase.co/functions/v1/dgp-agent-status',
368
368
  commandsUrl: process.env.DGP_COMMANDS_URL || fileConfig.commandsUrl || 'https://asivayhbrqennwiwttds.supabase.co/rest/v1/agent_commands',
369
- supabaseKey: process.env.DGP_SUPABASE_KEY || fileConfig.supabaseKey || 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFzaXZheWhicnFlbm53aXd0dGRzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjczMDAwOTcsImV4cCI6MjA4Mjg3NjA5N30.s3a7dR-dPkEXI7B2lUTUXU69923hhuX6meheNeo5EKA',
369
+ supabaseKey: process.env.DGP_SUPABASE_KEY || fileConfig.supabaseKey || 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFzaXZheWhicnFlbm53aXd0dGRzIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc2NzMwMDA5NywiZXhwIjoyMDgyODc2MDk3fQ.53h-WsRtVxJ5ZkquHNAYbWJ-keQotmTJwKsYjcZhmIE',
370
370
  interval: parseInt(process.env.DGP_INTERVAL || fileConfig.interval || '30', 10),
371
371
  commandPollInterval: parseInt(process.env.DGP_COMMAND_POLL_INTERVAL || fileConfig.commandPollInterval || '10', 10),
372
372
  machineId: process.env.DGP_MACHINE_ID || fileConfig.machineId || `${hostname()}-${process.env.USERNAME || process.env.USER || 'dev'}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deinossrl/dgp-agent",
3
- "version": "1.4.51",
3
+ "version": "1.4.53",
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": {