MCPcopy Create free account
hub / github.com/Noumena-Network/code / withoutCcdSpawnEnvKeys

Function withoutCcdSpawnEnvKeys

src/utils/managedEnv.ts:76–85  ·  view source on GitHub ↗
(
  env: Record<string, string> | undefined,
)

Source from the content-addressed store, hash-verified

74let ccdSpawnEnvKeys: Set<string> | null | undefined
75
76function withoutCcdSpawnEnvKeys(
77 env: Record<string, string> | undefined,
78): Record<string, string> {
79 if (!env || !ccdSpawnEnvKeys) return env || {}
80 const out: Record<string, string> = {}
81 for (const [key, value] of Object.entries(env)) {
82 if (!ccdSpawnEnvKeys.has(key)) out[key] = value
83 }
84 return out
85}
86
87const PROJECT_SETTINGS_OPENAI_BYOK_ENV_VARS = new Set([
88 'OPENAI_API_KEY',

Callers 1

filterSettingsEnvFunction · 0.85

Calls 2

entriesMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected