Skip to content

feat(news): add --last N flag to show recent events on first call - #40

Open
techkayacodes wants to merge 4 commits into
MaxonT:mainfrom
techkayacodes:feat/news-last-flag
Open

techkayacodes wants to merge 4 commits into
MaxonT:mainfrom
techkayacodes:feat/news-last-flag

Conversation

@techkayacodes

Copy link
Copy Markdown

Added an opt-in --last N (-n N) flag to �isync news so a session starting late can inspect the last N events from other agents on its first call while keeping the default cursor-only behaviour unchanged.

  • �i_sync/hooks.py: added last: int = 0 to
    ews(), returning the last last events from other agents when cur is None and
    ot init_only.
  • �i_sync/cli.py: wired --last / -n into cmd_news with non-negative validation.
  • README.md: updated the
    ews row in the command table.
  • ests/test_hooks.py: added unit and CLI tests for --last and negative value handling.

Fixes #26

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

news: optionally show the last N events on a session's first call

1 participant