Get CLI status including version and protocol information. Returns: A GetStatusResponse object containing version and protocolVersion. Raises: RuntimeError: If the client is not connected. Example: >>> status = await client.get_
(self)
| 2887 | return PingResponse.from_dict(result) |
| 2888 | |
| 2889 | async def get_status(self) -> GetStatusResponse: |
| 2890 | """ |
| 2891 | Get CLI status including version and protocol information. |
| 2892 | |
| 2893 | Returns: |
| 2894 | A GetStatusResponse object containing version and protocolVersion. |
| 2895 | |
| 2896 | Raises: |
| 2897 | RuntimeError: If the client is not connected. |
| 2898 | |
| 2899 | Example: |
| 2900 | >>> status = await client.get_status() |
| 2901 | >>> print(f"CLI version: {status.version}") |
| 2902 | """ |
| 2903 | if not self._client: |
| 2904 | raise RuntimeError("Client not connected") |
| 2905 | |
| 2906 | result = await self._client.request("status.get", {}) |
| 2907 | return GetStatusResponse.from_dict(result) |
| 2908 | |
| 2909 | async def get_auth_status(self) -> GetAuthStatusResponse: |
| 2910 | """ |