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; referencesVITE_CUSTOM_API_,SetSUFFIX_PATTERN— exported const at line 12; referencesSetMAX_SUFFIX_LENGTH— exported const at line 13; referencesSetFORBIDDEN_CUSTOM_PARAM_KEYS— const at line 14; referencesSetcachedCustomModels— let at line 17CustomModelEnvConfig— exported interface at line 24ValidatedCustomModelEnvConfig— exported interface at line 43ValidationResult— exported interface at line 61validateCustomModelConfig— exported function at line 75; referencespush,test,URL,includesresult— const at line 76url— const at line 105; referencesURL,includes,pushparseCustomModelParams— function at line 124; referencesparse,isArray,warn,pushparsed— const at line 126; referencesparse,isArray,warnsanitizedParams— const at line 133removedKeys— const at line 134; referencespushparseCustomModelHeaders— function at line 156; referencesparse,warn,validateCustomRequestHeaders,join,normalizeCustomRequestHeadersparsed— const at line 158; referencesparse,warnvalidation— const at line 165; referencesvalidateCustomRequestHeaders,join,warndetails— const at line 167; referencesjoin,warn,normalizeCustomRequestHeadersisBrowser— exported const at line 182isDevelopment— exported function at line 194; referencesgetEnvVarlocalDev— const at line 196; referencesgetEnvVar,logisRunningInElectron— exported function at line 205; referencesgetEnvVar,logplatformEnv— const at line 211; referencesgetEnvVar,loghasElectronAPI— const at line 218; referencesloghasValidElectronProcess— const at line 225; referenceslogisElectronApiReady— exported function at line 242; referencesisRunningInElectron,logwindow_any— const at line 247; referencesloghasElectronAPI— const at line 248; referencesloghasPreferenceApi— const at line 249; referenceslogwaitForElectronApi— exported function at line 265; referencesPromise,isElectronApiReady,log,resolve,now,setInterval,clearInterval,warnstartTime— const at line 275; referencesnow,setInterval,isElectronApiReady,clearInterval,log,resolve,warncheckInterval— const at line 276; referencessetInterval,isElectronApiReady,clearInterval,log,now,resolve,warngetEnvVar— exported const at line 294; referencesreplace,String,getDefaultEnvVarruntimeKey— const at line 298; referencesreplace,Stringvalue— const at line 299; referencesStringvalue— const at line 315defaultValue— const at line 323; referencesgetDefaultEnvVar,entries,String,warn,log,test,validateCustomModelConfig,parseCustomModelParams,parseCustomModelHeaders,error,keysscanCustomModelEnvVars— exported function at line 336; referencesentries,String,warn,log,test,validateCustomModelConfig,parseCustomModelParams,parseCustomModelHeaders,error,keyscustomModels— const at line 341mergedEnv— const at line 344customApiPattern— const at line 383; referencesentries,test,warnmatch— const at line 390; referencestest,warnvalidModels— const at line 437validation— const at line 439; referencesvalidateCustomModelConfig,parseCustomModelParams,parseCustomModelHeaders,warn,errorvalidatedConfig— const at line 442parsedParams— const at line 450; referencesparseCustomModelParamsparsedHeaders— const at line 457; referencesparseCustomModelHeadersclearCustomModelEnvCache— exported function at line 503; referenceslog
Imported modules
./default-env./custom-request-headers
File-level call references
VITE_CUSTOM_API_— line 11Set— line 14push— line 84test— line 86URL— line 105includes— line 106parse— line 126isArray— line 128warn— line 129validateCustomRequestHeaders— line 165join— line 167normalizeCustomRequestHeaders— line 172getEnvVar— line 196log— line 213isRunningInElectron— line 243Promise— line 266isElectronApiReady— line 268resolve— line 270now— line 275setInterval— line 276clearInterval— line 278replace— line 298String— line 301getDefaultEnvVar— line 323entries— line 351validateCustomModelConfig— line 439parseCustomModelParams— line 450parseCustomModelHeaders— line 457error— line 473keys— line 487
Source: packages/core/src/utils/environment.ts