(content)
| 202 | return f"Updated {len(CURRENT_TODOS)} tasks" |
| 203 | |
| 204 | def extract_text(content) -> str: |
| 205 | if not isinstance(content, list): |
| 206 | return str(content) |
| 207 | return "\n".join(getattr(b, "text", "") for b in content if getattr(b, "type", None) == "text") |
| 208 | |
| 209 | |
| 210 | # ═══════════════════════════════════════════════════════════ |