Merge main (c60acf9, the session seam) into phase5/ui-vm-2

The engine of main runs on voelin_proto::link::Session; this branch had split
the Slint controllers into <area>/logic.rs (voelin-ui-vm) and <area>/bind.rs
(voelin-ui) before that merge and was never reviewed. One conflict, the one
the Opus gate of the seam merge predicted:

- crates/voelin-ui/src/servers.rs (modify/delete): this branch had split the
  file into servers/bind.rs and voelin-ui-vm's servers/logic.rs; main had
  changed the file for the seam (docs/session-seam.md 17.3). The file stays
  deleted and the changes of main are made where the code now is:
  servers/bind.rs sends ts::identity::to_blob(&identity) in ConnectVoice and in
  both ObserveGateway sends, builds voelin_core::QueryLogin {address,
  allowlisted: false} with voelin_core::QueryTransport for ObserveQuery, names
  ts::identity::DEFAULT_NICKNAME, and its tests import ts::identity::{Found,
  LaunchImport}; servers/logic.rs imports ts::identity::LaunchImport (and
  links ts::identity::import_new), and voice_options keeps the eager
  ts::versions::resolve for the message and assigns Some(spec.clone()) to
  VoiceOptions::client_version (the engine resolves the spec when it
  connects).

Cargo.lock merged without a conflict and differs from main's only by the edge
of voelin-ui-vm to roxmltree, which this branch added (d9de95b).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-24 14:18:43 +03:00
commit 371e4d77c8
77 files changed
+15310 -3433

No files matched your search

+7 -5
View File
@@ -5,7 +5,7 @@
//! [`Cx`](crate::host::Cx)'s update what to draw and send; the store, the
//! secrets, the identity and the sockets are the front end's.
use voelin_core::identity::LaunchImport;
use voelin_core::ts::identity::LaunchImport;
use voelin_core::{Command, ObserveState, Source, VoiceOptions, VoiceState};
use voelin_model::{ChannelId, ChatTarget};
use voelin_store::{Bookmark, QueryConfig};
@@ -21,7 +21,7 @@ use crate::state::{AppState, Lines, SessionView};
pub const CREATED_IDENTITY: &str = "Default";
/// What to tell the user about the identities imported from the official
/// clients at start ([`voelin_core::identity::import_new`]), if anything.
/// clients at start ([`voelin_core::ts::identity::import_new`]), if anything.
pub fn imported_status(report: &LaunchImport) -> Option<String> {
let n = report.added.len();
let names = report.added.iter().map(|f| f.nickname.as_str()).collect::<Vec<_>>().join(", ");
@@ -96,10 +96,12 @@ pub fn voice_options(
) -> Result<VoiceOptions, String> {
let mut options = VoiceOptions::new(&bookmark.address, &bookmark.nickname);
if let Some(spec) = &bookmark.client_version {
match voelin_core::versions::resolve(spec) {
Ok(version) => options.client_version = version,
Err(error) => return Err(format!("Invalid client compatibility version: {error}")),
// The engine resolves the spec when it connects; asking now tells the
// user at once.
if let Err(error) = voelin_core::ts::versions::resolve(spec) {
return Err(format!("Invalid client compatibility version: {error}"));
}
options.client_version = Some(spec.clone());
}
options.channel = channel;
options.channel_password = channel_password;
@@ -15,7 +15,6 @@ use std::sync::atomic::AtomicBool;
use serde::Serialize;
use serde::de::DeserializeOwned;
use voelin_core::identity::Found;
use voelin_core::media::auto_bitrate;
use voelin_core::media::voelin_media::EncoderInfo;
use voelin_core::settings::{
@@ -29,6 +28,7 @@ use voelin_core::settings::{
STUDIO_REPLAY_MEMORY_MB, STUDIO_REPLAY_SECONDS, Settings, Source as SettingSource,
StreamPermissions,
};
use voelin_core::ts::identity::Found;
use voelin_gateway_proto::{ConfigSource, PermRule, feature};
use voelin_store::{Bookmark, IdentityEntry, IdentityOrigin};