"use client"; import { useState } from "react"; import { syncDatabase } from "../lib/api"; export default function SystemInfo() { const [isSyncing, setIsSyncing] = useState(false); const [syncStatus, setSyncStatus] = useState(null); const [debugInfo, setDebugInfo] = useState(""); const testConnection = async () => { try { const res1 = await fetch("/api/health"); const healthData = await res1.json(); const res2 = await fetch("/api/health/db-status"); const dbData = await res2.json(); setDebugInfo(`Health: ${JSON.stringify(healthData)} | DB: ${JSON.stringify(dbData)}`); } catch (e: any) { setDebugInfo(`Connection Failed: ${e.message}`); } }; const handleSync = async () => { setIsSyncing(true); setSyncStatus("Syncing..."); try { await syncDatabase(); setSyncStatus("Success! Refreshing..."); setTimeout(() => window.location.reload(), 1500); } catch (e) { setSyncStatus("Failed to sync."); console.error(e); } finally { setIsSyncing(false); } }; const techStack = [ { name: "FastAPI", role: "Backend Engine", desc: "High-performance Python framework for AI orchestration." }, { name: "Next.js 14", role: "Frontend Framework", desc: "Modern React framework with server-side capabilities." }, { name: "Tailwind CSS", role: "Design System", desc: "Premium styling with custom glassmorphism effects." }, { name: "Gemini 2.5", role: "Primary LLM", desc: "Precise logic for Legal and Executive analysis." }, { name: "Featherless", role: "Open World LLM", desc: "Access to DeepSeek-V3 and Qwen-2.5 for Technical and Strategic reasoning." }, { name: "SQLite", role: "Persistence", desc: "Reliable and fast local database for cloud deployments." }, ]; const agentTeam = [ { name: "Dra. Legal", model: "Gemini 2.5 Flash", desc: "Muy precisa en reglas y cumplimiento de bases administrativas." }, { name: "Ing. Tech", model: "DeepSeek-V3.2 (via Featherless)", desc: "El modelo más potente del mundo para entender código y arquitectura técnica." }, { name: "Sra. Estrategia", model: "Qwen-2.5 (via Featherless)", desc: "Modelo optimizado para análisis de datos, mercado e impacto comercial." }, ]; return (
{/* Brand Section */}
REW

About AndesOps AI

AndesOps AI is a state-of-the-art platform developed by REW Agency. Engineered to transform public procurement through agentic intelligence.

{/* Rescue Button */}
{syncStatus &&

{syncStatus}

} {/* Debug Area */}
{debugInfo && (

{debugInfo}

)}

Use this if the dashboard shows 0 items on first load

Visit rew.cl
Powered by AndesOps
{/* Multi-Model Agents */}

Elite Multi-Agent Consensus

{agentTeam.map((agent) => (
{agent.model}

{agent.name}

{agent.desc}

))}
{/* Tech Grid */}
{techStack.map((tech) => (
{tech.role}

{tech.name}

{tech.desc}

))}
{/* Development Status */}

System Status: Operational

Version 1.0.4 - Production Environment

Developed & Signed by

REW DIGITAL AGENCY CHILE

); }