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:
OpenCode Test
2026-01-01 18:44:40 -08:00
parent 125bb4904b
commit c1a3c1812c
9 changed files with 596 additions and 6 deletions

View File

@@ -164,6 +164,16 @@
"description": "Search memory, history, and configuration",
"aliases": ["/find", "/lookup"],
"invokes": "command:search"
},
"/log": {
"description": "View and analyze logs",
"aliases": ["/logs", "/logview"],
"invokes": "command:log"
},
"/debug": {
"description": "Debug and troubleshoot configuration",
"aliases": ["/diag", "/diagnose"],
"invokes": "command:debug"
}
},
"agents": {
@@ -292,7 +302,10 @@
"memory-add": "~/.claude/automation/memory-add.py",
"memory-list": "~/.claude/automation/memory-list.py",
"search": "~/.claude/automation/search.py",
"history-browser": "~/.claude/automation/history-browser.py"
"history-browser": "~/.claude/automation/history-browser.py",
"log-viewer": "~/.claude/automation/log-viewer.py",
"debug": "~/.claude/automation/debug.sh",
"daily-maintenance": "~/.claude/automation/daily-maintenance.sh"
},
"completions": {
"bash": "~/.claude/automation/completions.bash",