pprompt-optimizerSource ↗
49 declarations and 30 call references extracted from public source metadata.

Source symbols: packages/core/src/utils/environment.ts

Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.

  • Revision: develop@0c3679511d5c61dcdbb92777e62f315f16d7d378 · 2026-07-18T10:13:54Z
  • Declarations: 49
  • Referenced calls: 30

Declared symbols

  • CUSTOM_API_PATTERN — exported const at line 11; references VITE_CUSTOM_API_, Set
  • SUFFIX_PATTERN — exported const at line 12; references Set
  • MAX_SUFFIX_LENGTH — exported const at line 13; references Set
  • FORBIDDEN_CUSTOM_PARAM_KEYS — const at line 14; references Set
  • cachedCustomModels — let at line 17
  • CustomModelEnvConfig — exported interface at line 24
  • ValidatedCustomModelEnvConfig — exported interface at line 43
  • ValidationResult — exported interface at line 61
  • validateCustomModelConfig — exported function at line 75; references push, test, URL, includes
  • result — const at line 76
  • url — const at line 105; references URL, includes, push
  • parseCustomModelParams — function at line 124; references parse, isArray, warn, push
  • parsed — const at line 126; references parse, isArray, warn
  • sanitizedParams — const at line 133
  • removedKeys — const at line 134; references push
  • parseCustomModelHeaders — function at line 156; references parse, warn, validateCustomRequestHeaders, join, normalizeCustomRequestHeaders
  • parsed — const at line 158; references parse, warn
  • validation — const at line 165; references validateCustomRequestHeaders, join, warn
  • details — const at line 167; references join, warn, normalizeCustomRequestHeaders
  • isBrowser — exported const at line 182
  • isDevelopment — exported function at line 194; references getEnvVar
  • localDev — const at line 196; references getEnvVar, log
  • isRunningInElectron — exported function at line 205; references getEnvVar, log
  • platformEnv — const at line 211; references getEnvVar, log
  • hasElectronAPI — const at line 218; references log
  • hasValidElectronProcess — const at line 225; references log
  • isElectronApiReady — exported function at line 242; references isRunningInElectron, log
  • window_any — const at line 247; references log
  • hasElectronAPI — const at line 248; references log
  • hasPreferenceApi — const at line 249; references log
  • waitForElectronApi — exported function at line 265; references Promise, isElectronApiReady, log, resolve, now, setInterval, clearInterval, warn
  • startTime — const at line 275; references now, setInterval, isElectronApiReady, clearInterval, log, resolve, warn
  • checkInterval — const at line 276; references setInterval, isElectronApiReady, clearInterval, log, now, resolve, warn
  • getEnvVar — exported const at line 294; references replace, String, getDefaultEnvVar
  • runtimeKey — const at line 298; references replace, String
  • value — const at line 299; references String
  • value — const at line 315
  • defaultValue — const at line 323; references getDefaultEnvVar, entries, String, warn, log, test, validateCustomModelConfig, parseCustomModelParams, parseCustomModelHeaders, error, keys
  • scanCustomModelEnvVars — exported function at line 336; references entries, String, warn, log, test, validateCustomModelConfig, parseCustomModelParams, parseCustomModelHeaders, error, keys
  • customModels — const at line 341
  • mergedEnv — const at line 344
  • customApiPattern — const at line 383; references entries, test, warn
  • match — const at line 390; references test, warn
  • validModels — const at line 437
  • validation — const at line 439; references validateCustomModelConfig, parseCustomModelParams, parseCustomModelHeaders, warn, error
  • validatedConfig — const at line 442
  • parsedParams — const at line 450; references parseCustomModelParams
  • parsedHeaders — const at line 457; references parseCustomModelHeaders
  • clearCustomModelEnvCache — exported function at line 503; references log

Imported modules

  • ./default-env
  • ./custom-request-headers

File-level call references


Source: packages/core/src/utils/environment.ts

Generated by smolify with deterministic-repository-import-v2 · 1 source file