[refactor](trx-server): consolidate protocol logic with trx-protocol

Use centralized trx-protocol crate for:
- parse_mode and mode string parsing
- parse_envelope with fallback behavior
- command mapping (ClientCommand -> RigCommand)
- token validation with SimpleTokenValidator

Removes 116 lines of duplicate code. Wraps validator in Arc for
safe sharing across async tasks. No behavior changes, all tests pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-12 20:27:42 +01:00
parent 6f9658375f
commit 8718a5d8d1
2 changed files with 15 additions and 84 deletions
+1
View File
@@ -24,3 +24,4 @@ opus = "0.3"
trx-backend = { path = "trx-backend" }
trx-core = { path = "../trx-core" }
trx-ft8 = { path = "../trx-ft8" }
trx-protocol = { path = "../trx-protocol" }