unarr/internal/agent
Deivid Soto 0dafeaa70d feat(stream): report watch progress to API via HTTP Range tracking
Track the highest byte offset served by the stream server to estimate
playback progress (0-100%). A WatchReporter goroutine sends progress
to POST /api/internal/agent/watch-progress every 10s during streaming.

- Add maxByteOffset + totalFileSize to StreamServer for Range tracking
- Add FileSize() to fileProvider interface (all 3 providers)
- New WatchReporter: periodic progress reporter tied to daemon context
- New WatchProgressUpdate type with optional progress/position/duration
- Wire reporter into all 3 stream paths (task stream, disk stream, active download stream)
2026-04-01 12:16:45 +02:00
..
client.go feat(stream): report watch progress to API via HTTP Range tracking 2026-04-01 12:16:45 +02:00
client_test.go fix(ci): fix lint errors and pin CI to Go 1.25 2026-03-31 22:15:12 +02:00
daemon.go fix(progress): always report status transitions and poll for control signals 2026-03-31 16:55:50 +02:00
disk_unix.go feat: initial commit — unarr CLI 2026-03-28 11:29:42 +01:00
disk_windows.go feat: initial commit — unarr CLI 2026-03-28 11:29:42 +01:00
process_unix.go feat: add clean command to remove temp files, logs, and cached data 2026-03-29 11:04:51 +02:00
process_windows.go fix(build): unused variable in Windows process check 2026-03-30 13:11:55 +02:00
state.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
state_test.go feat: improve daemon resilience, streaming, and usenet downloads 2026-03-28 21:36:12 +01:00
transport.go refactor: migrate lint config to v2, remove daemon auto-upgrade, add trust badges 2026-03-30 23:24:16 +02:00
transport_e2e_test.go refactor: migrate lint config to v2, remove daemon auto-upgrade, add trust badges 2026-03-30 23:24:16 +02:00
transport_http.go fix(lint): disable errcheck, tune gosec/exclusions for codebase state 2026-03-31 00:21:17 +02:00
transport_hybrid.go fix(lint): disable errcheck, tune gosec/exclusions for codebase state 2026-03-31 00:21:17 +02:00
transport_test.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
transport_ws.go fix(lint): disable errcheck, tune gosec/exclusions for codebase state 2026-03-31 00:21:17 +02:00
types.go feat(stream): report watch progress to API via HTTP Range tracking 2026-04-01 12:16:45 +02:00