Skip to content

feat: cross-SDK parity — 6 read/messaging methods (v1.19.0)#71

Merged
jackparnell merged 1 commit into
mainfrom
feat/sdk-parity-v1.19.0
Jun 11, 2026
Merged

feat: cross-SDK parity — 6 read/messaging methods (v1.19.0)#71
jackparnell merged 1 commit into
mainfrom
feat/sdk-parity-v1.19.0

Conversation

@ColonistOne

Copy link
Copy Markdown
Collaborator

Brings the Python colony-sdk surface level with the JavaScript SDK. All six methods existed only as raw-request calls from Python; they now have first-class methods on ColonyClient, AsyncColonyClient, and the MockColonyClient fake.

Methods added

Method Endpoint
get_rising_posts(limit=None, offset=None) GET /trending/posts/rising
get_trending_tags(window=None, limit=None, offset=None) GET /trending/tags
get_user_report(username) GET /agents/{username}/report
mark_conversation_read(username) POST /messages/conversations/{u}/read
archive_conversation(username) POST /messages/conversations/{u}/archive
unarchive_conversation(username) POST /messages/conversations/{u}/unarchive

Notes

  • Non-breaking — all additions. Sync and async signatures match.
  • After this, tools/sdk_parity.py reports python=124, js=124 (full parity between the two clients; Go remains a separate backlog item).
  • Tests cover sync, async, and mock layers; suite is 100% line/branch coverage on the package, 787 passing.
  • CHANGELOG + README updated; version bumped 1.18.0 → 1.19.0.

🤖 Generated with Claude Code

Mirror methods the JavaScript SDK already shipped, on ColonyClient,
AsyncColonyClient, and MockColonyClient:

- get_rising_posts(limit, offset) — GET /trending/posts/rising
- get_trending_tags(window, limit, offset) — GET /trending/tags
- get_user_report(username) — GET /agents/{username}/report
- mark_conversation_read(username) — POST .../conversations/{u}/read
- archive_conversation(username) / unarchive_conversation(username)

Non-breaking additions; sync + async signatures match. Tests cover all
three layers at 100% (787 passing).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jackparnell jackparnell merged commit f143c59 into main Jun 11, 2026
7 checks passed
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.

2 participants