mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 08:36:25 +00:00
parseIntFlag used bare parseInt, so --jobage 0.5 truncated to 0, failed the jobage > 0 guard in search.ts, and posted_within_days was silently omitted from the outbound request while the CLI exited 0. Numeric flags now accept whole numbers >= 1 only, mirroring the Danish CLIs' z.coerce.number().int().min(1) contract, and reject everything else with the stderr-JSON BAD_ARG error. Five new validation cases, each verified to fail on the unfixed code.