import { fetchAPI, type MCPStatusResponse, type ModelUsageResponse, type SystemConfig, type SystemHealth, type SystemStats } from './index'; export async function getSystemStats(): Promise { return fetchAPI('/status/stats'); } export async function getSystemConfig(): Promise { return fetchAPI('/status/config'); } export async function getSystemHealth(): Promise { return fetchAPI('/status/health'); } /** Passive read: current connection status + cumulative token usage for all 4 AI model roles. */ export async function getModelUsage(): Promise { return fetchAPI('/status/models'); } /** Active check: sends one minimal request to each enabled model, then returns fresh statuses. */ export async function pingModelConnections(): Promise { return fetchAPI('/status/models/ping', { method: 'POST' }); } /** MCP endpoint config, advertised tools, and per-tool call counters. */ export async function getMCPStatus(): Promise { return fetchAPI('/status/mcp'); } export type { MCPStatusResponse, ModelUsageResponse, SystemConfig, SystemHealth, SystemStats };