from __future__ import annotations """ phone/capabilities.py Single source of truth for what the phone client (APK) can drive easily. This stays free: it's just a JSON description of commands already implemented in core/commands.py. """ from typing import Any def capabilities_payload() -> dict[str, Any]: # Keep this compact and practical. These are *commands*, not fake UI. return { "ok": True, "version": 1, "categories": [ { "name": "Network", "items": [ {"label": "WiFi Toggle", "cmd": "wifi"}, {"label": "Bluetooth Toggle", "cmd": "bluetooth"}, {"label": "VPN Status", "cmd": "vpn status"}, {"label": "Internet Check", "cmd": "internet check"}, {"label": "Ping 1.1.1.1", "cmd": "ping 1.1.1.1"}, {"label": "Speed Test", "cmd": "speed test"}, ], }, { "name": "Audio", "items": [ {"label": "Volume Up", "cmd": "volume up"}, {"label": "Volume Down", "cmd": "volume down"}, {"label": "Mute", "cmd": "mute"}, {"label": "Audio Reset", "cmd": "audio reset"}, {"label": "EQ Preset", "cmd": "eq preset"}, ], }, { "name": "Display", "items": [ {"label": "Brightness Cycle", "cmd": "cycle brightness"}, {"label": "Night Light", "cmd": "night light"}, {"label": "HDR Toggle", "cmd": "toggle hdr"}, {"label": "Resolution/Hz Cycle", "cmd": "cycle resolution"}, {"label": "Color Profile", "cmd": "cycle color profile"}, ], }, { "name": "System", "items": [ {"label": "System Report", "cmd": "system report"}, {"label": "Lock PC", "cmd": "lock"}, {"label": "Snapshot", "cmd": "snapshot"}, {"label": "Steam Fix", "cmd": "steam fix"}, ], }, { "name": "Windows", "items": [ {"label": "Tile Windows", "cmd": "tile windows"}, {"label": "Cascade Windows", "cmd": "cascade windows"}, {"label": "Snap Left", "cmd": "snap left"}, {"label": "Snap Right", "cmd": "snap right"}, {"label": "Move To Next Monitor", "cmd": "move to next monitor"}, ], }, { "name": "Modes", "items": [ {"label": "Stark", "cmd": "stark mode"}, {"label": "Tactical", "cmd": "tactical mode"}, {"label": "Gaming", "cmd": "gaming mode"}, {"label": "Chill", "cmd": "chill mode"}, {"label": "Ghost", "cmd": "ghost mode"}, {"label": "Overdrive", "cmd": "overdrive mode"}, ], }, ], }