Compile a list of blocks into a Claude-optimized structured XML prompt.
Takes the JSON returned by decompose_prompt (or manually crafted blocks)
and produces a ready-to-use XML prompt with a token estimate.
Args:
blocks_json: JSON-stringified list of blocks.
Each block: {"type": "role|objective|...", "content": "...",
"label": "...", "description": "...", "summary": ""}
Returns:
The compiled XML prompt with token estimate.
Connector