control: cursor pagination for list commands, feed command !97

merged merged by cmc on 2026-08-27 06:15 UTC · krz/gitbay:cursor-pagination into main

Discussion

cmc

issue list, mr list, and repo list take --limit (1-200) and --cursor. Cursors are opaque keyset positions (base64url of kind:key), kind-checked so a cursor minted by one command is refused by another. With either flag present the JSON data becomes {items, next}; without them the bare-array shape is unchanged, so existing clients keep working.

Adds a read-only feed command exposing the dashboard's activity feed — it had no control-plane read — paged the same way by event id, capped at 50 without flags.

Store list queries grow limit/keyset parameters; 0 values preserve the old unbounded behavior for the web and export paths.

Closes #40