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
4 changes: 2 additions & 2 deletions gateway/app/routers/well_known.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ def _integration_manifest() -> dict[str, Any]:
# field describes what ``install`` below produces, so it tracks the
# source, not the newest tag. The two are named separately because
# they differ whenever source has moved past the last release.
"version": "0.5.0",
"version": "0.5.1",
"path": "sdk/python/",
"install": "pip install -e ./sdk/python",
"latest_release_tag": "python-sdk-v0.4.0",
"note": (
"Install from source in sdk/python/ (import package "
"b2a_sdk), which yields 0.5.0 pre-release. Latest cut "
"b2a_sdk), which yields 0.5.1 pre-release. Latest cut "
"release is tag python-sdk-v0.4.0. Not published to PyPI."
),
},
Expand Down
2 changes: 1 addition & 1 deletion gateway/tests/test_wedge_honesty.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def test_agent_json_sdk_integrations_are_honest(client):
assert "pip install amw-sdk" not in json.dumps(python_sdk)
assert "not published" in python_sdk["note"].lower()
# 0.4.0 was cut as tag python-sdk-v0.4.0 (see sdk/python/CHANGELOG.md);
# the source tree has since moved to an unreleased 0.5.0.
# the source tree has since moved to an unreleased 0.5.1.
assert python_sdk["latest_release_tag"] == "python-sdk-v0.4.0"

typescript_sdk = integrations["typescript_sdk"]
Expand Down
9 changes: 9 additions & 0 deletions sdk/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.5.1

### Fixed

- **Receipt verification timezone fix**: `Receipt.verify()` no longer returns
`MISMATCH` on genuine receipts where `created_at` lacks a timezone. The
verifier now normalizes timestamps before comparison (PR #368, fixes #358,
commit 4bf3fd4f).

## Unreleased — 0.5.0

`pyproject.toml` carries `0.5.0` from here on. `0.4.0` is published and
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "amw-sdk"
version = "0.5.0"
version = "0.5.1"
description = "Python SDK for governed MCP permits, idempotent agent-tool calls, receipts, and audit evidence"
readme = "README.md"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/src/b2a_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
verify_resolution_chain,
)

__version__ = "0.5.0"
__version__ = "0.5.1"

# The HTTP client surface (client, edge_client, and the decorators that wrap it)
# pulls in httpx. Load those names lazily via PEP 562 so importing the package —
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/src/b2a_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(
headers = {
"X-API-Key": api_key,
"Content-Type": "application/json",
"User-Agent": "amw-sdk/0.5.0",
"User-Agent": "amw-sdk/0.5.1",
}
if bearer_token is not None:
token = bearer_token.strip()
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/src/b2a_sdk/x402.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(
# Source of truth for the User-Agent string is
# AgentMiddlewareClient.__init__ in client.py (it exposes no
# importable constant); keep the two in lockstep.
"User-Agent": "amw-sdk/0.5.0",
"User-Agent": "amw-sdk/0.5.1",
},
timeout=timeout,
transport=transport,
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/test_trust_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def test_default_base_url_is_localhost_never_a_hosted_server() -> None:
async def test_discover_tools_returns_typed_definitions() -> None:
async def handler(request: httpx.Request) -> httpx.Response:
assert request.url.path == "/mcp/tools.json"
assert request.headers["user-agent"] == "amw-sdk/0.5.0"
assert request.headers["user-agent"] == "amw-sdk/0.5.1"
return httpx.Response(
200,
json={
Expand Down
Loading