MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / withoutCcdSpawnEnvKeys

Function withoutCcdSpawnEnvKeys

source code/utils/managedEnv.ts:73–82  ·  view source on GitHub ↗
(
  env: Record<string, string> | undefined,
)

Source from the content-addressed store, hash-verified

71let ccdSpawnEnvKeys: Set<string> | null | undefined
72
73function withoutCcdSpawnEnvKeys(
74 env: Record<string, string> | undefined,
75): Record<string, string> {
76 if (!env || !ccdSpawnEnvKeys) return env || {}
77 const out: Record<string, string> = {}
78 for (const [key, value] of Object.entries(env)) {
79 if (!ccdSpawnEnvKeys.has(key)) out[key] = value
80 }
81 return out
82}
83
84/**
85 * Compose the strip filters applied to every settings-sourced env object.

Callers 1

filterSettingsEnvFunction · 0.85

Calls 2

entriesMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected