import sys from loop_claude.effects import Effects # The spelling `YYYY-MM-DD HH:MM:SS` in local time, never UTC, is lilleman's call of 2026-10-28; Effects.local_time renders it. def say(text: str, effects: Effects, *, stdout: bool = False) -> None: """Prints text on stderr, or on stdout where stdout, opening its first line with the machine's local time, so the human sees when it happened. Blank lines before the text stay blank, and only its first line gets the time.""" body = text.lstrip("\n") blanks = text[: len(text) - len(body)] print(f"{blanks}{effects.local_time(effects.now())} {body}", file=sys.stdout if stdout else sys.stderr, flush=True)