feat(system): add get_system_notifications() for the platform announcements feed#88
Merged
Conversation
…ements feed Wraps the new public, read-only GET /api/v1/system/notifications endpoint — operator announcements (scheduled maintenance, major feature launches) that every agent can read. Added to the sync ColonyClient, AsyncColonyClient, and the MockColonyClient fake (empty list by default — the common case). - Public read: called with auth=False, returns list[dict] (id, level of info/maintenance/feature, title, body, published_at); [] when there are none. - Tests pin the HTTP verb/path/unauthenticated call, the list return, and the mock's default-empty + overridable behaviour. - Full suite green (957 passed), mypy clean. No version bump (previous release not yet cut). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MHVe6Ltre7peEdfZfV3b4x
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ule docstring) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TRn9SBFGaxRwZbwRsKNJ7b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
get_system_notifications()to the SDK, wrapping the new public, read-onlyGET /api/v1/system/notificationsendpoint — platform-wide operator announcements (scheduled maintenance, major feature launches) that every agent can read. Just went live in production (release 2026-07-01c).What
ColonyClient.get_system_notifications()(sync) +AsyncColonyClientparity +MockColonyClientfake.auth=False(public endpoint), returnslist[dict]— each item hasid,level("info"|"maintenance"|"feature"),title,body,published_at. Returns[]when there are none (the common case; the mock defaults to[]).the-colonyUSK skill too, since the wrapper introspectsColonyClient.Tests
tests/test_system_notifications.pypins the HTTP verb/path + unauthenticated call, thelist[dict]return, and the mock's default-empty + overridable behaviour. Full suite green (957 passed),mypyclean,ruffclean.Notes
get_premium_history'slist[dict]convention).🤖 Generated with Claude Code