2026-04-04 18:16:53 +02:00
|
|
|
//! WayRay wire protocol definitions.
|
|
|
|
|
//!
|
|
|
|
|
//! Shared between wrsrvd (server) and wrclient (client).
|
2026-04-07 15:35:48 +02:00
|
|
|
//! Messages are serialized with postcard and framed with a 4-byte
|
|
|
|
|
//! length prefix for transmission over QUIC streams.
|
|
|
|
|
|
|
|
|
|
pub mod codec;
|
2026-04-07 15:42:54 +02:00
|
|
|
pub mod encoding;
|
Add session launcher, greeter, admin CLI, and session config
Session infrastructure for the launcher/greeter architecture (Phase 3):
- Launcher protocol: JSON-over-Unix-socket messages (LauncherRequest/
LauncherResponse) for session_requested, session_authenticated,
session_logout, plus admin queries (list_sessions, kill_session)
- Session config: ~/.config/wayray/session.toml with wm, panel,
launcher, notifications, and autostart fields. Serde TOML parsing
with sensible defaults (wr-wm-floating). 5 unit tests.
- wrsessd: Session launcher daemon listening on Unix socket. Manages
per-token sessions, launches greeter on session_requested, starts
desktop components from session.toml on session_authenticated,
cleans up child processes on logout. Admin query support.
- wrlogin: Reference CLI greeter. Reads credentials from stdin,
sends session_authenticated to wrsessd, exits on success.
Token passed via WAYRAY_SESSION_TOKEN env var.
- wradm: Session management commands (list, kill) communicating
with wrsessd via launcher protocol. Tabular output format.
2026-04-09 21:22:46 +02:00
|
|
|
pub mod launcher;
|
2026-04-07 15:35:48 +02:00
|
|
|
pub mod messages;
|
Add session launcher, greeter, admin CLI, and session config
Session infrastructure for the launcher/greeter architecture (Phase 3):
- Launcher protocol: JSON-over-Unix-socket messages (LauncherRequest/
LauncherResponse) for session_requested, session_authenticated,
session_logout, plus admin queries (list_sessions, kill_session)
- Session config: ~/.config/wayray/session.toml with wm, panel,
launcher, notifications, and autostart fields. Serde TOML parsing
with sensible defaults (wr-wm-floating). 5 unit tests.
- wrsessd: Session launcher daemon listening on Unix socket. Manages
per-token sessions, launches greeter on session_requested, starts
desktop components from session.toml on session_authenticated,
cleans up child processes on logout. Admin query support.
- wrlogin: Reference CLI greeter. Reads credentials from stdin,
sends session_authenticated to wrsessd, exits on success.
Token passed via WAYRAY_SESSION_TOKEN env var.
- wradm: Session management commands (list, kill) communicating
with wrsessd via launcher protocol. Tabular output format.
2026-04-09 21:22:46 +02:00
|
|
|
pub mod session_config;
|
2026-04-07 15:35:48 +02:00
|
|
|
|
|
|
|
|
/// Current protocol version. Incremented on breaking changes.
|
|
|
|
|
pub const PROTOCOL_VERSION: u32 = 1;
|