Standalone API Mode + Device Pairing
Features
- Device pairing for TRCC Remote:
trcc servedisplays a 6-character pairing code. Phone enters it once → receives persistent API token → stays paired across restarts - Persistent API token: Auto-generated on first run, stored in
~/.trcc/config.json. Phone pairs once, connects forever.--tokenflag overrides POST /pairendpoint: Auth-exempt, validates pairing code, returns persistent tokenPOST /themes/init: Remote apps call on startup to pre-download theme data- Standalone theme data init: Theme/web/mask archives downloaded automatically on device select
- Lazy theme downloads: Listing endpoints ensure data exists before scanning
Internal
- Auth middleware refactored with
_AUTH_EXEMPTset for/healthand/pair - 4802 tests (+18 new): pairing flow (5), persistent token (7), standalone theme init (6)