[refactor](trx-protocol): move transport dto out of core

Phase 5: relocate ClientCommand/Envelope/Response into trx-protocol and update call sites so trx-core remains domain-focused.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-12 21:19:42 +01:00
parent 0d8314cab6
commit 0aa2fcbbbb
10 changed files with 26 additions and 41 deletions
+3 -5
View File
@@ -5,7 +5,7 @@
//! JSON-over-TCP listener for trx-server.
//!
//! Accepts client connections speaking the `ClientEnvelope`/`ClientResponse`
//! protocol defined in `trx-core::client`.
//! protocol defined in `trx-protocol`.
use std::collections::HashSet;
use std::net::SocketAddr;
@@ -19,11 +19,10 @@ use tracing::{error, info};
use trx_core::rig::command::RigCommand;
use trx_core::rig::request::RigRequest;
use trx_core::rig::state::RigState;
use trx_core::ClientResponse;
use trx_protocol::codec::parse_envelope;
use trx_protocol::auth::{SimpleTokenValidator, TokenValidator};
use trx_protocol::codec::parse_envelope;
use trx_protocol::mapping;
use trx_protocol::ClientResponse;
/// Run the JSON TCP listener, accepting client connections.
pub async fn run_listener(
@@ -179,4 +178,3 @@ async fn handle_client(
Ok(())
}