watch : supervision d'un agent avec redemarrage automatique et backoff (issue #35) - check_once testable, notification desktop, Ctrl-C n'affecte pas l'agent detache
This commit is contained in:
+14
@@ -91,6 +91,20 @@ pub enum Command {
|
||||
/// Agent name or alias
|
||||
agent: String,
|
||||
},
|
||||
/// Supervise an agent and optionally restart it on crash
|
||||
Watch {
|
||||
/// Agent name or alias
|
||||
agent: String,
|
||||
/// Restart the agent automatically when it dies (with backoff)
|
||||
#[arg(long)]
|
||||
restart: bool,
|
||||
/// Desktop notification on every restart
|
||||
#[arg(long)]
|
||||
notify: bool,
|
||||
/// Check interval in seconds (default: 5)
|
||||
#[arg(long, value_name = "SECS", default_value = "5")]
|
||||
interval: u64,
|
||||
},
|
||||
/// Manage command aliases (cc -> claude-code)
|
||||
#[command(subcommand)]
|
||||
Alias(AliasCmd),
|
||||
|
||||
Reference in New Issue
Block a user