summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli/red_team.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-02 02:34:50 +0000
committersoryu <soryu@soryu.co>2026-02-02 02:34:50 +0000
commit151e9d87e117b7980e6aad522ac8f3633eeca87a (patch)
treee80fb4301361b3b12e5abf8e442603db2d0622dc /makima/src/daemon/cli/red_team.rs
parenta2c147ddd59f55a07b5be0c8970169726b55c876 (diff)
downloadsoryu-151e9d87e117b7980e6aad522ac8f3633eeca87a.tar.gz
soryu-151e9d87e117b7980e6aad522ac8f3633eeca87a.zip
Make makima more opinionated and structured
Diffstat (limited to 'makima/src/daemon/cli/red_team.rs')
-rw-r--r--makima/src/daemon/cli/red_team.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/makima/src/daemon/cli/red_team.rs b/makima/src/daemon/cli/red_team.rs
deleted file mode 100644
index 771aae4..0000000
--- a/makima/src/daemon/cli/red_team.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-//! Red Team subcommand - adversarial review notification commands.
-
-use crate::daemon::api::{ApiClient, RedTeamNotifyRequest};
-use super::RedTeamNotifyArgs;
-
-/// Handle the red-team notify command.
-pub async fn handle_notify(args: RedTeamNotifyArgs) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
- let client = ApiClient::new(args.api_url, args.api_key)?;
-
- // Use --task if provided, otherwise fall back to MAKIMA_TASK_ID
- let related_task_id = args.task;
-
- let req = RedTeamNotifyRequest {
- message: args.message,
- severity: args.severity,
- related_task_id,
- file_path: args.file,
- context: args.context,
- };
-
- eprintln!("Sending red team notification...");
- let result = client.red_team_notify(req).await?;
- println!("{}", serde_json::to_string(&result.0)?);
-
- Ok(())
-}