import socket # Mock data and helper functions WORKFLOW_SVG_DIAGRAM = """ Step 1: Plan Step 2: Execute Step 3: Review """ def find_free_port(): """ Finds a free port on the local machine. """ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind(("", 0)) return s.getsockname()[1]