MCPcopy Index your code
hub / github.com/codeaashu/claude-code / withoutCcdSpawnEnvKeys

Function withoutCcdSpawnEnvKeys

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

Source from the content-addressed store, hash-verified

69let ccdSpawnEnvKeys: Set<string> | null | undefined
70
71function withoutCcdSpawnEnvKeys(
72 env: Record<string, string> | undefined,
73): Record<string, string> {
74 if (!env || !ccdSpawnEnvKeys) return env || {}
75 const out: Record<string, string> = {}
76 for (const [key, value] of Object.entries(env)) {
77 if (!ccdSpawnEnvKeys.has(key)) out[key] = value
78 }
79 return out
80}
81
82/**
83 * 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