refactor(input): bake codex cli runtime

This commit is contained in:
2025-10-15 17:29:06 -05:00
parent 5cd30ef5f2
commit 6a5ce586eb
5 changed files with 32 additions and 39 deletions

View File

@@ -24,9 +24,11 @@ The watcher lives in `input/Docker/`:
- `templates/ResumeCustomizerPrompt.md.example` ships with default resume-customization instructions. Copy it to `ResumeCustomizerPrompt.md` to override.
- The `.gitignore` in `templates/` keeps local overrides out of version control.
### Codex CLI
- The container image installs the official Codex CLI and expects credentials/configuration from the mounted `~/.codex` directory on the host.
- No additional command-line customization is required; the watcher invokes `codex prompt --input … --output … --format markdown` internally for both passes.
### Key Environment Variables
- `CODEX_COMMAND_TEMPLATE` format string for the resume-customization Codex run (placeholders: `{prompt}`, `{output}`).
- `CODEX_NORMALIZER_COMMAND_TEMPLATE` optional override for the normalization Codex run (defaults to `CODEX_COMMAND_TEMPLATE`).
- `POLL_INTERVAL_SECONDS` watch loop delay (defaults to 5).
- `CODEX_TIMEOUT_SECONDS` wall-clock timeout for each Codex call (defaults to 600).
- `CODEX_CONFIG_DIR` host path to mount as `/home/codex/.codex` (defaults to `${HOME}/.codex` via the wrapper).