summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-07 00:01:50 +0000
committersoryu <soryu@soryu.co>2026-02-07 00:01:50 +0000
commitb8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56 (patch)
tree95543fd150270018e384fbcf9d3df3dc45f052f6 /makima/src/daemon/cli
parentcececbf326e258211ceae7afce716a5d1e46014f (diff)
downloadsoryu-b8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56.tar.gz
soryu-b8d563d45f14a2b1db1f684aa0a8dcd7e5b6ad56.zip
Remove directives for reimplementation
Diffstat (limited to 'makima/src/daemon/cli')
-rw-r--r--makima/src/daemon/cli/directive.rs186
-rw-r--r--makima/src/daemon/cli/mod.rs56
2 files changed, 0 insertions, 242 deletions
diff --git a/makima/src/daemon/cli/directive.rs b/makima/src/daemon/cli/directive.rs
deleted file mode 100644
index a2bb34b..0000000
--- a/makima/src/daemon/cli/directive.rs
+++ /dev/null
@@ -1,186 +0,0 @@
-//! Directive CLI commands for autonomous goal-driven orchestration.
-//!
-//! Directives are top-level goals that the system works toward. Each directive
-//! generates a chain of steps that are executed autonomously with configurable
-//! guardrails.
-
-use clap::Args;
-use uuid::Uuid;
-
-/// Common arguments for directive commands requiring API access.
-#[derive(Args, Debug, Clone)]
-pub struct DirectiveArgs {
- /// API URL
- #[arg(long, env = "MAKIMA_API_URL", default_value = "https://api.makima.jp", global = true)]
- pub api_url: String,
-
- /// API key for authentication
- #[arg(long, env = "MAKIMA_API_KEY", global = true)]
- pub api_key: String,
-}
-
-/// Arguments for the `create` command.
-#[derive(Args, Debug)]
-pub struct CreateArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// The goal for the directive
- #[arg(short, long)]
- pub goal: String,
-
- /// Repository URL (optional)
- #[arg(short, long)]
- pub repository: Option<String>,
-
- /// Autonomy level: full_auto, guardrails, or manual
- #[arg(short, long, default_value = "guardrails")]
- pub autonomy: String,
-}
-
-/// Arguments for the `status` command.
-#[derive(Args, Debug)]
-pub struct StatusArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `list` command.
-#[derive(Args, Debug)]
-pub struct ListArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Filter by status (draft, planning, active, paused, completed, archived, failed)
- #[arg(long)]
- pub status: Option<String>,
-
- /// Limit number of results
- #[arg(long, default_value = "50")]
- pub limit: i32,
-}
-
-/// Arguments for the `steps` command.
-#[derive(Args, Debug)]
-pub struct StepsArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `events` command.
-#[derive(Args, Debug)]
-pub struct EventsArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-
- /// Limit number of events
- #[arg(long, default_value = "50")]
- pub limit: i32,
-}
-
-/// Arguments for the `approve` command.
-#[derive(Args, Debug)]
-pub struct ApproveArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-
- /// Approval ID
- pub approval_id: Uuid,
-
- /// Response message (optional)
- #[arg(short, long)]
- pub response: Option<String>,
-}
-
-/// Arguments for the `deny` command.
-#[derive(Args, Debug)]
-pub struct DenyArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-
- /// Approval ID
- pub approval_id: Uuid,
-
- /// Reason for denial (optional)
- #[arg(short, long)]
- pub reason: Option<String>,
-}
-
-/// Arguments for the `start` command.
-#[derive(Args, Debug)]
-pub struct StartArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `pause` command.
-#[derive(Args, Debug)]
-pub struct PauseArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `resume` command.
-#[derive(Args, Debug)]
-pub struct ResumeArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `stop` command.
-#[derive(Args, Debug)]
-pub struct StopArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `archive` command.
-#[derive(Args, Debug)]
-pub struct ArchiveArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-}
-
-/// Arguments for the `graph` command (ASCII DAG visualization).
-#[derive(Args, Debug)]
-pub struct GraphArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Directive ID
- pub directive_id: Uuid,
-
- /// Show step status in nodes
- #[arg(long)]
- pub with_status: bool,
-}
diff --git a/makima/src/daemon/cli/mod.rs b/makima/src/daemon/cli/mod.rs
index 77eee80..0805edd 100644
--- a/makima/src/daemon/cli/mod.rs
+++ b/makima/src/daemon/cli/mod.rs
@@ -3,7 +3,6 @@
pub mod config;
pub mod contract;
pub mod daemon;
-pub mod directive;
pub mod server;
pub mod supervisor;
pub mod view;
@@ -13,7 +12,6 @@ use clap::{Parser, Subcommand};
pub use config::CliConfig;
pub use contract::ContractArgs;
pub use daemon::DaemonArgs;
-pub use directive::DirectiveArgs;
pub use server::ServerArgs;
pub use supervisor::SupervisorArgs;
pub use view::ViewArgs;
@@ -60,14 +58,6 @@ pub enum Commands {
/// Saves configuration to ~/.makima/config.toml for use by CLI commands.
#[command(subcommand)]
Config(ConfigCommand),
-
- /// Directive commands for autonomous goal-driven orchestration
- ///
- /// Directives are top-level goals that generate chains of steps executed
- /// autonomously with configurable guardrails. Steps spawn contracts with
- /// supervisors and are verified with programmatic and LLM evaluation.
- #[command(subcommand)]
- Directive(DirectiveCommand),
}
/// Config subcommands for CLI configuration.
@@ -206,52 +196,6 @@ pub enum ContractCommand {
CreateFile(contract::CreateFileArgs),
}
-/// Directive subcommands for autonomous goal-driven orchestration.
-#[derive(Subcommand, Debug)]
-pub enum DirectiveCommand {
- /// Create a new directive from a goal
- Create(directive::CreateArgs),
-
- /// Get directive status and progress
- Status(directive::StatusArgs),
-
- /// List all directives
- List(directive::ListArgs),
-
- /// List steps in the directive's chain
- Steps(directive::StepsArgs),
-
- /// Display ASCII DAG visualization
- ///
- /// Shows the directive's chain structure as an ASCII graph with
- /// steps as nodes and dependencies as edges.
- Graph(directive::GraphArgs),
-
- /// Show recent events for a directive
- Events(directive::EventsArgs),
-
- /// Approve a pending approval request
- Approve(directive::ApproveArgs),
-
- /// Deny a pending approval request
- Deny(directive::DenyArgs),
-
- /// Start a directive (generates chain and begins execution)
- Start(directive::StartArgs),
-
- /// Pause a running directive
- Pause(directive::PauseArgs),
-
- /// Resume a paused directive
- Resume(directive::ResumeArgs),
-
- /// Stop a directive
- Stop(directive::StopArgs),
-
- /// Archive a directive
- Archive(directive::ArchiveArgs),
-}
-
impl Cli {
/// Parse command-line arguments
pub fn parse_args() -> Self {