/** * AI Stack Service — dados estáticos do stack Descomplicar® 3 camadas * Fonte: STK-Estado-Actual.md (snapshot 06-04-2026) * @author Descomplicar® | @link descomplicar.pt | @copyright 2026 */ export interface AiLayerItem { metric: string value: number detail: string } export interface AiLayer { name: string label: string items: AiLayerItem[] } export interface TransversalSystem { name: string status: 'active' | 'warning' | 'inactive' detail: string } export interface CarlConfig { domains: string[] total_rules: number } export interface AiDashboard { layers: AiLayer[] transversal: TransversalSystem[] carl: CarlConfig notebooks: number last_updated: string } export async function getAiDashboard(): Promise { return { layers: [ { name: 'Claude Code', label: 'Camada 1 — Interactivo', items: [ { metric: 'Skills', value: 189, detail: '31 directas + 158 plugins' }, { metric: 'Agents CC', value: 72, detail: '18 directos + 54 plugins' }, { metric: 'MCPs', value: 39, detail: '10 enabled, 33 gateway, 2 locais' }, { metric: 'Hooks', value: 9, detail: '9 activos de 26 ficheiros' }, { metric: 'Plugins', value: 23, detail: '14 Descomplicar + 6 oficiais + 3 terceiros' }, ], }, { name: 'n8n', label: 'Camada 2 — Determinístico', items: [ { metric: 'Workflows', value: 14, detail: '14 activos de 17 total' }, ], }, { name: 'Paperclip', label: 'Camada 3 — Autónomo', items: [ { metric: 'Agentes', value: 16, detail: '9 active + 7 idle' }, { metric: 'Routines', value: 5, detail: '5 activas' }, { metric: 'Company Skills', value: 92, detail: 'Atribuídas a agentes' }, ], }, ], transversal: [ { name: 'RAG/Contexto', status: 'active', detail: 'CARL v2 (7 domínios) + memory-supabase' }, { name: 'Anti-alucinação', status: 'active', detail: 'Regra factual <80% confiança' }, { name: 'Knowledge Graph', status: 'active', detail: 'LightRAG v1.4.13 (1612 docs)' }, { name: 'Auto-melhoria', status: 'warning', detail: 'Corrections hook + evals (3 cenários)' }, { name: 'Design', status: 'active', detail: 'design.json + PROC-Design-Brief' }, ], carl: { domains: ['GLOBAL', 'CRM', 'DEVELOPMENT', 'WORDPRESS', 'HUB', 'INFRASTRUCTURE', 'QUALITY', 'SKILLS'], total_rules: 45, }, notebooks: 58, last_updated: '2026-04-06', } }