14 Commits
Author SHA1 Message Date
Daniel SamsonandClaude Opus 4.6 b53b4a3287 feat(cli): add retry columns to barn status output
Surface retryCount and retryAt fields in the human table format for
barn status, so retrying jobs are distinguishable from freshly queued
jobs. Also add retryAt to the single job detail view.

- Add RETRIES and NEXT RETRY columns to StatusCommand and HumanFormatter
- Add retryAt display to HumanFormatter single job detail
- Update README and testing-manual docs with new columns
- Add tests for retry display in StatusCommand, HumanFormatter, and XmlFormatter

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 19:40:43 +00:00
Daniel SamsonandClaude Opus 4.5 f233547ce8 feat(scheduler): add per-level job limits based on load classification
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>
2026-01-24 14:33:06 +00:00
Daniel SamsonandClaude Opus 4.5 3b5c796afd docs: add FFmpeg integration guide
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>
2026-01-22 09:58:54 +00:00
Daniel SamsonandClaude Opus 4.5 d95ac32739 Replace SLF4J with BarnLogger and update documentation
- 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>
2026-01-22 08:04:35 +00:00
Daniel Samson 41126eeed4 Revise installation instructions in README.md
Updated installation instructions for macOS, Linux, and Windows, including new Homebrew command and PowerShell script.
2026-01-22 04:05:09 +00:00
Daniel SamsonandClaude Opus 4.5 f66f914169 docs: add JSON output examples to README
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>
2026-01-22 01:49:43 +00:00
Daniel Samson 9b729ad427 Fix command examples in README.md 2026-01-22 01:45:21 +00:00
Daniel SamsonandClaude Opus 4.5 8ded382831 feat: add cross-platform installer scripts
- 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>
2026-01-22 01:41:01 +00:00
Daniel SamsonandClaude Opus 4.5 13655f5a54 docs: fix Windows install path
Use %LOCALAPPDATA%\Programs\barn instead of System32.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 23:26:07 +00:00
Daniel SamsonandClaude Opus 4.5 165e363084 docs: add installation instructions to README
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>
2026-01-21 23:22:32 +00:00
Daniel SamsonandClaude Opus 4.5 3c09ea978d Add coding standards and quality enforcement tooling
- docs/coding-standards.md: Comprehensive Java coding standards
- CLAUDE.md: AI assistant instructions for the project
- .editorconfig: Editor configuration for consistent formatting
- pom.xml: Updated with quality plugins (Checkstyle, SpotBugs, PMD, JaCoCo)
- config/checkstyle/: Checkstyle configuration (Google Java Style based)
- config/spotbugs/: SpotBugs exclusions
- config/pmd/: PMD ruleset
- .githooks/pre-commit: Pre-commit hook for local quality checks
- .github/workflows/lint.yml: CI workflow for automated quality checks
- docs/development.md: Updated for Java/Maven toolchain

Quality enforcement:
- Checkstyle runs on validate phase
- SpotBugs and PMD run on verify phase
- JaCoCo enforces 80% line coverage, 70% branch coverage
- Pre-commit hook runs all checks before allowing commits
- CI runs all checks on push and PR

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 12:22:06 +00:00
Daniel SamsonandClaude Opus 4.5 cf750b6eb5 Add comprehensive project documentation
- docs/config.md: Configuration options, retry behavior, cleanup policies
- docs/development.md: Local dev setup, building from source
- docs/releasing.md: Version management, release process, AUR/Homebrew automation
- docs/ci-cd.md: GitHub Actions workflows for build, release, AUR, Homebrew
- docs/distribution.md: Package manager setup (WinGet, apt, AUR, Homebrew)
- docs/auto-update.md: Built-in barn update command
- docs/testing-automated.md: Test suite, running tests, CI integration
- docs/testing-manual.md: Step-by-step manual test procedures
- docs/jobs.md: Added retry-related state files
- README.md: Updated documentation links

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 12:12:16 +00:00
Daniel Samson 822086b39d Add initial files 2026-01-21 11:49:12 +00:00
Daniel Samson 12ad2e7ebf Add README.md 2026-01-21 10:36:04 +00:00