UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

44 lines 1.1 kB
/** * Global instances for health monitoring */ import { globalHealthMonitor } from './core/health-monitor.js'; /** * Quick health check functions */ export const healthChecks = { /** * Quick health check - returns status only */ quick: async () => { const result = await globalHealthMonitor.runHealthCheck(); return result.status; }, /** * Full health check with details */ full: () => globalHealthMonitor.runHealthCheck(), /** * System metrics snapshot */ metrics: () => globalHealthMonitor.getSystemMetrics(), /** * Check if system is ready */ ready: async () => { const result = await globalHealthMonitor.runHealthCheck(); return result.status === 'healthy'; }, /** * Check if system is alive (basic check) */ alive: () => { try { const metrics = globalHealthMonitor.getSystemMetrics(); return metrics.process.uptime > 0; } catch { return false; } }, }; //# sourceMappingURL=instances.js.map