MCPcopy Create free account
hub / github.com/anomalyco/opencode / envValue

Function envValue

packages/llm/script/setup-recording-env.ts:349–349  ·  view source on GitHub ↗
(env: Env, names: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

347 Object.fromEntries(Object.entries(process.env).filter((entry): entry is [string, string] => entry[1] !== undefined))
348
349const envValue = (env: Env, names: ReadonlyArray<string>) => names.map((name) => env[name]).find(Boolean) ?? ""
350
351const envWithValues = (fileEnv: Env, values: Env): Env => ({
352 ...processEnv(),

Callers 1

Calls 1

findMethod · 0.65

Tested by

no test coverage detected