Approval widget for HITL - using standard Textual patterns.
Get the renderer for a tool by name.
Check a URL for suspicious Unicode and domain spoofing patterns.
Detect deceptive or hidden Unicode code points in text.
Join safety warnings into a display string with overflow indicator.
Flatten nested dict/list structures into key-path/string pairs.
Return whether a key path suggests URL-like content.
Render hidden Unicode characters as explicit markers.
Example output: abc<U+202E RIGHT-TO-LEFT OVERRIDE>def.
Remove known dangerous/invisible Unicode characters from text.
Summarize Unicode issues for warning messages.
Deduplicates by code point. When more than max_items unique entries exist,
the summary is truncated with a +N more entries suffix.
Approval menu using standard Textual patterns.
Key design decisions (following mistral-vibe reference):