summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli/mod.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-01 02:01:02 +0000
committersoryu <soryu@soryu.co>2026-02-01 02:01:02 +0000
commit6cb7ad10bb0428865bed1b220845cf60bd4f56e0 (patch)
treef295b760974c8a75a2489b7d19974ccf6a4ffe8d /makima/src/daemon/cli/mod.rs
parent7567153e6281b94e39e52be5d060b381ed69597d (diff)
downloadsoryu-makima/task-task-275e8de2-275e8de2.tar.gz
soryu-makima/task-task-275e8de2-275e8de2.zip
[WIP] Heartbeat checkpoint - 2026-02-01 02:01:02 UTCmakima/task-task-275e8de2-275e8de2
Diffstat (limited to 'makima/src/daemon/cli/mod.rs')
-rw-r--r--makima/src/daemon/cli/mod.rs22
1 files changed, 22 insertions, 0 deletions
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 {