/**
 * Centralized port constants for the SAEEOL server and plugins.
 * All port defaults are defined here to avoid magic numbers across the codebase.
 * Override any port via the corresponding environment variable.
 */

/** Default server port for `saeeol serve` */
export const DEFAULT_SERVER_PORT = 4096

/** OAuth callback port for MCP OAuth flow */
export const DEFAULT_MCP_OAUTH_PORT = 19876

/** OAuth port for Codex plugin */
export const DEFAULT_CODEX_OAUTH_PORT = 1455

/** Resolved server port (env override > default) */
export const SERVER_PORT = parseInt(process.env.SAEEOL_SERVER_PORT || "", 10) || DEFAULT_SERVER_PORT
