cp.nvim/scrapers
Barrett Ruth 397576ad93
fix(cses): add token fast path to login and improve error surfacing
Problem: `login()` always ran the full web login flow even with a
valid cached token, prompting the user unnecessarily. Submit errors
only checked `message`, missing `error` field.

Solution: check the cached token via `_check_token` at the start of
`login()`; return immediately if valid. Error body now checks
`body.get("error") or body.get("message")` before falling back to
raw text.
2026-03-07 02:14:54 -05:00
..
__init__.py lol 2025-09-24 21:23:06 -04:00
atcoder.py fix: codechef submit fixes and atcoder cleanup (#355) 2026-03-06 23:40:12 -05:00
base.py feat: validate credentials on :CP <platform> login (#310) 2026-03-05 15:12:09 -05:00
codechef.py fix: codechef submit fixes and atcoder cleanup (#355) 2026-03-06 23:40:12 -05:00
codeforces.py fix(login): remove cookie fast-path from login subcommand (#344) 2026-03-06 17:53:22 -05:00
cses.py fix(cses): add token fast path to login and improve error surfacing 2026-03-07 02:14:54 -05:00
kattis.py fix: expand language IDs, fix AtCoder submit, normalize logging (#353) 2026-03-06 21:35:13 -05:00
language_ids.py feat(codechef): implement full CodeChef support (#354) 2026-03-06 23:10:44 -05:00
models.py feat: race countdown support and language version selection (#346) 2026-03-06 18:18:21 -05:00
timeouts.py fix: codechef submit fixes and atcoder cleanup (#355) 2026-03-06 23:40:12 -05:00
usaco.py feat: race countdown support and language version selection (#346) 2026-03-06 18:18:21 -05:00