Command exited with code 0. Command output: 62:def fmt_msg(title: str, body: str, error: bool = False, success: bool = False) -> str: 101:def parse_sim_choice(text: str) -> Optional[str]: 111:def ts() -> str: 115:def log(msg: str) -> None: 119:def atomic_write_json(path: Path, payload: dict[str, Any]) -> None: 135:def load_json(path: Path) -> dict[str, Any]: 140:def normalize_phone(value: str) -> str: 148:def normalize_firebase_url(raw: str) -> str: 165:def parse_int(value: Any, default: int = 0) -> int: 172:def normalize_peer_id_text(value: Any) -> str: 183:def reply_kb(rows: list[list[str]]) -> ReplyKeyboardMarkup: 188:class Workspace: 238: def path(self) -> Path: 242: def session_path(self) -> Path: 248: def has_session(self) -> bool: 251: def touch(self) -> None: 254: def to_dict(self) -> dict[str, Any]: 261: def from_dict(cls, user_id: str, payload: dict[str, Any]) -> "Workspace": 293: def blank(cls, user_id: str, default_fcm_url: str = DEFAULT_FCM_URL) -> "Workspace": 297:class BridgeService: 298: def __init__(self, global_cfg: dict[str, Any]): 335: def is_admin(self, user_id: str | int) -> bool: 339: def lock_for(self, user_id: str) -> asyncio.Lock: 346: def workspace_path(self, user_id: str) -> Path: 349: def load_workspace(self, user_id: str) -> Workspace: 369: def _create_workspace_from_legacy(self, user_id: str) -> Workspace: 395: def save_workspace(self, ws: Workspace) -> None: 400: def _workspace_menu(self, ws: Workspace) -> ReplyKeyboardMarkup: 411: def _workspace_fcm_menu(self, ws: Workspace) -> ReplyKeyboardMarkup: 416: def _paginate_list(self, items: list[str], page: int, page_size: int = 60) -> tuple[list[str], int, int]: 425: def _build_paginated_keyboard( 465: def _is_menu_action(self, text: str) -> bool: 537: def _build_main_client(self) -> Client: 546: def _quarantine_main_session_files(self) -> None: 644: def _migrate_legacy_workspace_if_needed(self) -> None: 667: def _migrate_fcm_urls(self) -> None: 685: def _sync_old_fcm_creds(self) -> None: 847: def _load_collected_firebases(self) -> dict[str, Any]: 852: def _save_collected_firebases(self, data: dict[str, Any]) -> None: 855: def _seed_existing_firebases(self) -> None: 1843: def _group_key_from_chat(self, chat: Any) -> str: 1853: def _unique_group_name(self, ws: Workspace, base: str, chat_id: str) -> str: 1868: def _canonical_chat_id(self, chat_id: Any, chat_type: Any = None) -> str: 1888: def _is_invite_like(self, ref: str) -> bool: 1899: def _extract_invite_hash(self, ref: str) -> Optional[str]: 1913: def _normalize_username_ref(self, ref: str) -> str: 2092: def _parse_message_payload(self, text: str) -> tuple[Optional[str], Optional[str]]: 2115: def _fcm_panel_headers(self, referer_suffix: str = "") -> dict[str, str]: 2551: def _latest_remote_ts(self, data: dict[str, Any]) -> int: 2560: def _fb_event_key(self, ts_val: int, entry: Any) -> Optional[str]: 2615:async def main() -> None: