vps-health-api/__tests__
le king fu c888f7c633
Some checks are pending
CI / verification (pull_request) Successful in 28s
CI / verification (push) Waiting to run
fix(agent): take the scan threshold from the open days, key maps without prototype
The threshold came from the most recent frozen key: a frozen day in the
future, or a gap in the frozen run, pushed it past open days whose files
were then never read, and the agent would have frozen them empty for good.
It is now the oldest open day of the window (the same day as before for the
agent's contiguous frozen prefix).

Project, model and day maps are now Object.create(null): a project named
__proto__ or constructor wrote NaN counters onto Object.prototype and
dropped out of the top.

Resolves #49

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 15:25:43 -04:00
..
fixtures/claude-usage/projects/-home-tester-claude-code-alpha feat(agent): aggregate Claude usage from local transcripts 2026-10-04 09:17:56 -04:00
agent-claude-usage.test.js fix(agent): take the scan threshold from the open days, key maps without prototype 2026-10-04 15:25:43 -04:00
agent.test.js feat(agent): push workstation metrics to /hosts/<id> from cron 2026-08-16 12:21:59 -04:00
auth.test.js feat(claude-usage): add POST and GET /claude-usage behind a third token kind 2026-10-04 09:16:05 -04:00
ci.test.js test(ci): pin the two ends of the port range and the end anchor (#46) 2026-10-02 14:15:03 -04:00
claude-usage.test.js test(claude-usage): cover the routes, the sanitizer and the new write surface 2026-10-04 09:16:11 -04:00
findings.test.js feat(defenseurs): add GET /defenseurs/findings?project=X route 2026-05-12 20:56:56 -04:00
health.test.js refactor: extract CPU/RAM/disk collection into metrics.js 2026-08-16 11:30:03 -04:00
hosts.test.js test(hosts): pin the symlink guard and the regex anchor of the temp sweep (#38) 2026-10-01 18:10:49 -04:00
state.test.js feat(defenseurs): serve the Sergent's findings state at GET /defenseurs/state 2026-09-24 20:42:20 -04:00
writes.test.js test(claude-usage): cover the routes, the sanitizer and the new write surface 2026-10-04 09:16:11 -04:00