Jackson deserialization in native binary fails when processing job
status responses. Added missing classes to reflect-config.json:
- Job, JobManifest, JobState, ResourceUsage
- Config, ServiceConfig, StorageConfig, JobsConfig, CleanupConfig
- Collection types for IPC payloads
Tested locally with native binary:
- barn run, status, describe, usage, kill, clean
- barn service status, config show, autocompletion
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
IPC communication was failing in native binary because Jackson
couldn't deserialize IpcMessage and related classes without
reflection configuration.
Added reflect-config.json with all IPC classes.
Bumped version to 0.1.2.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The previous configuration used ${java.io.tmpdir} which resolves to
/var/folders/... on macOS, while the data directory uses /tmp/barn.
This caused a mismatch where logs and data were in different locations.
Changed to use explicit /tmp/barn/logs as default for both FILE and
JSON appenders to match the ConfigDefaults.getDefaultBaseDir() path.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add NopStatusListener to suppress logback initialization messages
- Remove console appender from default root logger (file only)
- CLI commands now show clean output without logging noise
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement proper CLI-to-service communication via Unix domain sockets,
fixing issue where CLI commands couldn't see jobs managed by the service.
Key changes:
- Add IPC client/server for CLI-service communication
- Fix directory mismatch (CLI used java.io.tmpdir, service used /tmp/barn)
- Add service management commands (start, stop, restart, reload, logs)
- Add service installation for macOS (launchd), Linux (systemd), Windows
- Add process usage monitoring (barn usage command)
- Add job state breakdown in service status (succeeded, failed, canceled)
- Add output formatters (human, JSON, XML)
- Add crash recovery and heartbeat checking
- Add structured logging with MDC context
The CLI commands now properly communicate with the running service
via IPC, ensuring consistent job state visibility.
Fixes#24
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>