mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-11 19:47:12 +03:00
Every discovery command (movie/tv x trending/popular/anticipated) now accepts --page alongside --limit and forwards both as query parameters. TraktClient._get returns (data, pagination) where pagination is the X-Pagination-* header set normalized onto the stable keys page, limit, page_count, and item_count; missing or non-numeric headers degrade to an empty object. JSON output keeps the movies/shows array beside a new pagination object, human output appends "Page N of M" only when the headers are present, and cmd_movie/cmd_tv collapse into one shared cmd_discovery handler. Adds mocked coverage for page=2 request params across all six commands, header normalization (full/lowercase/partial/unparseable/missing), missing-header fallback at client level, stable movie trending wrapper and TV shapes beside pagination, and human page-line presence rules. Green under pytest strict-markers, unittest discover, and the proxy trap (zero egress). Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>