Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

409 B
Raw Blame
import { snapshotEnvironment } from "../process/snapshotEnvironment.js";

/** Capture the selected provider environment at server construction time. */
export const captureProviderEnvironment = (
  providerEnvironment: Readonly<NodeJS.ProcessEnv> | undefined,
  serverEnvironment: Readonly<NodeJS.ProcessEnv>,
): Readonly<NodeJS.ProcessEnv> =>
  snapshotEnvironment(providerEnvironment ?? serverEnvironment);