feat(maestro): rewire CLI through home-daemon broker with registry fallback (NAP-244)
`maestro list/spawn/kill/attach` now target the home daemon's local API (`[cli].home_daemon_url`, default http://127.0.0.1:7070) instead of the registry directly. The daemon brokers transport selection and `allow_inbound` enforcement. - list reads the daemon's catalog mirror (own ∪ peer sessions) - spawn/kill hit the daemon's local session endpoints - attach opens the daemon's `WS /api/attach/:id` broker (shared pump loop via the new `run_attach_url` / `broker_attach_url`) Compat fallback to the legacy registry path (HTTP + direct WS) with a stderr warning when the home daemon is unreachable. Cross-daemon spawn (501) and kill (404) — not yet brokered locally — also fall back so they keep working. Adds `[cli].home_daemon_url` config + `--home-daemon-url`/`MAESTRO_HOME_DAEMON_URL`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ pub struct ListArgs {
|
||||
pub json: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, clap::Args)]
|
||||
#[derive(Debug, Clone, clap::Args)]
|
||||
pub struct SpawnArgs {
|
||||
/// Daemon ID to spawn on.
|
||||
#[arg(long)]
|
||||
|
||||
Reference in New Issue
Block a user