Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cli/src/cli_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ pub enum HooksSubcommand {

#[command(about = "Run Claude model-state hook (reads JSON payload from STDIN)")]
ClaudeModelState,

#[command(about = "Run mutation-scope hook (reads JSON payload from STDIN)")]
MutationScope,
}

#[derive(Subcommand, Debug, Clone, PartialEq, Eq)]
Expand Down
6 changes: 6 additions & 0 deletions cli/src/services/hooks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub mod claude_transcript;
pub mod codex;
pub mod command;
pub mod lifecycle;
pub mod mutation_scope;

pub const NAME: &str = "hooks";
pub const CANONICAL_SCE_COAUTHOR_TRAILER: &str = "Co-authored-by: SCE <[email protected]>";
Expand Down Expand Up @@ -100,6 +101,7 @@ pub enum HookSubcommand {
ConversationTrace,
Codex,
ClaudeModelState,
MutationScope,
}

#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
Expand Down Expand Up @@ -241,6 +243,9 @@ fn run_hooks_subcommand_in_repo(
HookSubcommand::ClaudeModelState => Ok(
claude_model_state::run_claude_model_state_subcommand(repository_root, logger),
),
HookSubcommand::MutationScope => {
mutation_scope::run_mutation_scope_subcommand(repository_root, logger)
}
}
}

Expand Down Expand Up @@ -1951,6 +1956,7 @@ fn hook_runtime_invocation_name(subcommand: &HookSubcommand) -> &'static str {
HookSubcommand::ConversationTrace => "conversation-trace runtime invocation",
HookSubcommand::Codex => "codex runtime invocation",
HookSubcommand::ClaudeModelState => "Claude model-state runtime invocation",
HookSubcommand::MutationScope => "mutation-scope runtime invocation",
}
}

Expand Down
Loading
Loading