ci / rust (push) Failing after 2m51s
`PairAttachVerifier` now stores `allow_inbound` behind `Arc<RwLock<_>>` so clones share the same set. Two triggers re-read the unified config file and swap it atomically: - SIGHUP — `systemctl --user reload maestrod`, or any `kill -HUP`. The installer's user unit now sets `ExecReload=/bin/kill -HUP $MAINPID`. - `POST /api/policy/reload` — used by `maestro policy reload`. The CLI reads `[daemon].bind_addr` from the unified config (default 7070) and POSTs to `http://127.0.0.1:<port>`. No PID lookup required. Also adds `maestro policy show [--json]` and `GET /api/policy` for "did my edit get picked up?" debugging. A broken mid-edit config logs an error and leaves the previously-effective list in place rather than locking everyone out. In-flight attaches keep their existing connection — revocation requires killing the session, as spec'd. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
1.1 KiB
Rust
34 lines
1.1 KiB
Rust
//! `maestrod` — the per-host Maestro daemon.
|
|
//!
|
|
//! See `docs/superpowers/specs/2026-05-24-maestro-design.md` §Daemon for the
|
|
//! component's responsibilities. This library exposes the pieces; the binary
|
|
//! entry point in `src/main.rs` wires them together.
|
|
|
|
#![deny(missing_debug_implementations)]
|
|
|
|
pub mod attach;
|
|
pub mod broker;
|
|
pub mod catalog_mirror;
|
|
pub mod config;
|
|
pub mod configure;
|
|
pub mod jwt;
|
|
pub mod local_api;
|
|
pub mod local_events;
|
|
pub mod policy;
|
|
pub mod pty;
|
|
pub mod registry_client;
|
|
pub mod session;
|
|
pub mod sidecar;
|
|
pub mod tmux;
|
|
pub mod worktree;
|
|
|
|
pub use broker::{BrokerError, BrokerHandle};
|
|
pub use catalog_mirror::CatalogMirror;
|
|
pub use config::{default_config_path, default_state_dir, load_config, DaemonConfig, EnvOverrides};
|
|
pub use configure::{run as run_configure, ConfigureError, ConfigureInputs};
|
|
pub use jwt::{issue as issue_jwt, JwtError, JwtVerifier, PairAttachVerifier};
|
|
pub use local_events::{spawn_session_publisher, LocalEventBus};
|
|
pub use policy::{spawn_sighup_listener, PolicyState};
|
|
pub use registry_client::{ClientError, RegistryClient, HEARTBEAT_INTERVAL};
|
|
pub use session::{SessionError, SessionEvent, SessionManager};
|