/**
 * Nexus Prime — Machine Efficiency Types
 */
export const DEFAULT_LIMITS = {
    maxWorktreesPerWorkspace: 5,
    maxWorktreesGlobal: 10,
    // Each connected client (browser tab, MCP adapter, CLI watch) holds one SSE
    // listener. Real installs run 2-4 MCP clients (Claude Code, Codex, Cursor)
    // plus 1+ browser tabs and bursty hot-reload reconnects, so the cap must be
    // generous. Override with NEXUS_DASHBOARD_MAX_LISTENERS.
    maxDashboardListeners: parseInt(process.env.NEXUS_DASHBOARD_MAX_LISTENERS || '32', 10),
    maxCacheSizeMB: 256,
    worktreeIdleTimeoutMs: 30 * 60 * 1000, // 30 minutes
    dashboardInactivePanelTimeoutMs: 5 * 60 * 1000, // 5 minutes
    idlePollingIntervalMs: 60 * 1000, // 60 seconds
    proofCacheTTLMs: 60 * 60 * 1000, // 1 hour
    graphCacheTTLMs: 30 * 60 * 1000, // 30 minutes
    embeddingCacheTTLMs: 2 * 60 * 60 * 1000, // 2 hours
};
