@deinossrl/dgp-agent 1.4.51 → 1.4.52

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,16 @@
1
1
  # Changelog - DGP Agent
2
2
 
3
+ ## [1.4.52] - 2026-01-12
4
+
5
+ ### Fixed
6
+ - Cambiado default Supabase key de anon a service_role
7
+ - Resuelve error "new row violates row-level security policy" al subir backups
8
+ - Backups ahora se suben correctamente a Supabase Storage
9
+
10
+ ### Changed
11
+ - El agente usa service_role key por defecto para operaciones privilegiadas
12
+ - Permite bypass de RLS policies en Storage y Database
13
+
3
14
  ## [1.4.51] - 2026-01-12
4
15
 
5
16
  ### 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.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFzaXZheWhicnFlbm53aXd0dGRzIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcyMjU1Mzc3MCwiZXhwIjoyMDM4MTI5NzcwfQ.r7RM4wXOQN4b7QMeHEw5U0y_l3dPZc8b0a7vp7_PBpQ',
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.52",
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": {