From 1d47891d0097c10920ab5706b54c847024ec8f29 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 12 Jan 2026 13:43:07 -1000 Subject: Remove AI agent middleware and snapshot endpoint Simplified the dashboard by removing the AI agent access layer: - Deleted internal/middleware/ai_auth.go and tests - Removed AIAgentAPIKey from config.Config - Removed /api/claude/snapshot endpoint registration - Updated SESSION_STATE.md and CLAUDE.md documentation - All tests passing after cleanup Dashboard is now human-facing only without the AI agent endpoint. Co-Authored-By: Claude Sonnet 4.5 --- internal/config/config.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 4a86b06..dc7d1c3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -22,9 +22,6 @@ type Config struct { Port string CacheTTLMinutes int Debug bool - - // AI Agent Access - AIAgentAPIKey string } // Load reads configuration from environment variables @@ -44,9 +41,6 @@ func Load() (*Config, error) { Port: getEnvWithDefault("PORT", "8080"), CacheTTLMinutes: getEnvAsInt("CACHE_TTL_MINUTES", 5), Debug: getEnvAsBool("DEBUG", false), - - // AI Agent Access - AIAgentAPIKey: os.Getenv("AI_AGENT_API_KEY"), } // Validate required fields -- cgit v1.2.3