/**
 * Shortcut infrastructure constants.
 *
 * Toggle ACTIVE_ENV between 'prod' and 'staging' to switch environments.
 * Every env var can still be overridden via process.env.
 */
const ACTIVE_ENV = 'prod';
const ENV = {
    prod: {
        llmProxyUrl: 'https://agent.shortcut.ai',
        authUrl: 'https://auth.shortcut.ai',
        apiUrl: 'https://api.shortcut.ai',
        logIngestUrl: 'https://analytics.shortcut.ai'
    },
    staging: {
        llmProxyUrl: 'https://staging-agent.shortcut.ai',
        authUrl: 'https://auth-staging.shortcut.ai',
        apiUrl: 'https://api-staging.shortcut.ai',
        logIngestUrl: 'https://analytics-staging.shortcut.ai'
    }
};
function getFirstDefinedEnv(...names) {
    for (const name of names) {
        const value = process.env[name];
        if (value !== undefined) {
            return value;
        }
    }
    return undefined;
}
// -- Shortcut infrastructure URLs ------------------------------------------
/** LLM proxy routes LLM calls through the Python backend. */
export const SHORTCUT_LLM_PROXY_URL = process.env.SHORTCUT_LLM_PROXY_URL ?? ENV[ACTIVE_ENV].llmProxyUrl;
/** Auth service for device code OAuth flow and token refresh. */
export const SHORTCUT_AUTH_URL = process.env.SHORTCUT_AUTH_URL ?? ENV[ACTIVE_ENV].authUrl;
/** API service for credit balance and billing. */
export const SHORTCUT_API_URL = process.env.SHORTCUT_API_URL ?? ENV[ACTIVE_ENV].apiUrl;
/** Log ingest service for client-side observability. */
export const NEXT_PUBLIC_LOG_INGEST_URL = process.env.NEXT_PUBLIC_LOG_INGEST_URL ?? ENV[ACTIVE_ENV].logIngestUrl;
/** Directory for fork trace review artifacts. Env override is mainly for manual dumps. */
export function getShortcutForkTraceDir() {
    return process.env.SHORTCUT_FORK_TRACE_DIR;
}
/** Optional TUI render trace destination or enable flag. */
export function getShortcutTuiRenderTraceSetting() {
    return getFirstDefinedEnv('SHORTCUT_TUI_RENDER_TRACE', 'PI_TUI_RENDER_TRACE');
}
/** Optional TUI render trace full-text flag. */
export function getShortcutTuiRenderTraceFullSetting() {
    return getFirstDefinedEnv('SHORTCUT_TUI_RENDER_TRACE_FULL', 'PI_TUI_RENDER_TRACE_FULL');
}
// -- Dev mode --------------------------------------------------------------
// Dev mode is now a settings.json flag (settingsManager.getDevMode()), not an env var.
// -- Collaboration ---------------------------------------------------------
/** WebSocket URL for the collab signaling server. */
export const COLLAB_SERVER_URL = process.env.COLLAB_SERVER_URL ?? 'ws://localhost:9400';
// -- uv (Python toolchain for macOS) --------------------------------------
/** uv release version pinned to a known-good Astral release. */
export const UV_VERSION = '0.7.2';
/** Python version installed via uv on macOS. */
export const UV_PYTHON_VERSION = '3.13';
/** Packages installed into the uv-managed venv on macOS. */
export const UV_PIP_PACKAGES = ['openpyxl', 'httpx', 'playwright'];
//# sourceMappingURL=constants.js.map