GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claude-code-source-code/src/bridge/bridgeConfig.ts at main · francisk/claude-code-source-code Expand file tree/ Copy pathbridgeConfig.tsMore file actions 48 lines (43 loc) · 1.66 KB / Copy pathbridgeConfig.tsFile metadata and controls48 lines (43 loc) · 1.66 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 /** * Shared bridge auth/URL resolution. Consolidates the ant-only * CLAUDE_BRIDGE_* dev overrides that were previously copy-pasted across * a dozen files — inboundAttachments, BriefTool/upload, bridgeMain, * initReplBridge, remoteBridgeCore, daemon workers, /rename, * /remote-control. * * Two layers: *Override() returns the ant-only env var (or undefined); * the non-Override versions fall through to the real OAuth store/config. * Callers that compose with a different auth source (e.g. daemon workers * using IPC auth) use the Override getters directly. */ import { getOauthConfig } from '../constants/oauth.js' import { getClaudeAIOAuthTokens } from '../utils/auth.js' /** Ant-only dev override: CLAUDE_BRIDGE_OAUTH_TOKEN, else undefined. */ export function getBridgeTokenOverride(): string | undefined { return ( (process.env.USER_TYPE === 'ant' && process.env.CLAUDE_BRIDGE_OAUTH_TOKEN) || undefined ) } /** Ant-only dev override: CLAUDE_BRIDGE_BASE_URL, else undefined. */ export function getBridgeBaseUrlOverride(): string | undefined { return ( (process.env.USER_TYPE === 'ant' && process.env.CLAUDE_BRIDGE_BASE_URL) || undefined ) } /** * Access token for bridge API calls: dev override first, then the OAuth * keychain. Undefined means "not logged in". */ export function getBridgeAccessToken(): string | undefined { return getBridgeTokenOverride() ?? getClaudeAIOAuthTokens()?.accessToken } /** * Base URL for bridge API calls: dev override first, then the production * OAuth config. Always returns a URL. */ export function getBridgeBaseUrl(): string { return getBridgeBaseUrlOverride() ?? getOauthConfig().BASE_API_URL } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |