()
| 311 | |
| 312 | |
| 313 | def state_dir() -> Path: |
| 314 | state_dir = os.environ.get("CODEX_SECURITY_STATE_DIR") |
| 315 | if state_dir: |
| 316 | return Path(state_dir).expanduser().resolve() |
| 317 | codex_home = Path(os.environ.get("CODEX_HOME", "~/.codex")).expanduser() |
| 318 | return codex_home / "state" / "plugins" / "codex-security" |
| 319 | |
| 320 | |
| 321 | def database_path() -> Path: |
no test coverage detected