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

@@ -71,6 +71,13 @@ else
fail "history-browser.py syntax error"
fi
# Test 8: log-viewer.py
if python3 -m py_compile "${AUTOMATION_DIR}/log-viewer.py" 2>/dev/null; then
pass "log-viewer.py syntax valid"
else
fail "log-viewer.py syntax error"
fi
echo ""
echo "=== Skill Scripts ==="
@@ -115,7 +122,7 @@ else
fi
# Test automation bash scripts
for script in install.sh daily-maintenance.sh backup.sh restore.sh clean.sh; do
for script in install.sh daily-maintenance.sh backup.sh restore.sh clean.sh debug.sh; do
if [[ -f "${AUTOMATION_DIR}/${script}" ]]; then
if bash -n "${AUTOMATION_DIR}/${script}" 2>/dev/null; then
pass "${script} syntax valid"