agentenv-framework-protocol 0.1.660__tar.gz → 0.1.661__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.
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/PKG-INFO +6 -1
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/README.md +5 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/pyproject.toml +1 -1
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/client.py +24 -1
- agentenv_framework_protocol-0.1.661/tests/test_rpc_keepalive.py +81 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/NOTICE +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/THIRD_PARTY_NOTICES.md +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/advanced_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/basic_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/custom_extensions_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/multimodal_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/reference_model.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/streaming_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/.gitignore +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/Dockerfile +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/Dockerfile.dockerignore +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/README.md +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/data/seed.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/env.toml +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/site.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/index.html +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/package-lock.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/package.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/src/main.js +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/src/style.css +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/website/notes/web/vite.config.js +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_atif_copy.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_media_spool.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_secrets.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_snapshot_state.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_triggers.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/_turn_index.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/clock.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/control_token.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/framework.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/proxy.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/registry.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/staging.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/tasks/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/a2a_agent/tasks/v1.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/PROFILE.md +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/_image_size.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/adapter.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/builder.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/coding.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/coding.stripped.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/computer_use.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/late_result.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/482405b002a62efa8516c36709a7a100637507670576fa73a20ad5420d55c66f.png +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/55c64d0fcd6f9d5f7c828093857e3fdfda68478bb4e9bd24d481ef391c7804e8.heic +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/67905ad3cc2dd52b1f5f6a6d2814de0396618b29b4238b9af5207aeb69936e6d.mp4 +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/69a8aa01fe5537076d023dd5e9cc4275b39fc0434aa6483a9f58b66ef2f3c896.png +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/82e60066a2de261b6653bcdda90d1cb9a7af2f474cecd82e8d371e8384d72315.png +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/media/845e91831319e89c4d656bdb80c278ac09a7230d61e5dfd2e1b1fbb436ac8917.pdf +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/multi_agent.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/odd_parts.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/subagent.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/fixtures/two_turns.json +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/kit.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/LICENSE +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/VENDORED.md +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/content.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/final_metrics.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/metrics.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/observation.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/observation_result.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/step.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/subagent_trajectory_ref.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/tool_call.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/models/trajectory.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/profile.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/reader.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/runner.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/served.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/atif/validator.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_declare.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_desktop.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_job.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_linux.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_load.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_macos.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_reaping.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_session_posix.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_windows.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_with_fds.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/_x11.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/annotate.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/app.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/app_data.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/app_runtime.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/apps.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/card.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/checks.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/clock.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/__main__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/checks.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/client.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/desk.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/fixture.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/mp4.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/page_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/report.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/conformance/wayland_fixture.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/driver.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/errors.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/extensions.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/frames.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/keys.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/launch.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/operations.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/platform.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/prefix.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/queue.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/recording.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/results.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/run_install_step.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/runtime.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/seed.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/serve.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/serve_app.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/served.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/session.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/settings.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/skill.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/spaces.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/svc.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/computer/tools.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/errors.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/manifest.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/passthrough.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/preflight.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/transfers.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/types.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/clock.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/conformance.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/environment.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/errors.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/readiness.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/routes.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website/session.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/__init__.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/cdp.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/contexts.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/control.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/data.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/devtools.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/environment.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/log.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/network.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/recording.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/scope.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/shapes.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/src/agentenv_protocol/website_browser/stream.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/atif_cases.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/computer_fake.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/conftest.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/probe_fake.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_agent.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_agent_clock.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_agent_examples.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_atif_media.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_atif_prescribe.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_atif_scrubbing.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_atif_serving.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_atif_turns.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_cdp_config.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_object_transfers.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_peer_agents.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_proxy.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_staging.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_a2a_trajectory_log.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_agent_env_environment.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_builder.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_fixtures.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_kit.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_profile.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_reader.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_validator.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_atif_vendored.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_cdp.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_contexts.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_data.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_log.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_network.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_recording.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_browser_state.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_client.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_app_data.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_app_server.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_clock.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_conformance_attempts.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_conformance_checks.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_conformance_page.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_conformance_recording.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_dataplane.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_declare.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_driver.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_driver_keys.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_extensions.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_frames.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_macos.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_page.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_queue.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_recording.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_recording_annotate.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_screenshot_delay.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_seed.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_serve.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_served.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_session_windows.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_spaces.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_svc_forward.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_tool_prefix.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_computer_windows_driver.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_control_token.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_data_objects.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_devtools_pipe.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_errors.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_extension_methods.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_intake.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_manifest.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_preflight.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_access.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_annotations.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_client.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_context.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_context_fastmcp.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_context_injection.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_tool_defers.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_usage.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_usage_models.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_api.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_browser.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_conformance.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_environment.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_forwarding.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_live.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_mcp.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_notes_example.py +0 -0
- {agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/tests/test_website_readiness.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentenv-framework-protocol
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.661
|
|
4
4
|
Summary: Open data-plane protocol and server SDK for agent environments.
|
|
5
5
|
Project-URL: Homepage, https://www.agentenvframework.com
|
|
6
6
|
Project-URL: Documentation, https://www.agentenvframework.com/docs
|
|
@@ -336,6 +336,11 @@ name)` raises `AmbiguousChildError` for a shared name, and `client.find_child` r
|
|
|
336
336
|
`client.serves(card, method)` says whether a card serves a data-plane method by its declared
|
|
337
337
|
`operations`, None for a card that declares none.
|
|
338
338
|
|
|
339
|
+
The client enables TCP keepalive on each `data/add`, `data/get`, and `data/reset` connection, a
|
|
340
|
+
proxy's included, so it can stay open while the environment prepares a reply. Where supported, probes
|
|
341
|
+
start after 30 seconds of inactivity. Each socket uses the keepalive settings its kernel accepts.
|
|
342
|
+
These calls use HTTPX's usual proxy and TLS settings.
|
|
343
|
+
|
|
339
344
|
Extensions are invoked from what the card advertises. `client.find_extension_method(card, uri,
|
|
340
345
|
method)` returns one advertised method, whose `endpoint` is the method's own or else the
|
|
341
346
|
extension's, and `client.invoke_extension(base_url, card, uri, params, method=...)` calls it with
|
|
@@ -265,6 +265,11 @@ name)` raises `AmbiguousChildError` for a shared name, and `client.find_child` r
|
|
|
265
265
|
`client.serves(card, method)` says whether a card serves a data-plane method by its declared
|
|
266
266
|
`operations`, None for a card that declares none.
|
|
267
267
|
|
|
268
|
+
The client enables TCP keepalive on each `data/add`, `data/get`, and `data/reset` connection, a
|
|
269
|
+
proxy's included, so it can stay open while the environment prepares a reply. Where supported, probes
|
|
270
|
+
start after 30 seconds of inactivity. Each socket uses the keepalive settings its kernel accepts.
|
|
271
|
+
These calls use HTTPX's usual proxy and TLS settings.
|
|
272
|
+
|
|
268
273
|
Extensions are invoked from what the card advertises. `client.find_extension_method(card, uri,
|
|
269
274
|
method)` returns one advertised method, whose `endpoint` is the method's own or else the
|
|
270
275
|
extension's, and `client.invoke_extension(base_url, card, uri, params, method=...)` calls it with
|
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
|
|
6
6
|
import contextlib
|
|
7
7
|
import logging
|
|
8
|
+
import socket
|
|
8
9
|
from collections.abc import Iterator
|
|
9
10
|
from contextvars import ContextVar
|
|
10
11
|
from dataclasses import dataclass, field
|
|
@@ -106,7 +107,8 @@ async def _rpc(base_url: str, method: str, params: dict, timeout: int, verify: b
|
|
|
106
107
|
request = {"jsonrpc": "2.0", "id": 1, "method": method, "params": params}
|
|
107
108
|
url = f"{base_url.rstrip('/')}{RPC_PATH}"
|
|
108
109
|
async with httpx.AsyncClient(verify=verify) as client:
|
|
109
|
-
response = await client.post(url, json=request, timeout=timeout, headers=request_headers(url, headers)
|
|
110
|
+
response = await client.post(url, json=request, timeout=timeout, headers=request_headers(url, headers),
|
|
111
|
+
extensions={"trace": _keepalive})
|
|
110
112
|
response.raise_for_status()
|
|
111
113
|
body = response.json()
|
|
112
114
|
if "error" in body:
|
|
@@ -386,3 +388,24 @@ async def invoke_extension(base_url: str, card: dict, uri: str, params: dict | N
|
|
|
386
388
|
if response.status_code >= 400:
|
|
387
389
|
raise ExtensionCallError(response)
|
|
388
390
|
return response.json()
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
_KEEPALIVE_IDLE_SECONDS = 30
|
|
394
|
+
_KEEPALIVE_PROBE_INTERVAL_SECONDS = 10
|
|
395
|
+
_KEEPALIVE_PROBE_COUNT = 3
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
async def _keepalive(event: str, info: dict) -> None:
|
|
399
|
+
"""Best-effort TCP keepalive on each connection the RPC opens, a proxy's included, so a reply the env takes
|
|
400
|
+
minutes to send isn't lost to an idle drop. A setting the socket refuses is skipped."""
|
|
401
|
+
if event != "connection.connect_tcp.complete" or (sock := info["return_value"].get_extra_info("socket")) is None:
|
|
402
|
+
return
|
|
403
|
+
idle = getattr(socket, "TCP_KEEPIDLE", getattr(socket, "TCP_KEEPALIVE", None))
|
|
404
|
+
tuning = ((idle, _KEEPALIVE_IDLE_SECONDS),
|
|
405
|
+
(getattr(socket, "TCP_KEEPINTVL", None), _KEEPALIVE_PROBE_INTERVAL_SECONDS),
|
|
406
|
+
(getattr(socket, "TCP_KEEPCNT", None), _KEEPALIVE_PROBE_COUNT))
|
|
407
|
+
options = [(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)]
|
|
408
|
+
options += [(socket.IPPROTO_TCP, option, value) for option, value in tuning if option is not None]
|
|
409
|
+
for level, option, value in options:
|
|
410
|
+
with contextlib.suppress(OSError):
|
|
411
|
+
sock.setsockopt(level, option, value)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""Exercise RPC routing through HTTPX down to the TCP and TLS handshakes."""
|
|
2
|
+
|
|
3
|
+
import errno
|
|
4
|
+
import socket
|
|
5
|
+
import ssl
|
|
6
|
+
|
|
7
|
+
import httpcore
|
|
8
|
+
import pytest
|
|
9
|
+
from httpcore._backends.auto import AutoBackend
|
|
10
|
+
|
|
11
|
+
from agentenv_protocol import client
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@pytest.mark.asyncio
|
|
15
|
+
@pytest.mark.parametrize("scheme,proxies,via_proxy,refuse_interval", [
|
|
16
|
+
("http", {}, False, False),
|
|
17
|
+
("https", {}, False, False),
|
|
18
|
+
("https", {}, False, True),
|
|
19
|
+
("http", {"HTTP_PROXY": "http://proxy.test:8080"}, True, False),
|
|
20
|
+
("https", {"HTTPS_PROXY": "http://proxy.test:8080"}, True, False),
|
|
21
|
+
("http", {"ALL_PROXY": "http://proxy.test:8080"}, True, False),
|
|
22
|
+
("https", {"HTTPS_PROXY": "http://proxy.test:8080", "NO_PROXY": ".env.test"}, False, False),
|
|
23
|
+
("http", {"ALL_PROXY": "http://proxy.test:8080", "NO_PROXY": "*"}, False, False),
|
|
24
|
+
])
|
|
25
|
+
@pytest.mark.parametrize("verify", [True, False])
|
|
26
|
+
async def test_rpc_socket_options_and_routing(monkeypatch, scheme, proxies, via_proxy, refuse_interval, verify):
|
|
27
|
+
for name in ("HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY", "REQUEST_METHOD"):
|
|
28
|
+
monkeypatch.delenv(name, raising=False)
|
|
29
|
+
monkeypatch.delenv(name.lower(), raising=False)
|
|
30
|
+
monkeypatch.setenv("NO_PROXY", "unused.test")
|
|
31
|
+
for name, value in proxies.items():
|
|
32
|
+
monkeypatch.setenv(name, value)
|
|
33
|
+
|
|
34
|
+
connections = []
|
|
35
|
+
handshakes = []
|
|
36
|
+
options = []
|
|
37
|
+
interval = getattr(socket, "TCP_KEEPINTVL", 12345)
|
|
38
|
+
if refuse_interval:
|
|
39
|
+
monkeypatch.setattr(socket, "TCP_KEEPINTVL", interval, raising=False)
|
|
40
|
+
|
|
41
|
+
class Socket:
|
|
42
|
+
def setsockopt(self, level, option, value):
|
|
43
|
+
options.append((level, option, value))
|
|
44
|
+
if refuse_interval and option == interval:
|
|
45
|
+
raise OSError(errno.ENOPROTOOPT, "interval unavailable")
|
|
46
|
+
|
|
47
|
+
raw = Socket()
|
|
48
|
+
body = b'{"jsonrpc":"2.0","id":1,"result":{}}'
|
|
49
|
+
responses = [b"HTTP/1.1 200 OK\r\nContent-Length: " + str(len(body)).encode() + b"\r\n\r\n" + body]
|
|
50
|
+
if via_proxy and scheme == "https":
|
|
51
|
+
responses.insert(0, b"HTTP/1.1 200 Connection established\r\n\r\n")
|
|
52
|
+
|
|
53
|
+
class Stream(httpcore.AsyncMockStream):
|
|
54
|
+
def get_extra_info(self, info):
|
|
55
|
+
return raw if info == "socket" else super().get_extra_info(info)
|
|
56
|
+
|
|
57
|
+
async def start_tls(self, ssl_context, server_hostname=None, timeout=None):
|
|
58
|
+
handshakes.append((server_hostname, ssl_context.verify_mode))
|
|
59
|
+
return self
|
|
60
|
+
|
|
61
|
+
async def connect_tcp(self, host, port, socket_options, **kwargs):
|
|
62
|
+
connections.append((host, port))
|
|
63
|
+
for option in socket_options or ():
|
|
64
|
+
raw.setsockopt(*option)
|
|
65
|
+
return Stream(responses)
|
|
66
|
+
|
|
67
|
+
monkeypatch.setattr(AutoBackend, "connect_tcp", connect_tcp)
|
|
68
|
+
await client.add_data(f"{scheme}://worker.env.test", [], verify=verify)
|
|
69
|
+
|
|
70
|
+
(host, port), = connections
|
|
71
|
+
target = ("proxy.test", 8080) if via_proxy else ("worker.env.test", 443 if scheme == "https" else 80)
|
|
72
|
+
assert (host, port) == target
|
|
73
|
+
assert (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) in options
|
|
74
|
+
idle = getattr(socket, "TCP_KEEPIDLE", getattr(socket, "TCP_KEEPALIVE", None))
|
|
75
|
+
if idle is not None:
|
|
76
|
+
assert (socket.IPPROTO_TCP, idle, 30) in options
|
|
77
|
+
for name, value in (("TCP_KEEPINTVL", 10), ("TCP_KEEPCNT", 3)):
|
|
78
|
+
if hasattr(socket, name):
|
|
79
|
+
assert (socket.IPPROTO_TCP, getattr(socket, name), value) in options
|
|
80
|
+
expected = ssl.CERT_REQUIRED if verify else ssl.CERT_NONE
|
|
81
|
+
assert handshakes == ([("worker.env.test", expected)] if scheme == "https" else [])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/THIRD_PARTY_NOTICES.md
RENAMED
|
File without changes
|
{agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agentenv_framework_protocol-0.1.660 → agentenv_framework_protocol-0.1.661}/examples/basic_agent.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|