( overrides?: Record<string, string>, )
| 83 | ] as const; |
| 84 | |
| 85 | export function getRemoteSessionEnvironmentVariables( |
| 86 | overrides?: Record<string, string>, |
| 87 | ): Record<string, string> { |
| 88 | const envVars: Record<string, string> = {}; |
| 89 | for (const key of REMOTE_SESSION_INHERITED_ENV_VARS) { |
| 90 | const value = process.env[key]; |
| 91 | if (value !== undefined && value !== '') { |
| 92 | envVars[key] = value; |
| 93 | } |
| 94 | } |
| 95 | return { |
| 96 | ...envVars, |
| 97 | ...(overrides ?? {}), |
| 98 | }; |
| 99 | } |
| 100 | |
| 101 | export function getRemoteSessionEnvironmentVariablesForProviderMode( |
| 102 | overrides: Record<string, string> | undefined, |
no outgoing calls
no test coverage detected