# NERF shell completions for fish
# Install: cp completions/nerf.fish ~/.config/fish/completions/nerf.fish

complete -c nerf -f

# Commands
complete -c nerf -n '__fish_use_subcommand' -a analyze -d 'Cross-artifact consistency analysis'
complete -c nerf -n '__fish_use_subcommand' -a api -d 'Start REST API server'
complete -c nerf -n '__fish_use_subcommand' -a benchmark -d 'Run CTF benchmark suite'
complete -c nerf -n '__fish_use_subcommand' -a bot -d 'Start Signal bot'
complete -c nerf -n '__fish_use_subcommand' -a chain -d 'Run multi-mode agent chain'
complete -c nerf -n '__fish_use_subcommand' -a compliance -d 'Compliance framework assessment'
complete -c nerf -n '__fish_use_subcommand' -a council -d 'Multi-model consensus analysis'
complete -c nerf -n '__fish_use_subcommand' -a diff -d 'Analyze git diff for security issues'
complete -c nerf -n '__fish_use_subcommand' -a doctor -d 'System health check'
complete -c nerf -n '__fish_use_subcommand' -a domains -d 'List skill domains and technique counts'
complete -c nerf -n '__fish_use_subcommand' -a feedback -d 'Analyze response quality'
complete -c nerf -n '__fish_use_subcommand' -a guardrail -d 'Safety guardrail check'
complete -c nerf -n '__fish_use_subcommand' -a ingest -d 'Ingest documents into memory'
complete -c nerf -n '__fish_use_subcommand' -a leaderboard -d 'Show benchmark leaderboard'
complete -c nerf -n '__fish_use_subcommand' -a marketplace -d 'Plugin marketplace'
complete -c nerf -n '__fish_use_subcommand' -a mcp -d 'Start MCP server (stdio)'
complete -c nerf -n '__fish_use_subcommand' -a memory-export -d 'Export memory database'
complete -c nerf -n '__fish_use_subcommand' -a memory-import -d 'Import memory database'
complete -c nerf -n '__fish_use_subcommand' -a osint -d 'OSINT investigation'
complete -c nerf -n '__fish_use_subcommand' -a panel -d 'Expert panel assessment'
complete -c nerf -n '__fish_use_subcommand' -a plugin -d 'Manage plugins'
complete -c nerf -n '__fish_use_subcommand' -a query -d 'Security query'
complete -c nerf -n '__fish_use_subcommand' -a resume -d 'Resume interrupted session'
complete -c nerf -n '__fish_use_subcommand' -a review -d 'Code security review'
complete -c nerf -n '__fish_use_subcommand' -a sarif -d 'Generate SARIF report'
complete -c nerf -n '__fish_use_subcommand' -a scan -d 'Run security scan'
complete -c nerf -n '__fish_use_subcommand' -a score -d 'Security posture score'
complete -c nerf -n '__fish_use_subcommand' -a search -d 'Search skills and techniques'
complete -c nerf -n '__fish_use_subcommand' -a setup -d 'Run setup wizard'
complete -c nerf -n '__fish_use_subcommand' -a setup-signal -d 'Configure Signal bot'
complete -c nerf -n '__fish_use_subcommand' -a shard -d 'Shard analysis across models'
complete -c nerf -n '__fish_use_subcommand' -a skills -d 'List available skills'
complete -c nerf -n '__fish_use_subcommand' -a stats -d 'Platform statistics'
complete -c nerf -n '__fish_use_subcommand' -a status -d 'Show current status'
complete -c nerf -n '__fish_use_subcommand' -a store -d 'Store memory entry'
complete -c nerf -n '__fish_use_subcommand' -a update -d 'Check for updates'
complete -c nerf -n '__fish_use_subcommand' -a version -d 'Show version'
complete -c nerf -n '__fish_use_subcommand' -a workflow -d 'Generate security workflow'

# Auto mode names
complete -c nerf -n '__fish_use_subcommand' -a red -d 'RED mode (offensive security)'
complete -c nerf -n '__fish_use_subcommand' -a blue -d 'BLUE mode (defensive security)'
complete -c nerf -n '__fish_use_subcommand' -a incident -d 'INCIDENT mode (IR/forensics)'
complete -c nerf -n '__fish_use_subcommand' -a purple -d 'PURPLE mode (detection engineering)'
complete -c nerf -n '__fish_use_subcommand' -a recon -d 'RECON mode (OSINT)'
complete -c nerf -n '__fish_use_subcommand' -a privacy -d 'PRIVACY mode (GDPR/CCPA/HIPAA)'
complete -c nerf -n '__fish_use_subcommand' -a architect -d 'ARCHITECT mode (threat modeling)'
complete -c nerf -n '__fish_use_subcommand' -a researcher -d 'RESEARCHER mode (vuln research)'
complete -c nerf -n '__fish_use_subcommand' -a build -d 'BUILD mode (security tooling)'

# Flags
complete -c nerf -l auto -d 'Run in auto execution mode'
complete -c nerf -l backend -d 'LLM backend override' -xa 'claude ollama openai openrouter openai-compat pi-ai'
complete -c nerf -l no-stream -d 'Disable streaming output'
