Local scratch dir for staging `docker cp` transfers. Defaults to the system temp dir. Override with CODECLASH_TMPDIR (e.g. on AWS Batch, where the default temp dir misbehaves).
()
| 12 | |
| 13 | # Secret env vars whose values must never be recorded in command output / trajectories. |
| 14 | _SECRET_ENV_VARS = ("GITHUB_TOKEN", "LLAMA_API_KEY") |
| 15 | |
| 16 | |
| 17 | def redact_secrets(text: str | None) -> str | None: |
| 18 | """Replace known secret values with a placeholder so they never land in recorded output.""" |
| 19 | if not text: |
| 20 | return text |
| 21 | for var in _SECRET_ENV_VARS: |
| 22 | val = os.getenv(var) |
| 23 | if val and val in text: |
no outgoing calls
no test coverage detected