M5 (part 1): tsc-core engine
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
This commit is contained in:
13 files changed
+1783
No files matched your search
@@ -215,4 +215,7 @@ for svc in "${SERVERS[@]}"; do
|
||||
gateway_check "$svc" "$addr"
|
||||
done
|
||||
|
||||
log "engine (tsc-core) against both servers"
|
||||
TSC_LIVE=1 cargo test --quiet -p tsc-core --test live 2>&1 | grep -E "test result|panicked|timed out" || fail "engine tests failed"
|
||||
|
||||
log "all smoke tests passed"
|
||||
Reference in new issue
Block a user