diff --git a/evalharness/cli.py b/evalharness/cli.py index 0ffc363..08e0b45 100644 --- a/evalharness/cli.py +++ b/evalharness/cli.py @@ -224,6 +224,14 @@ def _narration(msg: str) -> str: icon = '๐Ÿ“ ' elif 'endpoint ok' in m: icon = '๐Ÿ”— ' + # THE key fact: the score in 'scoring complete ยท %' + # gets bold green -- it is what the eye should find first + import re as _re1 + + m = _re1.search(r'(ยท [a-zA-Z_@]+ [0-9.]+%)$', msg) + if m: + return (f'{icon}{msg[:m.start()]}' + f'[bold green]{m.group(1)}[/bold green]') # highlight any trailing path after '->' if '-> ' in msg: head, _, tail = msg.partition('-> ')