STEP_DETECTION_PROMPT = """
You are an expert technical writer. You are given a list of events captured during a
software recording session.
Your goal is to group these events into logical "steps" for a tutorial.

Each step should have:
- A clear, concise title.
- A brief description of what was done.
- The start and end timestamps (ms).
- The list of relevant events included in that step.

Events:
{events_json}

Output the steps in the following JSON format:
{{
  "steps": [
    {{
      "id": 1,
      "title": "...",
      "description": "...",
      "start_ms": 123,
      "end_ms": 456,
      "events": [...]
    }}
  ],
  "sections": [
    {{ "title": "Overview", "step_ids": [1, 2] }}
  ]
}}
"""
