Add search command, history browser, install script, and systemd timers
- /search command to search across memory, history, and configuration - history-browser.py for browsing and analyzing session history - install.sh for first-time setup with directory creation and validation - daily-maintenance.sh for scheduled backup, cleanup, and validation - systemd timer units for automated daily maintenance at 6 AM - Updated shell completions with 11 aliases - Test suite now covers 19 tests - Bump version to 1.1.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
12
automation/systemd/claude-maintenance.service
Normal file
12
automation/systemd/claude-maintenance.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Claude Code Configuration Maintenance
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/will/.claude/automation/daily-maintenance.sh
|
||||
User=will
|
||||
Environment=HOME=/home/will
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
automation/systemd/claude-maintenance.timer
Normal file
11
automation/systemd/claude-maintenance.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Daily Claude Code Maintenance Timer
|
||||
Requires=claude-maintenance.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 06:00:00
|
||||
Persistent=true
|
||||
RandomizedDelaySec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
31
automation/systemd/install-timers.sh
Executable file
31
automation/systemd/install-timers.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Install systemd timers for Claude Code maintenance
|
||||
# Run as root or with sudo
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SYSTEMD_DIR="/etc/systemd/system"
|
||||
|
||||
echo "Installing Claude Code systemd timers..."
|
||||
|
||||
# Copy service and timer files
|
||||
sudo cp "${SCRIPT_DIR}/claude-maintenance.service" "${SYSTEMD_DIR}/"
|
||||
sudo cp "${SCRIPT_DIR}/claude-maintenance.timer" "${SYSTEMD_DIR}/"
|
||||
|
||||
# Reload systemd
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
# Enable and start timer
|
||||
sudo systemctl enable claude-maintenance.timer
|
||||
sudo systemctl start claude-maintenance.timer
|
||||
|
||||
echo ""
|
||||
echo "Timer installed successfully!"
|
||||
echo ""
|
||||
echo "Commands:"
|
||||
echo " systemctl status claude-maintenance.timer # Check timer status"
|
||||
echo " systemctl list-timers # List all timers"
|
||||
echo " journalctl -u claude-maintenance.service # View logs"
|
||||
echo " sudo systemctl start claude-maintenance # Run maintenance now"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user