import { getHealthStatus } from "../../opencode/health-check.js";
export async function healthRoutes(app) {
    app.get("/healthz", async (_request, _reply) => {
        const opencode = getHealthStatus();
        return {
            status: "ok",
            opencode: {
                healthy: opencode.healthy,
                lastHealthCheck: opencode.lastHealthCheck,
            },
        };
    });
}
//# sourceMappingURL=health.js.map