MCPcopy Index your code
hub / github.com/deepnote/deepnote / resolveEnvVars

Function resolveEnvVars

packages/runtime-core/src/agent-handler.ts:31–38  ·  view source on GitHub ↗
(env: Record<string, string> | undefined)

Source from the content-addressed store, hash-verified

29}
30
31export function resolveEnvVars(env: Record<string, string> | undefined): Record<string, string> | undefined {
32 if (!env) return undefined
33 const resolved: Record<string, string> = {}
34 for (const [key, value] of Object.entries(env)) {
35 resolved[key] = value.replace(/\$\{(\w+)\}/g, (_, name) => process.env[name] ?? '')
36 }
37 return resolved
38}
39
40export function serializeNotebookContext(
41 file: DeepnoteFile,

Callers 2

executeAgentBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected