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

Function processEnv

packages/llm/script/setup-recording-env.ts:346–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344const promptVars = (provider: Provider) => provider.vars.filter((item) => !item.optional || item.secret === false)
345
346const processEnv = (): Env =>
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

Callers 1

envWithValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected