@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
29 lines • 765 B
TypeScript
/**
* Health check middleware for HTTP servers
*/
/**
* Health check middleware for HTTP servers
*/
export declare function healthCheckMiddleware(healthChecks: {
full: () => Promise<{
status: 'healthy' | 'degraded' | 'unhealthy';
timestamp: string;
score: number;
checks: Array<{
name: string;
status: 'pass' | 'fail' | 'warn';
score: number;
}>;
}>;
ready: () => Promise<boolean>;
alive: () => boolean;
metrics: () => unknown;
}): (req: {
path: string;
}, res: {
status: (code: number) => {
json: (data: unknown) => void;
};
json: (data: unknown) => void;
}, next: () => void) => Promise<void>;
//# sourceMappingURL=http-middleware.d.ts.map