c59b53cdc4
feat: add epsilon tolerance for floating-point output comparison
...
Problem: output comparison used exact string equality after whitespace
normalisation, causing correct solutions to fail on problems where
floating-point answers are accepted within a tolerance (e.g. 1e-6).
Solution: add an optional ui.panel.epsilon config value. When set,
actual and expected output are compared token-by-token: numeric tokens
are compared with math.abs(a - b) <= epsilon, non-numeric tokens fall
back to exact string equality. Per-problem epsilon can also be stored
in the cache and takes precedence over the global default.
2026-02-26 22:55:05 -05:00
d3ac300ea0
fix(cache): remove unused logger import
...
Problem: the logger import became unused after replacing the error log
with a silent cache wipe.
Solution: drop the require.
2026-02-22 22:19:51 -05:00
db5bd791f9
fix(cache): invalidate stale cache on version mismatch
...
Problem: after an install or update, the on-disk cache may contain data
written by an older version of the plugin whose format no longer matches
what the current code expects.
Solution: embed a CACHE_VERSION in every saved cache file. On load, if
the stored version is missing or differs from the current one, wipe the
cache and rewrite it. Corrupt (non-decodable) cache files are handled
the same way instead of only logging an error.
2026-02-22 22:19:51 -05:00
Barrett Ruth
96c01bf796
cleanup
2025-11-04 23:47:06 -05:00
Barrett Ruth
aab211902e
feat: multi-test case view
2025-11-04 21:32:40 -05:00
Barrett Ruth
fef73887e4
feat(io): multi-test case view
2025-11-04 08:15:08 -05:00
Barrett Ruth
9d848eba22
feat: improve autocomplete
2025-10-24 01:44:06 -04:00
c0e175d84b
feat(config): open url option
2025-10-12 16:19:02 -04:00
cedcd82367
fix: write interaction into cache
2025-10-05 13:50:14 -04:00
d2bde9bad8
fix(config): better file org
2025-10-04 19:54:53 -04:00
a76d228e3f
feat(doc): update for new config
2025-10-04 19:04:49 -04:00
17b5e0a52b
make cache resilient
2025-10-04 16:15:26 -04:00
3fbbfa9423
normalize scraper behavior
2025-10-04 16:13:04 -04:00
18dbcd43d2
fix(cache): contest override
2025-10-04 12:48:57 -04:00
1520939d4b
some refactors
2025-10-03 14:34:49 -04:00
d9537e72ba
many fixes
2025-10-02 22:35:30 -04:00
1974addbd2
fix(lua): bunch of typing
2025-10-02 14:18:26 -04:00
057b0890c2
fix: remove unused function
2025-10-02 13:56:38 -04:00
91e6fbe455
fix caching
2025-10-02 10:18:29 -04:00
6b8a1e2087
more docs
2025-10-01 21:36:53 -04:00
7eb314b02c
fix caching
2025-10-01 20:21:11 -04:00
e6c09a4897
fix some cachign
2025-10-01 17:08:36 -04:00
b406c0ce4e
fix: synchronous problem fetch
2025-10-01 12:25:07 -04:00
7761c7c759
fix(cache): file state
2025-09-30 21:21:13 -04:00
46cd509747
fix docs and superfluous vim.validate calls
2025-09-30 20:55:29 -04:00
ae2f8b94cf
feat: interactive problem finer-tuning
2025-09-27 10:05:58 -04:00
170021af8e
no more ttl
2025-09-24 20:46:43 -04:00
bcbcc4365f
remove ttl
2025-09-24 20:16:33 -04:00
f3666a30be
fix(ci): lint
2025-09-23 12:28:53 -04:00
8df8c16a72
fix(ci): selene lint
2025-09-23 12:25:53 -04:00
8a9bc7434f
fix: remove comments
2025-09-23 10:22:02 -04:00
e171017ab0
fixup
2025-09-23 09:42:45 -04:00
ba81df2266
fix(cache): expiry
2025-09-22 16:50:14 -04:00
039fad1614
fix(cache): cache contest data indefinitely
2025-09-22 16:32:52 -04:00
78fb4f8f4b
feat(cache): cache clearing, updating and resetting
2025-09-21 15:08:55 -04:00
1b8365265d
fix(ci): unused variables
2025-09-21 11:36:06 -04:00
a3dd6f4e1e
fix(run): foldcolumn
2025-09-19 23:11:12 -04:00
c540ba3050
feat(cache): optimize cache loading
2025-09-19 20:44:45 -04:00
b219633fc1
fix(ci): undefiend variabe;
2025-09-19 20:44:25 -04:00
793063a68e
feat(test_panel): integrate scraped data
2025-09-19 20:41:19 -04:00
bc315818e4
fix(ci): format
2025-09-18 20:04:36 -04:00
fb240fd501
feat: :CP test refactor
2025-09-18 10:20:20 -04:00
c0f6727331
fix(ci): some warnings
2025-09-15 20:09:42 -04:00
f53f4bcbe7
fix(ci): correct typing
2025-09-15 18:37:31 -04:00
e98ced5fda
fix(ci): correct typing
2025-09-15 18:36:57 -04:00
d4fd02499d
fix: revert stylua config
2025-09-15 18:10:35 -04:00
fe4cf2b680
feat(ci): use new stylua config
2025-09-15 18:10:11 -04:00
995f0d66c7
feat: enhance luacats annotations
2025-09-15 11:50:32 -04:00
1ef68a4847
feat: first draft of arbitrary compile mode
2025-09-15 08:11:15 -05:00
ab72ec9559
fix(cache): problem caching
2025-09-14 20:19:42 -05:00