STATE-WP-0069: meter /progress workstream_id and fix MCP task queries
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s

Wire hub-core progress legacy-meter hook for GET /progress/?workstream_id.
MCP list_tasks, list_blocked_tasks, and list_human_interventions now call
REST with workplan_id only so internal clients do not inflate legacy usage.
This commit is contained in:
tegwick 2026-07-08 22:29:21 +02:00
parent 0292be0787
commit 4934655a67
5 changed files with 52 additions and 7 deletions

View file

@ -517,7 +517,7 @@ def list_tasks(
if not parent_id:
return _json_result(_mcp_error("list_tasks", "workplan_id is required"))
return json.dumps(
_get("/tasks", {"workplan_id": parent_id, "workstream_id": parent_id, "status": status}),
_get("/tasks", {"workplan_id": parent_id, "status": status}),
indent=2,
)
@ -535,7 +535,7 @@ def list_blocked_tasks(
"""
parent_id = workplan_id or workstream_id
return json.dumps(
_get("/tasks", {"status": "wait", "workplan_id": parent_id, "workstream_id": parent_id}),
_get("/tasks", {"status": "wait", "workplan_id": parent_id}),
indent=2,
)
@ -1040,7 +1040,7 @@ def list_human_interventions(
return json.dumps(
_get(
"/tasks",
{"needs_human": "true", "workplan_id": parent_id, "workstream_id": parent_id},
{"needs_human": "true", "workplan_id": parent_id},
),
indent=2,
)