From db21d8467580b72ccfc3715e0dcbb8b64c874ed5 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Thu, 30 Apr 2026 03:44:21 -0700 Subject: [PATCH 1/2] docs/tests: scrub merchant-specific reference + internal test default - agentscore/types.py: generalize the merchant-emitted convenience-codes comment (drop the specific named merchant + their wine business-domain detail) - tests/test_integration.py: integration tests now require both AGENTSCORE_API_KEY and AGENTSCORE_BASE_URL to be set; no default to a private (`*.internal`) endpoint. Tests skip cleanly when either is missing instead of attempting a leaked default. --- agentscore/types.py | 6 +++--- tests/test_integration.py | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/agentscore/types.py b/agentscore/types.py index e6de9cb..ddc9211 100644 --- a/agentscore/types.py +++ b/agentscore/types.py @@ -355,9 +355,9 @@ class AssociateWalletResponse(TypedDict): "wallet_not_trusted", "api_error", "payment_required", - # Merchant-emitted convenience codes (e.g. martin-estate's on_denied wraps gate - # denials into wine-specific business codes). Not emitted by the AgentScore API - # itself but appear in 4xx bodies the SDK may surface back to callers. + # Merchant-emitted convenience codes — not emitted by the AgentScore API itself, + # but may appear in 4xx bodies passing through the SDK from merchants whose gate + # `on_denied` hook wraps AgentScore denials into business-domain codes. "operator_verification_required", "compliance_denied", "compliance_error", diff --git a/tests/test_integration.py b/tests/test_integration.py index d0d633b..5f838b8 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -5,10 +5,13 @@ from agentscore import AgentScore API_KEY = os.environ.get("AGENTSCORE_API_KEY") -BASE_URL = os.environ.get("AGENTSCORE_BASE_URL", "http://api.dev.agentscore.internal") +BASE_URL = os.environ.get("AGENTSCORE_BASE_URL") TEST_ADDRESS = "0x339559a2d1cd15059365fc7bd36b3047bba480e0" -pytestmark = pytest.mark.skipif(not API_KEY, reason="AGENTSCORE_API_KEY not set") +pytestmark = pytest.mark.skipif( + not (API_KEY and BASE_URL), + reason="AGENTSCORE_API_KEY and AGENTSCORE_BASE_URL must both be set", +) def test_get_reputation_shape(): From a058cf66f5f73641dbcaf529dcea1a491d5f8977 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Thu, 30 Apr 2026 21:08:45 -0700 Subject: [PATCH 2/2] chore: bump to v2.0.2 Co-Authored-By: Claude Opus 4.7 (1M context) --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e3636bc..5429741 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "agentscore-py" -version = "2.0.1" +version = "2.0.2" description = "Python client for the AgentScore APIs" readme = "README.md" license = "MIT" diff --git a/uv.lock b/uv.lock index 31bc290..a625f0b 100644 --- a/uv.lock +++ b/uv.lock @@ -4,7 +4,7 @@ requires-python = ">=3.11" [[package]] name = "agentscore-py" -version = "2.0.1" +version = "2.0.2" source = { editable = "." } dependencies = [ { name = "httpx" },