M3: tsc-query and tsc-observer (invisible presence, relay chat)
- tsc-query: ServerQuery codec (escaping, rows, errors, notifications, command builder/parser), line client for raw TCP and SSH (russh) with events, flood-limit token bucket and keepalive, HTTP WebQuery client. - tsc-model: Presence (snapshot/delta/diff), ChannelInfo, ClientInfo, ChatMessage, relay formatting and message splitting. - tsc-observer: Observer (snapshot, events or polling, resync, reconnect) and RelayPool (one query session per channel, reads channel chat and posts as [Nick] text, unique nicknames, polite quit). - tsctl query/observe/relay; smoke test covers presence and relay on TS3 (raw) and TS6 (SSH). Dev servers enable all query interfaces with a fixed dev password. - docs: query clients are hidden by clients, not the server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
25 files changed
+3555
-52
No files matched your search
@@ -1,6 +1,8 @@
|
||||
//! `tsctl`: headless TeamSpeak 3/6 client for development and integration tests.
|
||||
|
||||
mod identity;
|
||||
mod observe;
|
||||
mod query;
|
||||
mod session;
|
||||
mod tree;
|
||||
mod versions;
|
||||
@@ -34,6 +36,12 @@ enum Command {
|
||||
},
|
||||
/// Connect to a server and run an action.
|
||||
Connect(ConnectArgs),
|
||||
/// Run ServerQuery commands (raw TCP, SSH or HTTP WebQuery).
|
||||
Query(query::QueryArgs),
|
||||
/// Watch who is in which channel through ServerQuery, without appearing on the server.
|
||||
Observe(observe::ObserveArgs),
|
||||
/// Read and write a channel's chat through an invisible query relay.
|
||||
Relay(observe::RelayArgs),
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
@@ -190,6 +198,9 @@ fn main() -> Result<()> {
|
||||
let rt = tokio::runtime::Runtime::new()?;
|
||||
rt.block_on(session::run(args))
|
||||
}
|
||||
Command::Query(args) => tokio::runtime::Runtime::new()?.block_on(query::run(args)),
|
||||
Command::Observe(args) => tokio::runtime::Runtime::new()?.block_on(observe::observe(args)),
|
||||
Command::Relay(args) => tokio::runtime::Runtime::new()?.block_on(observe::relay(args)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user