MCPcopy Index your code
hub / github.com/anomalyco/opencode / envWithValues

Function envWithValues

packages/llm/script/setup-recording-env.ts:351–355  ·  view source on GitHub ↗
(fileEnv: Env, values: Env)

Source from the content-addressed store, hash-verified

349const envValue = (env: Env, names: ReadonlyArray<string>) => names.map((name) => env[name]).find(Boolean) ?? ""
350
351const envWithValues = (fileEnv: Env, values: Env): Env => ({
352 ...processEnv(),
353 ...fileEnv,
354 ...values,
355})
356
357const responseError = Effect.fn("RecordingEnv.responseError")(function* (
358 response: HttpClientResponse.HttpClientResponse,

Callers 1

Calls 1

processEnvFunction · 0.85

Tested by

no test coverage detected