Repository navigation
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see whatβs changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.4.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.4.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 2 commits
- 140 files changed
- 3 contributors
Commits on Nov 18, 2025
-
fix: remove stale generated files and improve type generation (#58)
* fix: remove stale generated files and improve type generation infrastructure This commit addresses the downstream report that pricing options were missing the is_fixed discriminator field. Investigation revealed the discriminator already exists in the individual pricing option schema files generated by datamodel-code-generator. The root causes were: 1. Stale files (pricing_option.py, brand_manifest_ref.py, index.py, start_timing.py) persisting from previous generations 2. No mechanism to clean output directory before regeneration 3. Timestamp-only changes creating noisy commits Changes: - Remove stale generated files that no longer correspond to current schemas - Add clean slate generation: delete entire output directory before regenerating types to prevent stale artifacts from old schema versions - Add timestamp change detection: restore files where only the generation timestamp changed to avoid noisy commits - Update CLAUDE.md with patterns for preventing stale files and noisy commits All pricing options now correctly have the is_fixed discriminator: - Fixed-rate: CpmFixedRatePricingOption, VcpmFixedRatePricingOption, etc. (is_fixed: Annotated[Literal[True], ...]) - Auction: CpmAuctionPricingOption, VcpmAuctionPricingOption (is_fixed: Annotated[Literal[False], ...]) π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: remove imports of deleted stale files and update post-generation fixes CI was failing because generated.py was importing the stale files we deleted: - brand_manifest_ref.py - index.py - pricing_option.py - start_timing.py Changes: - Remove imports of stale files from src/adcp/types/generated.py - Remove exports of stale symbols from __all__ - Update fix_brand_manifest_references() to: - Fix import statement (brand_manifest_ref β brand_manifest) - Fix class references (BrandManifest β BrandManifest1) - Update fix_enum_defaults() to check brand_manifest.py instead of deleted brand_manifest_ref.py Fixes test failures in CI for all Python versions and schema validation. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * feat: add stable public API layer to shield users from generated type changes Problem: - Users importing from generated_poc directly (e.g., BrandManifest1, BrandManifest2) creates brittle code that breaks when schemas evolve - Generated type names with numbered suffixes expose internal implementation details - No stable API contract prevents breaking changes in minor versions Solution: - Created src/adcp/types/stable.py with clean aliases (BrandManifest β BrandManifest1) - Updated adcp.types to re-export from stable API instead of generated internals - Added deprecation warning to generated_poc/__init__.py for direct imports - Documented stable API patterns in CLAUDE.md Benefits: - Users see clean names (BrandManifest not BrandManifest1) - Schema evolution handled via alias updates, not user code changes - Breaking changes properly versioned per semver - Deprecation warnings guide users to correct imports Migration: β from adcp.types import BrandManifest # Clean, stable β from adcp.types.generated_poc.brand_manifest import BrandManifest1 # Breaks π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * feat: expose BrandManifestReference union type in stable API Add BrandManifestReference as a union type (BrandManifest | AnyUrl) to properly represent the oneOf schema from brand-manifest-ref.json. This allows users to pass either an inline BrandManifest object or a URL string pointing to a hosted manifest. Changes: - Add BrandManifestReference = BrandManifest1 | AnyUrl in stable.py - Export BrandManifestReference from adcp.types - Restore deprecation warning to generated_poc/__init__.py π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * feat: integrate upstream BrandManifest schema consolidation Synced schemas and regenerated types after upstream fixed brand-manifest.json to be a single clean type instead of incorrectly using anyOf with different required fields. Changes: - Updated schemas from upstream (brand-manifest, list-creatives-response, promoted-offerings) - BrandManifest is now single clean type with name (required) and url (optional) - Removed obsolete post-generation fix for BrandManifest references - Made consolidate_exports.py aliases conditional to avoid referencing non-existent types - Updated stable API to reflect clean BrandManifest type All 258 tests pass. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: sort imports to satisfy ruff linter Ruff detected unsorted imports in __init__.py and stable.py. The imports are now sorted alphabetically which is the expected format. Changes: - Sort imports in src/adcp/types/__init__.py - Sort imports in src/adcp/types/stable.py All tests pass. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * feat: export core domain types and pricing options from main package Improve downstream ergonomics by exporting commonly-used types directly from the main `adcp` package, eliminating the need to import from `adcp.types.stable` for typical workflows. Added exports: - Core domain types: BrandManifest, Creative, CreativeManifest, MediaBuy, Package - Status enums: CreativeStatus, MediaBuyStatus, PackageStatus, PricingModel - All 9 pricing options: CpcPricingOption, CpmFixedRatePricingOption, etc. This enables "import from adcp and go" for 90% of user workflows: ```python from adcp import ( BrandManifest, MediaBuy, Package, CpmFixedRatePricingOption, MediaBuyStatus, ) # Create media buy brand = BrandManifest(name="ACME") pricing = CpmFixedRatePricingOption(...) ``` All 258 tests pass. Addresses code-reviewer feedback for 5-star ergonomics. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: update README with ergonomic type import improvements Updated Type Safety section to show that commonly-used types are now exported from the main adcp package, including: - Core domain types (BrandManifest, Creative, MediaBuy, Package, etc.) - Status enums (CreativeStatus, MediaBuyStatus, PackageStatus, PricingModel) - All 9 pricing options with discriminators - Request/Response types for all operations Added examples showing type-safe pricing options and status enum usage. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: add API documentation strategy recommendation Created comprehensive plan for auto-generating API reference documentation using pdoc3. Key benefits: - Zero config - works with existing docstrings and type hints - GitHub Pages ready - single command generates static HTML - Pydantic aware - extracts Field descriptions from JSON Schema - Searchable - adds search across all types and methods - Fast - regenerates in ~1 second Includes: - Implementation plan with GitHub Actions workflow - Cost/benefit analysis - Example output structure - Quick start guide for contributors Recommended over Sphinx (overkill) and MkDocs (narrative-focused). Setup time ~30min, near-zero maintenance overhead. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * refactor: rename generated.py to _generated.py to signal internal API Consolidate all generated types into a private module that's clearly internal. This gives SDK internals convenient access while signaling to users they should use the stable public API instead. Changes: - Rename src/adcp/types/generated.py β _generated.py - Update all imports throughout codebase - Add clear warning in _generated.py header - Update consolidate_exports.py to generate _generated.py - Update stable.py to import from _generated All 274 tests pass (2 pre-existing failures unrelated to this change). π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: update imports and add linter config for _generated.py - Fix remaining imports in tests and CLI to use _generated - Add ruff noqa comments to skip E501 and I001 in generated file - Update consolidate script to format __all__ with proper line breaks - Update CI workflow to use _generated import All 274 tests pass (2 pre-existing failures unrelated to this change). π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: update CI workflow to use _generated.py path The CI workflow was still checking the old generated.py path. Update it to use the new _generated.py path for syntax validation. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: address code review issues and update documentation Critical fixes: - Fix test_public_api.py: Remove non-existent SimpleADCPClient, fix Format field expectations - Update documentation: Replace generated.py β _generated.py in CLAUDE.md and README.md - Update pyproject.toml: Fix black/ruff exclude patterns for _generated.py All 276 tests now passing! π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: update schema drift check to use _generated.py path The CI workflow schema drift check was still referencing the old generated.py path. Update to _generated.py. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * chore: regenerate types to sync with CI Regenerate types to match what CI generates. Only timestamp changed. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: improve schema drift check to ignore timestamp-only changes The CI drift check was failing because it regenerates types during validation, which updates the timestamp, then complains about the change. This fix ignores timestamp-only changes (expected during CI regeneration) while still catching real schema drift. π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: move testing patterns to docs/ and create testing guide Moves testing examples from tests/examples/ (confusing location) to docs/ where users can find them. Changes: - Create docs/testing-guide.md with comprehensive testing best practices - Move RECOMMENDED_TESTING_PATTERNS.py β docs/examples/testing_patterns.py - Remove tests/examples/ directory Benefits: - Clear documentation for SDK users and contributors - Executable examples demonstrating best practices - No confusion about whether examples are actual tests π€ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * chore: remove temporary testing documentation files --------- Co-authored-by: Claude <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 574ec90 - Browse repository at this point
Copy the full SHA 574ec90View commit details -
chore(main): release 2.4.1 (#60)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c23caf0 - Browse repository at this point
Copy the full SHA c23caf0View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we canβt render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.4.0...v2.4.1