cccc9d688b
Add a new `hermes logs` subcommand for viewing and filtering log files directly from the terminal, no need to remember file paths or shell out to tail/grep. Usage: hermes logs # last 50 lines of agent.log hermes logs -f # follow agent.log in real time hermes logs errors # last 50 lines of errors.log hermes logs gateway -n 100 # last 100 lines of gateway.log hermes logs --level WARNING # only WARNING+ lines hermes logs --session abc123 # filter by session ID hermes logs --since 1h # lines from the last hour hermes logs --since 30m -f # follow, starting 30 min ago hermes logs list # list log files with sizes/ages Implementation: - hermes_cli/logs.py: tail_log(), list_logs(), filtering engine (level, session, time-based), efficient file reading (whole-file for <1MB, chunked binary seek for larger), follow mode with 300ms polling - hermes_cli/main.py: cmd_logs() dispatch + argparse subcommand with full --help examples - 35 new tests covering parsing, filtering, tail, list, edge cases