Scores in narration lines get bold green (the key fact, previously lost in all-white lines); paths stay cyan
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9eb1f7e58b
commit
b8ff031be7
@ -224,6 +224,14 @@ def _narration(msg: str) -> str:
|
|||||||
icon = '📝 '
|
icon = '📝 '
|
||||||
elif 'endpoint ok' in m:
|
elif 'endpoint ok' in m:
|
||||||
icon = '🔗 '
|
icon = '🔗 '
|
||||||
|
# THE key fact: the score in 'scoring complete · <metric> <pct>%'
|
||||||
|
# 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 '->'
|
# highlight any trailing path after '->'
|
||||||
if '-> ' in msg:
|
if '-> ' in msg:
|
||||||
head, _, tail = msg.partition('-> ')
|
head, _, tail = msg.partition('-> ')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user