from __future__ import annotations

from utils.agent_plane import build_heartbeat_sections_only


def build_heartbeat_workspace_context(task_name: str, workspace: str) -> str:
    """Backward-compatible wrapper that returns sections-only heartbeat context."""
    wake = task_name if task_name else "standard"
    return build_heartbeat_sections_only(task_name=task_name, workspace=workspace, wake_kind=wake)
