MCPcopy Create free account
hub / github.com/Noumena-Network/code / getRemoteSessionEnvironmentVariables

Function getRemoteSessionEnvironmentVariables

src/utils/teleport.tsx:85–99  ·  view source on GitHub ↗
(
  overrides?: Record<string, string>,
)

Source from the content-addressed store, hash-verified

83] as const;
84
85export 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
101export function getRemoteSessionEnvironmentVariablesForProviderMode(
102 overrides: Record<string, string> | undefined,

Calls

no outgoing calls

Tested by

no test coverage detected