formatConsoleLine method
Console prefix with ISO timestamp and optional [step=N] tag.
Implementation
String formatConsoleLine(String message) {
final ts = DateTime.now().toIso8601String();
final step = currentStepIndex;
if (step == null) return '[$ts] $message';
return '[$ts][step=$step] $message';
}