mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
contentFailure called every render under 25 tokens a failure, which made exit 2 claim a terse page was JavaScript-only, gated, or challenged when it had simply arrived terse. The verdict now needs evidence: nothing extracted is empty whatever the page weighed, and a short render is only a failure when the markup behind it was far too big to have carried only that. A status endpoint or a one-line answer now exits 0, script-only shells and consent walls still exit 2, and raw applies the same rule before refusing. The --json empty field follows the same policy, so callers keep a machine-stable distinction between empty and merely short. Fixes #29