mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-10 19:27:04 +01:00
The enforcer now imports the Steam/launcher/counted-process scan from leisure_watch.procscan (v0.1.0, shared with the leisure watcher) and drops its own copies (_playtime_procs, _counted_procs, _total_block_launchers and enforcer's two scanners). Every counted-process read passes config.CONFIG_FILE explicitly, as before. Each tick also bills a shadow leisure budget beside the enforced one, from the same incoming stamp and delta clamp, before accumulate: paused (held gatelock grab or i3lock) -> shadow_paused_seconds; else a qualifying game, a "leisure" now.json, or an untrusted/missing now.json (fail closed) bills shadow_seconds once, split over shadow_per_source. shadow_budget_seconds is earned_time.resolve(leisure=True) from the same answers, held as a same-day high-water mark. Not billed under a total block. Shadow verdict changes go to budget.jsonl as shadow_change (the live game view skips them); /api/budget and MCP get_gaming_time carry a "shadow" block. Enforced fields, cutoff, warnings and existing log records are unchanged. Also fixes two tests that assumed earned_time < 0.14 internals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dsh4Znwh2KnC7q6vbGpX1N
25 lines
626 B
Plaintext
25 lines
626 B
Plaintext
# Steam Backlog Enforcer — runtime + development dependencies
|
|
# Install with: pip install -r requirements.txt
|
|
|
|
aiohttp==3.14.5
|
|
bandit==1.9.4
|
|
codespell==2.4.3
|
|
coverage==7.16.2
|
|
earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.14.0#subdirectory=earned_time
|
|
howlongtobeatpy==1.0.24
|
|
leisure-watch @ git+https://github.com/kuhyx/leisure-watch@leisure-watch-v0.1.0
|
|
mcp==2.3.0
|
|
mypy==2.4.0
|
|
pre-commit==4.7.0
|
|
pylint==4.1.3
|
|
pytest==9.1.1
|
|
pytest-cov==7.1.0
|
|
pytest-randomly==5.0.0
|
|
pytest-sugar==1.1.1
|
|
pytest-timeout==2.4.0
|
|
pytest-xdist==3.8.0
|
|
requests==2.34.2
|
|
ruff==0.17.1
|
|
types-requests==2.33.0.20261006
|
|
websockets==17.2
|