Commit Graph
57 Commits
Author SHA1 Message Date
Claude 2b680cf166 wip: tsc-ui builds without the media feature
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:15:28 +00:00
Claude 3e285e8dfc wip: rustfmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:13:19 +00:00
Claude 855509d258 wip: tsc-ui TSC_AUTOSHARE development switch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:09:37 +00:00
Claude 70c6e7a923 wip: tsc-ui settings tabs and About via TSC_OPEN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 15:04:05 +00:00
Claude c365e2abf3 wip: tsc-ui streams panel, viewer, share dialog, settings, hotkeys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 14:54:26 +00:00
Claude 7a571086be Merge claude/gifted-lovelace-1crlx2 into wip/stream-ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:30:40 +00:00
Claude 604acfa1ff Merge wip/hardening: notices, crash reports, CI hardening, release docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:25:48 +00:00
Claude 1816a6b479 tsc-platform: crash report test independent of path separators
Panic locations use backslashes on Windows, and backtrace symbols need
the PDB files there, so those checks are relaxed or Linux only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:23:37 +00:00
Claude 71b52fab0f Merge branch 'claude/gifted-lovelace-1crlx2' into wip/hardening
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:22:07 +00:00
Claude 2c3726b061 Docs: manual test matrix, release process, security, translations
- docs/testing/manual-matrix.md: the checks CI cannot run (streams with the
  official TS6 client, global push-to-talk, echo cancellation over an hour,
  hotplug, Android background voice and streams, installers) per platform,
  with result, date and version columns.
- docs/release.md: versioning, changelog, notices, signing (Authenticode
  with Azure Trusted Signing or a certificate, Flathub, Android keystore
  outside the repository) and the release checklist.
- docs/i18n.md: @tr, slint-tr-extractor, .po files under
  crates/tsc-ui/lang, bundled translations and language selection.
- SECURITY.md: reporting, what the client and the gateway store, what
  stream peers see.
- CHANGELOG.md with an Unreleased section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:21:58 +00:00
Claude 57d6888b46 tsc-platform: TSC_TEST_CRASH to check crash reports in release builds
crash::test_crash_if_requested() panics when TSC_TEST_CRASH is set, for
the manual test matrix. A test runs it in a child process and finds the
report afterwards, as the app would on its next start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:21:58 +00:00
Claude 4add67d89b tsctl: stream real VP8 from capture, decode watched streams
`stream start` captures through tsc-core's Streamer: `--synthetic` (or
`--source synthetic`) is the moving test pattern with a tone, `--source
x11[:N]`, `screen[:N]`, `window:<id>` or `portal` capture the desktop,
`--bitrate` sets the encoder and setupstream. `stream watch` decodes the
video, counts decoded pictures for `--expect-frames` and can save the
last one with `--save-frame out.png`. Offers carry the codec we encode
and answers accept what we decode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:19:47 +00:00
Claude fe7b79940b tsc-core: live test of the media pipeline through a TS6 server
The test pattern goes through Streamer, the engine and the server to a
Viewer, which must decode 60 pictures with the rectangle in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:15:46 +00:00
Claude 087bb8e866 CI: notices check, browser interop job, daily advisories; ship notices
- notices: scripts/notices.sh --check with the pinned cargo-about fails
  when THIRD_PARTY_NOTICES.md does not match Cargo.lock.
- browser-interop: TSC_INTEROP=1 tsc-stream browser_interop test against
  headless Chromium (Playwright 1.56.1); continue-on-error, since it
  depends on a browser download.
- smoke: timeout, and the logs in dev/.state are uploaded on failure.
- audit.yml: cargo-deny advisories every day, not only on pushes.
- Release artifacts, the Flatpak and the NSIS installer include
  THIRD_PARTY_NOTICES.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:15:39 +00:00
Claude 273df9afd2 Merge claude/gifted-lovelace-1crlx2 into wip/stream-ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:14:45 +00:00
Claude af5b202347 tsc-core: audio settings, client and stream volumes, media pipeline
Audio: sessions start their audio thread with the engine's AudioSettings
(SetAudioSettings, engine-wide), SetClientVolume / SetClientMuted reach
the mixer, clients that leave are forgotten, and the audio thread reports
the microphone level (InputLevel, also from TestMicrophone without a
session). Audio of watched streams plays through the mixer under a
made-up client id with its own volume (SetStreamVolume).

Media (feature `media`, default): Streamer captures a screen and system
audio, encodes VP8 (the offered codec) at the setup's bitrate and Opus,
honours keyframe requests and feeds a StreamSink or, as EncodedSource, a
FrameSource. VideoPipeline / Viewer decode watched streams on their own
thread, skip to keyframes after losses and ask for them. A test streams
the test pattern through two stream tasks and loopback peers and checks
the rectangle in the decoded pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:14:40 +00:00
Claude 68012eafc2 tsc-platform: opt-in local crash reports
crash::install(dir, enabled) sets a panic hook (once, chained to the
previous one) that writes a plain-text report per panic while enabled:
time, version, OS/distribution/session, thread, message, location and a
backtrace. The newest 10 are kept; nothing is uploaded. pending_reports()
and clear() let the UI offer to open the folder or delete the reports.
The default directory is <state dir>/crash-reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:12:32 +00:00
Claude ad1155fc90 Third-party notices: cargo-about config, generator, embedded text
about.toml mirrors deny.toml's allowed licenses and limits the graph to the
shipped targets (Linux, Windows, Android) without build and dev
dependencies. Clarifications pin the license files cargo-about misses or
mangles: Slint's LicenseRef text, the bundled libopus, AWS-LC's combined
notice and OpenH264's single license. about.hbs adds the Slint, OpenH264,
tsclientlib and libvpx notices by hand.

scripts/notices.sh regenerates THIRD_PARTY_NOTICES.md with a pinned
cargo-about (0.9.2) and fails on any warning; --check diffs against the
committed file. tsc_platform::notices::text() embeds it for the About page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:12:32 +00:00
Claude 089e111acc tsc-core: wait for racing stream events together in the live test
The viewer's StreamsChanged often arrives before the streamer's Live state,
and wait_for dropped it while waiting for Live, so the test timed out in CI
(and 5 of 8 local runs). Wait for such pairs in one loop: live + listed,
watching + viewer connected, ended + gone from the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:04:31 +00:00
Claude 0c83716fa1 Merge wip/audio-platform: audio processing, tsc-platform, packaging, CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G

# Conflicts:
#	Cargo.lock
2026-09-26 05:17:40 +00:00
Claude ce808a5347 tsc-ui: ignore stream events until the streams panel exists
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:13:30 +00:00
Claude f189370b39 Merge wip/stream-sessions: stream sessions, engine streams, tsctl stream, browser interop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:09:50 +00:00
Claude 8e1dbc0289 docs: stream sessions, Chromium interop findings, open stream questions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:08:09 +00:00
Claude 462034df38 tsctl: stream start/list/watch; smoke test streams on TS6
tsctl connect <addr> stream [--loopback|--stun X|--no-stun]
  start --synthetic [--name] [--auto-accept] [--seconds N] [--fps]
        [--frame-size] [--no-audio]
        Streams SyntheticSource frames through tsc-stream's sessions.
        Without --auto-accept, join requests are answered on stdin
        (accept/deny/kick <clid>, stop). frame_source() is the seam for
        real capture and encoders.
  list  Streams announced in our channel, plus clients whose
        client_is_streaming is set but whose stream id we were not told.
  watch [--id] [--streamer-nick] [--expect-frames N] [--timeout S]
        Joins the matching stream (or the first one); exits 0 once N video
        frames arrived.

it-smoke.sh (TS6 only): a viewer waits for a uniquely named streamer,
which then streams 10 s of synthetic VP8 + Opus over loopback; also runs
the engine's stream_live test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:36 +00:00
Claude fb7f56b55b ci: media dependencies, Windows toolchain, release builds, X11 tests
- system-deps composite action shared by all jobs: apt packages for
  audio, UI, libvpx/dav1d, PipeWire/SPA, libclang and Xvfb on Linux; NASM
  (aws-lc-sys) and libvpx from vcpkg (x64-windows-static-md, binary cache
  keyed on the vcpkg revision) on Windows, exporting VPX_LIB_DIR,
  VPX_INCLUDE_DIR, VPX_VERSION and VPX_STATIC for libvpx-native-sys
- Linux tests run under xvfb-run with TSC_X11_TEST_DISPLAY set, so X11
  capture and the XInput2 hotkey test run
- release-build job: cargo build --release -p tsc-ui on Linux and
  Windows, uploads the binary (plus desktop files, or the NSIS installer
  when NSIS is on the runner)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:28 +00:00
Claude a51b295f7d packaging: Flatpak manifest, desktop file, metainfo, NSIS installer
Neutral placeholder app id io.github.faumaray.TsClient and name "TS Client".
The Flatpak builds offline from generated cargo sources on the 25.08
runtime with portal-based push-to-talk and screen capture, PulseAudio,
PipeWire, notifications and Secret Service access. The Windows README
covers the toolchain (MSVC, CMake, NASM, vcpkg libvpx) and signing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:28 +00:00
Claude 1740d61804 tsc-platform: run the notification test on Linux only
On Windows it would show a real toast from the CI runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:28 +00:00
Claude 9a485e324f tsc-ui: library target with RunOptions for the mobile apps
The app moves behind `tsc_ui::run(RunOptions)`; tsc-desktop is a thin
binary around it. Mobile apps pass their storage directory as data_dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:07:13 +00:00
Claude 294624bdde Merge wip/media: tsc-media frames, codecs and capture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:03:31 +00:00
Claude e3269e3cc7 M8 (part 2): tsc-media integration tests and docs
- tests/codec_roundtrip.rs: synthetic pattern -> VP8 / VP9 -> decode
  (PSNR, rectangle and background colours, forced keyframes, bitrate
  change) and capture thread -> encoder -> decoder
- tests/x11_capture.rs: draws windows on a real X server ($DISPLAY, e.g.
  Xvfb), checks MIT-SHM and GetImage pixels, window listing, window
  capture -> VP8 -> decode colours, and cursor drawing; skipped without
  DISPLAY
- tests/openh264.rs: missing-library errors; with TSC_OPENH264_LIB a full
  H.264 roundtrip incl. SPS profile checks (High 100, Baseline 66); an
  ignored test downloads Cisco's binary and runs the roundtrip
- OpenH264: allow frame skipping so rate control holds the bitrate, no
  adaptive quantisation / background detection for screen content
- docs/media.md: API, backends, features, build requirements, licenses
  (OpenH264 runtime download and attribution), verification status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:02:38 +00:00
Claude 43879fec40 tsc-core: streams on TeamSpeak 6 sessions
A stream task per voice connection runs tsc-stream's Streams: the voice
task forwards stream notifications and command failures to it and sends
its requests on the connection. It starts only when the server flavor has
the streams capability; stream commands elsewhere give an Error event.

Commands: StartStream{setup, auto_accept}, StopStream, AcceptViewer,
KickViewer, SendStreamFrame, WatchStream, LeaveStream,
RequestStreamKeyframe.
Events: StreamsChanged, StreamState (Starting / Live{id, sink} /
Ended), StreamViewerRequest, StreamViewers, StreamKeyframeRequest,
WatchState (Requested / Connecting / Connected / Ended).

Encoded frames of our stream go in through the StreamSink handed out
with StreamState::Live (or SendStreamFrame); received frames of watched
streams come on their own bus, Engine::subscribe_frames, to keep the
event bus light. VoiceOptions::stream_peer sets the peer network config.

Tests: two stream tasks through a fake relay server (unit), and a
TSC_LIVE test with two engine sessions streaming synthetic frames on the
TS6 dev server plus the error on TS3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 05:02:00 +00:00
Claude 41cac36959 tsc-platform: global push-to-talk hotkeys, notifications, app directories
- hotkey: HotkeyManager picks a backend and register() returns a stream of
  Pressed/Released events:
  - xdg-desktop-portal GlobalShortcuts through ashpd (Wayland; Activated /
    Deactivated; the portal owns the binding, ours is the preferred trigger)
  - X11 XInput2 raw key/button events on the root window (no grab, the key
    still reaches the focused app); tested under Xvfb with XTEST input
  - Windows low-level keyboard and mouse hooks on a dedicated thread (the
    crate's only unsafe code, in one module)
  Hotkey/Key/Modifiers parse and serialize as "Ctrl+Shift+T", "F13",
  "RightCtrl", "MouseBack", with X11 keysym, Windows VK and xdg names.
- notify: desktop notifications through notify-rust (D-Bus / toasts)
- paths: data/config/cache/state dirs under "tsc" (as the desktop app
  already uses), TSC_*_DIR overrides, Flatpak and display server detection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 04:56:23 +00:00
Claude 9e9cb8895e M8 (part 1): tsc-media screen and system-audio capture
- ScreenCapture / AudioCapture traits (async start for the portal),
  SourceId / CaptureSource / CaptureOptions, platform default backends
- Synthetic sources: animated test pattern (moving rectangle + frame
  counter) and a sine tone, for tests and synthetic streams
- X11 (feature x11): x11rb with MIT-SHM over a memfd (GetImage fallback),
  RandR 1.5 monitors, window listing (_NET_CLIENT_LIST or root children),
  XFixes cursor blending
- Wayland (feature pipewire): ScreenCast portal via ashpd with restore
  tokens (PersistMode::ExplicitlyRevoked) and a PipeWire video stream
  (SHM BGRx/RGBx family); clear "unavailable" errors without bus/portal
- PipeWire system audio from the default sink monitor
  (stream.capture.sink), 48 kHz stereo f32
- Windows: Windows Graphics Capture (windows-capture) and WASAPI process
  loopback excluding our own process tree, falling back to plain loopback
  (type-checked for x86_64-pc-windows-gnu, not run)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 04:56:02 +00:00
Claude 23fbbf0221 tsc-stream: interop with Chromium's WebRTC stack, codec order fixes
tests/interop/browser-peer.cjs runs headless Chromium (Playwright) as the
remote peer; crates/tsc-stream/tests/browser_interop.rs (TSC_INTEROP=1)
exchanges SDP with it over stdin/stdout:

- our loopback streamer offer (VP8 + Opus) answered by Chromium: packets,
  bytes and decoded frames of the synthetic VP8 keyframes, Opus packets
- Chromium offers canvas video + oscillator audio with VP8, VP9, H264 and
  AV1 preferred in turn; our viewer peer receives that codec and Opus,
  with trickled browser candidates and a keyframe after a PLI
- a server-reflexive candidate (fake STUN server) trickled with the
  peer's mid is accepted by addIceCandidate

Fixes found on the way:
- the viewer's answer followed str0m's codec order, so the streamer's
  preference was ignored; the answer now keeps the offer's order
  (accept_video_codecs filters it)
- streamers offered VP8 and H264 by default while frames are sent on the
  first negotiated payload type: offer only VP8 by default
- H.264 offers include Constrained High (640c1f), reportedly the only
  profile the TeamSpeak client decodes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:56:58 +00:00
Claude 3ec9d6611c M7/M8 (part 1): tsc-media frames, conversion and video codecs
New crate tsc-media:
- VideoFrame (I420, NV12, BGRA, RGBA with strides) and AudioBuffer
  (interleaved f32, 48 kHz)
- YUV <-> RGB conversion with yuvutils-rs (BT.601 limited range), RGBA
  output for Slint pixel buffers, PSNR helper
- Bounded drop-oldest frame channel with async and blocking receive
- VideoEncoder / VideoDecoder traits, Codec (VP8, VP9, H.264, AV1) with an
  optional str0m mapping, codec preference (viewer VP9 > VP8 > AV1 > H.264,
  streamer hardware > VP8 > OpenH264 > VP9) and backend selection
- libvpx VP8/VP9 encoder and decoder over libvpx-native-sys (small unsafe
  wrapper: realtime CBR, cpu-used 8, error resilient, screen content,
  runtime bitrate changes)
- H.264 through Cisco's OpenH264 loaded at runtime (hash-checked), with an
  HTTPS + SHA-256 download helper
- AV1 decoding through dav1d (feature av1)
- Hardware encoder factory trait with VA-API / Media Foundation stubs

deny.toml: allow the bzip2-1.0.6 license (pure Rust bzip2 used to unpack
the OpenH264 download).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:53:13 +00:00
Claude e838bd102f tsc-core: audio thread with processing, voice activation, client volume, device reopening
The device-independent part is a Pipeline (unit tested without hardware):
microphone -> Processor -> VAD / push-to-talk / continuous (with pre-roll)
-> Opus; mixer (per-client volume) -> output volume -> speakers, with the
played signal as the echo canceller reference. Devices go through
tsc_audio::device::Managed, so a lost microphone or headset is reopened or
replaced by the default device, and the playback queue is kept at the
configured latency instead of full.

New AudioIn messages (Settings, ClientVolume, ClientMuted, ClientLeft)
are ready for the session to send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:48:43 +00:00
Claude 6fec2e3173 tsc-audio: echo cancellation, noise suppression, gain control, VAD, client volume, device hotplug
- process: Processor on sonora (pure Rust WebRTC APM: AEC3, NS, AGC2,
  high-pass) with serde ProcessingSettings; far end fed from what is played
- vad: level gate with hangover, optional RNN speech probability
- mixer: Mixer wraps the vendored AudioHandler with per-client volume/mute
- settings: AudioSettings bundles transmit mode, processing, VAD, devices
- device: stable device ids, default flags, loss detection through the
  error callback, Managed reopen/fallback policy
- tests: synthetic echo >= 10 dB, noise suppression keeps tone bursts,
  per-client gain, one-hour drift simulation at +-200 ppm
- dev profile optimises the sonora crates (real-time in debug builds)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:48:23 +00:00
Claude 8d8a8c5eab tsc-stream: stream sessions and a frame-source seam
Streams drives one connection's TS6 streams without doing connection IO:
it takes stream notifications and app decisions, owns the str0m peers and
queues requests (to send as commands) and events.

- StreamerSession: setupstream, join requests (auto-accept or ask the
  app), one peer per viewer with the offer in respondjoinstreamrequest,
  answers and trickled candidates, withdrawal, reconnect (new offer as
  reconnectOffer), kick, stop (also before the stream went live),
  merged keyframe requests, frame fan-out to connected viewers
- ViewerSession: joinstreamrequest, answer the offer from the response or
  an offer/reconnectOffer signal, candidates, denial, stop, removal,
  leave, reconnect after a lost connection (up to three times)
- StreamDirectory: streams in the channel from notifications and
  client_is_streaming
- FrameSource + SyntheticSource: decodable 1x1 VP8 keyframes (padded)
  and Opus silence in real time, for tests and tsctl
- Peer: poll_event for driving many peers from one task; trickled local
  candidates carry the bundle mid

Transcript unit tests and an end-to-end test through a fake relay server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:48:06 +00:00
Claude 0b1aa5664e M7 (part 1): tsc-stream signalling and str0m peers
New crate tsc-stream for TeamSpeak 6 streams:
- proto: typed StreamNotification from the notifystream* messages and
  builders for setupstream, joinstreamrequest, respondjoinstreamrequest,
  streamsignaling, removeclientfromstream and stopstream
- signal: the JSON messages inside streamsignaling (offer, answer,
  iceCandidate, reconnect), accepting the known key spellings
- stun: minimal STUN binding client for server-reflexive candidates
- peer: a str0m peer connection driven by a tokio task, one UDP socket per
  host address; STUN lookups run in the background and found candidates are
  reported for trickling

Declarations (verified against 6.0.0-beta13.1): joinstreamrequest; stopstream
and removeclientfromstream require `reason`; is_remove/reason/return_code on
the notifications.

Tests: two peers over loopback exchange VP8 and Opus frames; with TSC_LIVE=1 a
whole stream runs through the TS6 dev server (setup, join, offer, answer,
media, kick, stop). it-smoke.sh runs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:22:05 +00:00
Claude afe37b23a5 ci: allow Slint royalty-free license in cargo-deny, fix Slint binding loop
cargo-deny rejected Slint's license expression (GPL-3.0-only OR
LicenseRef-Slint-Royalty-free-2.0 OR ...) and ksni's Unlicense. We use Slint
under the royalty-free license, whose attribution is in the About page.

The main window's `narrow` flag was bound to its own width and panes bound
their width to the parent, which Slint reports as a binding loop. The flag is
now set from a change handler and panes use stretch/min/max widths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 19:21:56 +00:00
Claude fa86835d41 docs: TS6 stream join handshake and embedded schema
joinstreamrequest needs id, clid, msg and is_remove (found by probing a
live stream with parameter names from the server binary). The server
embeds the protobuf schema of the new protocol; its enums explain the
setupstream type/accessibility/mode values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 15:01:33 +00:00
Claude fe219dbf7b M5 (part 2): Slint desktop UI (tsc-desktop)
- tsc-model: tree_rows/order_siblings (flattened channel tree in
  TeamSpeak's sibling order, collapsible).
- tsc-ui: Slint (fluent-dark) window with server list and bookmark
  editor, channel tree (talking, muted, away, streaming, password
  markers; click opens channel chat, double-click joins), chat tabs with
  unread counts, connect/observe/mute/push-to-talk toolbar, narrow
  single-pane layout for small screens, About page with the Slint
  attribution. Engine events are marshalled to the UI thread; secrets
  go to the OS keyring (memory fallback).
- Dev switches TSC_DATA_DIR, TSC_AUTOCONNECT and TSC_SCREENSHOT; the
  README screenshots were taken under Xvfb against the dev servers.
- Workspace lint unsafe_code: deny (Slint's generated code needs a
  local allow).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 14:49:40 +00:00
Claude e4a9860727 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
2026-09-25 14:38:08 +00:00
Claude 120d3dfc82 M4: tsgw gateway and tsc-gateway-proto
- tsc-gateway-proto: versioned JSON envelope (tsgw.v1+json), client and
  server messages, identity-challenge auth (ECDSA P-256 over a signed
  challenge), unique ids for TS3 (SHA-1) and TS6 (SHA-256, verified on
  6.0.0-beta13.1), hash-cash level.
- tsc-gateway (tsgw): axum WebSocket server; hub with one observer, a
  relay pool and a lookup query session; login by signature or token;
  permission mirroring via permoverview (server group/client/channel
  group/channel-client levels, skip and negate); per-user filtered
  presence (snapshot + diff deltas); channel/server chat relay with
  server-known nicknames, rate limit, idle relay teardown, pinned
  channels; SQLite tokens, history and audit; Dockerfile; admin guide.
- tsctl gateway client; smoke test covers gateway presence, chat both
  ways and refusal of unknown identities on TS3 and TS6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 14:30:44 +00:00
Claude 7b5f1ad2bb deny: document RUSTSEC-2023-0071 exception for russh
TeamSpeak SSH query servers (3.13 and 6 beta13.1) use RSA host keys, so
russh needs the rsa crate to verify them; the advisory concerns RSA
private-key operations, which we never perform (password logins).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 14:16:22 +00:00
Claude a8a03661b9 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
Claude 6ab7b292b0 smoke: keep state in dev/.state, kill background clients on exit
The admin identity that redeemed the one-time privilege key lived in
target/, so cargo clean broke later runs. Also print how to reset the
servers when the key is already used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:57:50 +00:00
Claude 90e05723da M2: tsc-audio, tsc-store and tsctl voice
- tsc-audio: Opus voice/music encoder producing TeamSpeak voice packets,
  framer, rubato resampling, WAV I/O, tone/Goertzel helpers, cpal
  capture/playback over lock-free ring buffers; the vendored
  AudioHandler is the jitter buffer/mixer.
- tsc-store: SQLite (bundled, WAL, 0600) with migrations for identities,
  bookmarks, settings and paged chat history; Secrets trait with memory
  and OS keyring backends.
- tsctl voice send (WAV or tone, real time) / record (mix to WAV,
  --expect-tone check). The smoke test now includes a voice round-trip:
  1 kHz tone ratio ~0.95 on TS3 and TS6.
- Dev profile: no debug info for dependencies (target/ 16 GB -> 2.4 GB).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:56:01 +00:00
Claude 301a543c5e tsctl: fix import order (rustfmt)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:42:19 +00:00
Claude aa19afbcd0 M1: dalek 4, fuzzing and fixes, tsc-model with server flavor
- curve25519-dalek-ng -> curve25519-dalek 4.
- fuzz/: cargo-fuzz targets for packets, commands and the license chain,
  plus a nightly workflow. Fixes for the panics they found: empty
  license, unchecked license property bounds, wrong index in the C2S
  audio invalid-codec error.
- tsc-model: ServerVersion/ServerFlavor/Capabilities parsed from
  virtualserver_version; tsctl shows the flavor in the tree header.
- CI lints every non-vendored crate via scripts/own-crates.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:40:56 +00:00