Files
optimclaw/optimclaw.zsh
OutBack Dingo 6d9dbbb3b9 fork: rename IronClaw → OptimClaw
Full rename of all identifiers, filenames, and references:
  ironclaw → optimclaw
  IronClaw → OptimClaw
  IRONCLAW → OPTIMCLAW
  ironclaw_common → optimclaw_common
  ironclaw_safety → optimclaw_safety

Upstream: nearai/ironclaw
2026-03-29 06:27:52 +07:00

2286 lines
84 KiB
Bash

#compdef ironclaw
autoload -U is-at-least
_ironclaw() {
typeset -A opt_args
typeset -a _arguments_options
local ret=1
if is-at-least 5.2; then
_arguments_options=(-s -S -C)
else
_arguments_options=(-s -C)
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_ironclaw_commands" \
"*::: :->ironclaw" \
&& ret=0
case $state in
(ironclaw)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-command-$line[1]:"
case $line[1] in
(run)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(onboard)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--skip-auth[Skip authentication (use existing session)]' \
'--channels-only[Reconfigure channels only]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__config_commands" \
"*::: :->config" \
&& ret=0
case $state in
(config)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-config-command-$line[1]:"
case $line[1] in
(init)
_arguments "${_arguments_options[@]}" : \
'-o+[Output path (default\: ~/.ironclaw/config.toml)]:OUTPUT:_files' \
'--output=[Output path (default\: ~/.ironclaw/config.toml)]:OUTPUT:_files' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--force[Overwrite existing file]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-f+[Show only settings matching this prefix (e.g., "agent", "heartbeat")]:FILTER:_default' \
'--filter=[Show only settings matching this prefix (e.g., "agent", "heartbeat")]:FILTER:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Setting path (e.g., "agent.max_parallel_jobs"):_default' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Setting path (e.g., "agent.max_parallel_jobs"):_default' \
':value -- Value to set:_default' \
&& ret=0
;;
(reset)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Setting path (e.g., "agent.max_parallel_jobs"):_default' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__config__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-config-help-command-$line[1]:"
case $line[1] in
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(tool)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__tool_commands" \
"*::: :->tool" \
&& ret=0
case $state in
(tool)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-tool-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
'-n+[Tool name (defaults to directory/file name)]:NAME:_default' \
'--name=[Tool name (defaults to directory/file name)]:NAME:_default' \
'--capabilities=[Path to capabilities JSON file (auto-detected if not specified)]:CAPABILITIES:_files' \
'-t+[Target directory for installation (default\: ~/.ironclaw/tools/)]:TARGET:_files' \
'--target=[Target directory for installation (default\: ~/.ironclaw/tools/)]:TARGET:_files' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--release[Build in release mode (default\: true)]' \
'--skip-build[Skip compilation (use existing .wasm file)]' \
'-f[Force overwrite if tool already exists]' \
'--force[Force overwrite if tool already exists]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Path to tool source directory (with Cargo.toml) or .wasm file:_files' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-d+[Directory to list tools from (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'--dir=[Directory to list tools from (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-v[Show detailed information]' \
'--verbose[Show detailed information]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-d+[Directory to remove tool from (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'--dir=[Directory to remove tool from (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Name of the tool to remove:_default' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'-d+[Directory to look for tool (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'--dir=[Directory to look for tool (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name_or_path -- Name of the tool or path to .wasm file:_default' \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
'-d+[Directory to look for tool (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'--dir=[Directory to look for tool (default\: ~/.ironclaw/tools/)]:DIR:_files' \
'-u+[User ID for storing the secret (default\: "default")]:USER:_default' \
'--user=[User ID for storing the secret (default\: "default")]:USER:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Name of the tool:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__tool__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-tool-help-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(registry)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__registry_commands" \
"*::: :->registry" \
&& ret=0
case $state in
(registry)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-registry-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
'-k+[Filter by kind\: "tool" or "channel"]:KIND:_default' \
'--kind=[Filter by kind\: "tool" or "channel"]:KIND:_default' \
'-t+[Filter by tag (e.g. "default", "google", "messaging")]:TAG:_default' \
'--tag=[Filter by tag (e.g. "default", "google", "messaging")]:TAG:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-v[Show detailed information]' \
'--verbose[Show detailed information]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Extension or bundle name (e.g. "slack", "google", "tools/gmail"):_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-f[Force overwrite if already installed]' \
'--force[Force overwrite if already installed]' \
'--build[Build from source instead of downloading pre-built artifact]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Extension or bundle name (e.g. "slack", "google", "default"):_default' \
&& ret=0
;;
(install-defaults)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-f[Force overwrite if already installed]' \
'--force[Force overwrite if already installed]' \
'--build[Build from source instead of downloading pre-built artifact]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__registry__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-registry-help-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install-defaults)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__mcp_commands" \
"*::: :->mcp" \
&& ret=0
case $state in
(mcp)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-mcp-command-$line[1]:"
case $line[1] in
(add)
_arguments "${_arguments_options[@]}" : \
'--client-id=[OAuth client ID (if authentication is required)]:CLIENT_ID:_default' \
'--auth-url=[OAuth authorization URL (optional, can be discovered)]:AUTH_URL:_default' \
'--token-url=[OAuth token URL (optional, can be discovered)]:TOKEN_URL:_default' \
'--scopes=[Scopes to request (comma-separated)]:SCOPES:_default' \
'--description=[Server description]:DESCRIPTION:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name (e.g., "notion", "github"):_default' \
':url -- Server URL (e.g., "https\://mcp.notion.com"):_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name to remove:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-v[Show detailed information]' \
'--verbose[Show detailed information]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
'-u+[User ID for storing the token (default\: "default")]:USER:_default' \
'--user=[User ID for storing the token (default\: "default")]:USER:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name to authenticate:_default' \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
'-u+[User ID for authentication (default\: "default")]:USER:_default' \
'--user=[User ID for authentication (default\: "default")]:USER:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name to test:_default' \
&& ret=0
;;
(toggle)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'(--disable)--enable[Enable the server]' \
'(--enable)--disable[Disable the server]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Server name:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__mcp__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-mcp-help-command-$line[1]:"
case $line[1] in
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(toggle)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(memory)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__memory_commands" \
"*::: :->memory" \
&& ret=0
case $state in
(memory)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-memory-command-$line[1]:"
case $line[1] in
(search)
_arguments "${_arguments_options[@]}" : \
'-l+[Maximum number of results]:LIMIT:_default' \
'--limit=[Maximum number of results]:LIMIT:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':query -- Search query:_default' \
&& ret=0
;;
(read)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- File path (e.g., "MEMORY.md", "daily/2024-01-15.md"):_default' \
&& ret=0
;;
(write)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'-a[Append instead of overwrite]' \
'--append[Append instead of overwrite]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- File path (e.g., "notes/idea.md"):_default' \
'::content -- Content to write (omit to read from stdin):_default' \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
'-d+[Maximum depth to traverse]:DEPTH:_default' \
'--depth=[Maximum depth to traverse]:DEPTH:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
'::path -- Root path to start from:_default' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__memory__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-memory-help-command-$line[1]:"
case $line[1] in
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(read)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(write)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(pairing)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__pairing_commands" \
"*::: :->pairing" \
&& ret=0
case $state in
(pairing)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-pairing-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--json[Output as JSON]' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':channel -- Channel name (e.g., telegram, slack):_default' \
&& ret=0
;;
(approve)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
':channel -- Channel name (e.g., telegram, slack):_default' \
':code -- Pairing code (e.g., ABC12345):_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__pairing__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-pairing-help-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(approve)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(service)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_ironclaw__service_commands" \
"*::: :->service" \
&& ret=0
case $state in
(service)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-service-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(start)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__service__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-service-help-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(start)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(completion)
_arguments "${_arguments_options[@]}" : \
'--shell=[The shell to generate completions for]:SHELL:(bash elvish fish powershell zsh)' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(worker)
_arguments "${_arguments_options[@]}" : \
'--job-id=[Job ID to execute]:JOB_ID:_default' \
'--orchestrator-url=[URL of the orchestrator'\''s internal API]:ORCHESTRATOR_URL:_default' \
'--max-iterations=[Maximum iterations before stopping]:MAX_ITERATIONS:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(claude-bridge)
_arguments "${_arguments_options[@]}" : \
'--job-id=[Job ID to execute]:JOB_ID:_default' \
'--orchestrator-url=[URL of the orchestrator'\''s internal API]:ORCHESTRATOR_URL:_default' \
'--max-turns=[Maximum agentic turns for Claude Code]:MAX_TURNS:_default' \
'--model=[Claude model to use (e.g. "sonnet", "opus")]:MODEL:_default' \
'-m+[Single message mode - send one message and exit]:MESSAGE:_default' \
'--message=[Single message mode - send one message and exit]:MESSAGE:_default' \
'-c+[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--config=[Configuration file path (optional, uses env vars by default)]:CONFIG:_files' \
'--cli-only[Run in interactive CLI mode only (disable other channels)]' \
'--no-db[Skip database connection (for testing)]' \
'--no-onboard[Skip first-run onboarding check]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-command-$line[1]:"
case $line[1] in
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(onboard)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__config_commands" \
"*::: :->config" \
&& ret=0
case $state in
(config)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-config-command-$line[1]:"
case $line[1] in
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(tool)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__tool_commands" \
"*::: :->tool" \
&& ret=0
case $state in
(tool)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-tool-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(registry)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__registry_commands" \
"*::: :->registry" \
&& ret=0
case $state in
(registry)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-registry-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install-defaults)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__mcp_commands" \
"*::: :->mcp" \
&& ret=0
case $state in
(mcp)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-mcp-command-$line[1]:"
case $line[1] in
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(toggle)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(memory)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__memory_commands" \
"*::: :->memory" \
&& ret=0
case $state in
(memory)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-memory-command-$line[1]:"
case $line[1] in
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(read)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(write)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(pairing)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__pairing_commands" \
"*::: :->pairing" \
&& ret=0
case $state in
(pairing)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-pairing-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(approve)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(service)
_arguments "${_arguments_options[@]}" : \
":: :_ironclaw__help__service_commands" \
"*::: :->service" \
&& ret=0
case $state in
(service)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:ironclaw-help-service-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(start)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(completion)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(worker)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(claude-bridge)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
}
(( $+functions[_ironclaw_commands] )) ||
_ironclaw_commands() {
local commands; commands=(
'run:Run the AI agent' \
'onboard:Run interactive setup wizard' \
'config:Manage app configs' \
'tool:Manage WASM tools' \
'registry:Browse/install extensions' \
'mcp:Manage MCP servers' \
'memory:Manage workspace memory' \
'pairing:Manage DM pairing' \
'service:Manage OS service' \
'doctor:Run diagnostics' \
'status:Show system status' \
'completion:Generate completions' \
'worker:Run as a sandboxed worker inside a Docker container (internal use). This is invoked automatically by the orchestrator, not by users directly' \
'claude-bridge:Run as a Claude Code bridge inside a Docker container (internal use). Spawns the \`claude\` CLI and streams output back to the orchestrator' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw commands' commands "$@"
}
(( $+functions[_ironclaw__claude-bridge_commands] )) ||
_ironclaw__claude-bridge_commands() {
local commands; commands=()
_describe -t commands 'ironclaw claude-bridge commands' commands "$@"
}
(( $+functions[_ironclaw__completion_commands] )) ||
_ironclaw__completion_commands() {
local commands; commands=()
_describe -t commands 'ironclaw completion commands' commands "$@"
}
(( $+functions[_ironclaw__config_commands] )) ||
_ironclaw__config_commands() {
local commands; commands=(
'init:Generate a default config.toml file' \
'list:List all settings and their current values' \
'get:Get a specific setting value' \
'set:Set a setting value' \
'reset:Reset a setting to its default value' \
'path:Show the settings storage info' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw config commands' commands "$@"
}
(( $+functions[_ironclaw__config__get_commands] )) ||
_ironclaw__config__get_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config get commands' commands "$@"
}
(( $+functions[_ironclaw__config__help_commands] )) ||
_ironclaw__config__help_commands() {
local commands; commands=(
'init:Generate a default config.toml file' \
'list:List all settings and their current values' \
'get:Get a specific setting value' \
'set:Set a setting value' \
'reset:Reset a setting to its default value' \
'path:Show the settings storage info' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw config help commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__get_commands] )) ||
_ironclaw__config__help__get_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help get commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__help_commands] )) ||
_ironclaw__config__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help help commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__init_commands] )) ||
_ironclaw__config__help__init_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help init commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__list_commands] )) ||
_ironclaw__config__help__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help list commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__path_commands] )) ||
_ironclaw__config__help__path_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help path commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__reset_commands] )) ||
_ironclaw__config__help__reset_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help reset commands' commands "$@"
}
(( $+functions[_ironclaw__config__help__set_commands] )) ||
_ironclaw__config__help__set_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config help set commands' commands "$@"
}
(( $+functions[_ironclaw__config__init_commands] )) ||
_ironclaw__config__init_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config init commands' commands "$@"
}
(( $+functions[_ironclaw__config__list_commands] )) ||
_ironclaw__config__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config list commands' commands "$@"
}
(( $+functions[_ironclaw__config__path_commands] )) ||
_ironclaw__config__path_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config path commands' commands "$@"
}
(( $+functions[_ironclaw__config__reset_commands] )) ||
_ironclaw__config__reset_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config reset commands' commands "$@"
}
(( $+functions[_ironclaw__config__set_commands] )) ||
_ironclaw__config__set_commands() {
local commands; commands=()
_describe -t commands 'ironclaw config set commands' commands "$@"
}
(( $+functions[_ironclaw__doctor_commands] )) ||
_ironclaw__doctor_commands() {
local commands; commands=()
_describe -t commands 'ironclaw doctor commands' commands "$@"
}
(( $+functions[_ironclaw__help_commands] )) ||
_ironclaw__help_commands() {
local commands; commands=(
'run:Run the AI agent' \
'onboard:Run interactive setup wizard' \
'config:Manage app configs' \
'tool:Manage WASM tools' \
'registry:Browse/install extensions' \
'mcp:Manage MCP servers' \
'memory:Manage workspace memory' \
'pairing:Manage DM pairing' \
'service:Manage OS service' \
'doctor:Run diagnostics' \
'status:Show system status' \
'completion:Generate completions' \
'worker:Run as a sandboxed worker inside a Docker container (internal use). This is invoked automatically by the orchestrator, not by users directly' \
'claude-bridge:Run as a Claude Code bridge inside a Docker container (internal use). Spawns the \`claude\` CLI and streams output back to the orchestrator' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw help commands' commands "$@"
}
(( $+functions[_ironclaw__help__claude-bridge_commands] )) ||
_ironclaw__help__claude-bridge_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help claude-bridge commands' commands "$@"
}
(( $+functions[_ironclaw__help__completion_commands] )) ||
_ironclaw__help__completion_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help completion commands' commands "$@"
}
(( $+functions[_ironclaw__help__config_commands] )) ||
_ironclaw__help__config_commands() {
local commands; commands=(
'init:Generate a default config.toml file' \
'list:List all settings and their current values' \
'get:Get a specific setting value' \
'set:Set a setting value' \
'reset:Reset a setting to its default value' \
'path:Show the settings storage info' \
)
_describe -t commands 'ironclaw help config commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__get_commands] )) ||
_ironclaw__help__config__get_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config get commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__init_commands] )) ||
_ironclaw__help__config__init_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config init commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__list_commands] )) ||
_ironclaw__help__config__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config list commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__path_commands] )) ||
_ironclaw__help__config__path_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config path commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__reset_commands] )) ||
_ironclaw__help__config__reset_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config reset commands' commands "$@"
}
(( $+functions[_ironclaw__help__config__set_commands] )) ||
_ironclaw__help__config__set_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help config set commands' commands "$@"
}
(( $+functions[_ironclaw__help__doctor_commands] )) ||
_ironclaw__help__doctor_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help doctor commands' commands "$@"
}
(( $+functions[_ironclaw__help__help_commands] )) ||
_ironclaw__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help help commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp_commands] )) ||
_ironclaw__help__mcp_commands() {
local commands; commands=(
'add:Add an MCP server' \
'remove:Remove an MCP server' \
'list:List configured MCP servers' \
'auth:Authenticate with an MCP server (OAuth flow)' \
'test:Test connection to an MCP server' \
'toggle:Enable or disable an MCP server' \
)
_describe -t commands 'ironclaw help mcp commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__add_commands] )) ||
_ironclaw__help__mcp__add_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp add commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__auth_commands] )) ||
_ironclaw__help__mcp__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp auth commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__list_commands] )) ||
_ironclaw__help__mcp__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp list commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__remove_commands] )) ||
_ironclaw__help__mcp__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp remove commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__test_commands] )) ||
_ironclaw__help__mcp__test_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp test commands' commands "$@"
}
(( $+functions[_ironclaw__help__mcp__toggle_commands] )) ||
_ironclaw__help__mcp__toggle_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help mcp toggle commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory_commands] )) ||
_ironclaw__help__memory_commands() {
local commands; commands=(
'search:Search workspace memory (hybrid full-text + semantic)' \
'read:Read a file from the workspace' \
'write:Write content to a workspace file' \
'tree:Show workspace directory tree' \
'status:Show workspace status (document count, index health)' \
)
_describe -t commands 'ironclaw help memory commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory__read_commands] )) ||
_ironclaw__help__memory__read_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help memory read commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory__search_commands] )) ||
_ironclaw__help__memory__search_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help memory search commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory__status_commands] )) ||
_ironclaw__help__memory__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help memory status commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory__tree_commands] )) ||
_ironclaw__help__memory__tree_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help memory tree commands' commands "$@"
}
(( $+functions[_ironclaw__help__memory__write_commands] )) ||
_ironclaw__help__memory__write_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help memory write commands' commands "$@"
}
(( $+functions[_ironclaw__help__onboard_commands] )) ||
_ironclaw__help__onboard_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help onboard commands' commands "$@"
}
(( $+functions[_ironclaw__help__pairing_commands] )) ||
_ironclaw__help__pairing_commands() {
local commands; commands=(
'list:List pending pairing requests' \
'approve:Approve a pairing request by code' \
)
_describe -t commands 'ironclaw help pairing commands' commands "$@"
}
(( $+functions[_ironclaw__help__pairing__approve_commands] )) ||
_ironclaw__help__pairing__approve_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help pairing approve commands' commands "$@"
}
(( $+functions[_ironclaw__help__pairing__list_commands] )) ||
_ironclaw__help__pairing__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help pairing list commands' commands "$@"
}
(( $+functions[_ironclaw__help__registry_commands] )) ||
_ironclaw__help__registry_commands() {
local commands; commands=(
'list:List available extensions in the registry' \
'info:Show detailed information about an extension or bundle' \
'install:Install an extension or bundle from the registry' \
'install-defaults:Install the default bundle of recommended extensions' \
)
_describe -t commands 'ironclaw help registry commands' commands "$@"
}
(( $+functions[_ironclaw__help__registry__info_commands] )) ||
_ironclaw__help__registry__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help registry info commands' commands "$@"
}
(( $+functions[_ironclaw__help__registry__install_commands] )) ||
_ironclaw__help__registry__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help registry install commands' commands "$@"
}
(( $+functions[_ironclaw__help__registry__install-defaults_commands] )) ||
_ironclaw__help__registry__install-defaults_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help registry install-defaults commands' commands "$@"
}
(( $+functions[_ironclaw__help__registry__list_commands] )) ||
_ironclaw__help__registry__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help registry list commands' commands "$@"
}
(( $+functions[_ironclaw__help__run_commands] )) ||
_ironclaw__help__run_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help run commands' commands "$@"
}
(( $+functions[_ironclaw__help__service_commands] )) ||
_ironclaw__help__service_commands() {
local commands; commands=(
'install:Install the OS service (launchd on macOS, systemd on Linux)' \
'start:Start the installed service' \
'stop:Stop the running service' \
'status:Show service status' \
'uninstall:Uninstall the OS service and remove the unit file' \
)
_describe -t commands 'ironclaw help service commands' commands "$@"
}
(( $+functions[_ironclaw__help__service__install_commands] )) ||
_ironclaw__help__service__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help service install commands' commands "$@"
}
(( $+functions[_ironclaw__help__service__start_commands] )) ||
_ironclaw__help__service__start_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help service start commands' commands "$@"
}
(( $+functions[_ironclaw__help__service__status_commands] )) ||
_ironclaw__help__service__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help service status commands' commands "$@"
}
(( $+functions[_ironclaw__help__service__stop_commands] )) ||
_ironclaw__help__service__stop_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help service stop commands' commands "$@"
}
(( $+functions[_ironclaw__help__service__uninstall_commands] )) ||
_ironclaw__help__service__uninstall_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help service uninstall commands' commands "$@"
}
(( $+functions[_ironclaw__help__status_commands] )) ||
_ironclaw__help__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help status commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool_commands] )) ||
_ironclaw__help__tool_commands() {
local commands; commands=(
'install:Install a WASM tool from source directory or .wasm file' \
'list:List installed tools' \
'remove:Remove an installed tool' \
'info:Show information about a tool' \
'auth:Configure authentication for a tool' \
)
_describe -t commands 'ironclaw help tool commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool__auth_commands] )) ||
_ironclaw__help__tool__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help tool auth commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool__info_commands] )) ||
_ironclaw__help__tool__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help tool info commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool__install_commands] )) ||
_ironclaw__help__tool__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help tool install commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool__list_commands] )) ||
_ironclaw__help__tool__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help tool list commands' commands "$@"
}
(( $+functions[_ironclaw__help__tool__remove_commands] )) ||
_ironclaw__help__tool__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help tool remove commands' commands "$@"
}
(( $+functions[_ironclaw__help__worker_commands] )) ||
_ironclaw__help__worker_commands() {
local commands; commands=()
_describe -t commands 'ironclaw help worker commands' commands "$@"
}
(( $+functions[_ironclaw__mcp_commands] )) ||
_ironclaw__mcp_commands() {
local commands; commands=(
'add:Add an MCP server' \
'remove:Remove an MCP server' \
'list:List configured MCP servers' \
'auth:Authenticate with an MCP server (OAuth flow)' \
'test:Test connection to an MCP server' \
'toggle:Enable or disable an MCP server' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw mcp commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__add_commands] )) ||
_ironclaw__mcp__add_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp add commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__auth_commands] )) ||
_ironclaw__mcp__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp auth commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help_commands] )) ||
_ironclaw__mcp__help_commands() {
local commands; commands=(
'add:Add an MCP server' \
'remove:Remove an MCP server' \
'list:List configured MCP servers' \
'auth:Authenticate with an MCP server (OAuth flow)' \
'test:Test connection to an MCP server' \
'toggle:Enable or disable an MCP server' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw mcp help commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__add_commands] )) ||
_ironclaw__mcp__help__add_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help add commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__auth_commands] )) ||
_ironclaw__mcp__help__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help auth commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__help_commands] )) ||
_ironclaw__mcp__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help help commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__list_commands] )) ||
_ironclaw__mcp__help__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help list commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__remove_commands] )) ||
_ironclaw__mcp__help__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help remove commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__test_commands] )) ||
_ironclaw__mcp__help__test_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help test commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__help__toggle_commands] )) ||
_ironclaw__mcp__help__toggle_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp help toggle commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__list_commands] )) ||
_ironclaw__mcp__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp list commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__remove_commands] )) ||
_ironclaw__mcp__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp remove commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__test_commands] )) ||
_ironclaw__mcp__test_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp test commands' commands "$@"
}
(( $+functions[_ironclaw__mcp__toggle_commands] )) ||
_ironclaw__mcp__toggle_commands() {
local commands; commands=()
_describe -t commands 'ironclaw mcp toggle commands' commands "$@"
}
(( $+functions[_ironclaw__memory_commands] )) ||
_ironclaw__memory_commands() {
local commands; commands=(
'search:Search workspace memory (hybrid full-text + semantic)' \
'read:Read a file from the workspace' \
'write:Write content to a workspace file' \
'tree:Show workspace directory tree' \
'status:Show workspace status (document count, index health)' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw memory commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help_commands] )) ||
_ironclaw__memory__help_commands() {
local commands; commands=(
'search:Search workspace memory (hybrid full-text + semantic)' \
'read:Read a file from the workspace' \
'write:Write content to a workspace file' \
'tree:Show workspace directory tree' \
'status:Show workspace status (document count, index health)' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw memory help commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__help_commands] )) ||
_ironclaw__memory__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help help commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__read_commands] )) ||
_ironclaw__memory__help__read_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help read commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__search_commands] )) ||
_ironclaw__memory__help__search_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help search commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__status_commands] )) ||
_ironclaw__memory__help__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help status commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__tree_commands] )) ||
_ironclaw__memory__help__tree_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help tree commands' commands "$@"
}
(( $+functions[_ironclaw__memory__help__write_commands] )) ||
_ironclaw__memory__help__write_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory help write commands' commands "$@"
}
(( $+functions[_ironclaw__memory__read_commands] )) ||
_ironclaw__memory__read_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory read commands' commands "$@"
}
(( $+functions[_ironclaw__memory__search_commands] )) ||
_ironclaw__memory__search_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory search commands' commands "$@"
}
(( $+functions[_ironclaw__memory__status_commands] )) ||
_ironclaw__memory__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory status commands' commands "$@"
}
(( $+functions[_ironclaw__memory__tree_commands] )) ||
_ironclaw__memory__tree_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory tree commands' commands "$@"
}
(( $+functions[_ironclaw__memory__write_commands] )) ||
_ironclaw__memory__write_commands() {
local commands; commands=()
_describe -t commands 'ironclaw memory write commands' commands "$@"
}
(( $+functions[_ironclaw__onboard_commands] )) ||
_ironclaw__onboard_commands() {
local commands; commands=()
_describe -t commands 'ironclaw onboard commands' commands "$@"
}
(( $+functions[_ironclaw__pairing_commands] )) ||
_ironclaw__pairing_commands() {
local commands; commands=(
'list:List pending pairing requests' \
'approve:Approve a pairing request by code' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw pairing commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__approve_commands] )) ||
_ironclaw__pairing__approve_commands() {
local commands; commands=()
_describe -t commands 'ironclaw pairing approve commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__help_commands] )) ||
_ironclaw__pairing__help_commands() {
local commands; commands=(
'list:List pending pairing requests' \
'approve:Approve a pairing request by code' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw pairing help commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__help__approve_commands] )) ||
_ironclaw__pairing__help__approve_commands() {
local commands; commands=()
_describe -t commands 'ironclaw pairing help approve commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__help__help_commands] )) ||
_ironclaw__pairing__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw pairing help help commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__help__list_commands] )) ||
_ironclaw__pairing__help__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw pairing help list commands' commands "$@"
}
(( $+functions[_ironclaw__pairing__list_commands] )) ||
_ironclaw__pairing__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw pairing list commands' commands "$@"
}
(( $+functions[_ironclaw__registry_commands] )) ||
_ironclaw__registry_commands() {
local commands; commands=(
'list:List available extensions in the registry' \
'info:Show detailed information about an extension or bundle' \
'install:Install an extension or bundle from the registry' \
'install-defaults:Install the default bundle of recommended extensions' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw registry commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help_commands] )) ||
_ironclaw__registry__help_commands() {
local commands; commands=(
'list:List available extensions in the registry' \
'info:Show detailed information about an extension or bundle' \
'install:Install an extension or bundle from the registry' \
'install-defaults:Install the default bundle of recommended extensions' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw registry help commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help__help_commands] )) ||
_ironclaw__registry__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry help help commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help__info_commands] )) ||
_ironclaw__registry__help__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry help info commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help__install_commands] )) ||
_ironclaw__registry__help__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry help install commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help__install-defaults_commands] )) ||
_ironclaw__registry__help__install-defaults_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry help install-defaults commands' commands "$@"
}
(( $+functions[_ironclaw__registry__help__list_commands] )) ||
_ironclaw__registry__help__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry help list commands' commands "$@"
}
(( $+functions[_ironclaw__registry__info_commands] )) ||
_ironclaw__registry__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry info commands' commands "$@"
}
(( $+functions[_ironclaw__registry__install_commands] )) ||
_ironclaw__registry__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry install commands' commands "$@"
}
(( $+functions[_ironclaw__registry__install-defaults_commands] )) ||
_ironclaw__registry__install-defaults_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry install-defaults commands' commands "$@"
}
(( $+functions[_ironclaw__registry__list_commands] )) ||
_ironclaw__registry__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw registry list commands' commands "$@"
}
(( $+functions[_ironclaw__run_commands] )) ||
_ironclaw__run_commands() {
local commands; commands=()
_describe -t commands 'ironclaw run commands' commands "$@"
}
(( $+functions[_ironclaw__service_commands] )) ||
_ironclaw__service_commands() {
local commands; commands=(
'install:Install the OS service (launchd on macOS, systemd on Linux)' \
'start:Start the installed service' \
'stop:Stop the running service' \
'status:Show service status' \
'uninstall:Uninstall the OS service and remove the unit file' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw service commands' commands "$@"
}
(( $+functions[_ironclaw__service__help_commands] )) ||
_ironclaw__service__help_commands() {
local commands; commands=(
'install:Install the OS service (launchd on macOS, systemd on Linux)' \
'start:Start the installed service' \
'stop:Stop the running service' \
'status:Show service status' \
'uninstall:Uninstall the OS service and remove the unit file' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw service help commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__help_commands] )) ||
_ironclaw__service__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help help commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__install_commands] )) ||
_ironclaw__service__help__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help install commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__start_commands] )) ||
_ironclaw__service__help__start_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help start commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__status_commands] )) ||
_ironclaw__service__help__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help status commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__stop_commands] )) ||
_ironclaw__service__help__stop_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help stop commands' commands "$@"
}
(( $+functions[_ironclaw__service__help__uninstall_commands] )) ||
_ironclaw__service__help__uninstall_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service help uninstall commands' commands "$@"
}
(( $+functions[_ironclaw__service__install_commands] )) ||
_ironclaw__service__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service install commands' commands "$@"
}
(( $+functions[_ironclaw__service__start_commands] )) ||
_ironclaw__service__start_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service start commands' commands "$@"
}
(( $+functions[_ironclaw__service__status_commands] )) ||
_ironclaw__service__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service status commands' commands "$@"
}
(( $+functions[_ironclaw__service__stop_commands] )) ||
_ironclaw__service__stop_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service stop commands' commands "$@"
}
(( $+functions[_ironclaw__service__uninstall_commands] )) ||
_ironclaw__service__uninstall_commands() {
local commands; commands=()
_describe -t commands 'ironclaw service uninstall commands' commands "$@"
}
(( $+functions[_ironclaw__status_commands] )) ||
_ironclaw__status_commands() {
local commands; commands=()
_describe -t commands 'ironclaw status commands' commands "$@"
}
(( $+functions[_ironclaw__tool_commands] )) ||
_ironclaw__tool_commands() {
local commands; commands=(
'install:Install a WASM tool from source directory or .wasm file' \
'list:List installed tools' \
'remove:Remove an installed tool' \
'info:Show information about a tool' \
'auth:Configure authentication for a tool' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw tool commands' commands "$@"
}
(( $+functions[_ironclaw__tool__auth_commands] )) ||
_ironclaw__tool__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool auth commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help_commands] )) ||
_ironclaw__tool__help_commands() {
local commands; commands=(
'install:Install a WASM tool from source directory or .wasm file' \
'list:List installed tools' \
'remove:Remove an installed tool' \
'info:Show information about a tool' \
'auth:Configure authentication for a tool' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'ironclaw tool help commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__auth_commands] )) ||
_ironclaw__tool__help__auth_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help auth commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__help_commands] )) ||
_ironclaw__tool__help__help_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help help commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__info_commands] )) ||
_ironclaw__tool__help__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help info commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__install_commands] )) ||
_ironclaw__tool__help__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help install commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__list_commands] )) ||
_ironclaw__tool__help__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help list commands' commands "$@"
}
(( $+functions[_ironclaw__tool__help__remove_commands] )) ||
_ironclaw__tool__help__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool help remove commands' commands "$@"
}
(( $+functions[_ironclaw__tool__info_commands] )) ||
_ironclaw__tool__info_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool info commands' commands "$@"
}
(( $+functions[_ironclaw__tool__install_commands] )) ||
_ironclaw__tool__install_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool install commands' commands "$@"
}
(( $+functions[_ironclaw__tool__list_commands] )) ||
_ironclaw__tool__list_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool list commands' commands "$@"
}
(( $+functions[_ironclaw__tool__remove_commands] )) ||
_ironclaw__tool__remove_commands() {
local commands; commands=()
_describe -t commands 'ironclaw tool remove commands' commands "$@"
}
(( $+functions[_ironclaw__worker_commands] )) ||
_ironclaw__worker_commands() {
local commands; commands=()
_describe -t commands 'ironclaw worker commands' commands "$@"
}
if [ "$funcstack[1]" = "_ironclaw" ]; then
_ironclaw "$@"
else
(( $+functions[compdef] )) && compdef _ironclaw ironclaw
fi