Add /log and /debug commands for troubleshooting
- /log command to view and analyze automation logs - Filter by pattern, date, or log type - List available log files - /debug command generates comprehensive debug report - Version, core files, state, memory, scripts status - Environment info (Python, kubectl) - Disk usage by directory - JSON output mode for scripting - Updated shell completions with 13 aliases total - Test suite now covers 21 tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,12 +64,33 @@ _claude_history() {
|
||||
'--limit[Limit results]:count:'
|
||||
}
|
||||
|
||||
# Log viewer completion
|
||||
_claude_log() {
|
||||
_arguments \
|
||||
'--list[List log files]' \
|
||||
'--tail[Number of lines]:count:' \
|
||||
'--grep[Filter pattern]:pattern:' \
|
||||
'--since[Since date]:date:' \
|
||||
'--type[Log type]:type:' \
|
||||
'*:file:'
|
||||
}
|
||||
|
||||
# Debug completion
|
||||
_claude_debug() {
|
||||
_arguments \
|
||||
'--full[Full debug report]' \
|
||||
'--json[JSON output]' \
|
||||
'--paths[Show paths only]'
|
||||
}
|
||||
|
||||
# Register completions
|
||||
compdef _memory_add memory-add.py
|
||||
compdef _memory_list memory-list.py
|
||||
compdef _claude_restore restore.sh
|
||||
compdef _claude_search search.py
|
||||
compdef _claude_history history-browser.py
|
||||
compdef _claude_log log-viewer.py
|
||||
compdef _claude_debug debug.sh
|
||||
|
||||
# Aliases
|
||||
alias claude-validate='~/.claude/automation/validate-setup.sh'
|
||||
@@ -84,7 +105,9 @@ alias claude-history='python3 ~/.claude/automation/history-browser.py'
|
||||
alias claude-install='~/.claude/automation/install.sh'
|
||||
alias claude-test='~/.claude/automation/test-scripts.sh'
|
||||
alias claude-maintenance='~/.claude/automation/daily-maintenance.sh'
|
||||
alias claude-log='python3 ~/.claude/automation/log-viewer.py'
|
||||
alias claude-debug='~/.claude/automation/debug.sh'
|
||||
|
||||
echo "Claude Code completions loaded (zsh)"
|
||||
echo " Aliases: claude-{validate,status,backup,restore,clean,memory-add,memory-list}"
|
||||
echo " claude-{search,history,install,test,maintenance}"
|
||||
echo " claude-{search,history,install,test,maintenance,log,debug}"
|
||||
|
||||
Reference in New Issue
Block a user