Implements #34 - Job Limits Per Load Level
Jobs are now classified into HIGH, MEDIUM, or LOW load levels based on
gitignore-style whitelist files (.load files). This allows concurrent
execution of different types of jobs (e.g., downloading while transcoding).
Changes:
- Add LoadLevel enum with default limits (HIGH=2, MEDIUM=8, LOW=32)
- Add LoadLevelConfig record for per-level max jobs configuration
- Add CommandMatcher sealed interface for matching commands by name/path/dir
- Add LoadFileParser for parsing .load whitelist files
- Add LoadLevelClassifier for auto-classifying commands
- Add ConfigInstallCommand (barn config install) for default config files
- Update JobScheduler to use per-level limits with EnumMap
- Add --load-level/-l option to barn run for manual override
- Add load level display to barn status and barn describe output
- Remove --user flag from service install/uninstall (system-wide only)
- Update documentation for load levels and whitelist files
Default whitelists:
- high.load: ffmpeg, ffprobe, handbrake, x264, x265, etc.
- low.load: curl, wget, rclone, rsync, aria2c, etc.
- medium.load: empty (unmatched commands default to MEDIUM)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Explains FFmpeg's stdout/stderr behavior (progress goes to stderr by design),
exit codes, recommended flags, and monitoring patterns.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace SLF4J/logback with custom BarnLogger across all source files
- BarnLogger is disabled by default for CLI commands, enabled for service
- Fixes#30: debug logs no longer break JSON/XML CLI output
- Add SpotBugs exclusions for BarnLogger false positives
- Update docs: remove .deb and AUR references (no longer applicable)
- Update docs: add Windows setup.exe installation instructions
- Update docs: clarify auto-update only works with Homebrew
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add examples showing JSON output format for:
- barn service status
- barn run
- barn status
- barn describe
Also fixed typos in command examples and removed duplicate sections.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add install.sh for Linux/macOS (curl installer)
- Detects OS and architecture
- Sets up systemd service on Linux
- Sets up launchd agent on macOS
- Auto-starts service on boot
- Add install.ps1 for Windows (PowerShell installer)
- Installs Windows Service (admin) or Scheduled Task (user)
- Adds to PATH automatically
- Add installer/barn.iss (Inno Setup script)
- Generates setup-barn-vX.X.X-windows-x64.exe
- Full Windows installer with uninstaller
- Update release workflow to include installers
- Update README with quick install instructions
Closes#26, #27, #29
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added installation instructions for:
- macOS (Homebrew and manual download)
- Linux (x64 and ARM64)
- Windows (PowerShell download)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>