A dormant session comes back under the same uuid and sidecar, so its
name, created_at, env and worktree ownership survive; only the tmux
session and the PTY bridge are new. The command is the matching preset's
resume_command with {agent_session} filled in, falling back to the
command the session was spawned with.
Refused with 409 for a session that is already running or whose cwd is
gone. Attaching to a session with no bridge now answers 409
not_attachable instead of 404 unknown_session, so a client can tell a
resumable session from one that does not exist.
42 lines
1.1 KiB
Rust
42 lines
1.1 KiB
Rust
//! `maestro daemon` — the per-host Maestro daemon.
|
|
//!
|
|
//! Wraps tmux, owns every session on the machine, and serves them to clients
|
|
//! (CLI, TUI, web) over a plain HTTP + WebSocket API on a local bind address.
|
|
//! No registry, no peers, no auth layer: reaching the bind address is the
|
|
//! authorization.
|
|
|
|
#![deny(missing_debug_implementations)]
|
|
|
|
pub mod activity;
|
|
pub mod attach;
|
|
/// Naming a session after its first prompt (#131).
|
|
#[cfg(feature = "haiku-autoname")]
|
|
pub mod autoname;
|
|
pub mod boot_id;
|
|
pub mod branches;
|
|
pub mod cli;
|
|
pub mod config;
|
|
pub mod dirlist;
|
|
pub mod gitroot;
|
|
pub mod hooks;
|
|
pub mod local_api;
|
|
pub mod panes;
|
|
pub mod proc;
|
|
pub mod projects;
|
|
pub mod pty;
|
|
pub mod release;
|
|
pub mod resume;
|
|
pub mod session;
|
|
pub mod sidecar;
|
|
pub mod spawn_history;
|
|
#[cfg(feature = "web")]
|
|
pub mod static_bundle;
|
|
pub mod tmux;
|
|
pub mod viewport;
|
|
pub mod worktree;
|
|
pub mod worktree_probe;
|
|
|
|
pub use activity::MAX_REPORT_DETAIL_CHARS;
|
|
pub use config::{default_config_path, default_state_dir, load_config, DaemonConfig, EnvOverrides};
|
|
pub use session::{SessionError, SessionManager};
|