From 6cb7ad10bb0428865bed1b220845cf60bd4f56e0 Mon Sep 17 00:00:00 2001 From: soryu Date: Sun, 1 Feb 2026 02:01:02 +0000 Subject: [WIP] Heartbeat checkpoint - 2026-02-01 02:01:02 UTC --- makima/src/daemon/cli/mod.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'makima/src/daemon/cli/mod.rs') diff --git a/makima/src/daemon/cli/mod.rs b/makima/src/daemon/cli/mod.rs index c848e8e..624a02f 100644 --- a/makima/src/daemon/cli/mod.rs +++ b/makima/src/daemon/cli/mod.rs @@ -3,6 +3,7 @@ pub mod config; pub mod contract; pub mod daemon; +pub mod monitor; pub mod red_team; pub mod server; pub mod supervisor; @@ -14,6 +15,7 @@ use uuid::Uuid; pub use config::CliConfig; pub use contract::ContractArgs; pub use daemon::DaemonArgs; +pub use monitor::MonitorArgs; pub use red_team::handle_notify; pub use server::ServerArgs; pub use supervisor::SupervisorArgs; @@ -65,6 +67,10 @@ pub enum Commands { /// Red team commands for adversarial monitoring #[command(name = "red-team", subcommand)] RedTeam(RedTeamCommand), + + /// Commands for monitoring and managing multiple contracts + #[command(subcommand)] + Contracts(ContractsCommand), } /// Config subcommands for CLI configuration. @@ -211,6 +217,22 @@ pub enum RedTeamCommand { Notify(RedTeamNotifyArgs), } +/// Contracts subcommands for monitoring and managing multiple contracts. +#[derive(Subcommand, Debug)] +pub enum ContractsCommand { + /// Real-time monitoring of contracts + /// + /// Polls for contract changes and displays updates in real-time. + /// Supports filtering by contract IDs, status, and staleness. + /// + /// Examples: + /// makima contracts monitor # Monitor all active contracts + /// makima contracts monitor abc-123 def-456 # Monitor specific contracts + /// makima contracts monitor --stale # Only show stale contracts + /// makima contracts monitor --format json # JSON output for scripting + Monitor(MonitorArgs), +} + /// Arguments for red-team notify command. #[derive(Args, Debug)] pub struct RedTeamNotifyArgs { -- cgit v1.2.3