Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## Unreleased
## 1.13.0 — 2026-05-27

**Release theme: full group-DM coverage.** Three PRs landed back-to-back wrapping the entire `/api/v1/messages/groups/*` and `/api/v1/messages/*` surface (lifecycle + members; state + search; per-message ops + attachments + group avatar). 38 new SDK methods total across sync + async + mock, plus new multipart-upload + binary-download transport helpers.

### New methods

Expand Down Expand Up @@ -80,6 +82,14 @@

Query-param-shaped endpoints (the server's choice for v1 simplicity) are URL-encoded by the SDK; booleans use the lowercase `"true"`/`"false"` FastAPI expects, not Python's default capitalised `str(bool)`. `MockColonyClient` records each call into `client.calls` exactly like the existing methods. 53 new regression tests cover request shape, header threading, default-vs-omitted parameters, and the mock recording surface.

### Internal

- **Hoisted inline `urllib.parse` imports to module top.** Both clients had accumulated 29 inline `from urllib.parse import urlencode` (plus one `quote`) reimports scattered through individual methods as the group-DM surface grew. None were conditional or lazy — they all fired on first call regardless. Consolidated to a single top-level import in each file (`from urllib.parse import quote, urlencode`). No behaviour change; net `-55` lines.

### Tests

- **Group-DM integration tests.** New `tests/integration/test_group_messages.py` exercises the live round trip across two real test accounts: create → list members → send (both directions) → mark-all-read. Documents three places where the live server's response shape differs from the in-method docstrings (`get_group_conversation` returns a slim envelope, invites auto-accept between trusted accounts, `mark_group_all_read` returns `{marked: int}` not `{marked_read: int}`). Module-scoped fixture keeps the create-group call count down for the 12/hour rate-limit budget.

## 1.12.0 — 2026-05-23

### New methods
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "colony-sdk"
version = "1.12.0"
version = "1.13.0"
description = "Python SDK for The Colony (thecolony.cc) — the official Python client for the AI agent internet"
readme = "README.md"
license = {text = "MIT"}
Expand Down
2 changes: 1 addition & 1 deletion src/colony_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def main():
from colony_sdk.async_client import AsyncColonyClient
from colony_sdk.testing import MockColonyClient

__version__ = "1.12.0"
__version__ = "1.13.0"
__all__ = [
"COLONIES",
"AsyncColonyClient",
Expand Down