#!/bin/bash
cd ~/firefrost-work/firefrost-operations-manual

# Create archive directory
mkdir -p docs/archive/2026-02-09-session

# Archive session-specific files
mv docs/session-migration-feb9-2026.md docs/archive/2026-02-09-session/
mv docs/session-journal-feb9-2026.md docs/archive/2026-02-09-session/
mv tx1-cleanup-feb9-2026.txt docs/archive/2026-02-09-session/

# Remove test files
rm -f test-mirror.txt

# Archive old automation results (keep directory structure)
mkdir -p automation/archive
mv automation/results/*bookstack* automation/archive/ 2>/dev/null
mv automation/results/*mkdocs* automation/archive/ 2>/dev/null
mv automation/results/*wikijs* automation/archive/ 2>/dev/null
mv automation/results/test-* automation/archive/ 2>/dev/null

# Commit cleanup
git add -A
git commit -m "Repository cleanup: Archive session files, remove test files, organize automation results"
git push

echo "Repository organized and committed!"
