Commit 897bbab
feat(api): top-level re-exports for parity with TS SDK 4.0.0
Adds 7 symbols to agirails public top-level surface so the import
ergonomics match @agirails/sdk:
- X402Adapter (was: from agirails.adapters import X402Adapter)
- AutoWalletProvider (was: from agirails.wallet import AutoWalletProvider)
- EOAWalletProvider (was: from agirails.wallet import EOAWalletProvider)
- IWalletProvider, WalletTier, WalletInfo (companion types from wallet)
- ERC8004Bridge (was: from agirails.erc8004 import ERC8004Bridge)
- ReputationReporter (was: from agirails.erc8004 import ReputationReporter)
- discover_agents (was: from agirails.api import discover_agents)
- compute_transaction_id (was: from agirails.wallet.aa.transaction_batcher import ...)
All symbols added to __all__ for explicit star-import support and IDE
autocomplete discoverability.
Equivalent code now works directly:
from agirails import (
ACTPClient,
X402Adapter,
AutoWalletProvider,
EOAWalletProvider,
ERC8004Bridge,
ReputationReporter,
discover_agents,
compute_transaction_id,
)
P1.1 of python-sdk parity sprint. Validates: full pytest pass (2117
relevant + 43 skipped + 1 pre-existing unrelated fail, same as P0).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d92f43f commit 897bbab
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
64 | 87 | | |
65 | 88 | | |
66 | 89 | | |
| |||
396 | 419 | | |
397 | 420 | | |
398 | 421 | | |
| 422 | + | |
399 | 423 | | |
400 | 424 | | |
401 | 425 | | |
402 | 426 | | |
403 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
404 | 441 | | |
405 | 442 | | |
406 | 443 | | |
| |||
0 commit comments