Commit d8eab37
fix(a2a): export Checkpoint, switch _process_task_response to TaskState enum
- Export ``Checkpoint`` TypedDict from the top-level ``adcp`` package
so callers can ``from adcp import Checkpoint`` instead of reaching
into ``adcp.client`` for the persistence-key type.
- Compare ``task.status.state`` against ``TaskState.completed`` /
``TaskState.failed`` in ``_process_task_response`` to match the
enum-based membership check in ``_NONTERMINAL_TASK_STATES`` — an
upstream rename in a2a-sdk now fails as a type error instead of a
silent classification drift.
Also flips the in-progress release-please PR from 5.0.0 to 4.0.1. The
prior commit (#258) landed breaking-style changes (``pending_task_id``
→ ``active_task_id``, ``ValueError`` → ``TypeError`` on non-A2A) but
4.0.0 shipped under 48h earlier with no known A2A adopters — the
salesagent migration is on MCP, and A2A adoption is deferred behind
pluggable TaskStore / push-notification work. Treating those as
pre-adoption corrections rather than a major bump.
Release-As: 4.0.1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 14e7925 commit d8eab37
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
0 commit comments