Engine with Command/Event API for the UI. One actor per server session merges three sources: - voice: tsclientlib connection, book -> Presence, chat, talking indicators, move/mute, audio packets - gateway: tsgw client (identity login, presence, relayed chat) - query: own ServerQuery credentials via tsc-observer (observer + relays) Presence authority voice > gateway > query; chat routing (voice for own channel/server/private, else gateway, else query) and cross-source dedup; stale source events are dropped by generation. Audio thread keeps cpal devices off the runtime: capture -> linear resample -> Opus (push-to-talk or VAD), incoming -> mixer -> playback. Live test (TSC_LIVE=1, part of the smoke script) covers voice, query presence and relay chat both ways on TS3 and TS6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
37 lines
1.1 KiB
TOML
37 lines
1.1 KiB
TOML
[package]
|
|
name = "tsc-core"
|
|
version = "0.1.0"
|
|
description = "Client engine: server sessions merging voice, gateway and query sources; the API the UI drives."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["audio-device"]
|
|
# Capture and play audio through the system's devices.
|
|
audio-device = ["tsc-audio/device"]
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
futures = "0.3"
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
|
|
tokio-tungstenite = "0.30"
|
|
tracing = "0.1"
|
|
tsc-audio = { path = "../tsc-audio", default-features = false }
|
|
tsc-gateway-proto = { path = "../tsc-gateway-proto" }
|
|
tsc-model = { path = "../tsc-model" }
|
|
tsc-observer = { path = "../tsc-observer" }
|
|
tsc-query = { path = "../tsc-query" }
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|