agirails 3.0.0__tar.gz → 4.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agirails-3.0.0 → agirails-4.8.0}/.gitignore +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/CHANGELOG.md +96 -0
- {agirails-3.0.0 → agirails-4.8.0}/PKG-INFO +34 -22
- {agirails-3.0.0 → agirails-4.8.0}/README.md +30 -21
- {agirails-3.0.0 → agirails-4.8.0}/pyproject.toml +11 -1
- {agirails-3.0.0 → agirails-4.8.0}/scripts/test_installed_wheel.sh +3 -2
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/__init__.py +55 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/abis/agent_registry.json +133 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/__init__.py +10 -1
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/adapter_router.py +64 -7
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/base.py +99 -77
- agirails-4.8.0/src/agirails/adapters/basic.py +639 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/i_adapter.py +59 -1
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/standard.py +373 -37
- agirails-4.8.0/src/agirails/adapters/types.py +271 -0
- agirails-4.8.0/src/agirails/adapters/x402/__init__.py +60 -0
- agirails-4.8.0/src/agirails/adapters/x402/eip3009.py +341 -0
- agirails-4.8.0/src/agirails/adapters/x402/permit2.py +382 -0
- agirails-4.8.0/src/agirails/adapters/x402_adapter.py +1397 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/builders/__init__.py +13 -2
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/builders/counter_offer.py +1 -1
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/builders/delivery_proof.py +4 -3
- agirails-4.8.0/src/agirails/builders/quote.py +553 -0
- agirails-4.8.0/src/agirails/cli/commands/agent.py +103 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/diff.py +95 -5
- agirails-4.8.0/src/agirails/cli/commands/pay.py +246 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/pull.py +78 -4
- agirails-4.8.0/src/agirails/cli/commands/test.py +486 -0
- agirails-4.8.0/src/agirails/cli/lib/run_request.py +892 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/main.py +21 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/utils/__init__.py +3 -0
- agirails-4.8.0/src/agirails/cli/utils/identity.py +109 -0
- agirails-4.8.0/src/agirails/client.py +1766 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/__init__.py +47 -0
- agirails-4.8.0/src/agirails/config/agirailsmd.py +1036 -0
- agirails-4.8.0/src/agirails/config/buyer_link.py +231 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/networks.py +25 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/publish_pipeline.py +34 -2
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/sync_operations.py +12 -0
- agirails-4.8.0/src/agirails/delivery/__init__.py +244 -0
- agirails-4.8.0/src/agirails/delivery/channel.py +118 -0
- agirails-4.8.0/src/agirails/delivery/channel_log.py +40 -0
- agirails-4.8.0/src/agirails/delivery/crypto.py +161 -0
- agirails-4.8.0/src/agirails/delivery/eip712.py +190 -0
- agirails-4.8.0/src/agirails/delivery/envelope_builder.py +666 -0
- agirails-4.8.0/src/agirails/delivery/keys.py +212 -0
- agirails-4.8.0/src/agirails/delivery/mock_delivery_channel.py +502 -0
- agirails-4.8.0/src/agirails/delivery/nonce_keys.py +35 -0
- agirails-4.8.0/src/agirails/delivery/relay_delivery_channel.py +438 -0
- agirails-4.8.0/src/agirails/delivery/setup_builder.py +407 -0
- agirails-4.8.0/src/agirails/delivery/types.py +259 -0
- agirails-4.8.0/src/agirails/delivery/validate.py +419 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/erc8004/bridge.py +47 -5
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/erc8004/reputation_reporter.py +188 -19
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/agent.py +32 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/network.py +12 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/storage.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/transaction.py +12 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/validation.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level0/provider.py +58 -3
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level0/request.py +35 -15
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level1/__init__.py +10 -0
- agirails-4.8.0/src/agirails/level1/agent.py +1935 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level1/config.py +67 -0
- agirails-4.8.0/src/agirails/level1/pricing.py +317 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/negotiation/__init__.py +114 -0
- agirails-4.8.0/src/agirails/negotiation/buyer_orchestrator.py +1700 -0
- agirails-4.8.0/src/agirails/negotiation/decision_engine.py +431 -0
- agirails-4.8.0/src/agirails/negotiation/negotiation_channel.py +822 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/negotiation/policy_engine.py +41 -0
- agirails-4.8.0/src/agirails/negotiation/provider_orchestrator.py +508 -0
- agirails-4.8.0/src/agirails/negotiation/provider_policy.py +615 -0
- agirails-4.8.0/src/agirails/negotiation/verify_quote_on_chain.py +141 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/__init__.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/agent_registry.py +151 -3
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/eas.py +170 -26
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/events.py +113 -21
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/kernel.py +303 -2
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/messages.py +412 -4
- agirails-4.8.0/src/agirails/protocol/proofs.py +899 -0
- agirails-4.8.0/src/agirails/receipts/__init__.py +57 -0
- agirails-4.8.0/src/agirails/receipts/push.py +717 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/blockchain_runtime.py +274 -5
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/mock_runtime.py +247 -6
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/types.py +7 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/server/__init__.py +6 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/server/policy_engine.py +32 -3
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/server/quote_channel.py +196 -1
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/settle/settle_on_interact.py +29 -2
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/storage/arweave_client.py +112 -85
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/storage/filebase_client.py +234 -12
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/storage/types.py +28 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/types/erc8004.py +58 -9
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/types/message.py +1 -1
- agirails-4.8.0/src/agirails/types/x402.py +354 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/canonical_json.py +126 -17
- agirails-4.8.0/src/agirails/version.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/__init__.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/bundler_client.py +35 -10
- agirails-4.8.0/src/agirails/wallet/aa/dual_nonce_manager.py +406 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/paymaster_client.py +4 -1
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/user_op_builder.py +152 -0
- agirails-4.8.0/src/agirails/wallet/auto_wallet_provider.py +824 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/eoa_wallet_provider.py +13 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/benchmarks/test_performance.py +1 -1
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/python_signed_manifest.json +1 -1
- agirails-4.8.0/tests/fixtures/cross_sdk/wave0_hashing.json +264 -0
- agirails-4.8.0/tests/fixtures/cross_sdk/wave2_delivery.json +203 -0
- agirails-4.8.0/tests/fixtures/cross_sdk/wave3_x402.json +74 -0
- agirails-4.8.0/tests/fixtures/cross_sdk/wave5_receipts.json +89 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/conftest.py +9 -2
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_adapters/test_basic.py +73 -1
- agirails-4.8.0/tests/test_adapters/test_parse_deadline.py +194 -0
- agirails-4.8.0/tests/test_adapters/test_permit2_allowance.py +122 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_adapters/test_standard.py +119 -1
- agirails-4.8.0/tests/test_adapters/test_unified_surface.py +482 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_adapters/test_x402_adapter.py +10 -4
- agirails-4.8.0/tests/test_adapters/test_x402_v2_adapter.py +464 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_builders/test_quote.py +1 -1
- agirails-4.8.0/tests/test_cli/test_agent_public_rpc.py +64 -0
- agirails-4.8.0/tests/test_cli/test_buyer_aware_diff_pull.py +215 -0
- agirails-4.8.0/tests/test_cli/test_diff_pull_parity.py +149 -0
- agirails-4.8.0/tests/test_cli/test_env_autoload.py +75 -0
- agirails-4.8.0/tests/test_cli/test_identity_pointer.py +84 -0
- agirails-4.8.0/tests/test_cli/test_pay.py +254 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_publish_parity.py +9 -2
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_request.py +178 -2
- agirails-4.8.0/tests/test_cli/test_run_request_receipt.py +126 -0
- agirails-4.8.0/tests/test_cli/test_test.py +250 -0
- agirails-4.8.0/tests/test_client.py +1202 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_client_paths.py +4 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_config/test_agirailsmd.py +123 -1
- agirails-4.8.0/tests/test_config/test_agirailsmd_v4.py +330 -0
- agirails-4.8.0/tests/test_config/test_buyer_link.py +100 -0
- agirails-4.8.0/tests/test_config/test_publish_pipeline.py +160 -0
- agirails-4.8.0/tests/test_config/test_sync_operations.py +110 -0
- agirails-4.8.0/tests/test_config/test_using_public_rpc.py +44 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cross_sdk/test_python_signed_determinism.py +7 -2
- agirails-4.8.0/tests/test_cross_sdk/test_wave0_hashing.py +163 -0
- agirails-4.8.0/tests/test_cross_sdk/test_wave2_delivery_core.py +151 -0
- agirails-4.8.0/tests/test_cross_sdk/test_wave3_x402.py +244 -0
- agirails-4.8.0/tests/test_cross_sdk/test_wave5_receipts.py +134 -0
- agirails-4.8.0/tests/test_delivery/test_builders.py +376 -0
- agirails-4.8.0/tests/test_delivery/test_fix1_encoding.py +73 -0
- agirails-4.8.0/tests/test_delivery/test_relay_channel.py +173 -0
- agirails-4.8.0/tests/test_delivery/test_roundtrip_channel.py +265 -0
- agirails-4.8.0/tests/test_delivery/test_types_validate.py +232 -0
- agirails-4.8.0/tests/test_erc8004/test_bridge_parity_4_8_0.py +97 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_erc8004/test_reputation_reporter.py +194 -26
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level0/test_provider.py +78 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level0/test_request.py +178 -0
- agirails-4.8.0/tests/test_level1/test_agent_completion_proof.py +132 -0
- agirails-4.8.0/tests/test_level1/test_agent_counter_quote.py +221 -0
- agirails-4.8.0/tests/test_level1/test_agent_delivery_hook.py +292 -0
- agirails-4.8.0/tests/test_level1/test_agent_job_decisions.py +418 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level1/test_pricing.py +57 -32
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_negotiation/test_buyer_orchestrator.py +55 -0
- agirails-4.8.0/tests/test_negotiation/test_buyer_orchestrator_channel.py +625 -0
- agirails-4.8.0/tests/test_negotiation/test_decider_hooks.py +452 -0
- agirails-4.8.0/tests/test_negotiation/test_negotiation_channel.py +203 -0
- agirails-4.8.0/tests/test_negotiation/test_policy_aip21_fields.py +167 -0
- agirails-4.8.0/tests/test_negotiation/test_provider_orchestrator.py +470 -0
- agirails-4.8.0/tests/test_negotiation/test_provider_policy_parity.py +242 -0
- agirails-4.8.0/tests/test_negotiation/test_relay_channel.py +345 -0
- agirails-4.8.0/tests/test_negotiation/test_verify_quote_on_chain.py +160 -0
- agirails-4.8.0/tests/test_protocol/test_agent_registry.py +344 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_protocol/test_eas_verification.py +161 -0
- agirails-4.8.0/tests/test_protocol/test_event_chunking_4_8_0.py +145 -0
- agirails-4.8.0/tests/test_protocol/test_kernel_parity_4_8_0.py +251 -0
- agirails-4.8.0/tests/test_protocol/test_messages_generic.py +262 -0
- agirails-4.8.0/tests/test_protocol/test_proofs.py +487 -0
- agirails-4.8.0/tests/test_protocol/test_x402_v2_errors.py +105 -0
- agirails-4.8.0/tests/test_receipts/test_push.py +412 -0
- agirails-4.8.0/tests/test_receipts/test_render_v3.py +217 -0
- agirails-4.8.0/tests/test_runtime/test_mock_runtime_parity_4_8_0.py +219 -0
- agirails-4.8.0/tests/test_runtime/test_runtime_parity_4_8_0.py +439 -0
- agirails-4.8.0/tests/test_runtime/test_subscribe_provider_jobs_4_8_0.py +153 -0
- agirails-4.8.0/tests/test_server/test_quote_channel_client.py +195 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_settle/test_settle_on_interact.py +64 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/test_arweave_client.py +204 -130
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/test_filebase_client.py +12 -0
- agirails-4.8.0/tests/test_storage/test_sigv4.py +281 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_types/test_message.py +2 -2
- agirails-4.8.0/tests/test_utils/__init__.py +0 -0
- agirails-4.8.0/tests/test_wallet/test_auto_wallet_create_actp.py +296 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_bundler_client.py +20 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_dual_nonce_manager.py +100 -2
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_smart_wallet_router.py +229 -0
- agirails-4.8.0/tests/test_wallet/test_smart_wallet_signature.py +316 -0
- agirails-4.8.0/tests/test_wallet/test_x402_sign_typed_data.py +93 -0
- agirails-3.0.0/src/agirails/adapters/basic.py +0 -364
- agirails-3.0.0/src/agirails/adapters/types.py +0 -146
- agirails-3.0.0/src/agirails/adapters/x402_adapter.py +0 -788
- agirails-3.0.0/src/agirails/builders/quote.py +0 -357
- agirails-3.0.0/src/agirails/cli/commands/pay.py +0 -130
- agirails-3.0.0/src/agirails/cli/commands/test.py +0 -225
- agirails-3.0.0/src/agirails/cli/lib/run_request.py +0 -367
- agirails-3.0.0/src/agirails/client.py +0 -854
- agirails-3.0.0/src/agirails/config/agirailsmd.py +0 -354
- agirails-3.0.0/src/agirails/level1/agent.py +0 -1002
- agirails-3.0.0/src/agirails/level1/pricing.py +0 -230
- agirails-3.0.0/src/agirails/negotiation/buyer_orchestrator.py +0 -739
- agirails-3.0.0/src/agirails/negotiation/decision_engine.py +0 -196
- agirails-3.0.0/src/agirails/protocol/proofs.py +0 -468
- agirails-3.0.0/src/agirails/receipts/__init__.py +0 -25
- agirails-3.0.0/src/agirails/types/x402.py +0 -200
- agirails-3.0.0/src/agirails/version.py +0 -4
- agirails-3.0.0/src/agirails/wallet/aa/dual_nonce_manager.py +0 -209
- agirails-3.0.0/src/agirails/wallet/auto_wallet_provider.py +0 -457
- agirails-3.0.0/tests/test_cli/test_test.py +0 -119
- agirails-3.0.0/tests/test_client.py +0 -457
- agirails-3.0.0/tests/test_protocol/test_proofs.py +0 -254
- {agirails-3.0.0 → agirails-4.8.0}/.env.example +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/.github/workflows/release-pypi.yml +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/.github/workflows/test.yml +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/LICENSE +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/MIGRATION.md +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/scripts/generate_parity_vectors.js +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/scripts/generate_python_parity_vectors.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/scripts/verify_python_vectors.js +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/abis/actp_kernel.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/abis/escrow_vault.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/abis/usdc.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/adapters/adapter_registry.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/api/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/api/agirails_app.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/api/discover.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/builders/counter_accept.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/autopublish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/balance.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/batch.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/claim.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/claim_code.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/config.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/deploy_check.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/deploy_env.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/find.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/health.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/init.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/mint.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/negotiate.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/publish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/receipt.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/register.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/repair.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/request.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/serve.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/simulate.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/time.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/tx.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/verify.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/commands/watch.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/lib/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/utils/client.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/utils/output.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/cli/utils/validation.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/on_chain_state.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/config/pending_publish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/erc8004/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/base.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/errors/mock.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level0/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level0/directory.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level0/provide.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/level1/job.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/negotiation/session_store.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/base.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/did.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/escrow.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/protocol/nonce.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/py.typed +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/receipts/web_receipt.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/base.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/runtime/mock_state_manager.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/server/app.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/server/policy.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/settle/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/storage/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/storage/archive_bundle_builder.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/types/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/types/did.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/types/transaction.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/circuit_breaker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/helpers.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/logger.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/logging.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/nonce_tracker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/received_nonce_tracker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/retry.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/secure_nonce.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/security.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/semaphore.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/used_attestation_tracker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/utils/validation.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/constants.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/aa/transaction_batcher.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/keystore.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/src/agirails/wallet/smart_wallet_router.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/benchmarks/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/conftest.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/counter_accept_basic.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/counter_accept_mainnet.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/counter_offer_basic.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/counter_offer_with_justification.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/manifest.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/python_signed_counter_accept_basic.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/python_signed_counter_accept_mainnet.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/python_signed_counter_offer_basic.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/cross_sdk/python_signed_counter_offer_with_justification.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/parity/canonical_json.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/parity/delivery_proof.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/parity/eip712.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/fixtures/parity/service_hash.json +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration/test_blockchain_runtime.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration/test_e2e_sepolia.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration/test_eas.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/test_eoa_runtime_lifecycle.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/test_full_lifecycle.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/test_kernel_state_after_timelock.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/test_smart_wallet_lifecycle.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/integration_sepolia/test_web_receipts_live.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_adapters/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_adapters/test_adapter_router.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_api/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_api/test_agirails_app.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_builders/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_builders/test_counter_offer.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_builders/test_counter_schema_branches.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_builders/test_delivery_proof.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_autopublish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_claim.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_claim_code.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_cli_original.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_e2e_publish_claim_discover.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_find.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_health.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_publish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_receipt.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_register.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_repair.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli/test_verify.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli_deploy/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cli_deploy/test_deploy.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_config/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_config/test_networks_aa.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_config/test_on_chain_state.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_config/test_pending_publish.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cross_sdk/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_cross_sdk/test_aip21_parity.py +0 -0
- {agirails-3.0.0/tests/test_golden → agirails-4.8.0/tests/test_delivery}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_erc8004/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_erc8004/test_bridge.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_agent.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_base.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_network.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_transaction.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_transient_rpc.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_errors/test_validation.py +0 -0
- {agirails-3.0.0/tests/test_negotiation → agirails-4.8.0/tests/test_golden}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_golden/test_canonical_hashes.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level0/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level0/test_directory.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level1/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level1/test_agent_hash_routing.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level1/test_agent_lifecycle.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_level1/test_config.py +0 -0
- {agirails-3.0.0/tests/test_receipts → agirails-4.8.0/tests/test_negotiation}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_negotiation/test_decision_engine.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_negotiation/test_policy_engine.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_negotiation/test_session_store.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_packaging/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_packaging/test_smoke.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_parity.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/test_canonical_json_properties.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/test_signing_properties.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/test_state_machine.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/test_stateful_lifecycle.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_properties/test_usdc_and_state_properties.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_protocol/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_protocol/test_contract_base.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_protocol/test_did.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_protocol/test_networks.py +0 -0
- {agirails-3.0.0/tests/test_runtime → agirails-4.8.0/tests/test_receipts}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_receipts/test_web_receipt.py +0 -0
- {agirails-3.0.0/tests/test_server → agirails-4.8.0/tests/test_runtime}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_runtime/test_accept_quote.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_runtime/test_blockchain_scan_window.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_runtime/test_concurrent_file_locking.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_runtime/test_mock_runtime.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_runtime/test_mock_state_manager.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_security/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_security/test_security_audit.py +0 -0
- {agirails-3.0.0/tests/test_settle → agirails-4.8.0/tests/test_server}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_server/conftest.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_server/test_actp_serve.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_server/test_serve_e2e.py +0 -0
- {agirails-3.0.0/tests/test_utils → agirails-4.8.0/tests/test_settle}/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/conftest.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/test_archive_bundle_builder.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_storage/test_types.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_types/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_types/test_transaction.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_attestation_replay.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_circuit_breaker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_helpers.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_helpers_extended.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_nonce_tracker.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_nonce_tracker_extended.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_received_nonce_tracker_extended.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_retry.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_secure_nonce_concurrency.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_security.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_security_extended.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_validation.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_utils/test_validation_extended.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/__init__.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_auto_wallet_provider.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_keystore.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_smart_wallet_router_edges.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_transaction_batcher.py +0 -0
- {agirails-3.0.0 → agirails-4.8.0}/tests/test_wallet/test_user_op_builder.py +0 -0
|
@@ -20,6 +20,10 @@ lib64/
|
|
|
20
20
|
# generic `lib/` rule above is meant for build/venv directories.
|
|
21
21
|
!src/agirails/cli/lib/
|
|
22
22
|
!src/agirails/cli/lib/**
|
|
23
|
+
# ...but the blanket un-ignore above also re-includes byte-compiled caches;
|
|
24
|
+
# re-exclude them so __pycache__ under cli/lib stays out of the worktree status.
|
|
25
|
+
src/agirails/cli/lib/**/__pycache__/
|
|
26
|
+
src/agirails/cli/lib/**/*.py[cod]
|
|
23
27
|
parts/
|
|
24
28
|
sdist/
|
|
25
29
|
var/
|
|
@@ -5,6 +5,101 @@ All notable changes to AGIRAILS Python SDK will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.8.0] — 2026-06-19
|
|
9
|
+
|
|
10
|
+
> **Full 1:1 parity with `@agirails/sdk` (TypeScript) 4.8.0.** The Python SDK
|
|
11
|
+
> jumped 3.0.1 → 4.8.0 to align with the TS line after a six-wave parity
|
|
12
|
+
> campaign closing 303 reported gaps (59 P0 · 162 P1 · 70 P2). Every
|
|
13
|
+
> cross-SDK hashed/signed surface is now **byte-for-byte identical** to the TS
|
|
14
|
+
> SDK, verified by 185 golden-vector tests generated from the real TS
|
|
15
|
+
> functions. Test suite grew 2398 → 3312 passing.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **AIP-16 secure delivery channel** (`agirails.delivery`): X25519 ECDH +
|
|
20
|
+
HKDF-SHA256 session keys, AES-256-GCM AEAD with `txId‖signer` AAD binding,
|
|
21
|
+
EIP-712 `DeliverySetup`/`DeliveryEnvelope` signing (domain `AGIRAILS
|
|
22
|
+
Delivery`), FIX-1 body encoding, Mock + Relay delivery channels. New
|
|
23
|
+
dependency: `cryptography`.
|
|
24
|
+
- **Native x402 v2** `X402Adapter`: real EIP-3009 `TransferWithAuthorization`
|
|
25
|
+
signing + Permit2 (ERC-1271/ERC-6492 Smart-Wallet path), `x402Version=2`
|
|
26
|
+
`X-PAYMENT` header, opt-in safety gate, per-tx caps. Legacy direct-transfer
|
|
27
|
+
adapter preserved as `LegacyX402Adapter`. Auto-registered when the wallet
|
|
28
|
+
provider exposes `sign_typed_data`.
|
|
29
|
+
- **AIP-2 `QuoteBuilder`** (EIP-712 signed, `agirails.quote.v1`); **AIP-7
|
|
30
|
+
receipt push** (`ReceiptWriteV2`, `receiptUrl`, `render_receipt_v3`);
|
|
31
|
+
**AIP-2.1** `ProviderOrchestrator`, buyer channel-driven multi-round
|
|
32
|
+
negotiation, injectable buyer/provider decider hooks, `NegotiationChannel`
|
|
33
|
+
(Mock + Relay).
|
|
34
|
+
- **AIP-18** buyer privacy: `budget`/`claim_code` stripped from `configHash`,
|
|
35
|
+
pay-only off-chain short-circuit, V4 `AGIRAILS.md` parser, `buyer_link`,
|
|
36
|
+
gasless-buyer gate.
|
|
37
|
+
- `ACTPClient` lifecycle methods (`start_work`/`deliver`/`release`/
|
|
38
|
+
`get_status`/`route_url_payment`/`get_activation_calls`/`to_json`/
|
|
39
|
+
`check_config_drift`); unified `UnifiedPayResult`; `actp agent` CLI command
|
|
40
|
+
(+ public-RPC warning), `.env` auto-load.
|
|
41
|
+
|
|
42
|
+
### Fixed (cross-SDK correctness — were silent interop breaks)
|
|
43
|
+
|
|
44
|
+
- **canonical JSON** now follows the ECMAScript Number→String algorithm
|
|
45
|
+
(integer-valued floats lose the fraction, `-0`→`0`, V8 positional/exponential
|
|
46
|
+
boundary) so keccak hashes match TS over any float-valued number.
|
|
47
|
+
- **EIP-712 domain** `ACTP` → `AGIRAILS`; `ProofGenerator` defaults to
|
|
48
|
+
keccak256 (was sha256); `compute_output_hash` JSON-quotes string deliverables.
|
|
49
|
+
- `kernel.submit_quote` (was missing → `AttributeError` on the on-chain QUOTED
|
|
50
|
+
path); ERC-8004 bridge now resolves against the **mode-derived** registry
|
|
51
|
+
(testnet clients no longer hit the mainnet registry); bytes32 keccak routing
|
|
52
|
+
key (was a JSON blob); `parse_deadline` semantics; AgentRegistry ABI refreshed
|
|
53
|
+
to the TS ABI; EAS 3-schema decode; runtime sweep adaptive `getLogs` chunking;
|
|
54
|
+
Smart-Wallet `create_transaction` routing; AA failover; Filebase AWS SigV4.
|
|
55
|
+
|
|
56
|
+
### Known divergences (documented)
|
|
57
|
+
|
|
58
|
+
- Arweave **upload** fails closed (ANS-104 DataItem signing is not byte-exact
|
|
59
|
+
achievable without the Irys lib); download + Filebase upload work.
|
|
60
|
+
- x402 seller-side `buildX402Server` helper not ported (buyer SDK).
|
|
61
|
+
|
|
62
|
+
## [3.0.1] — 2026-05-24
|
|
63
|
+
|
|
64
|
+
> README-only patch. The 3.0.0 long description on PyPI carried over
|
|
65
|
+
> several pre-publish inaccuracies that would mislead an integrator
|
|
66
|
+
> on copy-paste; this release rebuilds the wheel against an audited
|
|
67
|
+
> README. No SDK code changes.
|
|
68
|
+
|
|
69
|
+
### Fixed (docs)
|
|
70
|
+
|
|
71
|
+
- **Gasless quickstart example** — `client.basic.pay()` accepts
|
|
72
|
+
``dict | BasicPayParams | UnifiedPayParams``; the previous
|
|
73
|
+
``client.basic.pay("0x…", amount="0.05")`` would raise
|
|
74
|
+
``TypeError`` on copy-paste.
|
|
75
|
+
- **State machine diagram** — removed bogus
|
|
76
|
+
``IN_PROGRESS → DISPUTED`` arrow (the kernel only allows
|
|
77
|
+
``DELIVERED → DISPUTED``) and added explanatory bullets so the
|
|
78
|
+
full DAG matches ``runtime/types.py::VALID_TRANSITIONS`` exactly,
|
|
79
|
+
including the ``INITIATED → COMMITTED`` direct path and
|
|
80
|
+
``CANCELLED`` reachability from
|
|
81
|
+
``INITIATED``/``QUOTED``/``COMMITTED``/``IN_PROGRESS``/``DISPUTED``.
|
|
82
|
+
- **CLI section** — corrected six entries:
|
|
83
|
+
- ``actp tx deliver`` / ``actp tx settle`` don't exist; replaced
|
|
84
|
+
with the generic ``actp tx transition <tx_id> <NEW_STATE>``.
|
|
85
|
+
- ``actp request`` flags fixed: ``provider`` + ``amount`` are
|
|
86
|
+
positional, ``--to`` doesn't exist.
|
|
87
|
+
- ``actp claim-code`` arg is a path to ``AGIRAILS.md``; the
|
|
88
|
+
command mints a 24h dashboard-link code, it doesn't consume one.
|
|
89
|
+
- ``actp repair`` never took a ``tx_id``; it edits on-chain
|
|
90
|
+
provider role flags (``--remove-service``, ``--endpoint``,
|
|
91
|
+
``--active``, ``--listed``).
|
|
92
|
+
- ``actp publish``/``pull``/``diff`` take ``--path``, not a
|
|
93
|
+
positional path.
|
|
94
|
+
- Added ``actp find`` (was missing from the docs).
|
|
95
|
+
- **Adapters table** — X402Adapter was described as "relay-fee
|
|
96
|
+
splitting" which inverts the mainnet reality (direct buyer →
|
|
97
|
+
seller, zero AGIRAILS fee); relay is a sepolia-only opt-in.
|
|
98
|
+
BasicAdapter was described as "pay-and-forget" but it only drives
|
|
99
|
+
the tx to ``COMMITTED`` — the provider still needs ``DELIVERED``
|
|
100
|
+
and the requester ``SETTLED``. Both fixed and clarified with
|
|
101
|
+
per-adapter notes.
|
|
102
|
+
|
|
8
103
|
## [3.0.0] — 2026-05-23
|
|
9
104
|
|
|
10
105
|
> Stable promotion of `3.0.0b1`. No functional code changes since the
|
|
@@ -472,6 +567,7 @@ swaps needed only if:
|
|
|
472
567
|
|
|
473
568
|
| Version | Date | Highlights |
|
|
474
569
|
| -------- | ---------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
570
|
+
| 3.0.1 | 2026-05-24 | README-only patch — corrects 3.0.0 PyPI long description (CLI, code example, state diagram, adapter descriptions) |
|
|
475
571
|
| 3.0.0 | 2026-05-23 | V3 mainnet / V4 Sepolia parity, full Smart Wallet path, AIP-2.1 quote channel, Web Receipts, 4 new CLI commands |
|
|
476
572
|
| 3.0.0b1 | 2026-05-21 | Beta — adds Trusted Publisher OIDC workflow + post-audit fixes |
|
|
477
573
|
| 2.0.0 | 2024-12-25 | Initial v2 release with Python 3.9 support |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agirails
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.8.0
|
|
4
4
|
Summary: AGIRAILS Python SDK - Agent Commerce Transaction Protocol
|
|
5
5
|
Project-URL: Homepage, https://agirails.io
|
|
6
6
|
Project-URL: Documentation, https://docs.agirails.io
|
|
@@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
22
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
23
|
Classifier: Typing :: Typed
|
|
24
24
|
Requires-Python: >=3.9
|
|
25
|
+
Requires-Dist: cryptography<49.0.0,>=46.0.7
|
|
25
26
|
Requires-Dist: eth-abi<6.0.0,>=5.0.0
|
|
26
27
|
Requires-Dist: eth-account<0.14.0,>=0.13.0
|
|
27
28
|
Requires-Dist: eth-hash[pycryptodome]<1.0.0,>=0.7.0
|
|
@@ -29,6 +30,7 @@ Requires-Dist: eth-utils<6.0.0,>=5.0.0
|
|
|
29
30
|
Requires-Dist: httpx<1.0.0,>=0.27.0
|
|
30
31
|
Requires-Dist: pydantic<3.0.0,>=2.6.0
|
|
31
32
|
Requires-Dist: python-dateutil<3.0.0,>=2.8.0
|
|
33
|
+
Requires-Dist: python-dotenv<2.0.0,>=1.0.0
|
|
32
34
|
Requires-Dist: pyyaml<7.0,>=6.0
|
|
33
35
|
Requires-Dist: rich<14.0.0,>=13.0.0
|
|
34
36
|
Requires-Dist: typer<1.0.0,>=0.12.0
|
|
@@ -55,6 +57,7 @@ Requires-Dist: pip-audit>=2.7.0; extra == 'security'
|
|
|
55
57
|
Requires-Dist: safety>=3.0.0; extra == 'security'
|
|
56
58
|
Provides-Extra: server
|
|
57
59
|
Requires-Dist: fastapi>=0.110.0; extra == 'server'
|
|
60
|
+
Requires-Dist: starlette>=1.3.1; (python_version >= '3.10') and extra == 'server'
|
|
58
61
|
Requires-Dist: uvicorn>=0.30.0; extra == 'server'
|
|
59
62
|
Description-Content-Type: text/markdown
|
|
60
63
|
|
|
@@ -109,7 +112,7 @@ client = await ACTPClient.create(
|
|
|
109
112
|
wallet="auto", # derive a counterfactual Smart Wallet
|
|
110
113
|
private_key=os.environ["PRIVATE_KEY"],
|
|
111
114
|
)
|
|
112
|
-
result = await client.basic.pay("0xProvider…", amount
|
|
115
|
+
result = await client.basic.pay({"to": "0xProvider…", "amount": "0.05"})
|
|
113
116
|
# single batched UserOp: USDC.approve + createTransaction + linkEscrow
|
|
114
117
|
```
|
|
115
118
|
|
|
@@ -128,11 +131,14 @@ See [CHANGELOG.md](CHANGELOG.md) for the full diff against 2.x.
|
|
|
128
131
|
|
|
129
132
|
Priority-routed; same shape as the TypeScript `AdapterRouter`:
|
|
130
133
|
|
|
131
|
-
| Adapter | Priority | Target | Use case
|
|
132
|
-
| ------------------- | -------- | ---------------- |
|
|
133
|
-
| **X402Adapter** | 70 | `https://…` URLs | Instant HTTP payments
|
|
134
|
-
| **StandardAdapter** | 60 | `0x…` addresses | Full ACTP
|
|
135
|
-
| **BasicAdapter** | 50 | `0x…` addresses |
|
|
134
|
+
| Adapter | Priority | Target | Use case |
|
|
135
|
+
| ------------------- | -------- | ---------------- | ----------------------------------------------------------------- |
|
|
136
|
+
| **X402Adapter** | 70 | `https://…` URLs | Instant atomic HTTP payments — direct USDC settlement |
|
|
137
|
+
| **StandardAdapter** | 60 | `0x…` addresses | Full ACTP lifecycle — create, accept, link, transition, settle |
|
|
138
|
+
| **BasicAdapter** | 50 | `0x…` addresses | High-level `pay()` — create + escrow to COMMITTED in one call |
|
|
139
|
+
|
|
140
|
+
- **x402 on Base mainnet** routes payments directly buyer → seller via `@x402/fetch` + facilitator (no AGIRAILS fee). Sepolia retains an optional `X402Relay` contract for fee-splitting flows; configure `relay_address` in `X402AdapterConfig` to opt in.
|
|
141
|
+
- **BasicAdapter** drives the transaction to `COMMITTED` and returns — the provider still needs to mark `DELIVERED` and the requester `SETTLED`. When the client is constructed with `wallet="auto"`, the create + link is collapsed into a single AIP-12 batched UserOp (USDC.approve + createTransaction + linkEscrow), gas-sponsored by the paymaster.
|
|
136
142
|
|
|
137
143
|
## Keystore policy (AIP-13)
|
|
138
144
|
|
|
@@ -155,40 +161,46 @@ actp deploy:check # scan repo for exposed secrets
|
|
|
155
161
|
|
|
156
162
|
```
|
|
157
163
|
INITIATED ─→ QUOTED ─→ COMMITTED ─→ IN_PROGRESS ─→ DELIVERED ─→ SETTLED
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
│
|
|
165
|
+
└─→ DISPUTED ─→ SETTLED
|
|
160
166
|
```
|
|
161
167
|
|
|
168
|
+
- `INITIATED` can skip `QUOTED` and go straight to `COMMITTED` when no negotiation is needed.
|
|
169
|
+
- `CANCELLED` is reachable from `INITIATED`, `QUOTED`, `COMMITTED`, `IN_PROGRESS`, and `DISPUTED`.
|
|
170
|
+
- `SETTLED` and `CANCELLED` are terminal.
|
|
171
|
+
|
|
162
172
|
Transitions are one-way and gated on chain — the kernel rejects any move that isn't on the DAG.
|
|
163
173
|
|
|
164
174
|
## CLI
|
|
165
175
|
|
|
166
176
|
```bash
|
|
167
177
|
# Payments + transactions
|
|
168
|
-
actp pay <
|
|
178
|
+
actp pay <provider> <amount> [--deadline TIME] [--description TEXT]
|
|
169
179
|
actp balance [ADDRESS]
|
|
170
180
|
actp tx list [--state STATE]
|
|
171
181
|
actp tx status <tx_id>
|
|
172
|
-
actp tx
|
|
173
|
-
actp tx settle <tx_id>
|
|
182
|
+
actp tx transition <tx_id> <NEW_STATE> [--proof BYTES32] # e.g. DELIVERED / SETTLED
|
|
174
183
|
|
|
175
184
|
# Quote channel (AIP-2.1)
|
|
176
|
-
actp serve --policy policy.yaml [--port 8080]
|
|
177
|
-
actp request --service <name> --
|
|
185
|
+
actp serve --policy policy.yaml [--port 8080] [--mock]
|
|
186
|
+
actp request <provider> <amount> --service <name> [--deadline T] [--auto-accept]
|
|
187
|
+
|
|
188
|
+
# Discovery + verification
|
|
189
|
+
actp find <query> [--capability NAME] [--max-price USDC] [--limit N]
|
|
190
|
+
actp verify <tx_id | receipt_url | agent_address>
|
|
178
191
|
|
|
179
|
-
#
|
|
180
|
-
actp
|
|
181
|
-
actp
|
|
182
|
-
actp repair <tx_id>
|
|
192
|
+
# Agent dashboard / on-chain role
|
|
193
|
+
actp claim-code [path-to-AGIRAILS.md] # mints a 24h code to link dashboard
|
|
194
|
+
actp repair [--remove-service NAME] [--endpoint URL] [--active true|false]
|
|
183
195
|
|
|
184
196
|
# AGIRAILS.md config sync
|
|
185
|
-
actp publish [path]
|
|
186
|
-
actp pull
|
|
187
|
-
actp diff
|
|
197
|
+
actp publish [--path PATH] [--network NETWORK] [--dry-run]
|
|
198
|
+
actp pull [--path PATH] [--network NETWORK]
|
|
199
|
+
actp diff [--path PATH] [--network NETWORK]
|
|
188
200
|
|
|
189
201
|
# Mock-mode helpers
|
|
190
202
|
actp mint <address> <amount>
|
|
191
|
-
actp time advance <
|
|
203
|
+
actp time advance <seconds>
|
|
192
204
|
```
|
|
193
205
|
|
|
194
206
|
## Testing
|
|
@@ -49,7 +49,7 @@ client = await ACTPClient.create(
|
|
|
49
49
|
wallet="auto", # derive a counterfactual Smart Wallet
|
|
50
50
|
private_key=os.environ["PRIVATE_KEY"],
|
|
51
51
|
)
|
|
52
|
-
result = await client.basic.pay("0xProvider…", amount
|
|
52
|
+
result = await client.basic.pay({"to": "0xProvider…", "amount": "0.05"})
|
|
53
53
|
# single batched UserOp: USDC.approve + createTransaction + linkEscrow
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -68,11 +68,14 @@ See [CHANGELOG.md](CHANGELOG.md) for the full diff against 2.x.
|
|
|
68
68
|
|
|
69
69
|
Priority-routed; same shape as the TypeScript `AdapterRouter`:
|
|
70
70
|
|
|
71
|
-
| Adapter | Priority | Target | Use case
|
|
72
|
-
| ------------------- | -------- | ---------------- |
|
|
73
|
-
| **X402Adapter** | 70 | `https://…` URLs | Instant HTTP payments
|
|
74
|
-
| **StandardAdapter** | 60 | `0x…` addresses | Full ACTP
|
|
75
|
-
| **BasicAdapter** | 50 | `0x…` addresses |
|
|
71
|
+
| Adapter | Priority | Target | Use case |
|
|
72
|
+
| ------------------- | -------- | ---------------- | ----------------------------------------------------------------- |
|
|
73
|
+
| **X402Adapter** | 70 | `https://…` URLs | Instant atomic HTTP payments — direct USDC settlement |
|
|
74
|
+
| **StandardAdapter** | 60 | `0x…` addresses | Full ACTP lifecycle — create, accept, link, transition, settle |
|
|
75
|
+
| **BasicAdapter** | 50 | `0x…` addresses | High-level `pay()` — create + escrow to COMMITTED in one call |
|
|
76
|
+
|
|
77
|
+
- **x402 on Base mainnet** routes payments directly buyer → seller via `@x402/fetch` + facilitator (no AGIRAILS fee). Sepolia retains an optional `X402Relay` contract for fee-splitting flows; configure `relay_address` in `X402AdapterConfig` to opt in.
|
|
78
|
+
- **BasicAdapter** drives the transaction to `COMMITTED` and returns — the provider still needs to mark `DELIVERED` and the requester `SETTLED`. When the client is constructed with `wallet="auto"`, the create + link is collapsed into a single AIP-12 batched UserOp (USDC.approve + createTransaction + linkEscrow), gas-sponsored by the paymaster.
|
|
76
79
|
|
|
77
80
|
## Keystore policy (AIP-13)
|
|
78
81
|
|
|
@@ -95,40 +98,46 @@ actp deploy:check # scan repo for exposed secrets
|
|
|
95
98
|
|
|
96
99
|
```
|
|
97
100
|
INITIATED ─→ QUOTED ─→ COMMITTED ─→ IN_PROGRESS ─→ DELIVERED ─→ SETTLED
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
│
|
|
102
|
+
└─→ DISPUTED ─→ SETTLED
|
|
100
103
|
```
|
|
101
104
|
|
|
105
|
+
- `INITIATED` can skip `QUOTED` and go straight to `COMMITTED` when no negotiation is needed.
|
|
106
|
+
- `CANCELLED` is reachable from `INITIATED`, `QUOTED`, `COMMITTED`, `IN_PROGRESS`, and `DISPUTED`.
|
|
107
|
+
- `SETTLED` and `CANCELLED` are terminal.
|
|
108
|
+
|
|
102
109
|
Transitions are one-way and gated on chain — the kernel rejects any move that isn't on the DAG.
|
|
103
110
|
|
|
104
111
|
## CLI
|
|
105
112
|
|
|
106
113
|
```bash
|
|
107
114
|
# Payments + transactions
|
|
108
|
-
actp pay <
|
|
115
|
+
actp pay <provider> <amount> [--deadline TIME] [--description TEXT]
|
|
109
116
|
actp balance [ADDRESS]
|
|
110
117
|
actp tx list [--state STATE]
|
|
111
118
|
actp tx status <tx_id>
|
|
112
|
-
actp tx
|
|
113
|
-
actp tx settle <tx_id>
|
|
119
|
+
actp tx transition <tx_id> <NEW_STATE> [--proof BYTES32] # e.g. DELIVERED / SETTLED
|
|
114
120
|
|
|
115
121
|
# Quote channel (AIP-2.1)
|
|
116
|
-
actp serve --policy policy.yaml [--port 8080]
|
|
117
|
-
actp request --service <name> --
|
|
122
|
+
actp serve --policy policy.yaml [--port 8080] [--mock]
|
|
123
|
+
actp request <provider> <amount> --service <name> [--deadline T] [--auto-accept]
|
|
124
|
+
|
|
125
|
+
# Discovery + verification
|
|
126
|
+
actp find <query> [--capability NAME] [--max-price USDC] [--limit N]
|
|
127
|
+
actp verify <tx_id | receipt_url | agent_address>
|
|
118
128
|
|
|
119
|
-
#
|
|
120
|
-
actp
|
|
121
|
-
actp
|
|
122
|
-
actp repair <tx_id>
|
|
129
|
+
# Agent dashboard / on-chain role
|
|
130
|
+
actp claim-code [path-to-AGIRAILS.md] # mints a 24h code to link dashboard
|
|
131
|
+
actp repair [--remove-service NAME] [--endpoint URL] [--active true|false]
|
|
123
132
|
|
|
124
133
|
# AGIRAILS.md config sync
|
|
125
|
-
actp publish [path]
|
|
126
|
-
actp pull
|
|
127
|
-
actp diff
|
|
134
|
+
actp publish [--path PATH] [--network NETWORK] [--dry-run]
|
|
135
|
+
actp pull [--path PATH] [--network NETWORK]
|
|
136
|
+
actp diff [--path PATH] [--network NETWORK]
|
|
128
137
|
|
|
129
138
|
# Mock-mode helpers
|
|
130
139
|
actp mint <address> <amount>
|
|
131
|
-
actp time advance <
|
|
140
|
+
actp time advance <seconds>
|
|
132
141
|
```
|
|
133
142
|
|
|
134
143
|
## Testing
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agirails"
|
|
7
|
-
version = "
|
|
7
|
+
version = "4.8.0"
|
|
8
8
|
description = "AGIRAILS Python SDK - Agent Commerce Transaction Protocol"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -46,6 +46,9 @@ dependencies = [
|
|
|
46
46
|
# explicitly so the install doesn't depend on eth-account keeping it
|
|
47
47
|
# in its requirement set.
|
|
48
48
|
"eth-hash[pycryptodome]>=0.7.0,<1.0.0",
|
|
49
|
+
# AIP-16 delivery channel crypto: X25519 ECDH, HKDF-SHA256, AES-256-GCM
|
|
50
|
+
# (byte-exact parity with the TS delivery surface). pyca/cryptography.
|
|
51
|
+
"cryptography>=46.0.7,<49.0.0",
|
|
49
52
|
"pydantic>=2.6.0,<3.0.0",
|
|
50
53
|
"python-dateutil>=2.8.0,<3.0.0",
|
|
51
54
|
"httpx>=0.27.0,<1.0.0",
|
|
@@ -53,6 +56,8 @@ dependencies = [
|
|
|
53
56
|
"rich>=13.0.0,<14.0.0",
|
|
54
57
|
# AGIRAILS.md frontmatter parsing in config.agirailsmd.
|
|
55
58
|
"pyyaml>=6.0,<7.0",
|
|
59
|
+
# CLI .env auto-load (AIP-18 §4.6.2) — parity with the TS CLI dotenv load.
|
|
60
|
+
"python-dotenv>=1.0.0,<2.0.0",
|
|
56
61
|
"typing_extensions>=4.0.0,<5.0.0;python_version<'3.10'",
|
|
57
62
|
]
|
|
58
63
|
|
|
@@ -84,6 +89,11 @@ mutation = [
|
|
|
84
89
|
server = [
|
|
85
90
|
"fastapi>=0.110.0", # actp serve daemon (AIP-2.1 quote channel)
|
|
86
91
|
"uvicorn>=0.30.0",
|
|
92
|
+
# CVE-2026-54283 fix is starlette 1.3.1. fastapi only pulls starlette 1.x on
|
|
93
|
+
# Python >=3.10 (fastapi>=0.129 requires 3.10+); on 3.9 it pulls the
|
|
94
|
+
# unaffected 0.x line. So force the fix only where the vulnerable 1.3.0 would
|
|
95
|
+
# otherwise be resolved — keeps the package installable on 3.9.
|
|
96
|
+
"starlette>=1.3.1; python_version >= '3.10'",
|
|
87
97
|
]
|
|
88
98
|
|
|
89
99
|
[project.scripts]
|
|
@@ -55,12 +55,13 @@ trap 'rm -rf "$SMOKE_VENV"' EXIT
|
|
|
55
55
|
|
|
56
56
|
echo "== imports =="
|
|
57
57
|
"$SMOKE_VENV/bin/python" - <<'PYEOF'
|
|
58
|
+
import re
|
|
58
59
|
import sys
|
|
59
60
|
|
|
60
61
|
import agirails
|
|
61
62
|
print(f"version: {agirails.__version__}")
|
|
62
|
-
assert
|
|
63
|
-
f"version {agirails.__version__}
|
|
63
|
+
assert re.match(r"^\d+\.\d+\.\d+", agirails.__version__), \
|
|
64
|
+
f"version {agirails.__version__} is not a valid semantic version"
|
|
64
65
|
|
|
65
66
|
# Top-level re-exports promised in CHANGELOG.
|
|
66
67
|
from agirails import (
|
|
@@ -54,6 +54,7 @@ from agirails.adapters import (
|
|
|
54
54
|
StandardAdapter,
|
|
55
55
|
StandardTransactionParams,
|
|
56
56
|
TransactionDetails,
|
|
57
|
+
TransactionStatus,
|
|
57
58
|
X402Adapter,
|
|
58
59
|
DEFAULT_DEADLINE_SECONDS,
|
|
59
60
|
DEFAULT_DISPUTE_WINDOW_SECONDS,
|
|
@@ -340,8 +341,12 @@ from agirails.builders import (
|
|
|
340
341
|
CounterOfferMessage,
|
|
341
342
|
CounterOfferParams,
|
|
342
343
|
DeliveryProofBuilder,
|
|
344
|
+
LegacyQuoteBuilder,
|
|
343
345
|
MessageNonceManager,
|
|
344
346
|
QuoteBuilder,
|
|
347
|
+
QuoteMessage,
|
|
348
|
+
QuoteParams,
|
|
349
|
+
AIP2QuoteTypes,
|
|
345
350
|
)
|
|
346
351
|
|
|
347
352
|
# Web Receipts (AIP-7 §6 — agirails.app public receipt artifact)
|
|
@@ -352,6 +357,10 @@ from agirails.receipts import (
|
|
|
352
357
|
ReceiptUploadResult,
|
|
353
358
|
ReceiptUploadSuccess,
|
|
354
359
|
upload_receipt,
|
|
360
|
+
push_receipt_on_settled,
|
|
361
|
+
format_settled_line,
|
|
362
|
+
PushReceiptArgs,
|
|
363
|
+
PushReceiptResult,
|
|
355
364
|
)
|
|
356
365
|
|
|
357
366
|
# Storage Layer (AIP-7 §4 - Hybrid Storage)
|
|
@@ -417,6 +426,26 @@ from agirails.negotiation import (
|
|
|
417
426
|
NegotiationResult,
|
|
418
427
|
RoundResult,
|
|
419
428
|
OrchestratorConfig,
|
|
429
|
+
RequoteGuardViolation,
|
|
430
|
+
ProviderPolicyEngine,
|
|
431
|
+
verify_quote_hash_on_chain,
|
|
432
|
+
VerifyOnChainResult,
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
# AIP-16 secure delivery channel (encrypted envelopes, EIP-712, Mock/Relay).
|
|
436
|
+
from agirails.delivery import (
|
|
437
|
+
DeliverySetupBuilder,
|
|
438
|
+
BuildSetupParams,
|
|
439
|
+
DeliveryEnvelopeBuilder,
|
|
440
|
+
BuildPublicEnvelopeParams,
|
|
441
|
+
BuildEncryptedEnvelopeParams,
|
|
442
|
+
MockDeliveryChannel,
|
|
443
|
+
MockDeliveryChannelOptions,
|
|
444
|
+
RelayDeliveryChannel,
|
|
445
|
+
RelayDeliveryChannelOptions,
|
|
446
|
+
DeliveryChannel,
|
|
447
|
+
DeliverySubscription,
|
|
448
|
+
build_envelope_aad,
|
|
420
449
|
)
|
|
421
450
|
|
|
422
451
|
__all__ = [
|
|
@@ -437,6 +466,7 @@ __all__ = [
|
|
|
437
466
|
"StandardAdapter",
|
|
438
467
|
"StandardTransactionParams",
|
|
439
468
|
"TransactionDetails",
|
|
469
|
+
"TransactionStatus",
|
|
440
470
|
"X402Adapter",
|
|
441
471
|
"DEFAULT_DEADLINE_SECONDS",
|
|
442
472
|
"DEFAULT_DISPUTE_WINDOW_SECONDS",
|
|
@@ -665,6 +695,10 @@ __all__ = [
|
|
|
665
695
|
# Builders
|
|
666
696
|
"DeliveryProofBuilder",
|
|
667
697
|
"QuoteBuilder",
|
|
698
|
+
"QuoteMessage",
|
|
699
|
+
"QuoteParams",
|
|
700
|
+
"AIP2QuoteTypes",
|
|
701
|
+
"LegacyQuoteBuilder",
|
|
668
702
|
"CounterOfferBuilder",
|
|
669
703
|
"CounterOfferMessage",
|
|
670
704
|
"CounterOfferParams",
|
|
@@ -680,6 +714,10 @@ __all__ = [
|
|
|
680
714
|
"ReceiptUploadResult",
|
|
681
715
|
"ReceiptUploadSuccess",
|
|
682
716
|
"upload_receipt",
|
|
717
|
+
"push_receipt_on_settled",
|
|
718
|
+
"format_settled_line",
|
|
719
|
+
"PushReceiptArgs",
|
|
720
|
+
"PushReceiptResult",
|
|
683
721
|
# Storage Layer (AIP-7 §4 - Hybrid Storage)
|
|
684
722
|
# Clients
|
|
685
723
|
"FilebaseClient",
|
|
@@ -736,6 +774,23 @@ __all__ = [
|
|
|
736
774
|
"SessionStore",
|
|
737
775
|
"SessionMapping",
|
|
738
776
|
"BuyerOrchestrator",
|
|
777
|
+
"ProviderPolicyEngine",
|
|
778
|
+
"verify_quote_hash_on_chain",
|
|
779
|
+
"VerifyOnChainResult",
|
|
780
|
+
"RequoteGuardViolation",
|
|
781
|
+
# AIP-16 delivery channel
|
|
782
|
+
"DeliverySetupBuilder",
|
|
783
|
+
"BuildSetupParams",
|
|
784
|
+
"DeliveryEnvelopeBuilder",
|
|
785
|
+
"BuildPublicEnvelopeParams",
|
|
786
|
+
"BuildEncryptedEnvelopeParams",
|
|
787
|
+
"MockDeliveryChannel",
|
|
788
|
+
"MockDeliveryChannelOptions",
|
|
789
|
+
"RelayDeliveryChannel",
|
|
790
|
+
"RelayDeliveryChannelOptions",
|
|
791
|
+
"DeliveryChannel",
|
|
792
|
+
"DeliverySubscription",
|
|
793
|
+
"build_envelope_aad",
|
|
739
794
|
"NegotiationResult",
|
|
740
795
|
"RoundResult",
|
|
741
796
|
"OrchestratorConfig",
|