Files
VoelinClient/crates/tsc-observer/src/lib.rs
T
Claude 6e732d625f 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
2026-09-25 14:15:29 +00:00

18 lines
745 B
Rust

//! Invisible presence and channel-chat relays over ServerQuery.
//!
//! Query clients do not show up in normal clients' channel trees. The
//! [`Observer`] keeps a live [`Presence`](tsc_model::Presence) of a server
//! from one query session. A [`RelayPool`] puts one query session into each
//! channel whose chat someone wants to read or write without joining it.
//!
//! Used by the gateway (`tsgw`) for all of its users and by the client for
//! users who have their own query credentials.
mod convert;
mod observer;
mod relay;
pub use convert::{channel_from_row, client_from_row, delta_from_notification, is_text_message};
pub use observer::{Observer, ObserverConfig, ObserverEvent};
pub use relay::{RelayConfig, RelayEvent, RelayPool};