(token: Optional[str])
| 51 | |
| 52 | |
| 53 | def _mask_token(token: Optional[str]) -> str: |
| 54 | if not token: |
| 55 | return "" |
| 56 | if len(token) <= 24: |
| 57 | return token |
| 58 | return f"{token[:18]}...{token[-8:]}" |
| 59 | |
| 60 | |
| 61 | def _truncate_text(text: Any, limit: int = 240) -> str: |
no outgoing calls