# Functions
GetOrGenerateRunId returns the runId if it is not nil, otherwise it reads the .run.id file and returns the value, or creates it with a new UUID, saves to file and returns the value.
RemoveLocalRunId removes the .run.id file if it exists and the runId contains 'local' substring indicating local execution.