unarr/internal/cmd
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
..
auth_browser.go feat(init): add 60s countdown, skip key, and cancel detection to browser auth 2026-03-30 14:07:57 +02:00
auth_browser_test.go feat(auth): browser-based CLI authentication (like Claude Code) 2026-03-29 17:53:18 +02:00
clean.go fix(lint): use default:none to disable errcheck, fix all gofmt and exhaustive 2026-03-31 00:29:16 +02:00
clean_test.go fix(lint): use default:none to disable errcheck, fix all gofmt and exhaustive 2026-03-31 00:29:16 +02:00
completion.go docs: improve CLI help, shell completion, and README 2026-03-28 21:36:27 +01:00
completion_helpers.go docs: improve CLI help, shell completion, and README 2026-03-28 21:36:27 +01:00
config_menu.go fix(lint): use default:none to disable errcheck, fix all gofmt and exhaustive 2026-03-31 00:29:16 +02:00
config_menu_test.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
daemon.go feat(stream): report watch progress to API via HTTP Range tracking 2026-04-01 12:16:45 +02:00
daemon_install.go fix(lint): use default:none to disable errcheck, fix all gofmt and exhaustive 2026-03-31 00:29:16 +02:00
daemon_test.go fix(ci): fix lint errors and pin CI to Go 1.25 2026-03-31 22:15:12 +02:00
doctor.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
doctor_unix.go docs: improve CLI help, shell completion, and README 2026-03-28 21:36:27 +01:00
doctor_windows.go docs: improve CLI help, shell completion, and README 2026-03-28 21:36:27 +01:00
download.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
helpers.go feat: replace setup with init wizard + interactive config menu 2026-03-29 12:09:03 +02:00
helpers_test.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
init.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
inspect.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
migrate.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
popular.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
recent.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
reload_unix.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
reload_windows.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
root.go chore(cli): remove moreseed stub command 2026-03-31 23:12:07 +02:00
scan.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
search.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
self_update.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
stats.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
status.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
stream.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
stream_handler.go feat(stream): report watch progress to API via HTTP Range tracking 2026-04-01 12:16:45 +02:00
stubs.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00
upgrade.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
version.go refactor: migrate lint config to v2, remove daemon auto-upgrade, add trust badges 2026-03-30 23:24:16 +02:00
version_cmd.go docs: improve CLI help, shell completion, and README 2026-03-28 21:36:27 +01:00
watch.go chore: rename module from torrentclaw-cli to unarr 2026-03-30 13:06:07 +02:00