import { v as validateAuth } from './auth-DuunT7Cg.js';
import { i as isViewerPresent } from './presence-store-Bx_g0-Gd.js';
import { g as getEventsClientCount } from './guest-registry-Dxvd7p-g.js';
import './super-session-handler-DPyxFgmz.js';
import { j as json } from './index-lhTMmBNn.js';
import './shared-server-DaWdgxVh.js';
import 'crypto';
import 'path';
import './registry-D4J_CuzW.js';
import './qwen-reader-DGfUbKaJ.js';
import 'fs';
import 'os';
import 'better-sqlite3';
import './coordinator-DMU_ADXf.js';

function getConnectedClientCount() {
  return getEventsClientCount();
}
const GET = ({ request }) => {
  const authError = validateAuth(request);
  if (authError) {
    return authError;
  }
  return json({
    connectedClients: getConnectedClientCount(),
    viewerPresent: isViewerPresent()
  });
};

export { GET };
//# sourceMappingURL=_server.ts-COpXw9HU.js.map
