feat(cli): add ironclaw hooks list subcommand (#1023)

Part of #83

  Static discovery of lifecycle hooks from bundled (audit_log) and plugin
  (WASM *.capabilities.json sidecar) sources. Supports --verbose and
  --json output. Workspace hooks (DB-stored) noted but omitted without
  DB connection.

  [skip-regression-check]

Co-authored-by: [email protected] <[email protected]>
This commit is contained in:
Reid
2026-03-21 21:08:13 -07:00
committed by GitHub
parent 0e5837b83a
commit 89394ebd29
8 changed files with 479 additions and 1 deletions
+10
View File
@@ -18,6 +18,7 @@ mod channels;
mod completion;
mod config;
mod doctor;
mod hooks;
#[cfg(feature = "import")]
pub mod import;
mod logs;
@@ -36,6 +37,7 @@ pub use channels::{ChannelsCommand, run_channels_command};
pub use completion::Completion;
pub use config::{ConfigCommand, run_config_command};
pub use doctor::run_doctor_command;
pub use hooks::{HooksCommand, run_hooks_command};
#[cfg(feature = "import")]
pub use import::{ImportCommand, run_import_command};
pub use logs::{LogsCommand, run_logs_command};
@@ -202,6 +204,14 @@ pub enum Command {
)]
Skills(SkillsCommand),
/// Manage lifecycle hooks
#[command(
subcommand,
about = "Manage lifecycle hooks",
long_about = "List and inspect lifecycle hooks (bundled, plugin, workspace).\nExamples:\n ironclaw hooks list\n ironclaw hooks list --verbose\n ironclaw hooks list --json"
)]
Hooks(HooksCommand),
/// Probe external dependencies and validate configuration
#[command(
about = "Run diagnostics",