summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-08 21:07:30 +0000
committersoryu <soryu@soryu.co>2026-02-08 21:07:30 +0000
commit3662b334dfd68cfdf00ed44ae88927c2e1b2aabe (patch)
treebff5ae1e189fb8bcc0211d97dab3b9acb4257038 /makima/src/daemon/cli
parent87fa8c4af66745bd30bc84b6c5ef657dd4dec002 (diff)
downloadsoryu-3662b334dfd68cfdf00ed44ae88927c2e1b2aabe.tar.gz
soryu-3662b334dfd68cfdf00ed44ae88927c2e1b2aabe.zip
Remove directive mechanism
Diffstat (limited to 'makima/src/daemon/cli')
-rw-r--r--makima/src/daemon/cli/directive.rs60
-rw-r--r--makima/src/daemon/cli/mod.rs40
2 files changed, 0 insertions, 100 deletions
diff --git a/makima/src/daemon/cli/directive.rs b/makima/src/daemon/cli/directive.rs
deleted file mode 100644
index 4c29c14..0000000
--- a/makima/src/daemon/cli/directive.rs
+++ /dev/null
@@ -1,60 +0,0 @@
-//! Directive subcommand - directive orchestration commands.
-
-use clap::Args;
-use uuid::Uuid;
-
-/// Common arguments for directive commands.
-#[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,
-
- /// Directive ID
- #[arg(long, env = "MAKIMA_DIRECTIVE_ID", global = true)]
- pub directive_id: Uuid,
-}
-
-/// Arguments for chain command (get specific chain).
-#[derive(Args, Debug)]
-pub struct ChainArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Chain ID to retrieve
- pub chain_id: Uuid,
-}
-
-/// Arguments for update-status command.
-#[derive(Args, Debug)]
-pub struct UpdateStatusArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// New status (draft, planning, active, paused, completed, archived, failed)
- pub status: String,
-}
-
-/// Arguments for evaluate command (trigger manual evaluation).
-#[derive(Args, Debug)]
-pub struct EvaluateArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Step ID to evaluate
- pub step_id: Uuid,
-}
-
-/// Arguments for evaluations command (list evaluation history).
-#[derive(Args, Debug)]
-pub struct EvaluationsArgs {
- #[command(flatten)]
- pub common: DirectiveArgs,
-
- /// Step ID to list evaluations for
- pub step_id: Uuid,
-}
diff --git a/makima/src/daemon/cli/mod.rs b/makima/src/daemon/cli/mod.rs
index 954f219..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;
@@ -43,10 +41,6 @@ pub enum Commands {
#[command(subcommand)]
Contract(ContractCommand),
- /// Directive commands for autonomous goal-driven execution
- #[command(subcommand)]
- Directive(DirectiveCommand),
-
/// Interactive TUI browser for contracts and tasks
///
/// Provides a drill-down interface for browsing contracts, viewing their
@@ -202,40 +196,6 @@ pub enum ContractCommand {
CreateFile(contract::CreateFileArgs),
}
-/// Directive subcommands for autonomous goal-driven execution.
-#[derive(Subcommand, Debug)]
-pub enum DirectiveCommand {
- /// Get directive status and details
- Status(DirectiveArgs),
-
- /// Get goal, requirements, acceptance criteria
- Goals(DirectiveArgs),
-
- /// List chains for the directive
- Chains(DirectiveArgs),
-
- /// Get a chain with its steps
- Chain(directive::ChainArgs),
-
- /// List steps in a chain
- Steps(directive::ChainArgs),
-
- /// Update directive status
- UpdateStatus(directive::UpdateStatusArgs),
-
- /// Start a directive (create planning contract and begin orchestration)
- Start(DirectiveArgs),
-
- /// Trigger a manual evaluation for a step
- Evaluate(directive::EvaluateArgs),
-
- /// List evaluation history for a step
- Evaluations(directive::EvaluationsArgs),
-
- /// Submit a chain plan for a directive (reads JSON from stdin)
- SubmitPlan(DirectiveArgs),
-}
-
impl Cli {
/// Parse command-line arguments
pub fn parse_args() -> Self {