()
| 133 | * plus any provider/config env vars that are set in the current process. |
| 134 | */ |
| 135 | export function buildInheritedEnvVars(): string { |
| 136 | const envVars = ['CLAUDECODE=1', 'CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1'] |
| 137 | |
| 138 | for (const key of TEAMMATE_ENV_VARS) { |
| 139 | const value = process.env[key] |
| 140 | if (value !== undefined && value !== '') { |
| 141 | envVars.push(`${key}=${quote([value])}`) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | return envVars.join(' ') |
| 146 | } |
| 147 |
no test coverage detected