cp.nvim/lua/cp
Barrett Ruth 29af2df858
refactor(logger): table-based LogOpts; add sync, on_done to test stream
Problem: `logger.log` positional args were hard to extend, and adding
`sync` support for pre-block notifications required a clean API. Test
stream completion had no user-visible signal. `setup_contest` could
silently overwrite files when a user's `filename` config returned
colliding paths.

Solution: Replace `(msg, level, override)` with `(msg, LogOpts?)` where
`LogOpts` carries `level`, `override`, and `sync`. Sync path calls
`vim.notify` directly; async path uses `vim.schedule` as before. Add
`on_done` callback to `scrape_all_tests`, fired via `on_exit` and
surfaced as a "Loaded N tests." notification. Detect filename collisions
in `proceed()` before touching the filesystem. Migrate all call sites.
2026-03-05 12:54:37 -05:00
..
commands refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
pickers refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
runner refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
ui refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
cache.lua refactor(cache): nest credentials under platform namespace (#293) 2026-03-04 13:37:22 -05:00
config.lua refactor(run): remove I/O view test navigation keymaps 2026-03-04 00:26:22 -05:00
constants.lua refactor(credentials): promote login/logout to top-level actions (#292) 2026-03-04 13:09:32 -05:00
credentials.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
health.lua fix: replace deprecated vim.loop with vim.uv 2026-02-26 22:45:07 -05:00
helpers.lua feat(ui): auto-hide source buffer on close 2025-10-24 14:47:12 -04:00
init.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
log.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
race.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
restore.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
scraper.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
setup.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
state.lua refactor(run): remove I/O view test navigation keymaps 2026-03-04 00:26:22 -05:00
stress.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
submit.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
utils.lua refactor(logger): table-based LogOpts; add sync, on_done to test stream 2026-03-05 12:54:37 -05:00
version.lua fix: refactor 2025-09-21 11:19:00 -04:00