( env: Record<string, string> | undefined, )
| 74 | let ccdSpawnEnvKeys: Set<string> | null | undefined |
| 75 | |
| 76 | function 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 | |
| 87 | const PROJECT_SETTINGS_OPENAI_BYOK_ENV_VARS = new Set([ |
| 88 | 'OPENAI_API_KEY', |
no test coverage detected