fix(hooks): expose mma_tier_usage in /api/gui/mma_status; install pytest-timeout

- api_hooks.py: add mma_tier_usage to get_mma_status() response
- pytest-timeout 2.4.0 installed so mark.timeout(300) is enforced in CI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 14:26:03 -05:00
parent 63fa181192
commit 5f661f76b4
2 changed files with 2 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ class HookHandler(BaseHTTPRequestHandler):
result["tracks"] = getattr(app, "tracks", []) result["tracks"] = getattr(app, "tracks", [])
result["proposed_tracks"] = getattr(app, "proposed_tracks", []) result["proposed_tracks"] = getattr(app, "proposed_tracks", [])
result["mma_streams"] = getattr(app, "mma_streams", {}) result["mma_streams"] = getattr(app, "mma_streams", {})
result["mma_tier_usage"] = getattr(app, "mma_tier_usage", {})
finally: finally:
event.set() event.set()
with app._pending_gui_tasks_lock: with app._pending_gui_tasks_lock:

View File

@@ -15,6 +15,7 @@ dependencies = [
"tree-sitter>=0.25.2", "tree-sitter>=0.25.2",
"tree-sitter-python>=0.25.0", "tree-sitter-python>=0.25.0",
"mcp>=1.0.0", "mcp>=1.0.0",
"pytest-timeout>=2.4.0",
] ]
[dependency-groups] [dependency-groups]