agentmux_srv\srv_ipc/
mod.rs

1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Phase E.1b — srv-side named-pipe IPC server.
5//
6// Mirrors agentmux-launcher's IPC plumbing:
7//   * Per-data-dir pipe (path passed via AGENTMUX_SRV_PIPE_PATH env
8//     by the launcher, who owns the data-dir hash).
9//   * `tokio::sync::broadcast` event bus.
10//   * In-memory event log (`crate::event_log::EventLog`) feeding D.3
11//     `GetEvents` replay.
12//   * Per-connection fanout task: subscribe to the bus before reading
13//     commands so events emitted while the read loop awaits aren't lost.
14//
15// E.1b laid the plumbing; E.2 added workspace arms; tab/block/
16// layout arms arrive in E.2b through E.4. See
17// `agentmux-srv::reducer` for the current command surface.
18
19pub mod server;
20
21pub use server::{run_srv_ipc_server, ServerCtx};